From bc84d2662267e92d20e4ea90e5bae0716aeb62cf Mon Sep 17 00:00:00 2001 From: Sotirios Mantziaris Date: Sat, 16 Nov 2024 11:05:44 +0200 Subject: [PATCH] upgrades (#784) - **Upgrades** - **Upgrades** - **Upgrades** - **Upgrades** ## Which problem is this PR solving? ## Short description of the changes --- client/mqtt/publisher_test.go | 1 - component/kafka/kafka_test.go | 2 +- go.mod | 20 +- go.sum | 40 +- options_test.go | 2 +- .../aws/aws-sdk-go-v2/config/CHANGELOG.md | 4 + .../config/go_module_metadata.go | 2 +- .../aws-sdk-go-v2/credentials/CHANGELOG.md | 4 + .../credentials/go_module_metadata.go | 2 +- .../service/dynamodb/CHANGELOG.md | 4 + .../service/dynamodb/api_op_CreateTable.go | 4 + .../service/dynamodb/api_op_UpdateTable.go | 4 + .../service/dynamodb/deserializers.go | 214 +++ .../service/dynamodb/go_module_metadata.go | 2 +- .../service/dynamodb/serializers.go | 52 + .../service/dynamodb/types/types.go | 77 + .../aws-sdk-go-v2/service/sts/CHANGELOG.md | 4 + .../service/sts/api_op_AssumeRole.go | 50 +- .../service/sts/api_op_AssumeRoleWithSAML.go | 12 +- .../sts/api_op_AssumeRoleWithWebIdentity.go | 48 +- .../service/sts/api_op_AssumeRoot.go | 221 +++ .../service/sts/api_op_GetFederationToken.go | 4 +- .../service/sts/api_op_GetSessionToken.go | 4 +- .../service/sts/deserializers.go | 170 ++ .../aws-sdk-go-v2/service/sts/generated.json | 1 + .../service/sts/go_module_metadata.go | 2 +- .../aws-sdk-go-v2/service/sts/serializers.go | 94 ++ .../aws-sdk-go-v2/service/sts/types/errors.go | 8 +- .../aws-sdk-go-v2/service/sts/validators.go | 42 + vendor/github.com/aws/smithy-go/CHANGELOG.md | 9 + .../encoding/httpbinding/path_replace.go | 30 +- .../aws/smithy-go/go_module_metadata.go | 2 +- .../eclipse/paho.golang/autopaho/auto.go | 35 +- .../eclipse/paho.golang/autopaho/backoff.go | 141 ++ .../eclipse/paho.golang/autopaho/net.go | 98 +- .../eclipse/paho.golang/paho/client.go | 6 +- .../eclipse/paho.golang/paho/pinger.go | 24 +- .../elastic/go-elasticsearch/v8/CHANGELOG.md | 24 + .../elastic/go-elasticsearch/v8/Makefile | 2 +- .../go-elasticsearch/v8/esapi/api._.go | 98 +- .../go-elasticsearch/v8/esapi/api.bulk.go | 2 +- .../v8/esapi/api.capabilities.go | 17 +- .../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 | 16 +- .../v8/esapi/api.connector.check_in.go | 2 +- .../v8/esapi/api.connector.delete.go | 2 +- .../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 +- .../v8/esapi/api.connector.secret_delete.go | 2 +- .../v8/esapi/api.connector.secret_get.go | 2 +- .../v8/esapi/api.connector.secret_post.go | 2 +- .../v8/esapi/api.connector.secret_put.go | 2 +- .../v8/esapi/api.connector.sync_job_cancel.go | 2 +- .../esapi/api.connector.sync_job_check_in.go | 2 +- .../v8/esapi/api.connector.sync_job_claim.go | 2 +- .../v8/esapi/api.connector.sync_job_delete.go | 2 +- .../v8/esapi/api.connector.sync_job_error.go | 2 +- .../v8/esapi/api.connector.sync_job_get.go | 2 +- .../v8/esapi/api.connector.sync_job_list.go | 2 +- .../v8/esapi/api.connector.sync_job_post.go | 2 +- .../api.connector.sync_job_update_stats.go | 2 +- .../api.connector.update_active_filtering.go | 2 +- .../esapi/api.connector.update_api_key_id.go | 2 +- .../api.connector.update_configuration.go | 2 +- .../v8/esapi/api.connector.update_error.go | 2 +- .../v8/esapi/api.connector.update_features.go | 2 +- .../esapi/api.connector.update_filtering.go | 2 +- ...i.connector.update_filtering_validation.go | 2 +- .../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 | 4 +- .../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 | 4 +- .../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 | 17 +- .../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 | 4 +- .../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 | 29 +- .../v8/esapi/api.indices.rollover.go | 2 +- .../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.go | 2 +- .../v8/esapi/api.inference.get.go | 2 +- .../v8/esapi/api.inference.inference.go | 2 +- .../v8/esapi/api.inference.put.go | 2 +- .../esapi/api.inference.stream_inference.go | 259 ++++ .../go-elasticsearch/v8/esapi/api.info.go | 2 +- .../esapi/api.ingest.delete_geoip_database.go | 4 +- .../api.ingest.delete_ip_location_database.go | 232 +++ .../v8/esapi/api.ingest.delete_pipeline.go | 2 +- .../v8/esapi/api.ingest.geo_ip_stats.go | 2 +- .../v8/esapi/api.ingest.get_geoip_database.go | 4 +- .../api.ingest.get_ip_location_database.go | 236 +++ .../v8/esapi/api.ingest.get_pipeline.go | 2 +- .../v8/esapi/api.ingest.processor_grok.go | 2 +- .../v8/esapi/api.ingest.put_geoip_database.go | 4 +- .../api.ingest.put_ip_location_database.go | 237 +++ .../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 | 2 +- .../v8/esapi/api.put_script.go | 2 +- .../v8/esapi/api.query_rules.delete_rule.go | 2 +- .../esapi/api.query_rules.delete_ruleset.go | 2 +- .../v8/esapi/api.query_rules.get_rule.go | 2 +- .../v8/esapi/api.query_rules.get_ruleset.go | 2 +- .../v8/esapi/api.query_rules.list_rulesets.go | 2 +- .../v8/esapi/api.query_rules.put_rule.go | 2 +- .../v8/esapi/api.query_rules.put_ruleset.go | 2 +- .../v8/esapi/api.query_rules.test.go | 237 +++ .../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 | 2 +- .../v8/esapi/api.search_mvt.go | 2 +- .../v8/esapi/api.search_shards.go | 15 +- .../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 +- ...pi.snapshot.repository_verify_integrity.go | 325 ++++ .../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 | 2 +- .../v8/esapi/api.xpack.ccr.follow.go | 2 +- .../v8/esapi/api.xpack.ccr.follow_info.go | 2 +- .../v8/esapi/api.xpack.ccr.follow_stats.go | 2 +- .../v8/esapi/api.xpack.ccr.forget_follower.go | 2 +- .../api.xpack.ccr.get_auto_follow_pattern.go | 2 +- ...api.xpack.ccr.pause_auto_follow_pattern.go | 2 +- .../v8/esapi/api.xpack.ccr.pause_follow.go | 2 +- .../api.xpack.ccr.put_auto_follow_pattern.go | 2 +- ...pi.xpack.ccr.resume_auto_follow_pattern.go | 2 +- .../v8/esapi/api.xpack.ccr.resume_follow.go | 2 +- .../v8/esapi/api.xpack.ccr.stats.go | 2 +- .../v8/esapi/api.xpack.ccr.unfollow.go | 2 +- .../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 | 2 +- .../esapi/api.xpack.esql.async_query_get.go | 2 +- .../v8/esapi/api.xpack.esql.query.go | 2 +- .../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 | 28 +- .../api.xpack.indices.data_streams_stats.go | 2 +- .../api.xpack.indices.delete_data_stream.go | 15 +- .../api.xpack.indices.get_data_stream.go | 27 +- ...pi.xpack.indices.migrate_to_data_stream.go | 28 +- .../api.xpack.indices.promote_data_stream.go | 16 +- ...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_delete_role.go | 2 +- .../esapi/api.xpack.security.bulk_put_role.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 | 4 +- ...api.xpack.security.create_service_token.go | 2 +- .../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 | 2 +- ...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 | 2 +- .../v8/esapi/api.xpack.security.query_role.go | 2 +- .../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 | 4 +- .../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 | 4 +- ...k.text_structure.find_message_structure.go | 2 +- ...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_node_stats.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 | 1378 +++++++++++++---- .../v8/typedapi/asyncsearch/delete/delete.go | 12 +- .../typedapi/asyncsearch/delete/response.go | 4 +- .../v8/typedapi/asyncsearch/get/get.go | 12 +- .../v8/typedapi/asyncsearch/get/response.go | 4 +- .../typedapi/asyncsearch/status/response.go | 4 +- .../v8/typedapi/asyncsearch/status/status.go | 12 +- .../v8/typedapi/asyncsearch/submit/request.go | 4 +- .../typedapi/asyncsearch/submit/response.go | 4 +- .../v8/typedapi/asyncsearch/submit/submit.go | 38 +- .../delete_autoscaling_policy.go | 16 +- .../deleteautoscalingpolicy/response.go | 4 +- .../get_autoscaling_capacity.go | 50 +- .../getautoscalingcapacity/response.go | 4 +- .../get_autoscaling_policy.go | 16 +- .../getautoscalingpolicy/response.go | 6 +- .../put_autoscaling_policy.go | 18 +- .../putautoscalingpolicy/request.go | 4 +- .../putautoscalingpolicy/response.go | 4 +- .../v8/typedapi/capabilities/capabilities.go | 4 +- .../v8/typedapi/cat/aliases/aliases.go | 18 +- .../v8/typedapi/cat/aliases/response.go | 4 +- .../v8/typedapi/cat/allocation/allocation.go | 2 +- .../v8/typedapi/cat/allocation/response.go | 4 +- .../componenttemplates/component_templates.go | 14 +- .../cat/componenttemplates/response.go | 4 +- .../v8/typedapi/cat/count/count.go | 22 +- .../v8/typedapi/cat/count/response.go | 4 +- .../v8/typedapi/cat/fielddata/fielddata.go | 2 +- .../v8/typedapi/cat/fielddata/response.go | 4 +- .../v8/typedapi/cat/health/health.go | 2 +- .../v8/typedapi/cat/health/response.go | 4 +- .../v8/typedapi/cat/help/help.go | 8 +- .../v8/typedapi/cat/help/response.go | 4 +- .../v8/typedapi/cat/indices/indices.go | 46 +- .../v8/typedapi/cat/indices/response.go | 4 +- .../v8/typedapi/cat/master/master.go | 2 +- .../v8/typedapi/cat/master/response.go | 4 +- .../typedapi/cat/mldatafeeds/ml_datafeeds.go | 8 +- .../v8/typedapi/cat/mldatafeeds/response.go | 4 +- .../ml_data_frame_analytics.go | 8 +- .../cat/mldataframeanalytics/response.go | 4 +- .../v8/typedapi/cat/mljobs/ml_jobs.go | 8 +- .../v8/typedapi/cat/mljobs/response.go | 4 +- .../cat/mltrainedmodels/ml_trained_models.go | 8 +- .../typedapi/cat/mltrainedmodels/response.go | 4 +- .../v8/typedapi/cat/nodeattrs/nodeattrs.go | 2 +- .../v8/typedapi/cat/nodeattrs/response.go | 4 +- .../v8/typedapi/cat/nodes/nodes.go | 2 +- .../v8/typedapi/cat/nodes/response.go | 4 +- .../cat/pendingtasks/pending_tasks.go | 2 +- .../v8/typedapi/cat/pendingtasks/response.go | 4 +- .../v8/typedapi/cat/plugins/plugins.go | 2 +- .../v8/typedapi/cat/plugins/response.go | 4 +- .../v8/typedapi/cat/recovery/recovery.go | 2 +- .../v8/typedapi/cat/recovery/response.go | 4 +- .../typedapi/cat/repositories/repositories.go | 2 +- .../v8/typedapi/cat/repositories/response.go | 4 +- .../v8/typedapi/cat/segments/response.go | 4 +- .../v8/typedapi/cat/segments/segments.go | 2 +- .../v8/typedapi/cat/shards/response.go | 4 +- .../v8/typedapi/cat/shards/shards.go | 2 +- .../v8/typedapi/cat/snapshots/response.go | 4 +- .../v8/typedapi/cat/snapshots/snapshots.go | 2 +- .../v8/typedapi/cat/tasks/response.go | 4 +- .../v8/typedapi/cat/tasks/tasks.go | 2 +- .../v8/typedapi/cat/templates/response.go | 4 +- .../v8/typedapi/cat/templates/templates.go | 2 +- .../v8/typedapi/cat/threadpool/response.go | 4 +- .../v8/typedapi/cat/threadpool/thread_pool.go | 2 +- .../v8/typedapi/cat/transforms/response.go | 4 +- .../v8/typedapi/cat/transforms/transforms.go | 8 +- .../delete_auto_follow_pattern.go | 2 +- .../ccr/deleteautofollowpattern/response.go | 4 +- .../v8/typedapi/ccr/follow/follow.go | 2 +- .../v8/typedapi/ccr/follow/request.go | 4 +- .../v8/typedapi/ccr/follow/response.go | 4 +- .../v8/typedapi/ccr/followinfo/follow_info.go | 2 +- .../v8/typedapi/ccr/followinfo/response.go | 4 +- .../typedapi/ccr/followstats/follow_stats.go | 2 +- .../v8/typedapi/ccr/followstats/response.go | 4 +- .../ccr/forgetfollower/forget_follower.go | 2 +- .../v8/typedapi/ccr/forgetfollower/request.go | 4 +- .../typedapi/ccr/forgetfollower/response.go | 4 +- .../get_auto_follow_pattern.go | 2 +- .../ccr/getautofollowpattern/response.go | 4 +- .../pause_auto_follow_pattern.go | 2 +- .../ccr/pauseautofollowpattern/response.go | 4 +- .../typedapi/ccr/pausefollow/pause_follow.go | 2 +- .../v8/typedapi/ccr/pausefollow/response.go | 4 +- .../put_auto_follow_pattern.go | 2 +- .../ccr/putautofollowpattern/request.go | 4 +- .../ccr/putautofollowpattern/response.go | 4 +- .../ccr/resumeautofollowpattern/response.go | 4 +- .../resume_auto_follow_pattern.go | 2 +- .../v8/typedapi/ccr/resumefollow/request.go | 4 +- .../v8/typedapi/ccr/resumefollow/response.go | 4 +- .../ccr/resumefollow/resume_follow.go | 2 +- .../v8/typedapi/ccr/stats/response.go | 4 +- .../v8/typedapi/ccr/stats/stats.go | 2 +- .../v8/typedapi/ccr/unfollow/response.go | 4 +- .../v8/typedapi/ccr/unfollow/unfollow.go | 2 +- .../allocationexplain/allocation_explain.go | 2 +- .../cluster/allocationexplain/request.go | 4 +- .../cluster/allocationexplain/response.go | 4 +- .../delete_component_template.go | 4 +- .../deletecomponenttemplate/response.go | 4 +- .../delete_voting_config_exclusions.go | 2 +- .../exists_component_template.go | 8 +- .../get_component_template.go | 4 +- .../cluster/getcomponenttemplate/response.go | 4 +- .../cluster/getsettings/get_settings.go | 2 +- .../typedapi/cluster/getsettings/response.go | 4 +- .../v8/typedapi/cluster/health/health.go | 2 +- .../v8/typedapi/cluster/health/response.go | 6 +- .../v8/typedapi/cluster/info/info.go | 8 +- .../v8/typedapi/cluster/info/response.go | 4 +- .../cluster/pendingtasks/pending_tasks.go | 2 +- .../typedapi/cluster/pendingtasks/response.go | 4 +- .../post_voting_config_exclusions.go | 2 +- .../put_component_template.go | 6 +- .../cluster/putcomponenttemplate/request.go | 4 +- .../cluster/putcomponenttemplate/response.go | 4 +- .../cluster/putsettings/put_settings.go | 2 +- .../typedapi/cluster/putsettings/request.go | 4 +- .../typedapi/cluster/putsettings/response.go | 4 +- .../cluster/remoteinfo/remote_info.go | 2 +- .../typedapi/cluster/remoteinfo/response.go | 4 +- .../v8/typedapi/cluster/reroute/request.go | 4 +- .../v8/typedapi/cluster/reroute/reroute.go | 2 +- .../v8/typedapi/cluster/reroute/response.go | 4 +- .../v8/typedapi/cluster/state/response.go | 4 +- .../v8/typedapi/cluster/state/state.go | 2 +- .../v8/typedapi/cluster/stats/response.go | 4 +- .../v8/typedapi/cluster/stats/stats.go | 10 +- .../v8/typedapi/connector/checkin/check_in.go | 14 +- .../v8/typedapi/connector/checkin/response.go | 4 +- .../v8/typedapi/connector/delete/delete.go | 18 +- .../v8/typedapi/connector/delete/response.go | 4 +- .../v8/typedapi/connector/get/get.go | 10 +- .../v8/typedapi/connector/get/response.go | 4 +- .../typedapi/connector/lastsync/last_sync.go | 12 +- .../v8/typedapi/connector/lastsync/request.go | 4 +- .../typedapi/connector/lastsync/response.go | 4 +- .../v8/typedapi/connector/list/list.go | 10 +- .../v8/typedapi/connector/list/response.go | 4 +- .../v8/typedapi/connector/post/post.go | 22 +- .../v8/typedapi/connector/post/request.go | 4 +- .../v8/typedapi/connector/post/response.go | 4 +- .../v8/typedapi/connector/put/put.go | 6 +- .../v8/typedapi/connector/put/request.go | 4 +- .../v8/typedapi/connector/put/response.go | 4 +- .../connector/secretpost/secret_post.go | 2 +- .../connector/syncjobcancel/response.go | 4 +- .../syncjobcancel/sync_job_cancel.go | 16 +- .../connector/syncjobdelete/response.go | 4 +- .../syncjobdelete/sync_job_delete.go | 12 +- .../typedapi/connector/syncjobget/response.go | 4 +- .../connector/syncjobget/sync_job_get.go | 6 +- .../connector/syncjoblist/response.go | 4 +- .../connector/syncjoblist/sync_job_list.go | 12 +- .../typedapi/connector/syncjobpost/request.go | 4 +- .../connector/syncjobpost/response.go | 4 +- .../connector/syncjobpost/sync_job_post.go | 12 +- .../updateactivefiltering/response.go | 4 +- .../update_active_filtering.go | 6 +- .../connector/updateapikeyid/request.go | 4 +- .../connector/updateapikeyid/response.go | 4 +- .../updateapikeyid/update_api_key_id.go | 20 +- .../connector/updateconfiguration/request.go | 4 +- .../connector/updateconfiguration/response.go | 4 +- .../update_configuration.go | 10 +- .../typedapi/connector/updateerror/request.go | 4 +- .../connector/updateerror/response.go | 4 +- .../connector/updateerror/update_error.go | 18 +- .../connector/updatefiltering/request.go | 4 +- .../connector/updatefiltering/response.go | 4 +- .../updatefiltering/update_filtering.go | 20 +- .../updatefilteringvalidation/request.go | 4 +- .../updatefilteringvalidation/response.go | 4 +- .../update_filtering_validation.go | 10 +- .../connector/updateindexname/request.go | 4 +- .../connector/updateindexname/response.go | 4 +- .../updateindexname/update_index_name.go | 12 +- .../typedapi/connector/updatename/request.go | 4 +- .../typedapi/connector/updatename/response.go | 4 +- .../connector/updatename/update_name.go | 6 +- .../connector/updatenative/request.go | 4 +- .../connector/updatenative/response.go | 4 +- .../connector/updatenative/update_native.go | 6 +- .../connector/updatepipeline/request.go | 4 +- .../connector/updatepipeline/response.go | 4 +- .../updatepipeline/update_pipeline.go | 12 +- .../connector/updatescheduling/request.go | 4 +- .../connector/updatescheduling/response.go | 4 +- .../updatescheduling/update_scheduling.go | 6 +- .../connector/updateservicetype/request.go | 4 +- .../connector/updateservicetype/response.go | 4 +- .../updateservicetype/update_service_type.go | 6 +- .../connector/updatestatus/request.go | 4 +- .../connector/updatestatus/response.go | 4 +- .../connector/updatestatus/update_status.go | 6 +- .../v8/typedapi/core/bulk/bulk.go | 4 +- .../v8/typedapi/core/bulk/request.go | 4 +- .../v8/typedapi/core/bulk/response.go | 4 +- .../typedapi/core/clearscroll/clear_scroll.go | 10 +- .../v8/typedapi/core/clearscroll/request.go | 4 +- .../v8/typedapi/core/clearscroll/response.go | 4 +- .../closepointintime/close_point_in_time.go | 22 +- .../typedapi/core/closepointintime/request.go | 4 +- .../core/closepointintime/response.go | 4 +- .../v8/typedapi/core/count/count.go | 2 +- .../v8/typedapi/core/count/request.go | 4 +- .../v8/typedapi/core/count/response.go | 4 +- .../v8/typedapi/core/create/create.go | 4 +- .../v8/typedapi/core/create/request.go | 4 +- .../v8/typedapi/core/create/response.go | 4 +- .../v8/typedapi/core/delete/delete.go | 4 +- .../v8/typedapi/core/delete/response.go | 4 +- .../core/deletebyquery/delete_by_query.go | 4 +- .../v8/typedapi/core/deletebyquery/request.go | 4 +- .../typedapi/core/deletebyquery/response.go | 4 +- .../delete_by_query_rethrottle.go | 16 +- .../core/deletebyqueryrethrottle/response.go | 4 +- .../core/deletescript/delete_script.go | 4 +- .../v8/typedapi/core/deletescript/response.go | 4 +- .../v8/typedapi/core/exists/exists.go | 8 +- .../core/existssource/exists_source.go | 4 +- .../v8/typedapi/core/explain/explain.go | 8 +- .../v8/typedapi/core/explain/request.go | 4 +- .../v8/typedapi/core/explain/response.go | 4 +- .../v8/typedapi/core/fieldcaps/field_caps.go | 34 +- .../v8/typedapi/core/fieldcaps/request.go | 4 +- .../v8/typedapi/core/fieldcaps/response.go | 4 +- .../v8/typedapi/core/get/get.go | 8 +- .../v8/typedapi/core/get/response.go | 5 +- .../v8/typedapi/core/getscript/get_script.go | 4 +- .../v8/typedapi/core/getscript/response.go | 4 +- .../getscriptcontext/get_script_context.go | 10 +- .../core/getscriptcontext/response.go | 4 +- .../get_script_languages.go | 10 +- .../core/getscriptlanguages/response.go | 4 +- .../v8/typedapi/core/getsource/get_source.go | 4 +- .../v8/typedapi/core/getsource/response.go | 4 +- .../core/healthreport/health_report.go | 2 +- .../v8/typedapi/core/healthreport/response.go | 4 +- .../v8/typedapi/core/index/index.go | 4 +- .../v8/typedapi/core/index/request.go | 4 +- .../v8/typedapi/core/index/response.go | 4 +- .../v8/typedapi/core/info/info.go | 4 +- .../v8/typedapi/core/info/response.go | 4 +- .../v8/typedapi/core/knnsearch/knn_search.go | 38 +- .../v8/typedapi/core/knnsearch/request.go | 4 +- .../v8/typedapi/core/knnsearch/response.go | 4 +- .../v8/typedapi/core/mget/mget.go | 18 +- .../v8/typedapi/core/mget/request.go | 4 +- .../v8/typedapi/core/mget/response.go | 6 +- .../v8/typedapi/core/msearch/msearch.go | 44 +- .../v8/typedapi/core/msearch/request.go | 4 +- .../v8/typedapi/core/msearch/response.go | 4 +- .../core/msearchtemplate/msearch_template.go | 6 +- .../typedapi/core/msearchtemplate/request.go | 4 +- .../typedapi/core/msearchtemplate/response.go | 4 +- .../core/mtermvectors/mtermvectors.go | 18 +- .../v8/typedapi/core/mtermvectors/request.go | 4 +- .../v8/typedapi/core/mtermvectors/response.go | 4 +- .../openpointintime/open_point_in_time.go | 120 +- .../typedapi/core/openpointintime/request.go | 57 + .../typedapi/core/openpointintime/response.go | 10 +- .../v8/typedapi/core/ping/ping.go | 4 +- .../v8/typedapi/core/putscript/put_script.go | 4 +- .../v8/typedapi/core/putscript/request.go | 4 +- .../v8/typedapi/core/putscript/response.go | 4 +- .../v8/typedapi/core/rankeval/rank_eval.go | 14 +- .../v8/typedapi/core/rankeval/request.go | 4 +- .../v8/typedapi/core/rankeval/response.go | 4 +- .../v8/typedapi/core/reindex/reindex.go | 20 +- .../v8/typedapi/core/reindex/request.go | 4 +- .../v8/typedapi/core/reindex/response.go | 4 +- .../reindexrethrottle/reindex_rethrottle.go | 10 +- .../core/reindexrethrottle/response.go | 4 +- .../render_search_template.go | 10 +- .../core/rendersearchtemplate/request.go | 4 +- .../core/rendersearchtemplate/response.go | 4 +- .../core/scriptspainlessexecute/request.go | 4 +- .../core/scriptspainlessexecute/response.go | 4 +- .../scripts_painless_execute.go | 4 +- .../v8/typedapi/core/scroll/request.go | 4 +- .../v8/typedapi/core/scroll/response.go | 11 +- .../v8/typedapi/core/scroll/scroll.go | 56 +- .../v8/typedapi/core/search/request.go | 4 +- .../v8/typedapi/core/search/response.go | 11 +- .../v8/typedapi/core/search/search.go | 10 +- .../v8/typedapi/core/searchmvt/request.go | 4 +- .../v8/typedapi/core/searchmvt/response.go | 4 +- .../v8/typedapi/core/searchmvt/search_mvt.go | 12 +- .../v8/typedapi/core/searchshards/response.go | 12 +- .../core/searchshards/search_shards.go | 20 +- .../typedapi/core/searchtemplate/request.go | 4 +- .../typedapi/core/searchtemplate/response.go | 11 +- .../core/searchtemplate/search_template.go | 6 +- .../v8/typedapi/core/termsenum/request.go | 4 +- .../v8/typedapi/core/termsenum/response.go | 4 +- .../v8/typedapi/core/termsenum/terms_enum.go | 34 +- .../v8/typedapi/core/termvectors/request.go | 4 +- .../v8/typedapi/core/termvectors/response.go | 4 +- .../typedapi/core/termvectors/termvectors.go | 10 +- .../v8/typedapi/core/update/request.go | 4 +- .../v8/typedapi/core/update/response.go | 4 +- .../v8/typedapi/core/update/update.go | 8 +- .../v8/typedapi/core/updatebyquery/request.go | 4 +- .../typedapi/core/updatebyquery/response.go | 4 +- .../core/updatebyquery/update_by_query.go | 12 +- .../core/updatebyqueryrethrottle/response.go | 4 +- .../update_by_query_rethrottle.go | 16 +- .../delete_dangling_index.go | 24 +- .../deletedanglingindex/response.go | 4 +- .../import_dangling_index.go | 27 +- .../importdanglingindex/response.go | 4 +- .../list_dangling_indices.go | 22 +- .../listdanglingindices/response.go | 4 +- .../enrich/deletepolicy/delete_policy.go | 4 +- .../typedapi/enrich/deletepolicy/response.go | 4 +- .../enrich/executepolicy/execute_policy.go | 2 +- .../typedapi/enrich/executepolicy/response.go | 4 +- .../typedapi/enrich/getpolicy/get_policy.go | 4 +- .../v8/typedapi/enrich/getpolicy/response.go | 4 +- .../typedapi/enrich/putpolicy/put_policy.go | 4 +- .../v8/typedapi/enrich/putpolicy/request.go | 4 +- .../v8/typedapi/enrich/putpolicy/response.go | 4 +- .../v8/typedapi/enrich/stats/response.go | 4 +- .../v8/typedapi/enrich/stats/stats.go | 4 +- .../v8/typedapi/eql/delete/delete.go | 2 +- .../v8/typedapi/eql/delete/response.go | 4 +- .../v8/typedapi/eql/get/get.go | 2 +- .../v8/typedapi/eql/get/response.go | 4 +- .../v8/typedapi/eql/getstatus/get_status.go | 2 +- .../v8/typedapi/eql/getstatus/response.go | 4 +- .../v8/typedapi/eql/search/request.go | 4 +- .../v8/typedapi/eql/search/response.go | 4 +- .../v8/typedapi/eql/search/search.go | 2 +- .../typedapi/esql/asyncquery/async_query.go | 2 +- .../v8/typedapi/esql/query/helpers.go | 6 +- .../v8/typedapi/esql/query/query.go | 43 +- .../v8/typedapi/esql/query/request.go | 20 +- .../v8/typedapi/esql/query/response.go | 4 +- .../features/getfeatures/get_features.go | 2 +- .../typedapi/features/getfeatures/response.go | 4 +- .../features/resetfeatures/reset_features.go | 2 +- .../features/resetfeatures/response.go | 4 +- .../globalcheckpoints/global_checkpoints.go | 2 +- .../fleet/globalcheckpoints/response.go | 4 +- .../v8/typedapi/fleet/msearch/msearch.go | 2 +- .../v8/typedapi/fleet/msearch/request.go | 4 +- .../v8/typedapi/fleet/msearch/response.go | 4 +- .../typedapi/fleet/postsecret/post_secret.go | 2 +- .../v8/typedapi/fleet/search/request.go | 4 +- .../v8/typedapi/fleet/search/response.go | 11 +- .../v8/typedapi/fleet/search/search.go | 2 +- .../v8/typedapi/graph/explore/explore.go | 2 +- .../v8/typedapi/graph/explore/request.go | 4 +- .../v8/typedapi/graph/explore/response.go | 4 +- .../ilm/deletelifecycle/delete_lifecycle.go | 2 +- .../typedapi/ilm/deletelifecycle/response.go | 4 +- .../ilm/explainlifecycle/explain_lifecycle.go | 2 +- .../typedapi/ilm/explainlifecycle/response.go | 4 +- .../ilm/getlifecycle/get_lifecycle.go | 2 +- .../v8/typedapi/ilm/getlifecycle/response.go | 4 +- .../v8/typedapi/ilm/getstatus/get_status.go | 2 +- .../v8/typedapi/ilm/getstatus/response.go | 4 +- .../migrate_to_data_tiers.go | 2 +- .../ilm/migratetodatatiers/request.go | 4 +- .../ilm/migratetodatatiers/response.go | 4 +- .../typedapi/ilm/movetostep/move_to_step.go | 6 +- .../v8/typedapi/ilm/movetostep/request.go | 8 +- .../v8/typedapi/ilm/movetostep/response.go | 4 +- .../ilm/putlifecycle/put_lifecycle.go | 2 +- .../v8/typedapi/ilm/putlifecycle/request.go | 4 +- .../v8/typedapi/ilm/putlifecycle/response.go | 4 +- .../ilm/removepolicy/remove_policy.go | 2 +- .../v8/typedapi/ilm/removepolicy/response.go | 4 +- .../v8/typedapi/ilm/retry/response.go | 4 +- .../v8/typedapi/ilm/retry/retry.go | 2 +- .../v8/typedapi/ilm/start/response.go | 4 +- .../v8/typedapi/ilm/start/start.go | 2 +- .../v8/typedapi/ilm/stop/response.go | 4 +- .../v8/typedapi/ilm/stop/stop.go | 2 +- .../v8/typedapi/indices/addblock/add_block.go | 10 +- .../v8/typedapi/indices/addblock/response.go | 4 +- .../v8/typedapi/indices/analyze/analyze.go | 12 +- .../v8/typedapi/indices/analyze/request.go | 48 +- .../v8/typedapi/indices/analyze/response.go | 4 +- .../indices/clearcache/clear_cache.go | 2 +- .../typedapi/indices/clearcache/response.go | 6 +- .../v8/typedapi/indices/clone/clone.go | 2 +- .../v8/typedapi/indices/clone/request.go | 4 +- .../v8/typedapi/indices/clone/response.go | 4 +- .../v8/typedapi/indices/close/close.go | 2 +- .../v8/typedapi/indices/close/response.go | 4 +- .../v8/typedapi/indices/create/create.go | 4 +- .../v8/typedapi/indices/create/request.go | 4 +- .../v8/typedapi/indices/create/response.go | 4 +- .../createdatastream/create_data_stream.go | 22 +- .../indices/createdatastream/response.go | 4 +- .../datastreamsstats/data_streams_stats.go | 4 +- .../indices/datastreamsstats/response.go | 4 +- .../v8/typedapi/indices/delete/delete.go | 4 +- .../v8/typedapi/indices/delete/response.go | 4 +- .../indices/deletealias/delete_alias.go | 4 +- .../typedapi/indices/deletealias/response.go | 4 +- .../delete_data_lifecycle.go | 12 +- .../indices/deletedatalifecycle/response.go | 4 +- .../deletedatastream/delete_data_stream.go | 13 +- .../indices/deletedatastream/response.go | 4 +- .../delete_index_template.go | 2 +- .../indices/deleteindextemplate/response.go | 4 +- .../indices/deletetemplate/delete_template.go | 2 +- .../indices/deletetemplate/response.go | 4 +- .../typedapi/indices/diskusage/disk_usage.go | 2 +- .../v8/typedapi/indices/diskusage/response.go | 4 +- .../typedapi/indices/downsample/downsample.go | 2 +- .../v8/typedapi/indices/downsample/request.go | 4 +- .../typedapi/indices/downsample/response.go | 4 +- .../v8/typedapi/indices/exists/exists.go | 8 +- .../indices/existsalias/exists_alias.go | 8 +- .../exists_index_template.go | 2 +- .../indices/existstemplate/exists_template.go | 2 +- .../explain_data_lifecycle.go | 16 +- .../indices/explaindatalifecycle/response.go | 4 +- .../fieldusagestats/field_usage_stats.go | 2 +- .../indices/fieldusagestats/response.go | 4 +- .../v8/typedapi/indices/flush/flush.go | 2 +- .../v8/typedapi/indices/flush/response.go | 6 +- .../typedapi/indices/forcemerge/forcemerge.go | 2 +- .../typedapi/indices/forcemerge/response.go | 6 +- .../v8/typedapi/indices/get/get.go | 4 +- .../v8/typedapi/indices/get/response.go | 4 +- .../v8/typedapi/indices/getalias/get_alias.go | 8 +- .../v8/typedapi/indices/getalias/response.go | 4 +- .../getdatalifecycle/get_data_lifecycle.go | 13 +- .../indices/getdatalifecycle/response.go | 4 +- .../indices/getdatastream/get_data_stream.go | 22 +- .../indices/getdatastream/response.go | 4 +- .../getfieldmapping/get_field_mapping.go | 4 +- .../indices/getfieldmapping/response.go | 4 +- .../getindextemplate/get_index_template.go | 2 +- .../indices/getindextemplate/response.go | 4 +- .../indices/getmapping/get_mapping.go | 4 +- .../typedapi/indices/getmapping/response.go | 4 +- .../indices/getsettings/get_settings.go | 4 +- .../typedapi/indices/getsettings/response.go | 4 +- .../indices/gettemplate/get_template.go | 2 +- .../typedapi/indices/gettemplate/response.go | 4 +- .../migrate_to_data_stream.go | 22 +- .../indices/migratetodatastream/response.go | 4 +- .../modifydatastream/modify_data_stream.go | 4 +- .../indices/modifydatastream/request.go | 4 +- .../indices/modifydatastream/response.go | 4 +- .../v8/typedapi/indices/open/open.go | 2 +- .../v8/typedapi/indices/open/response.go | 4 +- .../promotedatastream/promote_data_stream.go | 11 +- .../indices/promotedatastream/response.go | 4 +- .../v8/typedapi/indices/putalias/put_alias.go | 4 +- .../v8/typedapi/indices/putalias/request.go | 4 +- .../v8/typedapi/indices/putalias/response.go | 4 +- .../putdatalifecycle/put_data_lifecycle.go | 8 +- .../indices/putdatalifecycle/request.go | 4 +- .../indices/putdatalifecycle/response.go | 4 +- .../putindextemplate/put_index_template.go | 2 +- .../indices/putindextemplate/request.go | 4 +- .../indices/putindextemplate/response.go | 4 +- .../indices/putmapping/put_mapping.go | 4 +- .../v8/typedapi/indices/putmapping/request.go | 4 +- .../typedapi/indices/putmapping/response.go | 4 +- .../indices/putsettings/put_settings.go | 8 +- .../typedapi/indices/putsettings/request.go | 4 +- .../typedapi/indices/putsettings/response.go | 4 +- .../indices/puttemplate/put_template.go | 2 +- .../typedapi/indices/puttemplate/request.go | 4 +- .../typedapi/indices/puttemplate/response.go | 4 +- .../v8/typedapi/indices/recovery/recovery.go | 2 +- .../v8/typedapi/indices/recovery/response.go | 4 +- .../v8/typedapi/indices/refresh/refresh.go | 4 +- .../v8/typedapi/indices/refresh/response.go | 6 +- .../reload_search_analyzers.go | 2 +- .../indices/reloadsearchanalyzers/response.go | 4 +- .../indices/resolvecluster/resolve_cluster.go | 2 +- .../indices/resolvecluster/response.go | 4 +- .../indices/resolveindex/resolve_index.go | 23 +- .../typedapi/indices/resolveindex/response.go | 4 +- .../v8/typedapi/indices/rollover/request.go | 4 +- .../v8/typedapi/indices/rollover/response.go | 4 +- .../v8/typedapi/indices/rollover/rollover.go | 4 +- .../v8/typedapi/indices/segments/response.go | 4 +- .../v8/typedapi/indices/segments/segments.go | 2 +- .../typedapi/indices/shardstores/response.go | 4 +- .../indices/shardstores/shard_stores.go | 2 +- .../v8/typedapi/indices/shrink/request.go | 4 +- .../v8/typedapi/indices/shrink/response.go | 4 +- .../v8/typedapi/indices/shrink/shrink.go | 2 +- .../indices/simulateindextemplate/response.go | 4 +- .../simulate_index_template.go | 2 +- .../indices/simulatetemplate/request.go | 4 +- .../indices/simulatetemplate/response.go | 4 +- .../simulatetemplate/simulate_template.go | 2 +- .../v8/typedapi/indices/split/request.go | 4 +- .../v8/typedapi/indices/split/response.go | 4 +- .../v8/typedapi/indices/split/split.go | 2 +- .../v8/typedapi/indices/stats/response.go | 4 +- .../v8/typedapi/indices/stats/stats.go | 2 +- .../v8/typedapi/indices/unfreeze/response.go | 4 +- .../v8/typedapi/indices/unfreeze/unfreeze.go | 2 +- .../typedapi/indices/updatealiases/request.go | 4 +- .../indices/updatealiases/response.go | 4 +- .../indices/updatealiases/update_aliases.go | 4 +- .../typedapi/indices/validatequery/request.go | 4 +- .../indices/validatequery/response.go | 4 +- .../indices/validatequery/validate_query.go | 8 +- .../v8/typedapi/inference/delete/delete.go | 2 +- .../v8/typedapi/inference/delete/response.go | 4 +- .../v8/typedapi/inference/get/get.go | 2 +- .../v8/typedapi/inference/get/response.go | 4 +- .../typedapi/inference/inference/inference.go | 2 +- .../typedapi/inference/inference/request.go | 4 +- .../typedapi/inference/inference/response.go | 4 +- .../v8/typedapi/inference/put/put.go | 2 +- .../v8/typedapi/inference/put/request.go | 4 +- .../v8/typedapi/inference/put/response.go | 6 +- .../delete_geoip_database.go | 365 +++++ .../ingest/deletegeoipdatabase/response.go | 37 + .../ingest/deletepipeline/delete_pipeline.go | 2 +- .../ingest/deletepipeline/response.go | 4 +- .../ingest/geoipstats/geo_ip_stats.go | 2 +- .../v8/typedapi/ingest/geoipstats/response.go | 4 +- .../getgeoipdatabase/get_geoip_database.go | 365 +++++ .../ingest/getgeoipdatabase/response.go | 38 + .../ingest/getpipeline/get_pipeline.go | 2 +- .../typedapi/ingest/getpipeline/response.go | 4 +- .../ingest/processorgrok/processor_grok.go | 2 +- .../typedapi/ingest/processorgrok/response.go | 4 +- .../putgeoipdatabase/put_geoip_database.go | 402 +++++ .../ingest/putgeoipdatabase/request.go | 94 ++ .../ingest/putgeoipdatabase/response.go | 37 + .../ingest/putpipeline/put_pipeline.go | 13 +- .../v8/typedapi/ingest/putpipeline/request.go | 23 +- .../typedapi/ingest/putpipeline/response.go | 4 +- .../v8/typedapi/ingest/simulate/request.go | 6 +- .../v8/typedapi/ingest/simulate/response.go | 6 +- .../v8/typedapi/ingest/simulate/simulate.go | 2 +- .../v8/typedapi/license/delete/delete.go | 2 +- .../v8/typedapi/license/delete/response.go | 4 +- .../v8/typedapi/license/get/get.go | 20 +- .../v8/typedapi/license/get/response.go | 4 +- .../getbasicstatus/get_basic_status.go | 2 +- .../license/getbasicstatus/response.go | 4 +- .../gettrialstatus/get_trial_status.go | 2 +- .../license/gettrialstatus/response.go | 4 +- .../v8/typedapi/license/post/post.go | 2 +- .../v8/typedapi/license/post/request.go | 4 +- .../v8/typedapi/license/post/response.go | 4 +- .../poststartbasic/post_start_basic.go | 2 +- .../license/poststartbasic/response.go | 4 +- .../poststarttrial/post_start_trial.go | 2 +- .../license/poststarttrial/response.go | 4 +- .../deletepipeline/delete_pipeline.go | 2 +- .../logstash/getpipeline/get_pipeline.go | 2 +- .../typedapi/logstash/getpipeline/response.go | 4 +- .../logstash/putpipeline/put_pipeline.go | 2 +- .../typedapi/logstash/putpipeline/request.go | 4 +- .../migration/deprecations/deprecations.go | 2 +- .../migration/deprecations/response.go | 4 +- .../get_feature_upgrade_status.go | 2 +- .../getfeatureupgradestatus/response.go | 4 +- .../post_feature_upgrade.go | 2 +- .../migration/postfeatureupgrade/response.go | 4 +- .../clear_trained_model_deployment_cache.go | 10 +- .../response.go | 4 +- .../v8/typedapi/ml/closejob/close_job.go | 6 +- .../v8/typedapi/ml/closejob/request.go | 4 +- .../v8/typedapi/ml/closejob/response.go | 4 +- .../ml/deletecalendar/delete_calendar.go | 4 +- .../v8/typedapi/ml/deletecalendar/response.go | 4 +- .../delete_calendar_event.go | 6 +- .../ml/deletecalendarevent/response.go | 4 +- .../deletecalendarjob/delete_calendar_job.go | 6 +- .../typedapi/ml/deletecalendarjob/response.go | 4 +- .../ml/deletedatafeed/delete_datafeed.go | 6 +- .../v8/typedapi/ml/deletedatafeed/response.go | 4 +- .../delete_data_frame_analytics.go | 6 +- .../ml/deletedataframeanalytics/response.go | 4 +- .../deleteexpireddata/delete_expired_data.go | 6 +- .../typedapi/ml/deleteexpireddata/request.go | 4 +- .../typedapi/ml/deleteexpireddata/response.go | 4 +- .../typedapi/ml/deletefilter/delete_filter.go | 6 +- .../v8/typedapi/ml/deletefilter/response.go | 4 +- .../ml/deleteforecast/delete_forecast.go | 6 +- .../v8/typedapi/ml/deleteforecast/response.go | 4 +- .../v8/typedapi/ml/deletejob/delete_job.go | 8 +- .../v8/typedapi/ml/deletejob/response.go | 4 +- .../delete_model_snapshot.go | 6 +- .../ml/deletemodelsnapshot/response.go | 4 +- .../delete_trained_model.go | 12 +- .../ml/deletetrainedmodel/response.go | 4 +- .../delete_trained_model_alias.go | 6 +- .../ml/deletetrainedmodelalias/response.go | 4 +- .../estimate_model_memory.go | 4 +- .../ml/estimatemodelmemory/request.go | 4 +- .../ml/estimatemodelmemory/response.go | 4 +- .../evaluatedataframe/evaluate_data_frame.go | 6 +- .../typedapi/ml/evaluatedataframe/request.go | 4 +- .../typedapi/ml/evaluatedataframe/response.go | 4 +- .../explain_data_frame_analytics.go | 6 +- .../ml/explaindataframeanalytics/request.go | 4 +- .../ml/explaindataframeanalytics/response.go | 4 +- .../v8/typedapi/ml/flushjob/flush_job.go | 6 +- .../v8/typedapi/ml/flushjob/request.go | 4 +- .../v8/typedapi/ml/flushjob/response.go | 4 +- .../v8/typedapi/ml/forecast/forecast.go | 14 +- .../v8/typedapi/ml/forecast/request.go | 4 +- .../v8/typedapi/ml/forecast/response.go | 4 +- .../v8/typedapi/ml/getbuckets/get_buckets.go | 6 +- .../v8/typedapi/ml/getbuckets/request.go | 4 +- .../v8/typedapi/ml/getbuckets/response.go | 4 +- .../getcalendarevents/get_calendar_events.go | 6 +- .../typedapi/ml/getcalendarevents/response.go | 4 +- .../typedapi/ml/getcalendars/get_calendars.go | 6 +- .../v8/typedapi/ml/getcalendars/request.go | 4 +- .../v8/typedapi/ml/getcalendars/response.go | 4 +- .../ml/getcategories/get_categories.go | 6 +- .../v8/typedapi/ml/getcategories/request.go | 4 +- .../v8/typedapi/ml/getcategories/response.go | 4 +- .../typedapi/ml/getdatafeeds/get_datafeeds.go | 6 +- .../v8/typedapi/ml/getdatafeeds/response.go | 4 +- .../ml/getdatafeedstats/get_datafeed_stats.go | 6 +- .../typedapi/ml/getdatafeedstats/response.go | 4 +- .../get_data_frame_analytics.go | 6 +- .../ml/getdataframeanalytics/response.go | 4 +- .../get_data_frame_analytics_stats.go | 6 +- .../ml/getdataframeanalyticsstats/response.go | 4 +- .../v8/typedapi/ml/getfilters/get_filters.go | 6 +- .../v8/typedapi/ml/getfilters/response.go | 4 +- .../ml/getinfluencers/get_influencers.go | 6 +- .../v8/typedapi/ml/getinfluencers/request.go | 4 +- .../v8/typedapi/ml/getinfluencers/response.go | 4 +- .../v8/typedapi/ml/getjobs/get_jobs.go | 6 +- .../v8/typedapi/ml/getjobs/response.go | 4 +- .../typedapi/ml/getjobstats/get_job_stats.go | 6 +- .../v8/typedapi/ml/getjobstats/response.go | 4 +- .../ml/getmemorystats/get_memory_stats.go | 4 +- .../v8/typedapi/ml/getmemorystats/response.go | 4 +- .../getmodelsnapshots/get_model_snapshots.go | 6 +- .../typedapi/ml/getmodelsnapshots/request.go | 4 +- .../typedapi/ml/getmodelsnapshots/response.go | 4 +- .../get_model_snapshot_upgrade_stats.go | 8 +- .../getmodelsnapshotupgradestats/response.go | 4 +- .../getoverallbuckets/get_overall_buckets.go | 10 +- .../typedapi/ml/getoverallbuckets/request.go | 4 +- .../typedapi/ml/getoverallbuckets/response.go | 4 +- .../v8/typedapi/ml/getrecords/get_records.go | 6 +- .../v8/typedapi/ml/getrecords/request.go | 4 +- .../v8/typedapi/ml/getrecords/response.go | 4 +- .../ml/gettrainedmodels/get_trained_models.go | 6 +- .../typedapi/ml/gettrainedmodels/response.go | 4 +- .../get_trained_models_stats.go | 10 +- .../ml/gettrainedmodelsstats/response.go | 4 +- .../infertrainedmodel/infer_trained_model.go | 6 +- .../typedapi/ml/infertrainedmodel/request.go | 4 +- .../typedapi/ml/infertrainedmodel/response.go | 4 +- .../v8/typedapi/ml/info/info.go | 4 +- .../v8/typedapi/ml/info/response.go | 4 +- .../v8/typedapi/ml/openjob/open_job.go | 16 +- .../v8/typedapi/ml/openjob/request.go | 4 +- .../v8/typedapi/ml/openjob/response.go | 4 +- .../post_calendar_events.go | 6 +- .../typedapi/ml/postcalendarevents/request.go | 4 +- .../ml/postcalendarevents/response.go | 4 +- .../v8/typedapi/ml/postdata/post_data.go | 6 +- .../v8/typedapi/ml/postdata/request.go | 4 +- .../v8/typedapi/ml/postdata/response.go | 4 +- .../ml/previewdatafeed/preview_datafeed.go | 6 +- .../v8/typedapi/ml/previewdatafeed/request.go | 4 +- .../typedapi/ml/previewdatafeed/response.go | 4 +- .../preview_data_frame_analytics.go | 4 +- .../ml/previewdataframeanalytics/request.go | 4 +- .../ml/previewdataframeanalytics/response.go | 4 +- .../typedapi/ml/putcalendar/put_calendar.go | 6 +- .../v8/typedapi/ml/putcalendar/request.go | 4 +- .../v8/typedapi/ml/putcalendar/response.go | 4 +- .../ml/putcalendarjob/put_calendar_job.go | 6 +- .../v8/typedapi/ml/putcalendarjob/response.go | 4 +- .../typedapi/ml/putdatafeed/put_datafeed.go | 6 +- .../v8/typedapi/ml/putdatafeed/request.go | 4 +- .../v8/typedapi/ml/putdatafeed/response.go | 4 +- .../put_data_frame_analytics.go | 6 +- .../ml/putdataframeanalytics/request.go | 4 +- .../ml/putdataframeanalytics/response.go | 4 +- .../v8/typedapi/ml/putfilter/put_filter.go | 6 +- .../v8/typedapi/ml/putfilter/request.go | 4 +- .../v8/typedapi/ml/putfilter/response.go | 4 +- .../v8/typedapi/ml/putjob/put_job.go | 12 +- .../v8/typedapi/ml/putjob/request.go | 4 +- .../v8/typedapi/ml/putjob/response.go | 4 +- .../ml/puttrainedmodel/put_trained_model.go | 8 +- .../v8/typedapi/ml/puttrainedmodel/request.go | 4 +- .../typedapi/ml/puttrainedmodel/response.go | 4 +- .../put_trained_model_alias.go | 12 +- .../ml/puttrainedmodelalias/response.go | 4 +- .../put_trained_model_definition_part.go | 6 +- .../puttrainedmodeldefinitionpart/request.go | 4 +- .../puttrainedmodeldefinitionpart/response.go | 4 +- .../put_trained_model_vocabulary.go | 6 +- .../ml/puttrainedmodelvocabulary/request.go | 4 +- .../ml/puttrainedmodelvocabulary/response.go | 4 +- .../v8/typedapi/ml/resetjob/reset_job.go | 6 +- .../v8/typedapi/ml/resetjob/response.go | 4 +- .../ml/revertmodelsnapshot/request.go | 4 +- .../ml/revertmodelsnapshot/response.go | 4 +- .../revert_model_snapshot.go | 6 +- .../v8/typedapi/ml/setupgrademode/response.go | 4 +- .../ml/setupgrademode/set_upgrade_mode.go | 4 +- .../v8/typedapi/ml/startdatafeed/request.go | 4 +- .../v8/typedapi/ml/startdatafeed/response.go | 4 +- .../ml/startdatafeed/start_datafeed.go | 6 +- .../ml/startdataframeanalytics/response.go | 4 +- .../start_data_frame_analytics.go | 6 +- .../starttrainedmodeldeployment/response.go | 4 +- .../start_trained_model_deployment.go | 10 +- .../v8/typedapi/ml/stopdatafeed/request.go | 4 +- .../v8/typedapi/ml/stopdatafeed/response.go | 4 +- .../typedapi/ml/stopdatafeed/stop_datafeed.go | 6 +- .../ml/stopdataframeanalytics/response.go | 4 +- .../stop_data_frame_analytics.go | 6 +- .../ml/stoptrainedmodeldeployment/response.go | 4 +- .../stop_trained_model_deployment.go | 6 +- .../v8/typedapi/ml/updatedatafeed/request.go | 4 +- .../v8/typedapi/ml/updatedatafeed/response.go | 4 +- .../ml/updatedatafeed/update_datafeed.go | 6 +- .../ml/updatedataframeanalytics/request.go | 4 +- .../ml/updatedataframeanalytics/response.go | 4 +- .../update_data_frame_analytics.go | 6 +- .../v8/typedapi/ml/updatefilter/request.go | 4 +- .../v8/typedapi/ml/updatefilter/response.go | 4 +- .../typedapi/ml/updatefilter/update_filter.go | 4 +- .../v8/typedapi/ml/updatejob/request.go | 4 +- .../v8/typedapi/ml/updatejob/response.go | 4 +- .../v8/typedapi/ml/updatejob/update_job.go | 4 +- .../ml/updatemodelsnapshot/request.go | 4 +- .../ml/updatemodelsnapshot/response.go | 4 +- .../update_model_snapshot.go | 4 +- .../updatetrainedmodeldeployment/request.go | 4 +- .../updatetrainedmodeldeployment/response.go | 4 +- .../update_trained_model_deployment.go | 8 +- .../ml/upgradejobsnapshot/response.go | 4 +- .../upgrade_job_snapshot.go | 4 +- .../v8/typedapi/ml/validate/request.go | 4 +- .../v8/typedapi/ml/validate/response.go | 4 +- .../v8/typedapi/ml/validate/validate.go | 2 +- .../typedapi/ml/validatedetector/request.go | 4 +- .../typedapi/ml/validatedetector/response.go | 4 +- .../ml/validatedetector/validate_detector.go | 2 +- .../v8/typedapi/monitoring/bulk/bulk.go | 2 +- .../v8/typedapi/monitoring/bulk/request.go | 4 +- .../v8/typedapi/monitoring/bulk/response.go | 4 +- .../clear_repositories_metering_archive.go | 2 +- .../response.go | 4 +- .../get_repositories_metering_info.go | 2 +- .../getrepositoriesmeteringinfo/response.go | 4 +- .../typedapi/nodes/hotthreads/hot_threads.go | 2 +- .../v8/typedapi/nodes/hotthreads/response.go | 9 +- .../v8/typedapi/nodes/info/info.go | 2 +- .../v8/typedapi/nodes/info/response.go | 4 +- .../reload_secure_settings.go | 2 +- .../nodes/reloadsecuresettings/request.go | 4 +- .../nodes/reloadsecuresettings/response.go | 4 +- .../v8/typedapi/nodes/stats/response.go | 4 +- .../v8/typedapi/nodes/stats/stats.go | 2 +- .../v8/typedapi/nodes/usage/response.go | 4 +- .../v8/typedapi/nodes/usage/usage.go | 2 +- .../profiling/flamegraph/flamegraph.go | 2 +- .../profiling/stacktraces/stacktraces.go | 2 +- .../v8/typedapi/profiling/status/status.go | 2 +- .../profiling/topnfunctions/topn_functions.go | 2 +- .../queryrules/deleterule/delete_rule.go | 2 +- .../queryrules/deleterule/response.go | 4 +- .../deleteruleset/delete_ruleset.go | 2 +- .../queryrules/deleteruleset/response.go | 4 +- .../typedapi/queryrules/getrule/get_rule.go | 2 +- .../typedapi/queryrules/getrule/response.go | 4 +- .../queryrules/getruleset/get_ruleset.go | 2 +- .../queryrules/getruleset/response.go | 4 +- .../queryrules/listrulesets/list_rulesets.go | 2 +- .../queryrules/listrulesets/response.go | 4 +- .../typedapi/queryrules/putrule/put_rule.go | 2 +- .../v8/typedapi/queryrules/putrule/request.go | 4 +- .../typedapi/queryrules/putrule/response.go | 4 +- .../queryrules/putruleset/put_ruleset.go | 2 +- .../typedapi/queryrules/putruleset/request.go | 4 +- .../queryrules/putruleset/response.go | 4 +- .../v8/typedapi/queryrules/test/request.go | 54 + .../v8/typedapi/queryrules/test/response.go | 39 + .../v8/typedapi/queryrules/test/test.go | 368 +++++ .../typedapi/rollup/deletejob/delete_job.go | 2 +- .../v8/typedapi/rollup/deletejob/response.go | 4 +- .../v8/typedapi/rollup/getjobs/get_jobs.go | 2 +- .../v8/typedapi/rollup/getjobs/response.go | 4 +- .../rollup/getrollupcaps/get_rollup_caps.go | 2 +- .../typedapi/rollup/getrollupcaps/response.go | 4 +- .../get_rollup_index_caps.go | 2 +- .../rollup/getrollupindexcaps/response.go | 4 +- .../v8/typedapi/rollup/putjob/put_job.go | 2 +- .../v8/typedapi/rollup/putjob/request.go | 4 +- .../v8/typedapi/rollup/putjob/response.go | 4 +- .../typedapi/rollup/rollupsearch/request.go | 4 +- .../typedapi/rollup/rollupsearch/response.go | 11 +- .../rollup/rollupsearch/rollup_search.go | 2 +- .../v8/typedapi/rollup/startjob/response.go | 4 +- .../v8/typedapi/rollup/startjob/start_job.go | 2 +- .../v8/typedapi/rollup/stopjob/response.go | 4 +- .../v8/typedapi/rollup/stopjob/stop_job.go | 2 +- .../cachestats/cache_stats.go | 2 +- .../cachestats/response.go | 4 +- .../clearcache/clear_cache.go | 2 +- .../clearcache/response.go | 4 +- .../searchablesnapshots/mount/mount.go | 2 +- .../searchablesnapshots/mount/request.go | 4 +- .../searchablesnapshots/mount/response.go | 4 +- .../searchablesnapshots/stats/response.go | 4 +- .../searchablesnapshots/stats/stats.go | 2 +- .../searchapplication/delete/delete.go | 10 +- .../searchapplication/delete/response.go | 4 +- .../delete_behavioral_analytics.go | 4 +- .../deletebehavioralanalytics/response.go | 4 +- .../v8/typedapi/searchapplication/get/get.go | 6 +- .../searchapplication/get/response.go | 4 +- .../get_behavioral_analytics.go | 6 +- .../getbehavioralanalytics/response.go | 4 +- .../typedapi/searchapplication/list/list.go | 2 +- .../searchapplication/list/response.go | 4 +- .../v8/typedapi/searchapplication/put/put.go | 6 +- .../typedapi/searchapplication/put/request.go | 4 +- .../searchapplication/put/response.go | 4 +- .../put_behavioral_analytics.go | 6 +- .../putbehavioralanalytics/response.go | 4 +- .../searchapplication/search/request.go | 4 +- .../searchapplication/search/response.go | 11 +- .../searchapplication/search/search.go | 18 +- .../activate_user_profile.go | 10 +- .../security/activateuserprofile/request.go | 4 +- .../security/activateuserprofile/response.go | 4 +- .../security/authenticate/authenticate.go | 16 +- .../security/authenticate/response.go | 4 +- .../bulkdeleterole/bulk_delete_role.go | 6 +- .../security/bulkdeleterole/request.go | 4 +- .../security/bulkdeleterole/response.go | 4 +- .../security/bulkputrole/bulk_put_role.go | 6 +- .../typedapi/security/bulkputrole/request.go | 4 +- .../typedapi/security/bulkputrole/response.go | 4 +- .../bulkupdateapikeys/bulk_update_api_keys.go | 2 +- .../changepassword/change_password.go | 10 +- .../security/changepassword/request.go | 4 +- .../security/changepassword/response.go | 4 +- .../clearapikeycache/clear_api_key_cache.go | 10 +- .../security/clearapikeycache/response.go | 4 +- .../clear_cached_privileges.go | 14 +- .../clearcachedprivileges/response.go | 4 +- .../clearcachedrealms/clear_cached_realms.go | 10 +- .../security/clearcachedrealms/response.go | 4 +- .../clearcachedroles/clear_cached_roles.go | 10 +- .../security/clearcachedroles/response.go | 4 +- .../clear_cached_service_tokens.go | 10 +- .../clearcachedservicetokens/response.go | 4 +- .../security/createapikey/create_api_key.go | 10 +- .../typedapi/security/createapikey/request.go | 4 +- .../security/createapikey/response.go | 4 +- .../create_cross_cluster_api_key.go | 2 +- .../create_service_token.go | 10 +- .../security/createservicetoken/response.go | 4 +- .../deleteprivileges/delete_privileges.go | 6 +- .../security/deleteprivileges/response.go | 4 +- .../security/deleterole/delete_role.go | 10 +- .../typedapi/security/deleterole/response.go | 4 +- .../deleterolemapping/delete_role_mapping.go | 6 +- .../security/deleterolemapping/response.go | 4 +- .../delete_service_token.go | 10 +- .../security/deleteservicetoken/response.go | 4 +- .../security/deleteuser/delete_user.go | 10 +- .../typedapi/security/deleteuser/response.go | 4 +- .../security/disableuser/disable_user.go | 10 +- .../typedapi/security/disableuser/response.go | 4 +- .../disable_user_profile.go | 10 +- .../security/disableuserprofile/response.go | 4 +- .../security/enableuser/enable_user.go | 10 +- .../typedapi/security/enableuser/response.go | 4 +- .../enableuserprofile/enable_user_profile.go | 10 +- .../security/enableuserprofile/response.go | 4 +- .../security/enrollkibana/enroll_kibana.go | 14 +- .../security/enrollkibana/response.go | 4 +- .../security/enrollnode/enroll_node.go | 12 +- .../typedapi/security/enrollnode/response.go | 4 +- .../security/getapikey/get_api_key.go | 6 +- .../typedapi/security/getapikey/response.go | 4 +- .../get_builtin_privileges.go | 14 +- .../security/getbuiltinprivileges/response.go | 4 +- .../security/getprivileges/get_privileges.go | 6 +- .../security/getprivileges/response.go | 4 +- .../v8/typedapi/security/getrole/get_role.go | 8 +- .../v8/typedapi/security/getrole/response.go | 4 +- .../getrolemapping/get_role_mapping.go | 18 +- .../security/getrolemapping/response.go | 4 +- .../get_service_accounts.go | 12 +- .../security/getserviceaccounts/response.go | 4 +- .../get_service_credentials.go | 6 +- .../getservicecredentials/response.go | 4 +- .../security/getsettings/get_settings.go | 2 +- .../typedapi/security/gettoken/get_token.go | 10 +- .../v8/typedapi/security/gettoken/request.go | 4 +- .../v8/typedapi/security/gettoken/response.go | 4 +- .../v8/typedapi/security/getuser/get_user.go | 10 +- .../v8/typedapi/security/getuser/response.go | 4 +- .../getuserprivileges/get_user_privileges.go | 6 +- .../security/getuserprivileges/response.go | 4 +- .../getuserprofile/get_user_profile.go | 10 +- .../security/getuserprofile/response.go | 4 +- .../security/grantapikey/grant_api_key.go | 18 +- .../typedapi/security/grantapikey/request.go | 4 +- .../typedapi/security/grantapikey/response.go | 4 +- .../security/hasprivileges/has_privileges.go | 10 +- .../security/hasprivileges/request.go | 4 +- .../security/hasprivileges/response.go | 4 +- .../has_privileges_user_profile.go | 14 +- .../hasprivilegesuserprofile/request.go | 4 +- .../hasprivilegesuserprofile/response.go | 4 +- .../invalidateapikey/invalidate_api_key.go | 26 +- .../security/invalidateapikey/request.go | 4 +- .../security/invalidateapikey/response.go | 4 +- .../invalidatetoken/invalidate_token.go | 28 +- .../security/invalidatetoken/request.go | 4 +- .../security/invalidatetoken/response.go | 4 +- .../oidcauthenticate/oidc_authenticate.go | 2 +- .../security/oidclogout/oidc_logout.go | 2 +- .../oidc_prepare_authentication.go | 2 +- .../security/putprivileges/put_privileges.go | 6 +- .../security/putprivileges/request.go | 4 +- .../security/putprivileges/response.go | 4 +- .../v8/typedapi/security/putrole/put_role.go | 24 +- .../v8/typedapi/security/putrole/request.go | 11 +- .../v8/typedapi/security/putrole/response.go | 4 +- .../putrolemapping/put_role_mapping.go | 26 +- .../security/putrolemapping/request.go | 4 +- .../security/putrolemapping/response.go | 4 +- .../v8/typedapi/security/putuser/put_user.go | 18 +- .../v8/typedapi/security/putuser/request.go | 4 +- .../v8/typedapi/security/putuser/response.go | 4 +- .../security/queryapikeys/query_api_keys.go | 10 +- .../typedapi/security/queryapikeys/request.go | 4 +- .../security/queryapikeys/response.go | 4 +- .../typedapi/security/queryrole/query_role.go | 14 +- .../v8/typedapi/security/queryrole/request.go | 4 +- .../typedapi/security/queryrole/response.go | 4 +- .../typedapi/security/queryuser/query_user.go | 14 +- .../v8/typedapi/security/queryuser/request.go | 4 +- .../typedapi/security/queryuser/response.go | 4 +- .../security/samlauthenticate/request.go | 4 +- .../security/samlauthenticate/response.go | 4 +- .../samlauthenticate/saml_authenticate.go | 10 +- .../security/samlcompletelogout/request.go | 4 +- .../saml_complete_logout.go | 6 +- .../security/samlinvalidate/request.go | 4 +- .../security/samlinvalidate/response.go | 4 +- .../samlinvalidate/saml_invalidate.go | 6 +- .../typedapi/security/samllogout/request.go | 4 +- .../typedapi/security/samllogout/response.go | 4 +- .../security/samllogout/saml_logout.go | 6 +- .../samlprepareauthentication/request.go | 4 +- .../samlprepareauthentication/response.go | 4 +- .../saml_prepare_authentication.go | 14 +- .../samlserviceprovidermetadata/response.go | 4 +- .../saml_service_provider_metadata.go | 6 +- .../security/suggestuserprofiles/request.go | 4 +- .../security/suggestuserprofiles/response.go | 4 +- .../suggest_user_profiles.go | 6 +- .../typedapi/security/updateapikey/request.go | 4 +- .../security/updateapikey/response.go | 4 +- .../security/updateapikey/update_api_key.go | 6 +- .../updatesettings/update_settings.go | 2 +- .../security/updateuserprofiledata/request.go | 4 +- .../updateuserprofiledata/response.go | 4 +- .../update_user_profile_data.go | 14 +- .../shutdown/deletenode/delete_node.go | 2 +- .../typedapi/shutdown/deletenode/response.go | 4 +- .../v8/typedapi/shutdown/getnode/get_node.go | 2 +- .../v8/typedapi/shutdown/getnode/response.go | 4 +- .../v8/typedapi/shutdown/putnode/put_node.go | 2 +- .../v8/typedapi/shutdown/putnode/request.go | 4 +- .../v8/typedapi/shutdown/putnode/response.go | 4 +- .../slm/deletelifecycle/delete_lifecycle.go | 2 +- .../typedapi/slm/deletelifecycle/response.go | 4 +- .../slm/executelifecycle/execute_lifecycle.go | 2 +- .../typedapi/slm/executelifecycle/response.go | 4 +- .../slm/executeretention/execute_retention.go | 2 +- .../typedapi/slm/executeretention/response.go | 4 +- .../slm/getlifecycle/get_lifecycle.go | 2 +- .../v8/typedapi/slm/getlifecycle/response.go | 4 +- .../v8/typedapi/slm/getstats/get_stats.go | 2 +- .../v8/typedapi/slm/getstats/response.go | 4 +- .../v8/typedapi/slm/getstatus/get_status.go | 2 +- .../v8/typedapi/slm/getstatus/response.go | 4 +- .../slm/putlifecycle/put_lifecycle.go | 2 +- .../v8/typedapi/slm/putlifecycle/request.go | 4 +- .../v8/typedapi/slm/putlifecycle/response.go | 4 +- .../v8/typedapi/slm/start/response.go | 4 +- .../v8/typedapi/slm/start/start.go | 2 +- .../v8/typedapi/slm/stop/response.go | 4 +- .../v8/typedapi/slm/stop/stop.go | 2 +- .../cleanuprepository/cleanup_repository.go | 2 +- .../snapshot/cleanuprepository/response.go | 4 +- .../v8/typedapi/snapshot/clone/clone.go | 2 +- .../v8/typedapi/snapshot/clone/request.go | 4 +- .../v8/typedapi/snapshot/clone/response.go | 4 +- .../v8/typedapi/snapshot/create/create.go | 2 +- .../v8/typedapi/snapshot/create/request.go | 4 +- .../v8/typedapi/snapshot/create/response.go | 4 +- .../createrepository/create_repository.go | 2 +- .../snapshot/createrepository/request.go | 4 +- .../snapshot/createrepository/response.go | 4 +- .../v8/typedapi/snapshot/delete/delete.go | 2 +- .../v8/typedapi/snapshot/delete/response.go | 4 +- .../deleterepository/delete_repository.go | 2 +- .../snapshot/deleterepository/response.go | 4 +- .../v8/typedapi/snapshot/get/get.go | 2 +- .../v8/typedapi/snapshot/get/response.go | 4 +- .../snapshot/getrepository/get_repository.go | 2 +- .../snapshot/getrepository/response.go | 4 +- .../repository_verify_integrity.go | 408 +++++ .../repositoryverifyintegrity/response.go | 35 + .../v8/typedapi/snapshot/restore/request.go | 4 +- .../v8/typedapi/snapshot/restore/response.go | 7 +- .../v8/typedapi/snapshot/restore/restore.go | 2 +- .../v8/typedapi/snapshot/status/response.go | 4 +- .../v8/typedapi/snapshot/status/status.go | 2 +- .../snapshot/verifyrepository/response.go | 4 +- .../verifyrepository/verify_repository.go | 2 +- .../typedapi/sql/clearcursor/clear_cursor.go | 2 +- .../v8/typedapi/sql/clearcursor/request.go | 4 +- .../v8/typedapi/sql/clearcursor/response.go | 4 +- .../typedapi/sql/deleteasync/delete_async.go | 2 +- .../v8/typedapi/sql/deleteasync/response.go | 4 +- .../v8/typedapi/sql/getasync/get_async.go | 2 +- .../v8/typedapi/sql/getasync/response.go | 4 +- .../sql/getasyncstatus/get_async_status.go | 2 +- .../typedapi/sql/getasyncstatus/response.go | 4 +- .../v8/typedapi/sql/query/query.go | 7 +- .../v8/typedapi/sql/query/request.go | 4 +- .../v8/typedapi/sql/query/response.go | 4 +- .../v8/typedapi/sql/translate/request.go | 4 +- .../v8/typedapi/sql/translate/response.go | 4 +- .../v8/typedapi/sql/translate/translate.go | 2 +- .../typedapi/ssl/certificates/certificates.go | 62 +- .../v8/typedapi/ssl/certificates/response.go | 4 +- .../synonyms/deletesynonym/delete_synonym.go | 2 +- .../synonyms/deletesynonym/response.go | 4 +- .../deletesynonymrule/delete_synonym_rule.go | 2 +- .../synonyms/deletesynonymrule/response.go | 4 +- .../synonyms/getsynonym/get_synonym.go | 2 +- .../typedapi/synonyms/getsynonym/response.go | 4 +- .../getsynonymrule/get_synonym_rule.go | 2 +- .../synonyms/getsynonymrule/response.go | 4 +- .../getsynonymssets/get_synonyms_sets.go | 2 +- .../synonyms/getsynonymssets/response.go | 4 +- .../synonyms/putsynonym/put_synonym.go | 2 +- .../typedapi/synonyms/putsynonym/request.go | 42 +- .../typedapi/synonyms/putsynonym/response.go | 4 +- .../putsynonymrule/put_synonym_rule.go | 2 +- .../synonyms/putsynonymrule/request.go | 4 +- .../synonyms/putsynonymrule/response.go | 4 +- .../v8/typedapi/tasks/cancel/cancel.go | 2 +- .../v8/typedapi/tasks/cancel/response.go | 4 +- .../v8/typedapi/tasks/get/get.go | 8 +- .../v8/typedapi/tasks/get/response.go | 4 +- .../v8/typedapi/tasks/list/list.go | 2 +- .../v8/typedapi/tasks/list/response.go | 4 +- .../find_field_structure.go | 2 +- .../find_message_structure.go | 2 +- .../findstructure/find_structure.go | 2 +- .../textstructure/findstructure/request.go | 4 +- .../textstructure/findstructure/response.go | 4 +- .../textstructure/testgrokpattern/request.go | 36 +- .../textstructure/testgrokpattern/response.go | 4 +- .../testgrokpattern/test_grok_pattern.go | 3 +- .../deletetransform/delete_transform.go | 4 +- .../transform/deletetransform/response.go | 4 +- .../transform/getnodestats/get_node_stats.go | 2 +- .../transform/gettransform/get_transform.go | 4 +- .../transform/gettransform/response.go | 4 +- .../gettransformstats/get_transform_stats.go | 4 +- .../transform/gettransformstats/response.go | 4 +- .../previewtransform/preview_transform.go | 10 +- .../transform/previewtransform/request.go | 4 +- .../transform/previewtransform/response.go | 4 +- .../transform/puttransform/put_transform.go | 4 +- .../transform/puttransform/request.go | 4 +- .../transform/puttransform/response.go | 4 +- .../resettransform/reset_transform.go | 4 +- .../transform/resettransform/response.go | 4 +- .../schedulenowtransform/response.go | 4 +- .../schedule_now_transform.go | 8 +- .../transform/starttransform/response.go | 4 +- .../starttransform/start_transform.go | 4 +- .../transform/stoptransform/response.go | 4 +- .../transform/stoptransform/stop_transform.go | 4 +- .../transform/updatetransform/request.go | 4 +- .../transform/updatetransform/response.go | 4 +- .../updatetransform/update_transform.go | 4 +- .../transform/upgradetransforms/response.go | 4 +- .../upgradetransforms/upgrade_transforms.go | 2 +- .../v8/typedapi/types/acknowledgement.go | 4 +- .../v8/typedapi/types/acknowledgestate.go | 4 +- .../v8/typedapi/types/actionstatus.go | 4 +- .../v8/typedapi/types/activationstate.go | 4 +- .../v8/typedapi/types/activationstatus.go | 4 +- .../v8/typedapi/types/adaptiveselection.go | 4 +- .../v8/typedapi/types/addaction.go | 4 +- .../types/adjacencymatrixaggregate.go | 4 +- .../types/adjacencymatrixaggregation.go | 4 +- .../typedapi/types/adjacencymatrixbucket.go | 11 +- .../v8/typedapi/types/aggregate.go | 5 +- .../types/aggregatemetricdoubleproperty.go | 4 +- .../v8/typedapi/types/aggregateorder.go | 4 +- .../v8/typedapi/types/aggregateoutput.go | 4 +- .../v8/typedapi/types/aggregation.go | 4 +- .../v8/typedapi/types/aggregationbreakdown.go | 4 +- .../v8/typedapi/types/aggregationprofile.go | 4 +- .../typedapi/types/aggregationprofiledebug.go | 72 +- .../aggregationprofiledelegatedebugfilter.go | 4 +- .../v8/typedapi/types/aggregationrange.go | 34 +- .../v8/typedapi/types/aggregations.go | 22 +- .../v8/typedapi/types/alias.go | 4 +- .../v8/typedapi/types/aliasdefinition.go | 4 +- .../v8/typedapi/types/aliasesrecord.go | 4 +- .../v8/typedapi/types/allfield.go | 4 +- .../v8/typedapi/types/allocateaction.go | 4 +- .../v8/typedapi/types/allocationdecision.go | 4 +- .../v8/typedapi/types/allocationrecord.go | 14 +- .../v8/typedapi/types/allocationstore.go | 4 +- .../v8/typedapi/types/alwayscondition.go | 4 +- .../v8/typedapi/types/analysisconfig.go | 4 +- .../v8/typedapi/types/analysisconfigread.go | 4 +- .../v8/typedapi/types/analysislimits.go | 4 +- .../v8/typedapi/types/analysismemorylimit.go | 4 +- .../v8/typedapi/types/analytics.go | 4 +- .../v8/typedapi/types/analyticscollection.go | 4 +- .../v8/typedapi/types/analyticsstatistics.go | 4 +- .../v8/typedapi/types/analyzedetail.go | 4 +- .../v8/typedapi/types/analyzer.go | 40 +- .../v8/typedapi/types/analyzerdetail.go | 4 +- .../v8/typedapi/types/analyzetoken.go | 4 +- .../v8/typedapi/types/anomaly.go | 4 +- .../v8/typedapi/types/anomalycause.go | 4 +- .../v8/typedapi/types/anomalydetectors.go | 4 +- .../v8/typedapi/types/anomalyexplanation.go | 4 +- .../v8/typedapi/types/apikey.go | 4 +- .../v8/typedapi/types/apikeyaggregate.go | 4 +- .../types/apikeyaggregationcontainer.go | 4 +- .../v8/typedapi/types/apikeyauthorization.go | 4 +- .../types/apikeyfiltersaggregation.go | 4 +- .../v8/typedapi/types/apikeyquerycontainer.go | 4 +- .../v8/typedapi/types/appendprocessor.go | 19 +- .../types/applicationglobaluserprivileges.go | 4 +- .../typedapi/types/applicationprivileges.go | 4 +- .../types/applicationprivilegescheck.go | 4 +- .../typedapi/types/applicationsprivileges.go | 4 +- .../v8/typedapi/types/arabicanalyzer.go | 120 ++ .../v8/typedapi/types/archive.go | 4 +- .../v8/typedapi/types/armeniananalyzer.go | 120 ++ .../typedapi/types/arraycomparecondition.go | 4 +- .../v8/typedapi/types/arraycompareopparams.go | 4 +- .../v8/typedapi/types/arraypercentilesitem.go | 4 +- .../typedapi/types/asciifoldingtokenfilter.go | 4 +- .../v8/typedapi/types/asyncsearch.go | 11 +- .../v8/typedapi/types/attachmentprocessor.go | 4 +- .../v8/typedapi/types/audit.go | 4 +- .../v8/typedapi/types/authenticateduser.go | 4 +- .../v8/typedapi/types/authenticatetoken.go | 4 +- .../typedapi/types/authenticationprovider.go | 4 +- .../types/autodatehistogramaggregate.go | 4 +- .../types/autodatehistogramaggregation.go | 4 +- .../v8/typedapi/types/autofollowedcluster.go | 4 +- .../v8/typedapi/types/autofollowpattern.go | 4 +- .../types/autofollowpatternsummary.go | 4 +- .../v8/typedapi/types/autofollowstats.go | 4 +- .../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 | 6 +- .../v8/typedapi/types/autoscalingresources.go | 4 +- .../v8/typedapi/types/averageaggregation.go | 4 +- .../types/averagebucketaggregation.go | 4 +- .../v8/typedapi/types/avgaggregate.go | 4 +- .../v8/typedapi/types/azurerepository.go | 4 +- .../typedapi/types/azurerepositorysettings.go | 4 +- .../v8/typedapi/types/base.go | 4 +- .../v8/typedapi/types/baseindicator.go | 4 +- .../v8/typedapi/types/basenode.go | 4 +- .../v8/typedapi/types/basqueanalyzer.go | 120 ++ .../v8/typedapi/types/bengalianalyzer.go | 120 ++ .../v8/typedapi/types/binaryproperty.go | 18 +- .../v8/typedapi/types/booleanproperty.go | 18 +- .../v8/typedapi/types/boolquery.go | 4 +- .../v8/typedapi/types/boostingquery.go | 4 +- .../v8/typedapi/types/boxplotaggregate.go | 4 +- .../v8/typedapi/types/boxplotaggregation.go | 4 +- .../v8/typedapi/types/braziliananalyzer.go | 113 ++ .../v8/typedapi/types/breaker.go | 4 +- .../types/bucketcorrelationaggregation.go | 4 +- .../types/bucketcorrelationfunction.go | 4 +- ...cketcorrelationfunctioncountcorrelation.go | 4 +- ...lationfunctioncountcorrelationindicator.go | 4 +- .../v8/typedapi/types/bucketinfluencer.go | 4 +- .../v8/typedapi/types/bucketksaggregation.go | 4 +- .../types/bucketmetricvalueaggregate.go | 4 +- .../typedapi/types/bucketpathaggregation.go | 4 +- .../types/bucketsadjacencymatrixbucket.go | 4 +- .../types/bucketsapikeyquerycontainer.go | 4 +- .../typedapi/types/bucketscompositebucket.go | 4 +- .../typedapi/types/bucketscriptaggregation.go | 4 +- .../types/bucketsdatehistogrambucket.go | 4 +- .../types/bucketsdoubletermsbucket.go | 4 +- .../types/bucketselectoraggregation.go | 4 +- .../v8/typedapi/types/bucketsfiltersbucket.go | 4 +- .../types/bucketsfrequentitemsetsbucket.go | 4 +- .../types/bucketsgeohashgridbucket.go | 4 +- .../typedapi/types/bucketsgeohexgridbucket.go | 4 +- .../types/bucketsgeotilegridbucket.go | 4 +- .../typedapi/types/bucketshistogrambucket.go | 4 +- .../typedapi/types/bucketsipprefixbucket.go | 4 +- .../v8/typedapi/types/bucketsiprangebucket.go | 4 +- .../types/bucketslongraretermsbucket.go | 4 +- .../typedapi/types/bucketslongtermsbucket.go | 4 +- .../typedapi/types/bucketsmultitermsbucket.go | 4 +- .../typedapi/types/bucketsortaggregation.go | 4 +- .../v8/typedapi/types/bucketspath.go | 4 +- .../v8/typedapi/types/bucketsquery.go | 4 +- .../v8/typedapi/types/bucketsrangebucket.go | 4 +- .../bucketssignificantlongtermsbucket.go | 4 +- .../bucketssignificantstringtermsbucket.go | 4 +- .../types/bucketsstringraretermsbucket.go | 4 +- .../types/bucketsstringtermsbucket.go | 4 +- .../typedapi/types/bucketstimeseriesbucket.go | 29 + .../v8/typedapi/types/bucketsummary.go | 4 +- .../bucketsvariablewidthhistogrambucket.go | 4 +- .../v8/typedapi/types/bucketsvoid.go | 4 +- .../v8/typedapi/types/buildinformation.go | 4 +- .../v8/typedapi/types/bulgariananalyzer.go | 120 ++ .../v8/typedapi/types/bulkerror.go | 4 +- .../types/bulkindexbyscrollfailure.go | 4 +- .../v8/typedapi/types/bulkstats.go | 4 +- .../v8/typedapi/types/bytenumberproperty.go | 18 +- .../v8/typedapi/types/bytesize.go | 4 +- .../v8/typedapi/types/bytesprocessor.go | 4 +- .../v8/typedapi/types/cachequeries.go | 4 +- .../v8/typedapi/types/cachestats.go | 42 +- .../v8/typedapi/types/calendar.go | 4 +- .../v8/typedapi/types/calendarevent.go | 4 +- .../v8/typedapi/types/cardinalityaggregate.go | 4 +- .../typedapi/types/cardinalityaggregation.go | 4 +- .../v8/typedapi/types/catalananalyzer.go | 120 ++ .../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 | 4 +- .../types/categorizationanalyzerdefinition.go | 48 +- .../types/categorizetextaggregation.go | 4 +- .../typedapi/types/categorizetextanalyzer.go | 4 +- .../v8/typedapi/types/category.go | 13 +- .../typedapi/types/cattrainedmodelscolumns.go | 4 +- .../v8/typedapi/types/cattransformcolumns.go | 4 +- .../go-elasticsearch/v8/typedapi/types/ccr.go | 4 +- .../v8/typedapi/types/ccrshardstats.go | 4 +- .../typedapi/types/certificateinformation.go | 4 +- .../v8/typedapi/types/cgroup.go | 4 +- .../v8/typedapi/types/cgroupcpu.go | 4 +- .../v8/typedapi/types/cgroupcpustat.go | 4 +- .../v8/typedapi/types/cgroupmemory.go | 4 +- .../v8/typedapi/types/chaininput.go | 4 +- .../v8/typedapi/types/charfilter.go | 4 +- .../v8/typedapi/types/charfilterdefinition.go | 4 +- .../v8/typedapi/types/charfilterdetail.go | 4 +- .../v8/typedapi/types/charfiltertypes.go | 4 +- .../v8/typedapi/types/chargrouptokenizer.go | 4 +- .../v8/typedapi/types/checkpointing.go | 4 +- .../v8/typedapi/types/checkpointstats.go | 4 +- .../v8/typedapi/types/childrenaggregate.go | 11 +- .../v8/typedapi/types/childrenaggregation.go | 4 +- .../v8/typedapi/types/chineseanalyzer.go | 113 ++ .../v8/typedapi/types/chisquareheuristic.go | 4 +- .../v8/typedapi/types/chunkingconfig.go | 4 +- .../v8/typedapi/types/circleprocessor.go | 4 +- .../v8/typedapi/types/cjkanalyzer.go | 113 ++ .../v8/typedapi/types/classictokenizer.go | 106 ++ .../types/classificationinferenceoptions.go | 4 +- .../types/cleanuprepositoryresults.go | 4 +- .../v8/typedapi/types/client.go | 4 +- .../v8/typedapi/types/closeindexresult.go | 4 +- .../v8/typedapi/types/closeshardresult.go | 4 +- .../v8/typedapi/types/clusterappliedstats.go | 4 +- .../types/clustercomponenttemplate.go | 4 +- .../v8/typedapi/types/clusterdetails.go | 4 +- .../v8/typedapi/types/clusterfilesystem.go | 4 +- .../typedapi/types/clusterindexingpressure.go | 4 +- .../v8/typedapi/types/clusterindices.go | 4 +- .../v8/typedapi/types/clusterindicesshards.go | 4 +- .../types/clusterindicesshardsindex.go | 4 +- .../v8/typedapi/types/clusterinfo.go | 4 +- .../v8/typedapi/types/clusterinfotargets.go | 4 +- .../v8/typedapi/types/clusteringest.go | 4 +- .../v8/typedapi/types/clusterjvm.go | 4 +- .../v8/typedapi/types/clusterjvmmemory.go | 4 +- .../v8/typedapi/types/clusterjvmversion.go | 4 +- .../v8/typedapi/types/clusternetworktypes.go | 4 +- .../v8/typedapi/types/clusternode.go | 4 +- .../v8/typedapi/types/clusternodecount.go | 4 +- .../v8/typedapi/types/clusternodes.go | 4 +- .../typedapi/types/clusteroperatingsystem.go | 4 +- .../clusteroperatingsystemarchitecture.go | 4 +- .../types/clusteroperatingsystemname.go | 4 +- .../types/clusteroperatingsystemprettyname.go | 4 +- .../typedapi/types/clusterpressurememory.go | 4 +- .../v8/typedapi/types/clusterprocess.go | 4 +- .../v8/typedapi/types/clusterprocesscpu.go | 4 +- .../clusterprocessopenfiledescriptors.go | 4 +- .../v8/typedapi/types/clusterprocessor.go | 4 +- .../v8/typedapi/types/clusterremoteinfo.go | 4 +- .../typedapi/types/clusterremoteproxyinfo.go | 4 +- .../typedapi/types/clusterremotesniffinfo.go | 4 +- .../types/clusterruntimefieldtypes.go | 4 +- .../v8/typedapi/types/clustershardmetrics.go | 4 +- .../v8/typedapi/types/clusterstatequeue.go | 4 +- .../v8/typedapi/types/clusterstateupdate.go | 4 +- .../v8/typedapi/types/clusterstatistics.go | 4 +- .../v8/typedapi/types/collector.go | 4 +- .../v8/typedapi/types/column.go | 4 +- .../v8/typedapi/types/combinedfieldsquery.go | 4 +- .../v8/typedapi/types/command.go | 4 +- .../types/commandallocateprimaryaction.go | 4 +- .../types/commandallocatereplicaaction.go | 4 +- .../v8/typedapi/types/commandcancelaction.go | 4 +- .../v8/typedapi/types/commandmoveaction.go | 4 +- .../types/commoncatqueryparameters.go | 4 +- .../typedapi/types/commongramstokenfilter.go | 4 +- .../typedapi/types/commonqueryparameters.go | 4 +- .../v8/typedapi/types/commontermsquery.go | 4 +- .../v8/typedapi/types/communityidprocessor.go | 233 +++ .../v8/typedapi/types/compactnodeinfo.go | 4 +- .../v8/typedapi/types/completioncontext.go | 4 +- .../v8/typedapi/types/completionproperty.go | 18 +- .../v8/typedapi/types/completionresult.go | 4 +- .../v8/typedapi/types/completionstats.go | 4 +- .../v8/typedapi/types/completionsuggest.go | 4 +- .../v8/typedapi/types/completionsuggester.go | 4 +- .../typedapi/types/completionsuggestoption.go | 4 +- .../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 | 4 +- .../types/compositeaggregationsource.go | 4 +- .../v8/typedapi/types/compositebucket.go | 11 +- .../compositedatehistogramaggregation.go | 4 +- .../types/compositegeotilegridaggregation.go | 4 +- .../types/compositehistogramaggregation.go | 4 +- .../v8/typedapi/types/compositesubfield.go | 39 + .../types/compositetermsaggregation.go | 4 +- .../v8/typedapi/types/conditiontokenfilter.go | 4 +- .../v8/typedapi/types/configuration.go | 4 +- .../v8/typedapi/types/confusionmatrixitem.go | 4 +- .../types/confusionmatrixprediction.go | 4 +- .../types/confusionmatrixthreshold.go | 4 +- .../v8/typedapi/types/connection.go | 4 +- .../v8/typedapi/types/connector.go | 4 +- .../types/connectorconfigproperties.go | 4 +- .../typedapi/types/connectorconfiguration.go | 4 +- .../types/connectorcustomscheduling.go | 4 +- .../v8/typedapi/types/connectorfeatures.go | 4 +- .../v8/typedapi/types/connectorscheduling.go | 4 +- .../v8/typedapi/types/connectorsyncjob.go | 4 +- .../typedapi/types/constantkeywordproperty.go | 4 +- .../v8/typedapi/types/constantscorequery.go | 4 +- .../v8/typedapi/types/context.go | 4 +- .../v8/typedapi/types/contextmethod.go | 4 +- .../v8/typedapi/types/contextmethodparam.go | 4 +- .../v8/typedapi/types/convertprocessor.go | 4 +- .../v8/typedapi/types/coordinatorstats.go | 4 +- .../v8/typedapi/types/coordsgeobounds.go | 4 +- .../v8/typedapi/types/coreknnquery.go | 4 +- .../v8/typedapi/types/counter.go | 4 +- .../v8/typedapi/types/countrecord.go | 4 +- .../go-elasticsearch/v8/typedapi/types/cpu.go | 4 +- .../v8/typedapi/types/cpuacct.go | 4 +- .../v8/typedapi/types/createdstatus.go | 4 +- .../v8/typedapi/types/createoperation.go | 4 +- .../v8/typedapi/types/csvprocessor.go | 4 +- .../types/cumulativecardinalityaggregate.go | 4 +- .../types/cumulativecardinalityaggregation.go | 4 +- .../types/cumulativesumaggregation.go | 4 +- .../v8/typedapi/types/currentnode.go | 22 +- .../v8/typedapi/types/customanalyzer.go | 34 +- .../types/customcategorizetextanalyzer.go | 4 +- .../v8/typedapi/types/customnormalizer.go | 4 +- .../v8/typedapi/types/customscheduling.go | 4 +- .../customschedulingconfigurationoverrides.go | 4 +- .../v8/typedapi/types/czechanalyzer.go | 120 ++ .../v8/typedapi/types/dailyschedule.go | 4 +- .../v8/typedapi/types/danglingindex.go | 4 +- .../v8/typedapi/types/danishanalyzer.go | 113 ++ .../typedapi/types/databaseconfiguration.go | 80 + .../types/databaseconfigurationmetadata.go | 97 ++ .../v8/typedapi/types/datacounts.go | 4 +- .../v8/typedapi/types/datadescription.go | 4 +- .../v8/typedapi/types/dataemailattachment.go | 4 +- .../typedapi/types/datafeedauthorization.go | 4 +- .../v8/typedapi/types/datafeedconfig.go | 4 +- .../v8/typedapi/types/datafeedrunningstate.go | 4 +- .../v8/typedapi/types/datafeeds.go | 4 +- .../v8/typedapi/types/datafeedsrecord.go | 4 +- .../v8/typedapi/types/datafeedstats.go | 4 +- .../v8/typedapi/types/datafeedtimingstats.go | 4 +- .../v8/typedapi/types/dataframeanalysis.go | 4 +- .../types/dataframeanalysisanalyzedfields.go | 4 +- .../types/dataframeanalysisclassification.go | 4 +- .../types/dataframeanalysiscontainer.go | 4 +- .../dataframeanalysisfeatureprocessor.go | 4 +- ...alysisfeatureprocessorfrequencyencoding.go | 4 +- ...meanalysisfeatureprocessormultiencoding.go | 4 +- ...meanalysisfeatureprocessorngramencoding.go | 4 +- ...eanalysisfeatureprocessoronehotencoding.go | 4 +- ...lysisfeatureprocessortargetmeanencoding.go | 4 +- .../dataframeanalysisoutlierdetection.go | 4 +- .../types/dataframeanalysisregression.go | 4 +- .../v8/typedapi/types/dataframeanalytics.go | 4 +- .../types/dataframeanalyticsauthorization.go | 4 +- .../types/dataframeanalyticsdestination.go | 4 +- .../types/dataframeanalyticsfieldselection.go | 4 +- .../dataframeanalyticsmemoryestimation.go | 4 +- .../types/dataframeanalyticsrecord.go | 4 +- .../types/dataframeanalyticssource.go | 4 +- .../types/dataframeanalyticsstatscontainer.go | 4 +- .../dataframeanalyticsstatsdatacounts.go | 4 +- .../dataframeanalyticsstatshyperparameters.go | 4 +- .../dataframeanalyticsstatsmemoryusage.go | 4 +- ...dataframeanalyticsstatsoutlierdetection.go | 4 +- .../types/dataframeanalyticsstatsprogress.go | 4 +- .../types/dataframeanalyticssummary.go | 4 +- .../types/dataframeclassificationsummary.go | 4 +- .../dataframeclassificationsummaryaccuracy.go | 4 +- ...icationsummarymulticlassconfusionmatrix.go | 4 +- ...dataframeclassificationsummaryprecision.go | 4 +- .../dataframeclassificationsummaryrecall.go | 4 +- .../types/dataframeevaluationclass.go | 4 +- .../dataframeevaluationclassification.go | 4 +- ...ataframeevaluationclassificationmetrics.go | 4 +- ...meevaluationclassificationmetricsaucroc.go | 4 +- .../types/dataframeevaluationcontainer.go | 4 +- .../types/dataframeevaluationmetrics.go | 4 +- .../dataframeevaluationoutlierdetection.go | 4 +- ...aframeevaluationoutlierdetectionmetrics.go | 4 +- .../types/dataframeevaluationregression.go | 4 +- .../dataframeevaluationregressionmetrics.go | 4 +- ...taframeevaluationregressionmetricshuber.go | 4 +- ...ataframeevaluationregressionmetricsmsle.go | 4 +- .../types/dataframeevaluationsummaryaucroc.go | 4 +- ...taframeevaluationsummaryaucroccurveitem.go | 4 +- .../types/dataframeevaluationvalue.go | 4 +- .../types/dataframeoutlierdetectionsummary.go | 4 +- .../typedapi/types/dataframepreviewconfig.go | 4 +- .../types/dataframeregressionsummary.go | 4 +- .../v8/typedapi/types/datapathstats.go | 4 +- .../v8/typedapi/types/datastream.go | 32 +- .../v8/typedapi/types/datastreamindex.go | 12 +- .../v8/typedapi/types/datastreamlifecycle.go | 4 +- .../types/datastreamlifecycledetails.go | 103 ++ .../types/datastreamlifecycledownsampling.go | 4 +- .../types/datastreamlifecycleexplain.go | 4 +- .../types/datastreamlifecycleindicator.go | 102 ++ .../datastreamlifecyclerolloverconditions.go | 4 +- .../types/datastreamlifecyclewithrollover.go | 4 +- .../v8/typedapi/types/datastreamnames.go | 4 +- .../v8/typedapi/types/datastreams.go | 4 +- .../v8/typedapi/types/datastreamsstatsitem.go | 4 +- .../v8/typedapi/types/datastreamtimestamp.go | 4 +- .../types/datastreamtimestampfield.go | 4 +- .../v8/typedapi/types/datastreamvisibility.go | 21 +- .../typedapi/types/datastreamwithlifecycle.go | 4 +- .../typedapi/types/datatierphasestatistics.go | 4 +- .../v8/typedapi/types/datatiers.go | 4 +- .../v8/typedapi/types/datedecayfunction.go | 4 +- .../types/datedistancefeaturequery.go | 4 +- .../typedapi/types/datehistogramaggregate.go | 4 +- .../types/datehistogramaggregation.go | 4 +- .../v8/typedapi/types/datehistogrambucket.go | 11 +- .../typedapi/types/datehistogramgrouping.go | 4 +- .../typedapi/types/dateindexnameprocessor.go | 4 +- .../v8/typedapi/types/datenanosproperty.go | 18 +- .../v8/typedapi/types/dateprocessor.go | 19 +- .../v8/typedapi/types/dateproperty.go | 18 +- .../v8/typedapi/types/daterangeaggregate.go | 4 +- .../v8/typedapi/types/daterangeaggregation.go | 4 +- .../v8/typedapi/types/daterangeexpression.go | 4 +- .../v8/typedapi/types/daterangeproperty.go | 18 +- .../v8/typedapi/types/daterangequery.go | 4 +- .../v8/typedapi/types/datetime.go | 4 +- .../v8/typedapi/types/decayfunction.go | 4 +- .../decayfunctionbasedatemathduration.go | 4 +- .../types/decayfunctionbasedoubledouble.go | 4 +- .../decayfunctionbasegeolocationdistance.go | 4 +- .../v8/typedapi/types/decayplacement.go | 4 +- .../types/decayplacementdatemathduration.go | 4 +- .../types/decayplacementdoubledouble.go | 4 +- .../decayplacementgeolocationdistance.go | 4 +- .../v8/typedapi/types/defaults.go | 4 +- .../v8/typedapi/types/definition.go | 4 +- .../typedapi/types/delayeddatacheckconfig.go | 4 +- .../v8/typedapi/types/deleteaction.go | 4 +- .../types/deleteinferenceendpointresult.go | 4 +- .../v8/typedapi/types/deleteoperation.go | 4 +- .../types/delimitedpayloadtokenfilter.go | 4 +- .../typedapi/types/densevectorindexoptions.go | 4 +- .../v8/typedapi/types/densevectorproperty.go | 4 +- .../v8/typedapi/types/dependency.go | 4 +- .../v8/typedapi/types/deprecation.go | 4 +- .../v8/typedapi/types/deprecationindexing.go | 4 +- .../v8/typedapi/types/derivativeaggregate.go | 4 +- .../typedapi/types/derivativeaggregation.go | 4 +- .../v8/typedapi/types/detectionrule.go | 4 +- .../v8/typedapi/types/detector.go | 4 +- .../v8/typedapi/types/detectorread.go | 4 +- .../v8/typedapi/types/dfsknnprofile.go | 107 ++ .../v8/typedapi/types/dfsprofile.go | 36 + .../typedapi/types/dfsstatisticsbreakdown.go | 191 +++ .../v8/typedapi/types/dfsstatisticsprofile.go | 124 ++ .../v8/typedapi/types/diagnosis.go | 4 +- .../types/diagnosisaffectedresources.go | 4 +- .../dictionarydecompoundertokenfilter.go | 4 +- .../v8/typedapi/types/directgenerator.go | 4 +- .../v8/typedapi/types/discovery.go | 4 +- .../v8/typedapi/types/discoverynode.go | 4 +- .../v8/typedapi/types/diskindicator.go | 4 +- .../v8/typedapi/types/diskindicatordetails.go | 4 +- .../v8/typedapi/types/diskusage.go | 4 +- .../v8/typedapi/types/dismaxquery.go | 4 +- .../v8/typedapi/types/dissectprocessor.go | 4 +- .../v8/typedapi/types/distancefeaturequery.go | 4 +- ...istancefeaturequerybasedatemathduration.go | 4 +- ...ancefeaturequerybasegeolocationdistance.go | 4 +- .../types/diversifiedsampleraggregation.go | 4 +- .../v8/typedapi/types/docstats.go | 4 +- .../v8/typedapi/types/document.go | 4 +- .../v8/typedapi/types/documentrating.go | 4 +- .../v8/typedapi/types/documentsimulation.go | 4 +- .../v8/typedapi/types/dotexpanderprocessor.go | 25 +- .../v8/typedapi/types/doublenumberproperty.go | 18 +- .../v8/typedapi/types/doublerangeproperty.go | 18 +- .../v8/typedapi/types/doubletermsaggregate.go | 4 +- .../v8/typedapi/types/doubletermsbucket.go | 11 +- .../v8/typedapi/types/downsampleaction.go | 4 +- .../v8/typedapi/types/downsampleconfig.go | 4 +- .../v8/typedapi/types/downsamplinground.go | 4 +- .../v8/typedapi/types/dropprocessor.go | 4 +- .../v8/typedapi/types/duration.go | 4 +- .../types/durationvalueunitfloatmillis.go | 4 +- .../typedapi/types/durationvalueunitmillis.go | 4 +- .../typedapi/types/durationvalueunitnanos.go | 4 +- .../types/durationvalueunitseconds.go | 4 +- .../v8/typedapi/types/dutchanalyzer.go | 34 +- .../v8/typedapi/types/dynamicproperty.go | 18 +- .../v8/typedapi/types/dynamictemplate.go | 4 +- .../v8/typedapi/types/edgengramtokenfilter.go | 4 +- .../v8/typedapi/types/edgengramtokenizer.go | 18 +- .../types/elasticsearchversioninfo.go | 4 +- .../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/englishanalyzer.go | 120 ++ .../v8/typedapi/types/enrichpolicy.go | 4 +- .../v8/typedapi/types/enrichprocessor.go | 4 +- .../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 | 8 +- .../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 +- .../connectorfieldtype/connectorfieldtype.go | 4 +- .../enums/connectorstatus/connectorstatus.go | 4 +- .../types/enums/converttype/converttype.go | 22 +- .../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 | 12 +- .../deprecationlevel/deprecationlevel.go | 4 +- .../dfiindependencemeasure.go | 4 +- .../enums/dfraftereffect/dfraftereffect.go | 4 +- .../enums/dfrbasicmodel/dfrbasicmodel.go | 4 +- .../types/enums/displaytype/displaytype.go | 4 +- .../types/enums/distanceunit/distanceunit.go | 4 +- .../enums/dynamicmapping/dynamicmapping.go | 4 +- .../enums/edgengramside/edgengramside.go | 4 +- .../enums/emailpriority/emailpriority.go | 4 +- .../enrichpolicyphase/enrichpolicyphase.go | 4 +- .../types/enums/esqlformat/esqlformat.go | 81 + .../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 | 4 +- .../fieldvaluefactormodifier.go | 4 +- .../enums/filteringpolicy/filteringpolicy.go | 4 +- .../filteringrulerule/filteringrulerule.go | 4 +- .../filteringvalidationstate.go | 4 +- .../types/enums/filtertype/filtertype.go | 4 +- .../fingerprintdigest/fingerprintdigest.go | 69 + .../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 +- .../geogridtargetformat.go | 57 + .../geogridtiletype.go} | 40 +- .../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 | 4 +- .../enums/holtwinterstype/holtwinterstype.go | 4 +- .../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 | 4 +- .../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 | 4 +- .../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 | 4 +- .../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 | 8 +- .../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/sqlformat/sqlformat.go | 77 + .../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 +- .../syncjobtriggermethod.go | 4 +- .../types/enums/syncjobtype/syncjobtype.go | 4 +- .../types/enums/syncstatus/syncstatus.go | 4 +- .../enums/synonymformat/synonymformat.go | 4 +- .../typedapi/types/enums/tasktype/tasktype.go | 4 +- .../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 | 4 +- .../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 | 54 +- .../types/enums/valuetype/valuetype.go | 4 +- .../types/enums/versiontype/versiontype.go | 4 +- .../enums/waitforevents/waitforevents.go | 4 +- .../types/enums/watcherstate/watcherstate.go | 4 +- .../enums/xpackcategory/xpackcategory.go | 61 + .../enums/zerotermsquery/zerotermsquery.go | 4 +- .../v8/typedapi/types/epochtimeunitmillis.go | 4 +- .../v8/typedapi/types/epochtimeunitseconds.go | 4 +- .../go-elasticsearch/v8/typedapi/types/eql.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/errorresponsebase.go | 4 +- .../v8/typedapi/types/esqlcolumns.go | 4 +- .../v8/typedapi/types/estoniananalyzer.go | 113 ++ .../v8/typedapi/types/eventdatastream.go | 4 +- .../v8/typedapi/types/ewmamodelsettings.go | 4 +- .../types/ewmamovingaverageaggregation.go | 4 +- .../types/executeenrichpolicystatus.go | 4 +- .../v8/typedapi/types/executingpolicy.go | 4 +- .../v8/typedapi/types/executionresult.go | 4 +- .../typedapi/types/executionresultaction.go | 4 +- .../types/executionresultcondition.go | 4 +- .../v8/typedapi/types/executionresultinput.go | 4 +- .../v8/typedapi/types/executionstate.go | 4 +- .../v8/typedapi/types/executionthreadpool.go | 4 +- .../v8/typedapi/types/existsquery.go | 4 +- .../v8/typedapi/types/expandwildcards.go | 4 +- .../v8/typedapi/types/explainanalyzetoken.go | 4 +- .../v8/typedapi/types/explanation.go | 4 +- .../v8/typedapi/types/explanationdetail.go | 4 +- .../v8/typedapi/types/explorecontrols.go | 4 +- .../v8/typedapi/types/extendedboundsdouble.go | 4 +- .../types/extendedboundsfielddatemath.go | 4 +- .../v8/typedapi/types/extendedmemorystats.go | 4 +- .../typedapi/types/extendedstatsaggregate.go | 4 +- .../types/extendedstatsaggregation.go | 4 +- .../types/extendedstatsbucketaggregate.go | 4 +- .../types/extendedstatsbucketaggregation.go | 4 +- .../v8/typedapi/types/failprocessor.go | 4 +- .../v8/typedapi/types/failurestore.go | 99 ++ .../v8/typedapi/types/feature.go | 4 +- .../v8/typedapi/types/featureenabled.go | 4 +- .../v8/typedapi/types/features.go | 4 +- .../v8/typedapi/types/featuretoggle.go | 4 +- .../v8/typedapi/types/fetchprofile.go | 4 +- .../typedapi/types/fetchprofilebreakdown.go | 4 +- .../v8/typedapi/types/fetchprofiledebug.go | 4 +- .../v8/typedapi/types/fieldaliasproperty.go | 4 +- .../v8/typedapi/types/fieldandformat.go | 4 +- .../v8/typedapi/types/fieldcapability.go | 4 +- .../v8/typedapi/types/fieldcollapse.go | 4 +- .../types/fielddatafrequencyfilter.go | 4 +- .../v8/typedapi/types/fielddatarecord.go | 4 +- .../v8/typedapi/types/fielddatastats.go | 4 +- .../v8/typedapi/types/fielddatemath.go | 4 +- .../v8/typedapi/types/fieldlookup.go | 4 +- .../v8/typedapi/types/fieldmapping.go | 4 +- .../v8/typedapi/types/fieldmemoryusage.go | 4 +- .../v8/typedapi/types/fieldmetric.go | 4 +- .../v8/typedapi/types/fieldnamesfield.go | 4 +- .../v8/typedapi/types/fieldrule.go | 4 +- .../v8/typedapi/types/fields.go | 4 +- .../v8/typedapi/types/fieldsecurity.go | 4 +- .../v8/typedapi/types/fieldsizeusage.go | 4 +- .../v8/typedapi/types/fieldsort.go | 4 +- .../v8/typedapi/types/fieldstat.go | 4 +- .../v8/typedapi/types/fieldstatistics.go | 4 +- .../v8/typedapi/types/fieldsuggester.go | 4 +- .../v8/typedapi/types/fieldsummary.go | 4 +- .../v8/typedapi/types/fieldsusagebody.go | 4 +- .../v8/typedapi/types/fieldtypes.go | 4 +- .../v8/typedapi/types/fieldtypesmappings.go | 4 +- .../v8/typedapi/types/fieldvalue.go | 4 +- .../types/fieldvaluefactorscorefunction.go | 4 +- .../typedapi/types/filecountsnapshotstats.go | 4 +- .../v8/typedapi/types/filedetails.go | 4 +- .../v8/typedapi/types/filesystem.go | 4 +- .../v8/typedapi/types/filesystemtotal.go | 4 +- .../types/fillmaskinferenceoptions.go | 4 +- .../types/fillmaskinferenceupdateoptions.go | 4 +- .../v8/typedapi/types/filteraggregate.go | 11 +- .../types/filteringadvancedsnippet.go | 17 +- .../v8/typedapi/types/filteringconfig.go | 4 +- .../v8/typedapi/types/filteringrule.go | 4 +- .../v8/typedapi/types/filteringrules.go | 4 +- .../types/filteringrulesvalidation.go | 4 +- .../v8/typedapi/types/filteringvalidation.go | 4 +- .../v8/typedapi/types/filterref.go | 4 +- .../v8/typedapi/types/filtersaggregate.go | 4 +- .../v8/typedapi/types/filtersaggregation.go | 4 +- .../v8/typedapi/types/filtersbucket.go | 11 +- .../v8/typedapi/types/fingerprintanalyzer.go | 4 +- .../v8/typedapi/types/fingerprintprocessor.go | 198 +++ .../typedapi/types/fingerprinttokenfilter.go | 4 +- .../v8/typedapi/types/finnishanalyzer.go | 120 ++ .../v8/typedapi/types/flattened.go | 4 +- .../v8/typedapi/types/flattenedproperty.go | 4 +- .../v8/typedapi/types/floatnumberproperty.go | 18 +- .../v8/typedapi/types/floatrangeproperty.go | 18 +- .../v8/typedapi/types/flushstats.go | 4 +- .../v8/typedapi/types/followerindex.go | 4 +- .../typedapi/types/followerindexparameters.go | 4 +- .../v8/typedapi/types/followindexstats.go | 4 +- .../v8/typedapi/types/followstats.go | 4 +- .../v8/typedapi/types/forcemergeaction.go | 4 +- .../typedapi/types/forcemergeresponsebody.go | 6 +- .../v8/typedapi/types/foreachprocessor.go | 4 +- .../types/formattablemetricaggregation.go | 4 +- .../v8/typedapi/types/foundstatus.go | 4 +- .../v8/typedapi/types/frenchanalyzer.go | 120 ++ .../types/frequencyencodingpreprocessor.go | 4 +- .../types/frequentitemsetsaggregate.go | 4 +- .../types/frequentitemsetsaggregation.go | 4 +- .../typedapi/types/frequentitemsetsbucket.go | 11 +- .../typedapi/types/frequentitemsetsfield.go | 4 +- .../v8/typedapi/types/frozenindices.go | 4 +- .../v8/typedapi/types/functionscore.go | 4 +- .../v8/typedapi/types/functionscorequery.go | 9 +- .../v8/typedapi/types/fuzziness.go | 4 +- .../v8/typedapi/types/fuzzyquery.go | 4 +- .../v8/typedapi/types/galiciananalyzer.go | 120 ++ .../v8/typedapi/types/garbagecollector.go | 4 +- .../typedapi/types/garbagecollectortotal.go | 4 +- .../v8/typedapi/types/gcsrepository.go | 4 +- .../typedapi/types/gcsrepositorysettings.go | 4 +- .../v8/typedapi/types/geoboundingboxquery.go | 4 +- .../v8/typedapi/types/geobounds.go | 4 +- .../v8/typedapi/types/geoboundsaggregate.go | 4 +- .../v8/typedapi/types/geoboundsaggregation.go | 4 +- .../v8/typedapi/types/geocentroidaggregate.go | 4 +- .../typedapi/types/geocentroidaggregation.go | 4 +- .../v8/typedapi/types/geodecayfunction.go | 4 +- .../v8/typedapi/types/geodistanceaggregate.go | 4 +- .../typedapi/types/geodistanceaggregation.go | 4 +- .../typedapi/types/geodistancefeaturequery.go | 4 +- .../v8/typedapi/types/geodistancequery.go | 4 +- .../v8/typedapi/types/geodistancesort.go | 4 +- .../v8/typedapi/types/geogridprocessor.go | 217 +++ .../v8/typedapi/types/geohashgridaggregate.go | 4 +- .../typedapi/types/geohashgridaggregation.go | 4 +- .../v8/typedapi/types/geohashgridbucket.go | 11 +- .../v8/typedapi/types/geohashlocation.go | 4 +- .../v8/typedapi/types/geohashprecision.go | 4 +- .../v8/typedapi/types/geohexgridaggregate.go | 4 +- .../typedapi/types/geohexgridaggregation.go | 4 +- .../v8/typedapi/types/geohexgridbucket.go | 11 +- .../typedapi/types/geoipdownloadstatistics.go | 34 +- .../typedapi/types/geoipnodedatabasename.go | 4 +- .../v8/typedapi/types/geoipnodedatabases.go | 4 +- .../v8/typedapi/types/geoipprocessor.go | 23 +- .../v8/typedapi/types/geoline.go | 4 +- .../v8/typedapi/types/geolineaggregate.go | 4 +- .../v8/typedapi/types/geolineaggregation.go | 4 +- .../v8/typedapi/types/geolinepoint.go | 4 +- .../v8/typedapi/types/geolinesort.go | 4 +- .../v8/typedapi/types/geolocation.go | 4 +- .../v8/typedapi/types/geopointproperty.go | 18 +- .../v8/typedapi/types/geopolygonpoints.go | 4 +- .../v8/typedapi/types/geopolygonquery.go | 4 +- .../v8/typedapi/types/georesults.go | 4 +- .../v8/typedapi/types/geoshapefieldquery.go | 4 +- .../v8/typedapi/types/geoshapeproperty.go | 18 +- .../v8/typedapi/types/geoshapequery.go | 4 +- .../v8/typedapi/types/geotilegridaggregate.go | 4 +- .../typedapi/types/geotilegridaggregation.go | 4 +- .../v8/typedapi/types/geotilegridbucket.go | 11 +- .../v8/typedapi/types/germananalyzer.go | 120 ++ .../v8/typedapi/types/getmigrationfeature.go | 4 +- .../v8/typedapi/types/getresult.go | 10 +- .../v8/typedapi/types/getscriptcontext.go | 4 +- .../v8/typedapi/types/getstats.go | 4 +- .../v8/typedapi/types/getuserprofileerrors.go | 4 +- .../v8/typedapi/types/globalaggregate.go | 11 +- .../v8/typedapi/types/globalaggregation.go | 4 +- .../v8/typedapi/types/globalprivilege.go | 4 +- .../googlenormalizeddistanceheuristic.go | 4 +- .../v8/typedapi/types/grantapikey.go | 4 +- .../typedapi/types/greaterthanvalidation.go | 4 +- .../v8/typedapi/types/greekanalyzer.go | 113 ++ .../v8/typedapi/types/grokprocessor.go | 19 +- .../v8/typedapi/types/groupings.go | 4 +- .../v8/typedapi/types/gsubprocessor.go | 4 +- .../typedapi/types/halffloatnumberproperty.go | 18 +- .../v8/typedapi/types/haschildquery.go | 4 +- .../v8/typedapi/types/hasparentquery.go | 4 +- .../types/hasprivilegesuserprofileerrors.go | 4 +- .../v8/typedapi/types/hdrmethod.go | 4 +- .../types/hdrpercentileranksaggregate.go | 4 +- .../typedapi/types/hdrpercentilesaggregate.go | 4 +- .../v8/typedapi/types/healthrecord.go | 18 +- .../v8/typedapi/types/healthresponsebody.go | 22 +- .../v8/typedapi/types/healthstatistics.go | 4 +- .../v8/typedapi/types/helprecord.go | 4 +- .../v8/typedapi/types/highlight.go | 4 +- .../v8/typedapi/types/highlightfield.go | 109 +- .../v8/typedapi/types/hindianalyzer.go | 120 ++ .../v8/typedapi/types/hint.go | 4 +- .../v8/typedapi/types/histogramaggregate.go | 4 +- .../v8/typedapi/types/histogramaggregation.go | 4 +- .../v8/typedapi/types/histogrambucket.go | 11 +- .../v8/typedapi/types/histogramgrouping.go | 4 +- .../v8/typedapi/types/histogramproperty.go | 4 +- .../go-elasticsearch/v8/typedapi/types/hit.go | 12 +- .../v8/typedapi/types/hitsevent.go | 4 +- .../v8/typedapi/types/hitsmetadata.go | 4 +- .../v8/typedapi/types/hitssequence.go | 4 +- .../typedapi/types/holtlinearmodelsettings.go | 4 +- .../types/holtmovingaverageaggregation.go | 4 +- .../types/holtwintersmodelsettings.go | 4 +- .../holtwintersmovingaverageaggregation.go | 4 +- .../go-elasticsearch/v8/typedapi/types/hop.go | 4 +- .../v8/typedapi/types/hourandminute.go | 4 +- .../v8/typedapi/types/hourlyschedule.go | 4 +- .../v8/typedapi/types/htmlstripcharfilter.go | 4 +- .../v8/typedapi/types/htmlstripprocessor.go | 162 ++ .../v8/typedapi/types/http.go | 18 +- .../v8/typedapi/types/httpemailattachment.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/httproute.go | 36 + .../v8/typedapi/types/httprouterequests.go | 101 ++ .../v8/typedapi/types/httprouteresponses.go | 107 ++ .../v8/typedapi/types/hungariananalyzer.go | 120 ++ .../v8/typedapi/types/hunspelltokenfilter.go | 4 +- .../v8/typedapi/types/hyperparameter.go | 4 +- .../v8/typedapi/types/hyperparameters.go | 4 +- .../hyphenationdecompoundertokenfilter.go | 4 +- .../v8/typedapi/types/icuanalyzer.go | 4 +- .../v8/typedapi/types/icucollationproperty.go | 18 +- .../typedapi/types/icucollationtokenfilter.go | 4 +- .../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 | 4 +- .../go-elasticsearch/v8/typedapi/types/ilm.go | 4 +- .../v8/typedapi/types/ilmactions.go | 4 +- .../v8/typedapi/types/ilmindicator.go | 4 +- .../v8/typedapi/types/ilmindicatordetails.go | 4 +- .../v8/typedapi/types/ilmpolicy.go | 4 +- .../v8/typedapi/types/ilmpolicystatistics.go | 4 +- .../v8/typedapi/types/impact.go | 4 +- .../v8/typedapi/types/includedinvalidation.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/indexfield.go | 4 +- .../v8/typedapi/types/indexhealthstats.go | 39 +- .../types/indexingpressurememorysummary.go | 4 +- .../typedapi/types/indexingslowlogsettings.go | 4 +- .../types/indexingslowlogtresholds.go | 4 +- .../v8/typedapi/types/indexingstats.go | 4 +- .../v8/typedapi/types/indexmappingrecord.go | 4 +- .../v8/typedapi/types/indexoperation.go | 4 +- .../v8/typedapi/types/indexprivilegescheck.go | 4 +- .../v8/typedapi/types/indexresult.go | 4 +- .../v8/typedapi/types/indexresultsummary.go | 4 +- .../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 | 4 +- .../typedapi/types/indexsettingsanalysis.go | 264 +++- .../typedapi/types/indexsettingslifecycle.go | 4 +- .../types/indexsettingslifecyclestep.go | 4 +- .../typedapi/types/indexsettingstimeseries.go | 4 +- .../v8/typedapi/types/indexstate.go | 6 +- .../v8/typedapi/types/indexstats.go | 4 +- .../v8/typedapi/types/indextemplate.go | 4 +- .../indextemplatedatastreamconfiguration.go | 4 +- .../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 | 5 +- .../v8/typedapi/types/indices.go | 4 +- .../v8/typedapi/types/indicesaction.go | 4 +- .../v8/typedapi/types/indicesblockstatus.go | 4 +- .../typedapi/types/indicesindexingpressure.go | 4 +- .../types/indicesindexingpressurememory.go | 4 +- .../v8/typedapi/types/indicesmodifyaction.go | 4 +- .../v8/typedapi/types/indicesoptions.go | 4 +- .../v8/typedapi/types/indicesprivileges.go | 4 +- .../typedapi/types/indicesprivilegesquery.go | 4 +- .../v8/typedapi/types/indicesrecord.go | 18 +- .../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 | 4 +- .../v8/typedapi/types/indicesversions.go | 4 +- .../v8/typedapi/types/indonesiananalyzer.go | 120 ++ .../v8/typedapi/types/inferenceaggregate.go | 4 +- .../v8/typedapi/types/inferenceaggregation.go | 4 +- .../types/inferenceclassimportance.go | 4 +- .../v8/typedapi/types/inferenceconfig.go | 4 +- .../types/inferenceconfigclassification.go | 4 +- .../types/inferenceconfigcontainer.go | 4 +- .../types/inferenceconfigcreatecontainer.go | 4 +- .../types/inferenceconfigregression.go | 4 +- .../types/inferenceconfigupdatecontainer.go | 4 +- .../v8/typedapi/types/inferenceendpoint.go | 6 +- .../typedapi/types/inferenceendpointinfo.go | 6 +- .../types/inferencefeatureimportance.go | 4 +- .../v8/typedapi/types/inferenceprocessor.go | 4 +- .../typedapi/types/inferenceresponseresult.go | 8 +- .../v8/typedapi/types/inferenceresult.go | 4 +- .../typedapi/types/inferencetopclassentry.go | 4 +- .../v8/typedapi/types/influence.go | 4 +- .../v8/typedapi/types/influencer.go | 4 +- .../v8/typedapi/types/infofeaturestate.go | 4 +- .../v8/typedapi/types/ingestpipeline.go | 23 +- .../v8/typedapi/types/ingestpipelineparams.go | 4 +- .../v8/typedapi/types/ingeststats.go | 175 +++ .../v8/typedapi/types/ingesttotal.go | 31 +- .../v8/typedapi/types/inlineget.go | 4 +- .../types/inlinegetdictuserdefined.go | 4 +- .../v8/typedapi/types/innerhits.go | 4 +- .../v8/typedapi/types/innerhitsresult.go | 4 +- .../v8/typedapi/types/inprogress.go | 4 +- .../v8/typedapi/types/input.go | 4 +- .../typedapi/types/integernumberproperty.go | 18 +- .../v8/typedapi/types/integerrangeproperty.go | 18 +- .../v8/typedapi/types/intervals.go | 4 +- .../v8/typedapi/types/intervalsallof.go | 4 +- .../v8/typedapi/types/intervalsanyof.go | 4 +- .../v8/typedapi/types/intervalsfilter.go | 4 +- .../v8/typedapi/types/intervalsfuzzy.go | 4 +- .../v8/typedapi/types/intervalsmatch.go | 4 +- .../v8/typedapi/types/intervalsprefix.go | 4 +- .../v8/typedapi/types/intervalsquery.go | 4 +- .../v8/typedapi/types/intervalswildcard.go | 4 +- .../v8/typedapi/types/invertedindex.go | 4 +- .../v8/typedapi/types/invocation.go | 4 +- .../v8/typedapi/types/invocations.go | 4 +- .../v8/typedapi/types/iostatdevice.go | 4 +- .../v8/typedapi/types/iostats.go | 4 +- .../v8/typedapi/types/ipfilter.go | 4 +- .../v8/typedapi/types/ipprefixaggregate.go | 4 +- .../v8/typedapi/types/ipprefixaggregation.go | 4 +- .../v8/typedapi/types/ipprefixbucket.go | 11 +- .../v8/typedapi/types/ipproperty.go | 18 +- .../v8/typedapi/types/iprangeaggregate.go | 4 +- .../v8/typedapi/types/iprangeaggregation.go | 4 +- .../typedapi/types/iprangeaggregationrange.go | 4 +- .../v8/typedapi/types/iprangebucket.go | 11 +- .../v8/typedapi/types/iprangeproperty.go | 18 +- .../v8/typedapi/types/irishanalyzer.go | 120 ++ .../v8/typedapi/types/italiananalyzer.go | 120 ++ .../go-elasticsearch/v8/typedapi/types/job.go | 4 +- .../v8/typedapi/types/jobblocked.go | 4 +- .../v8/typedapi/types/jobconfig.go | 4 +- .../typedapi/types/jobforecaststatistics.go | 4 +- .../v8/typedapi/types/jobsrecord.go | 4 +- .../v8/typedapi/types/jobstatistics.go | 4 +- .../v8/typedapi/types/jobstats.go | 4 +- .../v8/typedapi/types/jobtimingstats.go | 4 +- .../v8/typedapi/types/jobusage.go | 4 +- .../v8/typedapi/types/joinprocessor.go | 4 +- .../v8/typedapi/types/joinproperty.go | 4 +- .../v8/typedapi/types/jsonprocessor.go | 4 +- .../go-elasticsearch/v8/typedapi/types/jvm.go | 4 +- .../v8/typedapi/types/jvmclasses.go | 4 +- .../v8/typedapi/types/jvmmemorystats.go | 4 +- .../v8/typedapi/types/jvmstats.go | 4 +- .../v8/typedapi/types/jvmthreads.go | 4 +- .../v8/typedapi/types/keeptypestokenfilter.go | 4 +- .../v8/typedapi/types/keepwordstokenfilter.go | 4 +- .../v8/typedapi/types/keyedpercentiles.go | 4 +- .../v8/typedapi/types/keyedprocessor.go | 4 +- .../v8/typedapi/types/keyvalueprocessor.go | 4 +- .../v8/typedapi/types/keywordanalyzer.go | 4 +- .../types/keywordmarkertokenfilter.go | 19 +- .../v8/typedapi/types/keywordproperty.go | 4 +- .../v8/typedapi/types/keywordtokenizer.go | 10 +- .../v8/typedapi/types/kibanatoken.go | 4 +- .../v8/typedapi/types/knncollectorresult.go | 107 ++ .../v8/typedapi/types/knnquery.go | 22 +- .../types/knnqueryprofilebreakdown.go | 383 +++++ .../typedapi/types/knnqueryprofileresult.go | 124 ++ .../v8/typedapi/types/knnretriever.go | 23 +- .../v8/typedapi/types/knnsearch.go | 4 +- .../v8/typedapi/types/kstemtokenfilter.go | 4 +- .../v8/typedapi/types/kuromojianalyzer.go | 4 +- .../types/kuromojiiterationmarkcharfilter.go | 4 +- .../types/kuromojipartofspeechtokenfilter.go | 4 +- .../types/kuromojireadingformtokenfilter.go | 4 +- .../types/kuromojistemmertokenfilter.go | 4 +- .../v8/typedapi/types/kuromojitokenizer.go | 4 +- .../v8/typedapi/types/languageanalyzer.go | 4 +- .../v8/typedapi/types/languagecontext.go | 4 +- .../typedapi/types/laplacesmoothingmodel.go | 4 +- .../v8/typedapi/types/latest.go | 4 +- .../v8/typedapi/types/latlongeolocation.go | 4 +- .../v8/typedapi/types/latviananalyzer.go | 120 ++ .../v8/typedapi/types/learningtorank.go | 4 +- .../v8/typedapi/types/lengthtokenfilter.go | 4 +- .../v8/typedapi/types/lessthanvalidation.go | 4 +- .../v8/typedapi/types/lettertokenizer.go | 4 +- .../v8/typedapi/types/license.go | 4 +- .../v8/typedapi/types/licenseinformation.go | 4 +- .../v8/typedapi/types/lifecycle.go | 4 +- .../v8/typedapi/types/lifecycleexplain.go | 4 +- .../typedapi/types/lifecycleexplainmanaged.go | 4 +- .../types/lifecycleexplainphaseexecution.go | 4 +- .../types/lifecycleexplainunmanaged.go | 4 +- .../v8/typedapi/types/like.go | 4 +- .../v8/typedapi/types/likedocument.go | 4 +- .../v8/typedapi/types/limits.go | 4 +- .../types/limittokencounttokenfilter.go | 4 +- .../linearinterpolationsmoothingmodel.go | 4 +- .../types/linearmovingaverageaggregation.go | 4 +- .../v8/typedapi/types/listtypevalidation.go | 4 +- .../v8/typedapi/types/lithuaniananalyzer.go | 120 ++ .../v8/typedapi/types/loggingaction.go | 4 +- .../v8/typedapi/types/loggingresult.go | 4 +- .../v8/typedapi/types/logstashpipeline.go | 4 +- .../v8/typedapi/types/longnumberproperty.go | 18 +- .../v8/typedapi/types/longrangeproperty.go | 18 +- .../typedapi/types/longraretermsaggregate.go | 4 +- .../v8/typedapi/types/longraretermsbucket.go | 11 +- .../v8/typedapi/types/longtermsaggregate.go | 4 +- .../v8/typedapi/types/longtermsbucket.go | 11 +- .../v8/typedapi/types/lowercasenormalizer.go | 4 +- .../v8/typedapi/types/lowercaseprocessor.go | 4 +- .../v8/typedapi/types/lowercasetokenfilter.go | 4 +- .../v8/typedapi/types/lowercasetokenizer.go | 4 +- .../v8/typedapi/types/machinelearning.go | 4 +- .../v8/typedapi/types/manageuserprivileges.go | 4 +- .../v8/typedapi/types/mapboxvectortiles.go | 4 +- .../v8/typedapi/types/mappingcharfilter.go | 4 +- .../v8/typedapi/types/mappinglimitsettings.go | 4 +- .../types/mappinglimitsettingsdepth.go | 4 +- .../mappinglimitsettingsdimensionfields.go | 4 +- .../mappinglimitsettingsfieldnamelength.go | 4 +- .../types/mappinglimitsettingsnestedfields.go | 4 +- .../mappinglimitsettingsnestedobjects.go | 4 +- .../types/mappinglimitsettingstotalfields.go | 4 +- .../v8/typedapi/types/mappingstats.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/matchboolprefixquery.go | 4 +- .../v8/typedapi/types/matchedfield.go | 4 +- .../v8/typedapi/types/matchedtext.go | 4 +- .../v8/typedapi/types/matchnonequery.go | 4 +- .../typedapi/types/matchonlytextproperty.go | 4 +- .../typedapi/types/matchphraseprefixquery.go | 4 +- .../v8/typedapi/types/matchphrasequery.go | 4 +- .../v8/typedapi/types/matchquery.go | 4 +- .../v8/typedapi/types/matrixaggregation.go | 4 +- .../v8/typedapi/types/matrixstatsaggregate.go | 4 +- .../typedapi/types/matrixstatsaggregation.go | 4 +- .../v8/typedapi/types/matrixstatsfields.go | 4 +- .../v8/typedapi/types/maxaggregate.go | 4 +- .../v8/typedapi/types/maxaggregation.go | 4 +- .../v8/typedapi/types/maxbucketaggregation.go | 4 +- .../v8/typedapi/types/maxmind.go | 68 + .../types/medianabsolutedeviationaggregate.go | 4 +- .../medianabsolutedeviationaggregation.go | 4 +- .../v8/typedapi/types/memmlstats.go | 4 +- .../v8/typedapi/types/memory.go | 4 +- .../v8/typedapi/types/memorystats.go | 4 +- .../v8/typedapi/types/memstats.go | 4 +- .../v8/typedapi/types/merge.go | 4 +- .../v8/typedapi/types/mergescheduler.go | 4 +- .../v8/typedapi/types/mergesstats.go | 4 +- .../v8/typedapi/types/metadata.go | 4 +- .../v8/typedapi/types/metrics.go | 4 +- .../v8/typedapi/types/mgetoperation.go | 4 +- .../v8/typedapi/types/mgetresponseitem.go | 4 +- .../v8/typedapi/types/migrateaction.go | 4 +- .../types/migrationfeatureindexinfo.go | 4 +- .../v8/typedapi/types/minaggregate.go | 4 +- .../v8/typedapi/types/minaggregation.go | 4 +- .../v8/typedapi/types/minbucketaggregation.go | 4 +- .../types/minimallicenseinformation.go | 4 +- .../v8/typedapi/types/minimumshouldmatch.go | 4 +- .../v8/typedapi/types/missing.go | 4 +- .../v8/typedapi/types/missingaggregate.go | 11 +- .../v8/typedapi/types/missingaggregation.go | 4 +- .../v8/typedapi/types/mlcounter.go | 4 +- .../v8/typedapi/types/mldatafeed.go | 4 +- .../types/mldataframeanalyticsjobs.go | 4 +- .../types/mldataframeanalyticsjobsanalysis.go | 4 +- .../types/mldataframeanalyticsjobscount.go | 4 +- .../types/mldataframeanalyticsjobsmemory.go | 4 +- .../v8/typedapi/types/mlfilter.go | 4 +- .../v8/typedapi/types/mlinference.go | 4 +- .../typedapi/types/mlinferencedeployments.go | 4 +- .../types/mlinferencedeploymentstimems.go | 4 +- .../types/mlinferenceingestprocessor.go | 4 +- .../types/mlinferenceingestprocessorcount.go | 4 +- .../types/mlinferencetrainedmodels.go | 4 +- .../types/mlinferencetrainedmodelscount.go | 4 +- .../v8/typedapi/types/mljobforecasts.go | 4 +- .../v8/typedapi/types/modelplotconfig.go | 4 +- .../v8/typedapi/types/modelsizestats.go | 4 +- .../v8/typedapi/types/modelsnapshot.go | 4 +- .../v8/typedapi/types/modelsnapshotupgrade.go | 4 +- .../v8/typedapi/types/monitoring.go | 4 +- .../v8/typedapi/types/morelikethisquery.go | 4 +- .../v8/typedapi/types/mountedsnapshot.go | 4 +- .../types/movingaverageaggregation.go | 4 +- .../types/movingfunctionaggregation.go | 4 +- .../types/movingpercentilesaggregation.go | 4 +- .../v8/typedapi/types/msearchrequestitem.go | 4 +- .../v8/typedapi/types/msearchresponseitem.go | 4 +- .../typedapi/types/mtermvectorsoperation.go | 4 +- ...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 +- ...ultibucketaggregatebasetimeseriesbucket.go | 90 ++ ...gregatebasevariablewidthhistogrambucket.go | 4 +- .../types/multibucketaggregatebasevoid.go | 4 +- .../v8/typedapi/types/multigeterror.go | 4 +- .../v8/typedapi/types/multimatchquery.go | 4 +- .../typedapi/types/multiplexertokenfilter.go | 4 +- .../v8/typedapi/types/multisearchbody.go | 4 +- .../v8/typedapi/types/multisearchheader.go | 4 +- .../v8/typedapi/types/multisearchitem.go | 11 +- .../v8/typedapi/types/multisearchresult.go | 4 +- .../v8/typedapi/types/multitermlookup.go | 4 +- .../v8/typedapi/types/multitermsaggregate.go | 4 +- .../typedapi/types/multitermsaggregation.go | 4 +- .../v8/typedapi/types/multitermsbucket.go | 11 +- .../v8/typedapi/types/murmur3hashproperty.go | 18 +- .../types/mutualinformationheuristic.go | 4 +- .../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 | 11 +- .../v8/typedapi/types/nestedaggregation.go | 4 +- .../v8/typedapi/types/nestedidentity.go | 4 +- .../v8/typedapi/types/nestedproperty.go | 18 +- .../v8/typedapi/types/nestedquery.go | 4 +- .../v8/typedapi/types/nestedsortvalue.go | 4 +- .../types/networkdirectionprocessor.go | 186 +++ .../v8/typedapi/types/nevercondition.go | 4 +- .../v8/typedapi/types/ngramtokenfilter.go | 4 +- .../v8/typedapi/types/ngramtokenizer.go | 18 +- .../types/nlpberttokenizationconfig.go | 4 +- .../types/nlprobertatokenizationconfig.go | 4 +- .../types/nlptokenizationupdateoptions.go | 4 +- .../v8/typedapi/types/node.go | 4 +- .../types/nodeallocationexplanation.go | 11 +- .../v8/typedapi/types/nodeattributes.go | 30 +- .../v8/typedapi/types/nodeattributesrecord.go | 4 +- .../v8/typedapi/types/nodebufferpool.go | 4 +- .../v8/typedapi/types/nodediskusage.go | 4 +- .../v8/typedapi/types/nodeids.go | 4 +- .../v8/typedapi/types/nodeinfo.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/nodeinfohttp.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/nodeinfomemory.go | 4 +- .../v8/typedapi/types/nodeinfonetwork.go | 4 +- .../types/nodeinfonetworkinterface.go | 4 +- .../v8/typedapi/types/nodeinfooscpu.go | 4 +- .../v8/typedapi/types/nodeinfopath.go | 4 +- .../v8/typedapi/types/nodeinforepositories.go | 4 +- .../typedapi/types/nodeinforepositoriesurl.go | 4 +- .../v8/typedapi/types/nodeinfoscript.go | 4 +- .../v8/typedapi/types/nodeinfosearch.go | 4 +- .../v8/typedapi/types/nodeinfosearchremote.go | 4 +- .../v8/typedapi/types/nodeinfosettings.go | 4 +- .../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 | 21 +- .../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 | 5 +- .../v8/typedapi/types/nodeinfoxpacklicense.go | 4 +- .../types/nodeinfoxpacklicensetype.go | 4 +- .../v8/typedapi/types/nodeinfoxpackml.go | 78 + .../typedapi/types/nodeinfoxpacksecurity.go | 6 +- .../types/nodeinfoxpacksecurityauthc.go | 8 +- .../types/nodeinfoxpacksecurityauthcrealms.go | 4 +- .../nodeinfoxpacksecurityauthcrealmsstatus.go | 4 +- .../types/nodeinfoxpacksecurityauthctoken.go | 4 +- .../types/nodeinfoxpacksecurityssl.go | 4 +- .../v8/typedapi/types/nodejvminfo.go | 4 +- .../typedapi/types/nodeoperatingsysteminfo.go | 4 +- .../v8/typedapi/types/nodepackagingtype.go | 4 +- .../v8/typedapi/types/nodeprocessinfo.go | 4 +- .../v8/typedapi/types/nodereloaderror.go | 4 +- .../v8/typedapi/types/nodereloadresult.go | 4 +- .../v8/typedapi/types/nodescontext.go | 4 +- .../v8/typedapi/types/nodescredentials.go | 4 +- .../types/nodescredentialsfiletoken.go | 4 +- .../v8/typedapi/types/nodeshard.go | 4 +- .../v8/typedapi/types/nodeshutdownstatus.go | 4 +- .../typedapi/types/nodesindexingpressure.go | 4 +- .../types/nodesindexingpressurememory.go | 4 +- .../v8/typedapi/types/nodesingest.go | 8 +- .../v8/typedapi/types/nodesrecord.go | 4 +- .../v8/typedapi/types/nodestatistics.go | 4 +- .../v8/typedapi/types/nodetasks.go | 4 +- .../v8/typedapi/types/nodethreadpoolinfo.go | 4 +- .../v8/typedapi/types/nodeusage.go | 4 +- .../v8/typedapi/types/norianalyzer.go | 4 +- .../types/noripartofspeechtokenfilter.go | 4 +- .../v8/typedapi/types/noritokenizer.go | 4 +- .../v8/typedapi/types/normalizeaggregation.go | 4 +- .../v8/typedapi/types/normalizer.go | 4 +- .../v8/typedapi/types/norwegiananalyzer.go | 120 ++ .../v8/typedapi/types/numberrangequery.go | 4 +- .../v8/typedapi/types/numericdecayfunction.go | 4 +- .../v8/typedapi/types/numericfielddata.go | 4 +- .../v8/typedapi/types/objectproperty.go | 18 +- .../types/onehotencodingpreprocessor.go | 4 +- .../v8/typedapi/types/operatingsystem.go | 4 +- .../types/operatingsystemmemoryinfo.go | 4 +- .../v8/typedapi/types/operationcontainer.go | 4 +- .../types/outlierdetectionparameters.go | 4 +- .../v8/typedapi/types/overallbucket.go | 4 +- .../v8/typedapi/types/overallbucketjob.go | 4 +- .../v8/typedapi/types/overlapping.go | 4 +- .../v8/typedapi/types/page.go | 4 +- .../v8/typedapi/types/pagerdutyaction.go | 4 +- .../v8/typedapi/types/pagerdutycontext.go | 4 +- .../v8/typedapi/types/pagerdutyevent.go | 4 +- .../v8/typedapi/types/pagerdutyeventproxy.go | 4 +- .../v8/typedapi/types/pagerdutyresult.go | 4 +- .../v8/typedapi/types/painlesscontextsetup.go | 6 +- .../v8/typedapi/types/parentaggregate.go | 11 +- .../v8/typedapi/types/parentaggregation.go | 4 +- .../v8/typedapi/types/parentidquery.go | 4 +- .../v8/typedapi/types/parenttaskinfo.go | 4 +- .../types/passthroughinferenceoptions.go | 4 +- .../passthroughinferenceupdateoptions.go | 4 +- .../typedapi/types/pathhierarchytokenizer.go | 4 +- .../v8/typedapi/types/patternanalyzer.go | 4 +- .../types/patterncapturetokenfilter.go | 4 +- .../types/patternreplacecharfilter.go | 4 +- .../types/patternreplacetokenfilter.go | 4 +- .../v8/typedapi/types/patterntokenizer.go | 4 +- .../v8/typedapi/types/pendingtask.go | 4 +- .../v8/typedapi/types/pendingtasksrecord.go | 4 +- .../v8/typedapi/types/percentage.go | 4 +- .../types/percentagescoreheuristic.go | 4 +- .../types/percentileranksaggregation.go | 4 +- .../v8/typedapi/types/percentiles.go | 4 +- .../typedapi/types/percentilesaggregation.go | 4 +- .../types/percentilesbucketaggregate.go | 4 +- .../types/percentilesbucketaggregation.go | 4 +- .../v8/typedapi/types/percolatequery.go | 4 +- .../v8/typedapi/types/percolatorproperty.go | 4 +- .../types/perpartitioncategorization.go | 4 +- .../v8/typedapi/types/persiananalyzer.go | 113 ++ .../v8/typedapi/types/persistenttaskstatus.go | 4 +- .../v8/typedapi/types/phase.go | 4 +- .../v8/typedapi/types/phases.go | 4 +- .../v8/typedapi/types/phonetictokenfilter.go | 10 +- .../v8/typedapi/types/phrasesuggest.go | 4 +- .../v8/typedapi/types/phrasesuggestcollate.go | 4 +- .../types/phrasesuggestcollatequery.go | 4 +- .../v8/typedapi/types/phrasesuggester.go | 4 +- .../typedapi/types/phrasesuggesthighlight.go | 4 +- .../v8/typedapi/types/phrasesuggestoption.go | 4 +- .../v8/typedapi/types/pinneddoc.go | 4 +- .../v8/typedapi/types/pinnedquery.go | 4 +- .../v8/typedapi/types/pipelineconfig.go | 4 +- .../v8/typedapi/types/pipelinemetadata.go | 4 +- .../v8/typedapi/types/pipelineprocessor.go | 4 +- .../v8/typedapi/types/pipelinesettings.go | 4 +- .../v8/typedapi/types/pipelinesimulation.go | 39 +- ...pipeseparatedflagssimplequerystringflag.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/pointintimereference.go | 4 +- .../v8/typedapi/types/pointproperty.go | 18 +- .../v8/typedapi/types/pool.go | 4 +- .../typedapi/types/porterstemtokenfilter.go | 4 +- .../v8/typedapi/types/portugueseanalyzer.go | 120 ++ .../v8/typedapi/types/postmigrationfeature.go | 4 +- .../v8/typedapi/types/predicatetokenfilter.go | 4 +- .../v8/typedapi/types/predictedvalue.go | 13 +- .../v8/typedapi/types/prefixquery.go | 4 +- .../v8/typedapi/types/preprocessor.go | 4 +- .../v8/typedapi/types/pressurememory.go | 4 +- .../v8/typedapi/types/privileges.go | 4 +- .../v8/typedapi/types/privilegesactions.go | 4 +- .../v8/typedapi/types/privilegescheck.go | 4 +- .../v8/typedapi/types/process.go | 4 +- .../v8/typedapi/types/processor.go | 4 +- .../v8/typedapi/types/processorcontainer.go | 45 +- .../v8/typedapi/types/profile.go | 4 +- .../v8/typedapi/types/property.go | 4 +- .../typedapi/types/publishedclusterstates.go | 4 +- .../v8/typedapi/types/queries.go | 4 +- .../v8/typedapi/types/query.go | 4 +- .../v8/typedapi/types/querybreakdown.go | 36 +- .../v8/typedapi/types/querycachestats.go | 4 +- .../v8/typedapi/types/queryprofile.go | 4 +- .../v8/typedapi/types/queryrole.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 | 4 +- ...otthread.go => queryrulesetmatchedrule.go} | 46 +- .../v8/typedapi/types/querystringquery.go | 4 +- .../v8/typedapi/types/queryuser.go | 4 +- .../v8/typedapi/types/queryvectorbuilder.go | 4 +- .../v8/typedapi/types/querywatch.go | 4 +- .../questionansweringinferenceoptions.go | 4 +- ...questionansweringinferenceupdateoptions.go | 4 +- .../types/randomsampleraggregation.go | 122 ++ .../v8/typedapi/types/randomscorefunction.go | 4 +- .../v8/typedapi/types/rangeaggregate.go | 4 +- .../v8/typedapi/types/rangeaggregation.go | 4 +- .../v8/typedapi/types/rangebucket.go | 11 +- .../v8/typedapi/types/rangequery.go | 4 +- .../typedapi/types/rangequerybasedatemath.go | 4 +- .../v8/typedapi/types/rangequerybasedouble.go | 4 +- .../v8/typedapi/types/rangequerybasestring.go | 4 +- .../v8/typedapi/types/rankcontainer.go | 4 +- .../v8/typedapi/types/rankeddocument.go | 4 +- .../v8/typedapi/types/rankevalhit.go | 4 +- .../v8/typedapi/types/rankevalhititem.go | 4 +- .../v8/typedapi/types/rankevalmetric.go | 4 +- .../v8/typedapi/types/rankevalmetricdetail.go | 4 +- .../rankevalmetricdiscountedcumulativegain.go | 4 +- .../rankevalmetricexpectedreciprocalrank.go | 4 +- .../types/rankevalmetricmeanreciprocalrank.go | 4 +- .../typedapi/types/rankevalmetricprecision.go | 4 +- .../types/rankevalmetricratingtreshold.go | 4 +- .../v8/typedapi/types/rankevalmetricrecall.go | 4 +- .../v8/typedapi/types/rankevalquery.go | 9 +- .../v8/typedapi/types/rankevalrequestitem.go | 4 +- .../v8/typedapi/types/rankfeaturefunction.go | 4 +- .../types/rankfeaturefunctionlinear.go | 4 +- .../types/rankfeaturefunctionlogarithm.go | 4 +- .../types/rankfeaturefunctionsaturation.go | 4 +- .../types/rankfeaturefunctionsigmoid.go | 4 +- .../v8/typedapi/types/rankfeatureproperty.go | 4 +- .../v8/typedapi/types/rankfeaturequery.go | 4 +- .../v8/typedapi/types/rankfeaturesproperty.go | 4 +- .../v8/typedapi/types/raretermsaggregation.go | 4 +- .../v8/typedapi/types/rateaggregate.go | 4 +- .../v8/typedapi/types/rateaggregation.go | 4 +- .../v8/typedapi/types/readexception.go | 4 +- .../typedapi/types/readonlyurlrepository.go | 4 +- .../types/readonlyurlrepositorysettings.go | 4 +- .../v8/typedapi/types/realmcache.go | 4 +- .../v8/typedapi/types/realminfo.go | 4 +- .../v8/typedapi/types/recording.go | 4 +- .../v8/typedapi/types/recoverybytes.go | 4 +- .../v8/typedapi/types/recoveryfiles.go | 4 +- .../v8/typedapi/types/recoveryindexstatus.go | 4 +- .../v8/typedapi/types/recoveryorigin.go | 4 +- .../v8/typedapi/types/recoveryrecord.go | 4 +- .../v8/typedapi/types/recoverystartstatus.go | 4 +- .../v8/typedapi/types/recoverystats.go | 4 +- .../v8/typedapi/types/recoverystatus.go | 4 +- .../v8/typedapi/types/redact.go | 79 + .../v8/typedapi/types/redactprocessor.go | 234 +++ .../v8/typedapi/types/refreshstats.go | 4 +- .../v8/typedapi/types/regexoptions.go | 4 +- .../v8/typedapi/types/regexpquery.go | 4 +- .../v8/typedapi/types/regexvalidation.go | 4 +- .../types/registereddomainprocessor.go | 162 ++ .../types/regressioninferenceoptions.go | 4 +- .../v8/typedapi/types/reindexdestination.go | 4 +- .../v8/typedapi/types/reindexnode.go | 4 +- .../v8/typedapi/types/reindexsource.go | 4 +- .../v8/typedapi/types/reindexstatus.go | 4 +- .../v8/typedapi/types/reindextask.go | 4 +- .../v8/typedapi/types/reloaddetails.go | 4 +- .../v8/typedapi/types/reloadresult.go | 4 +- .../typedapi/types/relocationfailureinfo.go | 4 +- .../typedapi/types/remoteindicesprivileges.go | 187 +++ .../v8/typedapi/types/remotesource.go | 4 +- .../v8/typedapi/types/removeaction.go | 4 +- .../types/removeduplicatestokenfilter.go | 4 +- .../v8/typedapi/types/removeindexaction.go | 4 +- .../v8/typedapi/types/removeprocessor.go | 4 +- .../v8/typedapi/types/renameprocessor.go | 4 +- .../types/reportingemailattachment.go | 4 +- .../v8/typedapi/types/repositoriesrecord.go | 4 +- .../v8/typedapi/types/repository.go | 4 +- .../types/repositoryintegrityindicator.go | 4 +- .../repositoryintegrityindicatordetails.go | 4 +- .../v8/typedapi/types/repositorylocation.go | 4 +- .../types/repositorymeteringinformation.go | 4 +- .../v8/typedapi/types/requestcachestats.go | 4 +- .../v8/typedapi/types/requestcounts.go | 4 +- .../v8/typedapi/types/requestitem.go | 4 +- .../v8/typedapi/types/reroutedecision.go | 4 +- .../v8/typedapi/types/rerouteexplanation.go | 4 +- .../v8/typedapi/types/rerouteparameters.go | 4 +- .../v8/typedapi/types/rerouteprocessor.go | 4 +- .../v8/typedapi/types/rescore.go | 4 +- .../v8/typedapi/types/rescorequery.go | 4 +- .../v8/typedapi/types/reservedsize.go | 4 +- .../v8/typedapi/types/resolveclusterinfo.go | 4 +- .../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 | 11 +- .../v8/typedapi/types/responseitem.go | 4 +- .../v8/typedapi/types/retention.go | 4 +- .../v8/typedapi/types/retentionlease.go | 4 +- .../v8/typedapi/types/retentionpolicy.go | 4 +- .../types/retentionpolicycontainer.go | 4 +- .../v8/typedapi/types/retries.go | 4 +- .../v8/typedapi/types/retrievercontainer.go | 7 +- .../typedapi/types/reversenestedaggregate.go | 11 +- .../types/reversenestedaggregation.go | 4 +- .../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/rolequerycontainer.go | 4 +- .../v8/typedapi/types/roletemplate.go | 4 +- .../typedapi/types/roletemplateinlinequery.go | 4 +- .../v8/typedapi/types/roletemplatequery.go | 4 +- .../v8/typedapi/types/roletemplatescript.go | 4 +- .../v8/typedapi/types/rolloveraction.go | 4 +- .../v8/typedapi/types/rolloverconditions.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/rollupjobstats.go | 4 +- .../v8/typedapi/types/rollupjobstatus.go | 4 +- .../v8/typedapi/types/rollupjobsummary.go | 4 +- .../typedapi/types/rollupjobsummaryfield.go | 4 +- .../v8/typedapi/types/romaniananalyzer.go | 120 ++ .../v8/typedapi/types/routingfield.go | 4 +- .../v8/typedapi/types/rrfrank.go | 4 +- .../v8/typedapi/types/rrfretriever.go | 23 +- .../v8/typedapi/types/rulecondition.go | 4 +- .../v8/typedapi/types/rulequery.go | 4 +- .../types/runningstatesearchinterval.go | 4 +- .../v8/typedapi/types/runtimefield.go | 18 +- .../typedapi/types/runtimefieldfetchfields.go | 4 +- .../v8/typedapi/types/runtimefields.go | 4 +- .../v8/typedapi/types/runtimefieldstype.go | 4 +- .../v8/typedapi/types/russiananalyzer.go | 120 ++ .../v8/typedapi/types/s3repository.go | 4 +- .../v8/typedapi/types/s3repositorysettings.go | 4 +- .../v8/typedapi/types/samplediversity.go | 4 +- .../v8/typedapi/types/sampleraggregate.go | 11 +- .../v8/typedapi/types/sampleraggregation.go | 4 +- .../v8/typedapi/types/scalarvalue.go | 4 +- .../types/scaledfloatnumberproperty.go | 18 +- .../v8/typedapi/types/schedulecontainer.go | 4 +- .../v8/typedapi/types/scheduletimeofday.go | 4 +- .../v8/typedapi/types/scheduletriggerevent.go | 4 +- .../typedapi/types/schedulingconfiguration.go | 4 +- .../v8/typedapi/types/scoresort.go | 4 +- .../v8/typedapi/types/script.go | 4 +- .../v8/typedapi/types/scriptcache.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/scripting.go | 4 +- .../v8/typedapi/types/scriptprocessor.go | 4 +- .../v8/typedapi/types/scriptquery.go | 4 +- .../v8/typedapi/types/scriptscorefunction.go | 4 +- .../v8/typedapi/types/scriptscorequery.go | 4 +- .../v8/typedapi/types/scriptsort.go | 4 +- .../v8/typedapi/types/scripttransform.go | 4 +- .../v8/typedapi/types/scrollids.go | 4 +- .../types/searchablesnapshotaction.go | 4 +- .../v8/typedapi/types/searchablesnapshots.go | 4 +- .../v8/typedapi/types/searchapplication.go | 4 +- .../types/searchapplicationlistitem.go | 4 +- .../types/searchapplicationtemplate.go | 4 +- .../typedapi/types/searchasyoutypeproperty.go | 4 +- .../v8/typedapi/types/searchidle.go | 4 +- .../v8/typedapi/types/searchinput.go | 4 +- .../typedapi/types/searchinputrequestbody.go | 4 +- .../types/searchinputrequestdefinition.go | 4 +- .../v8/typedapi/types/searchprofile.go | 4 +- .../types/searchshardsnodeattributes.go | 157 ++ .../v8/typedapi/types/searchstats.go | 4 +- .../types/searchtemplaterequestbody.go | 4 +- .../v8/typedapi/types/searchtransform.go | 4 +- .../v8/typedapi/types/security.go | 4 +- .../v8/typedapi/types/securityrolemapping.go | 4 +- .../v8/typedapi/types/securityroles.go | 4 +- .../v8/typedapi/types/securityrolesdls.go | 4 +- .../types/securityrolesdlsbitsetcache.go | 4 +- .../v8/typedapi/types/securityrolesfile.go | 4 +- .../v8/typedapi/types/securityrolesnative.go | 4 +- .../v8/typedapi/types/segment.go | 4 +- .../v8/typedapi/types/segmentsrecord.go | 4 +- .../v8/typedapi/types/segmentsstats.go | 4 +- .../v8/typedapi/types/selectoption.go | 4 +- .../v8/typedapi/types/semanticquery.go | 4 +- .../v8/typedapi/types/semantictextproperty.go | 4 +- .../v8/typedapi/types/serbiananalyzer.go | 120 ++ .../types/serialdifferencingaggregation.go | 4 +- .../typedapi/types/serializedclusterstate.go | 4 +- .../types/serializedclusterstatedetail.go | 4 +- .../v8/typedapi/types/servicetoken.go | 4 +- .../v8/typedapi/types/setpriorityaction.go | 4 +- .../v8/typedapi/types/setprocessor.go | 4 +- .../types/setsecurityuserprocessor.go | 4 +- .../v8/typedapi/types/settings.go | 4 +- .../v8/typedapi/types/settingsanalyze.go | 4 +- .../v8/typedapi/types/settingshighlight.go | 4 +- .../v8/typedapi/types/settingsquerystring.go | 4 +- .../v8/typedapi/types/settingssearch.go | 4 +- .../v8/typedapi/types/settingssimilarity.go | 4 +- .../typedapi/types/settingssimilaritybm25.go | 4 +- .../types/settingssimilarityboolean.go | 4 +- .../typedapi/types/settingssimilaritydfi.go | 4 +- .../typedapi/types/settingssimilaritydfr.go | 4 +- .../v8/typedapi/types/settingssimilarityib.go | 4 +- .../typedapi/types/settingssimilaritylmd.go | 4 +- .../typedapi/types/settingssimilaritylmj.go | 4 +- .../types/settingssimilarityscripted.go | 4 +- .../v8/typedapi/types/shapefieldquery.go | 4 +- .../v8/typedapi/types/shapeproperty.go | 18 +- .../v8/typedapi/types/shapequery.go | 4 +- .../v8/typedapi/types/shardcommit.go | 4 +- .../v8/typedapi/types/shardfailure.go | 4 +- .../v8/typedapi/types/shardfilesizeinfo.go | 4 +- .../v8/typedapi/types/shardhealthstats.go | 33 +- .../v8/typedapi/types/shardlease.go | 4 +- .../v8/typedapi/types/shardmigrationstatus.go | 4 +- .../v8/typedapi/types/shardpath.go | 4 +- .../v8/typedapi/types/shardprofile.go | 51 +- .../v8/typedapi/types/shardquerycache.go | 4 +- .../v8/typedapi/types/shardrecovery.go | 4 +- .../v8/typedapi/types/shardretentionleases.go | 4 +- .../v8/typedapi/types/shardrouting.go | 4 +- .../types/shardsavailabilityindicator.go | 4 +- .../shardsavailabilityindicatordetails.go | 4 +- .../typedapi/types/shardscapacityindicator.go | 4 +- .../types/shardscapacityindicatordetails.go | 4 +- .../shardscapacityindicatortierdetail.go | 4 +- .../v8/typedapi/types/shardsegmentrouting.go | 4 +- .../v8/typedapi/types/shardsequencenumber.go | 4 +- .../v8/typedapi/types/shardsrecord.go | 18 +- .../v8/typedapi/types/shardssegment.go | 4 +- .../v8/typedapi/types/shardsstatssummary.go | 4 +- .../typedapi/types/shardsstatssummaryitem.go | 4 +- .../v8/typedapi/types/shardstatistics.go | 4 +- .../v8/typedapi/types/shardstore.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/shared.go | 4 +- .../types/sharedfilesystemrepository.go | 4 +- .../sharedfilesystemrepositorysettings.go | 4 +- .../v8/typedapi/types/shingletokenfilter.go | 4 +- .../v8/typedapi/types/shortnumberproperty.go | 18 +- .../v8/typedapi/types/shrinkaction.go | 4 +- .../types/significantlongtermsaggregate.go | 4 +- .../types/significantlongtermsbucket.go | 11 +- .../types/significantstringtermsaggregate.go | 4 +- .../types/significantstringtermsbucket.go | 11 +- ...aggregatebasesignificantlongtermsbucket.go | 4 +- ...gregatebasesignificantstringtermsbucket.go | 4 +- .../significanttermsaggregatebasevoid.go | 4 +- .../types/significanttermsaggregation.go | 4 +- .../types/significanttextaggregation.go | 4 +- .../v8/typedapi/types/simpleanalyzer.go | 4 +- .../types/simplemovingaverageaggregation.go | 4 +- .../types/simplepatternsplittokenizer.go | 102 ++ .../typedapi/types/simplepatterntokenizer.go | 102 ++ .../typedapi/types/simplequerystringflags.go | 4 +- .../typedapi/types/simplequerystringquery.go | 4 +- .../v8/typedapi/types/simplevalueaggregate.go | 4 +- .../v8/typedapi/types/simulatedactions.go | 4 +- .../typedapi/types/simulatedocumentresult.go | 37 + .../v8/typedapi/types/simulateingest.go | 10 +- .../v8/typedapi/types/sizefield.go | 4 +- .../v8/typedapi/types/sizehttphistogram.go | 111 ++ .../v8/typedapi/types/slackaction.go | 4 +- .../v8/typedapi/types/slackattachment.go | 4 +- .../v8/typedapi/types/slackattachmentfield.go | 4 +- .../typedapi/types/slackdynamicattachment.go | 4 +- .../v8/typedapi/types/slackmessage.go | 4 +- .../v8/typedapi/types/slackresult.go | 4 +- .../v8/typedapi/types/slicedscroll.go | 4 +- .../v8/typedapi/types/slices.go | 4 +- .../go-elasticsearch/v8/typedapi/types/slm.go | 4 +- .../v8/typedapi/types/slmindicator.go | 4 +- .../v8/typedapi/types/slmindicatordetails.go | 4 +- .../types/slmindicatorunhealthypolicies.go | 4 +- .../v8/typedapi/types/slmpolicy.go | 4 +- .../v8/typedapi/types/slowlogsettings.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/snapshotlifecycle.go | 4 +- .../v8/typedapi/types/snapshotresponseitem.go | 4 +- .../v8/typedapi/types/snapshotrestore.go | 4 +- .../v8/typedapi/types/snapshotshardfailure.go | 20 +- .../v8/typedapi/types/snapshotshardsstats.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/soranianalyzer.go | 120 ++ .../v8/typedapi/types/sort.go | 4 +- .../v8/typedapi/types/sortcombinations.go | 4 +- .../v8/typedapi/types/sortoptions.go | 4 +- .../v8/typedapi/types/sortprocessor.go | 4 +- .../v8/typedapi/types/sourceconfig.go | 4 +- .../v8/typedapi/types/sourceconfigparam.go | 4 +- .../v8/typedapi/types/sourcefield.go | 4 +- .../v8/typedapi/types/sourcefilter.go | 4 +- .../v8/typedapi/types/sourceonlyrepository.go | 4 +- .../types/sourceonlyrepositorysettings.go | 4 +- .../v8/typedapi/types/spancontainingquery.go | 4 +- .../typedapi/types/spanfieldmaskingquery.go | 4 +- .../v8/typedapi/types/spanfirstquery.go | 4 +- .../v8/typedapi/types/spangapquery.go | 4 +- .../v8/typedapi/types/spanishanalyzer.go | 120 ++ .../v8/typedapi/types/spanmultitermquery.go | 4 +- .../v8/typedapi/types/spannearquery.go | 4 +- .../v8/typedapi/types/spannotquery.go | 4 +- .../v8/typedapi/types/spanorquery.go | 4 +- .../v8/typedapi/types/spanquery.go | 4 +- .../v8/typedapi/types/spantermquery.go | 4 +- .../v8/typedapi/types/spanwithinquery.go | 4 +- .../typedapi/types/sparseembeddingresult.go | 4 +- .../v8/typedapi/types/sparsevector.go | 4 +- .../v8/typedapi/types/sparsevectorproperty.go | 4 +- .../v8/typedapi/types/sparsevectorquery.go | 4 +- .../v8/typedapi/types/splitprocessor.go | 4 +- .../go-elasticsearch/v8/typedapi/types/sql.go | 4 +- .../go-elasticsearch/v8/typedapi/types/ssl.go | 4 +- .../types/stagnatingbackingindices.go | 102 ++ .../v8/typedapi/types/standardanalyzer.go | 4 +- .../typedapi/types/standarddeviationbounds.go | 4 +- .../types/standarddeviationboundsasstring.go | 4 +- .../v8/typedapi/types/standardretriever.go | 4 +- .../v8/typedapi/types/standardtokenizer.go | 4 +- .../v8/typedapi/types/statistics.go | 4 +- .../v8/typedapi/types/stats.go | 4 +- .../v8/typedapi/types/statsaggregate.go | 4 +- .../v8/typedapi/types/statsaggregation.go | 4 +- .../v8/typedapi/types/statsbucketaggregate.go | 4 +- .../typedapi/types/statsbucketaggregation.go | 4 +- .../v8/typedapi/types/status.go | 4 +- .../types/stemmeroverridetokenfilter.go | 4 +- .../v8/typedapi/types/stemmertokenfilter.go | 4 +- .../v8/typedapi/types/stepkey.go | 14 +- .../v8/typedapi/types/stopanalyzer.go | 4 +- .../v8/typedapi/types/stoptokenfilter.go | 4 +- .../v8/typedapi/types/stopwords.go | 4 +- .../v8/typedapi/types/storage.go | 4 +- .../v8/typedapi/types/storedscript.go | 4 +- .../v8/typedapi/types/storestats.go | 4 +- .../v8/typedapi/types/stringifiedboolean.go | 4 +- .../v8/typedapi/types/stringifieddouble.go | 29 + .../types/stringifiedepochtimeunitmillis.go | 4 +- .../types/stringifiedepochtimeunitseconds.go | 4 +- .../v8/typedapi/types/stringifiedinteger.go | 4 +- .../types/stringifiedversionnumber.go | 4 +- .../types/stringraretermsaggregate.go | 4 +- .../typedapi/types/stringraretermsbucket.go | 11 +- .../v8/typedapi/types/stringstatsaggregate.go | 4 +- .../typedapi/types/stringstatsaggregation.go | 4 +- .../v8/typedapi/types/stringtermsaggregate.go | 4 +- .../v8/typedapi/types/stringtermsbucket.go | 11 +- .../types/stupidbackoffsmoothingmodel.go | 4 +- .../v8/typedapi/types/suggest.go | 4 +- .../v8/typedapi/types/suggestcontext.go | 4 +- .../v8/typedapi/types/suggester.go | 4 +- .../v8/typedapi/types/suggestfuzziness.go | 4 +- .../v8/typedapi/types/sumaggregate.go | 4 +- .../v8/typedapi/types/sumaggregation.go | 4 +- .../v8/typedapi/types/sumbucketaggregation.go | 4 +- .../v8/typedapi/types/summary.go | 4 +- .../v8/typedapi/types/swedishanalyzer.go | 120 ++ .../v8/typedapi/types/synccontainer.go | 4 +- .../types/syncjobconnectorreference.go | 4 +- .../v8/typedapi/types/syncrulesfeature.go | 4 +- .../typedapi/types/synonymgraphtokenfilter.go | 4 +- .../v8/typedapi/types/synonymrule.go | 4 +- .../v8/typedapi/types/synonymruleread.go | 4 +- .../v8/typedapi/types/synonymssetitem.go | 4 +- .../v8/typedapi/types/synonymsupdateresult.go | 4 +- .../v8/typedapi/types/synonymtokenfilter.go | 4 +- .../v8/typedapi/types/tablevaluescontainer.go | 38 + .../typedapi/types/tablevaluesintegervalue.go | 26 + .../typedapi/types/tablevalueskeywordvalue.go | 26 + .../typedapi/types/tablevalueslongdouble.go | 26 + .../v8/typedapi/types/tablevalueslongvalue.go | 26 + .../types/targetmeanencodingpreprocessor.go | 4 +- .../v8/typedapi/types/taskfailure.go | 4 +- .../v8/typedapi/types/taskid.go | 4 +- .../v8/typedapi/types/taskinfo.go | 4 +- .../v8/typedapi/types/taskinfos.go | 4 +- .../v8/typedapi/types/tasksrecord.go | 4 +- .../v8/typedapi/types/tdigest.go | 4 +- .../types/tdigestpercentileranksaggregate.go | 4 +- .../types/tdigestpercentilesaggregate.go | 4 +- .../v8/typedapi/types/template.go | 4 +- .../v8/typedapi/types/templateconfig.go | 4 +- .../v8/typedapi/types/templatemapping.go | 4 +- .../v8/typedapi/types/templatesrecord.go | 4 +- .../v8/typedapi/types/term.go | 4 +- .../v8/typedapi/types/terminateprocessor.go | 130 ++ .../v8/typedapi/types/termquery.go | 4 +- .../v8/typedapi/types/termrangequery.go | 4 +- .../termsaggregatebasedoubletermsbucket.go | 4 +- .../termsaggregatebaselongtermsbucket.go | 4 +- .../termsaggregatebasemultitermsbucket.go | 4 +- .../termsaggregatebasestringtermsbucket.go | 4 +- .../typedapi/types/termsaggregatebasevoid.go | 4 +- .../v8/typedapi/types/termsaggregation.go | 4 +- .../v8/typedapi/types/termsexclude.go | 4 +- .../v8/typedapi/types/termsgrouping.go | 4 +- .../v8/typedapi/types/termsinclude.go | 4 +- .../v8/typedapi/types/termslookup.go | 4 +- .../v8/typedapi/types/termspartition.go | 4 +- .../v8/typedapi/types/termsquery.go | 4 +- .../v8/typedapi/types/termsqueryfield.go | 4 +- .../v8/typedapi/types/termssetquery.go | 12 +- .../v8/typedapi/types/termsuggest.go | 4 +- .../v8/typedapi/types/termsuggester.go | 4 +- .../v8/typedapi/types/termsuggestoption.go | 4 +- .../v8/typedapi/types/termvector.go | 4 +- .../v8/typedapi/types/termvectorsfilter.go | 4 +- .../v8/typedapi/types/termvectorsresult.go | 4 +- .../v8/typedapi/types/termvectorstoken.go | 4 +- .../v8/typedapi/types/testpopulation.go | 4 +- .../textclassificationinferenceoptions.go | 4 +- ...extclassificationinferenceupdateoptions.go | 4 +- .../v8/typedapi/types/textembedding.go | 4 +- .../typedapi/types/textembeddingbyteresult.go | 4 +- .../types/textembeddinginferenceoptions.go | 4 +- .../textembeddinginferenceupdateoptions.go | 4 +- .../v8/typedapi/types/textembeddingresult.go | 4 +- .../types/textexpansioninferenceoptions.go | 4 +- .../textexpansioninferenceupdateoptions.go | 4 +- .../v8/typedapi/types/textexpansionquery.go | 4 +- .../v8/typedapi/types/textindexprefixes.go | 4 +- .../v8/typedapi/types/textproperty.go | 4 +- .../typedapi/types/textsimilarityreranker.go | 170 ++ .../v8/typedapi/types/texttoanalyze.go | 4 +- .../v8/typedapi/types/thaianalyzer.go | 113 ++ .../v8/typedapi/types/thaitokenizer.go | 87 ++ .../v8/typedapi/types/threadcount.go | 4 +- .../v8/typedapi/types/threadpoolrecord.go | 4 +- .../v8/typedapi/types/throttlestate.go | 4 +- .../v8/typedapi/types/timehttphistogram.go | 111 ++ .../v8/typedapi/types/timeofmonth.go | 4 +- .../v8/typedapi/types/timeofweek.go | 4 +- .../v8/typedapi/types/timeofyear.go | 4 +- .../v8/typedapi/types/timeseriesaggregate.go | 90 ++ .../typedapi/types/timeseriesaggregation.go | 98 ++ .../v8/typedapi/types/timeseriesbucket.go | 642 ++++++++ .../v8/typedapi/types/timesync.go | 4 +- .../v8/typedapi/types/timingstats.go | 4 +- .../v8/typedapi/types/tokencountproperty.go | 18 +- .../v8/typedapi/types/tokendetail.go | 4 +- .../v8/typedapi/types/tokenfilter.go | 4 +- .../typedapi/types/tokenfilterdefinition.go | 4 +- .../types/tokenizationconfigcontainer.go | 4 +- .../v8/typedapi/types/tokenizer.go | 4 +- .../v8/typedapi/types/tokenizerdefinition.go | 14 +- .../v8/typedapi/types/tokenpruningconfig.go | 4 +- .../v8/typedapi/types/topclassentry.go | 4 +- .../v8/typedapi/types/tophit.go | 4 +- .../v8/typedapi/types/tophitsaggregate.go | 4 +- .../v8/typedapi/types/tophitsaggregation.go | 4 +- .../types/topleftbottomrightgeobounds.go | 4 +- .../v8/typedapi/types/topmetrics.go | 4 +- .../v8/typedapi/types/topmetricsaggregate.go | 4 +- .../typedapi/types/topmetricsaggregation.go | 4 +- .../v8/typedapi/types/topmetricsvalue.go | 4 +- .../types/toprightbottomleftgeobounds.go | 4 +- .../typedapi/types/totalfeatureimportance.go | 4 +- .../types/totalfeatureimportanceclass.go | 4 +- .../types/totalfeatureimportancestatistics.go | 4 +- .../v8/typedapi/types/totaluserprofiles.go | 4 +- .../v8/typedapi/types/trackhits.go | 4 +- .../v8/typedapi/types/trainedmodel.go | 4 +- .../typedapi/types/trainedmodelassignment.go | 4 +- .../trainedmodelassignmentroutingtable.go | 4 +- .../trainedmodelassignmenttaskparameters.go | 4 +- .../v8/typedapi/types/trainedmodelconfig.go | 4 +- .../typedapi/types/trainedmodelconfiginput.go | 4 +- .../types/trainedmodelconfigmetadata.go | 4 +- .../trainedmodeldeploymentallocationstatus.go | 4 +- .../types/trainedmodeldeploymentnodesstats.go | 4 +- .../types/trainedmodeldeploymentstats.go | 8 +- .../v8/typedapi/types/trainedmodelentities.go | 4 +- .../trainedmodelinferenceclassimportance.go | 4 +- .../trainedmodelinferencefeatureimportance.go | 4 +- .../types/trainedmodelinferencestats.go | 4 +- .../v8/typedapi/types/trainedmodellocation.go | 4 +- .../types/trainedmodellocationindex.go | 4 +- .../types/trainedmodelprefixstrings.go | 4 +- .../typedapi/types/trainedmodelsizestats.go | 4 +- .../v8/typedapi/types/trainedmodelsrecord.go | 4 +- .../v8/typedapi/types/trainedmodelstats.go | 4 +- .../v8/typedapi/types/trainedmodeltree.go | 4 +- .../v8/typedapi/types/trainedmodeltreenode.go | 4 +- .../typedapi/types/transformauthorization.go | 4 +- .../v8/typedapi/types/transformcontainer.go | 4 +- .../v8/typedapi/types/transformdestination.go | 4 +- .../typedapi/types/transformindexerstats.go | 4 +- .../v8/typedapi/types/transformprogress.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/translogstatus.go | 4 +- .../v8/typedapi/types/transport.go | 4 +- .../v8/typedapi/types/transporthistogram.go | 4 +- .../v8/typedapi/types/triggercontainer.go | 4 +- .../typedapi/types/triggereventcontainer.go | 4 +- .../v8/typedapi/types/triggereventresult.go | 4 +- .../v8/typedapi/types/trimprocessor.go | 4 +- .../v8/typedapi/types/trimtokenfilter.go | 4 +- .../v8/typedapi/types/truncatetokenfilter.go | 4 +- .../v8/typedapi/types/ttestaggregate.go | 4 +- .../v8/typedapi/types/ttestaggregation.go | 4 +- .../v8/typedapi/types/turkishanalyzer.go | 120 ++ .../v8/typedapi/types/typefieldmappings.go | 4 +- .../v8/typedapi/types/typemapping.go | 4 +- .../v8/typedapi/types/typequery.go | 4 +- .../v8/typedapi/types/uaxemailurltokenizer.go | 4 +- .../typedapi/types/unassignedinformation.go | 4 +- .../v8/typedapi/types/uniquetokenfilter.go | 4 +- .../types/unmappedraretermsaggregate.go | 4 +- .../types/unmappedsampleraggregate.go | 11 +- .../unmappedsignificanttermsaggregate.go | 4 +- .../typedapi/types/unmappedtermsaggregate.go | 4 +- .../v8/typedapi/types/unrateddocument.go | 4 +- .../types/unsignedlongnumberproperty.go | 18 +- .../v8/typedapi/types/untypeddecayfunction.go | 4 +- .../types/untypeddistancefeaturequery.go | 4 +- .../v8/typedapi/types/untypedrangequery.go | 4 +- .../v8/typedapi/types/updateaction.go | 4 +- .../types/updatebyqueryrethrottlenode.go | 4 +- .../v8/typedapi/types/updateoperation.go | 4 +- .../v8/typedapi/types/uppercaseprocessor.go | 4 +- .../v8/typedapi/types/uppercasetokenfilter.go | 4 +- .../v8/typedapi/types/uripartsprocessor.go | 195 +++ .../v8/typedapi/types/urldecodeprocessor.go | 4 +- .../v8/typedapi/types/usagestatsindex.go | 4 +- .../v8/typedapi/types/usagestatsshards.go | 4 +- .../v8/typedapi/types/user.go | 4 +- .../v8/typedapi/types/useragentprocessor.go | 31 +- .../typedapi/types/userindicesprivileges.go | 4 +- .../v8/typedapi/types/userprofile.go | 4 +- .../typedapi/types/userprofilehitmetadata.go | 4 +- .../v8/typedapi/types/userprofileuser.go | 4 +- .../typedapi/types/userprofilewithmetadata.go | 4 +- .../v8/typedapi/types/userquerycontainer.go | 4 +- .../v8/typedapi/types/userrealm.go | 4 +- .../v8/typedapi/types/validation.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 | 4 +- .../types/variablewidthhistogrambucket.go | 11 +- .../v8/typedapi/types/vector.go | 4 +- .../v8/typedapi/types/verifyindex.go | 4 +- .../v8/typedapi/types/versionproperty.go | 18 +- .../v8/typedapi/types/vertex.go | 4 +- .../v8/typedapi/types/vertexdefinition.go | 4 +- .../v8/typedapi/types/vertexinclude.go | 4 +- .../v8/typedapi/types/vocabulary.go | 4 +- .../v8/typedapi/types/waitforactiveshards.go | 4 +- .../typedapi/types/waitforsnapshotaction.go | 4 +- .../v8/typedapi/types/warmerstats.go | 4 +- .../v8/typedapi/types/watch.go | 4 +- .../v8/typedapi/types/watcher.go | 4 +- .../v8/typedapi/types/watcheraction.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/watcherstatusactions.go | 4 +- .../v8/typedapi/types/watcherwatch.go | 4 +- .../v8/typedapi/types/watcherwatchtrigger.go | 4 +- .../types/watcherwatchtriggerschedule.go | 4 +- .../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 | 4 +- .../v8/typedapi/types/weightedaveragevalue.go | 4 +- .../v8/typedapi/types/weightedavgaggregate.go | 4 +- .../v8/typedapi/types/weightedtokensquery.go | 4 +- .../v8/typedapi/types/weights.go | 4 +- .../v8/typedapi/types/whitespaceanalyzer.go | 4 +- .../v8/typedapi/types/whitespacetokenizer.go | 4 +- .../v8/typedapi/types/wildcardproperty.go | 18 +- .../v8/typedapi/types/wildcardquery.go | 4 +- .../v8/typedapi/types/wktgeobounds.go | 4 +- .../types/worddelimitergraphtokenfilter.go | 4 +- .../types/worddelimitertokenfilter.go | 4 +- .../v8/typedapi/types/wrapperquery.go | 4 +- .../v8/typedapi/types/writeoperation.go | 4 +- .../v8/typedapi/types/xpackdatafeed.go | 4 +- .../v8/typedapi/types/xpackfeature.go | 4 +- .../v8/typedapi/types/xpackfeatures.go | 12 +- .../v8/typedapi/types/xpackquery.go | 4 +- .../v8/typedapi/types/xpackrealm.go | 4 +- .../v8/typedapi/types/xpackrolemapping.go | 4 +- .../typedapi/types/xpackruntimefieldtypes.go | 4 +- .../zeroshotclassificationinferenceoptions.go | 4 +- ...hotclassificationinferenceupdateoptions.go | 4 +- .../v8/typedapi/watcher/ackwatch/ack_watch.go | 2 +- .../v8/typedapi/watcher/ackwatch/response.go | 4 +- .../watcher/activatewatch/activate_watch.go | 2 +- .../watcher/activatewatch/response.go | 4 +- .../deactivatewatch/deactivate_watch.go | 2 +- .../watcher/deactivatewatch/response.go | 4 +- .../watcher/deletewatch/delete_watch.go | 2 +- .../typedapi/watcher/deletewatch/response.go | 4 +- .../watcher/executewatch/execute_watch.go | 2 +- .../typedapi/watcher/executewatch/request.go | 4 +- .../typedapi/watcher/executewatch/response.go | 4 +- .../watcher/getsettings/get_settings.go | 2 +- .../v8/typedapi/watcher/getwatch/get_watch.go | 2 +- .../v8/typedapi/watcher/getwatch/response.go | 4 +- .../v8/typedapi/watcher/putwatch/put_watch.go | 2 +- .../v8/typedapi/watcher/putwatch/request.go | 4 +- .../v8/typedapi/watcher/putwatch/response.go | 4 +- .../watcher/querywatches/query_watches.go | 2 +- .../typedapi/watcher/querywatches/request.go | 4 +- .../typedapi/watcher/querywatches/response.go | 4 +- .../v8/typedapi/watcher/start/response.go | 4 +- .../v8/typedapi/watcher/start/start.go | 2 +- .../v8/typedapi/watcher/stats/response.go | 4 +- .../v8/typedapi/watcher/stats/stats.go | 2 +- .../v8/typedapi/watcher/stop/response.go | 4 +- .../v8/typedapi/watcher/stop/stop.go | 2 +- .../watcher/updatesettings/update_settings.go | 2 +- .../v8/typedapi/xpack/info/info.go | 5 +- .../v8/typedapi/xpack/info/response.go | 4 +- .../v8/typedapi/xpack/usage/response.go | 4 +- .../v8/typedapi/xpack/usage/usage.go | 2 +- .../encoding/protojson/well_known_types.go | 6 +- .../editiondefaults/editions_defaults.binpb | Bin 93 -> 99 bytes .../internal/editionssupport/editions.go | 5 + .../protobuf/internal/filedesc/desc.go | 15 + .../protobuf/internal/filedesc/editions.go | 4 + .../internal/genid/go_features_gen.go | 17 + .../protobuf/internal/version/version.go | 2 +- .../protobuf/reflect/protodesc/desc.go | 12 +- .../protobuf/reflect/protodesc/editions.go | 5 + .../types/gofeaturespb/go_features.pb.go | 131 +- vendor/modules.txt | 34 +- 3787 files changed, 27480 insertions(+), 8402 deletions(-) create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoot.go create mode 100644 vendor/github.com/eclipse/paho.golang/autopaho/backoff.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.stream_inference.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_ip_location_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_ip_location_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_ip_location_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.test.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.repository_verify_integrity.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase/get_geoip_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/put_geoip_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/test.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity/repository_verify_integrity.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arabicanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/armeniananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basqueanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bengalianalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/braziliananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketstimeseriesbucket.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulgariananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catalananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chineseanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cjkanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/classictokenizer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/communityidprocessor.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositesubfield.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/czechanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/danishanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/databaseconfiguration.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/databaseconfigurationmetadata.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledetails.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycleindicator.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsknnprofile.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsprofile.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsstatisticsbreakdown.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsstatisticsprofile.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/englishanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat/esqlformat.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fingerprintdigest/fingerprintdigest.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtargetformat/geogridtargetformat.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/{deploymentstate/deploymentstate.go => geogridtiletype/geogridtiletype.go} (55%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sqlformat/sqlformat.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/xpackcategory/xpackcategory.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/estoniananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/failurestore.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprintprocessor.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/finnishanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frenchanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/galiciananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geogridprocessor.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/germananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greekanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hindianalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/htmlstripprocessor.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httproute.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httprouterequests.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httprouteresponses.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hungariananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indonesiananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingeststats.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/irishanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/italiananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knncollectorresult.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnqueryprofilebreakdown.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnqueryprofileresult.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latviananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lithuaniananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxmind.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasetimeseriesbucket.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/networkdirectionprocessor.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpackml.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/norwegiananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persiananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/portugueseanalyzer.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/{hotthread.go => queryrulesetmatchedrule.go} (52%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomsampleraggregation.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/redact.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/redactprocessor.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/registereddomainprocessor.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/remoteindicesprivileges.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/romaniananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/russiananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchshardsnodeattributes.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serbiananalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplepatternsplittokenizer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplepatterntokenizer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulatedocumentresult.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizehttphistogram.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/soranianalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanishanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stagnatingbackingindices.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifieddouble.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/swedishanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevaluescontainer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevaluesintegervalue.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueskeywordvalue.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueslongdouble.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueslongvalue.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/terminateprocessor.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textsimilarityreranker.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/thaianalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/thaitokenizer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timehttphistogram.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesaggregate.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesaggregation.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesbucket.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/turkishanalyzer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uripartsprocessor.go diff --git a/client/mqtt/publisher_test.go b/client/mqtt/publisher_test.go index 2a85f9bf8d..3c96884b4e 100644 --- a/client/mqtt/publisher_test.go +++ b/client/mqtt/publisher_test.go @@ -35,7 +35,6 @@ func TestDefaultConfig(t *testing.T) { assert.Equal(t, got.ClientID, tt.args.clientID) assert.Equal(t, u, got.BrokerUrls[0]) assert.Equal(t, uint16(30), got.KeepAlive) - assert.Equal(t, 5*time.Second, got.ConnectRetryDelay) assert.Equal(t, 1*time.Second, got.ConnectTimeout) assert.NotNil(t, got.OnConnectionUp) assert.NotNil(t, got.OnConnectError) diff --git a/component/kafka/kafka_test.go b/component/kafka/kafka_test.go index 5a493e5beb..5164b83ea0 100644 --- a/component/kafka/kafka_test.go +++ b/component/kafka/kafka_test.go @@ -33,7 +33,7 @@ func Test_messageWrapper(t *testing.T) { assert.Equal(t, ctx, msgCtx) assert.NotNil(t, consumerMessage) assert.Equal(t, "topicone", consumerMessage.Topic) - assert.Equal(t, []byte(`{"key":"value"}`), consumerMessage.Value) + assert.JSONEq(t, `{"key":"value"}`, string(consumerMessage.Value)) } func Test_NewBatch(t *testing.T) { diff --git a/go.mod b/go.mod index 9f0ad3d487..861a2a27ef 100644 --- a/go.mod +++ b/go.mod @@ -7,13 +7,13 @@ toolchain go1.23.3 require ( github.com/IBM/sarama v1.43.3 github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/config v1.28.3 - github.com/aws/aws-sdk-go-v2/credentials v1.17.44 + github.com/aws/aws-sdk-go-v2/config v1.28.4 + github.com/aws/aws-sdk-go-v2/credentials v1.17.45 github.com/aws/aws-sdk-go-v2/service/sns v1.33.4 github.com/aws/aws-sdk-go-v2/service/sqs v1.37.0 - github.com/eclipse/paho.golang v0.21.0 + github.com/eclipse/paho.golang v0.22.0 github.com/elastic/elastic-transport-go/v8 v8.6.0 - github.com/elastic/go-elasticsearch/v8 v8.15.0 + github.com/elastic/go-elasticsearch/v8 v8.16.0 github.com/go-sql-driver/mysql v1.8.1 github.com/google/uuid v1.6.0 github.com/hashicorp/golang-lru v1.0.2 @@ -35,7 +35,7 @@ require ( go.opentelemetry.io/otel/trace v1.32.0 golang.org/x/time v0.8.0 google.golang.org/grpc v1.68.0 - google.golang.org/protobuf v1.35.1 + google.golang.org/protobuf v1.35.2 ) require ( @@ -44,14 +44,14 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.36.5 // indirect + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.32.4 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect + github.com/aws/smithy-go v1.22.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect @@ -91,8 +91,8 @@ require ( golang.org/x/sync v0.9.0 // indirect golang.org/x/sys v0.27.0 // indirect golang.org/x/text v0.20.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20241113202542-65e8d215514f // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index ddd1437021..1cc80c9016 100644 --- a/go.sum +++ b/go.sum @@ -4,10 +4,10 @@ github.com/IBM/sarama v1.43.3 h1:Yj6L2IaNvb2mRBop39N7mmJAHBVY3dTPncr3qGVkxPA= github.com/IBM/sarama v1.43.3/go.mod h1:FVIRaLrhK3Cla/9FfRF5X9Zua2KpS3SYIXxhac1H+FQ= github.com/aws/aws-sdk-go-v2 v1.32.4 h1:S13INUiTxgrPueTmrm5DZ+MiAo99zYzHEFh1UNkOxNE= github.com/aws/aws-sdk-go-v2 v1.32.4/go.mod h1:2SK5n0a2karNTv5tbP1SjsX0uhttou00v/HpXKM1ZUo= -github.com/aws/aws-sdk-go-v2/config v1.28.3 h1:kL5uAptPcPKaJ4q0sDUjUIdueO18Q7JDzl64GpVwdOM= -github.com/aws/aws-sdk-go-v2/config v1.28.3/go.mod h1:SPEn1KA8YbgQnwiJ/OISU4fz7+F6Fe309Jf0QTsRCl4= -github.com/aws/aws-sdk-go-v2/credentials v1.17.44 h1:qqfs5kulLUHUEXlHEZXLJkgGoF3kkUeFUTVA585cFpU= -github.com/aws/aws-sdk-go-v2/credentials v1.17.44/go.mod h1:0Lm2YJ8etJdEdw23s+q/9wTpOeo2HhNE97XcRa7T8MA= +github.com/aws/aws-sdk-go-v2/config v1.28.4 h1:qgD0MKmkIzZR2DrAjWJcI9UkndjR+8f6sjUQvXh0mb0= +github.com/aws/aws-sdk-go-v2/config v1.28.4/go.mod h1:LgnWnNzHZw4MLplSyEGia0WgJ/kCGD86zGCjvNpehJs= +github.com/aws/aws-sdk-go-v2/credentials v1.17.45 h1:DUgm5lFso57E7150RBgu1JpVQoF8fAPretiDStIuVjg= +github.com/aws/aws-sdk-go-v2/credentials v1.17.45/go.mod h1:dnBpENcPC1ekZrGpSWspX+ZRGzhkvqngT2Qp5xBR1dY= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 h1:woXadbf0c7enQ2UGCi8gW/WuKmE0xIzxBF/eD94jMKQ= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19/go.mod h1:zminj5ucw7w0r65bP6nhyOd3xL6veAUMc3ElGMoLVb4= github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 h1:A2w6m6Tmr+BNXjDsr7M90zkWjsu4JXHwrzPg235STs4= @@ -16,8 +16,8 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 h1:pgYW9FCabt2M25MoHY github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23/go.mod h1:c48kLgzO19wAu3CPkDWC28JbaJ+hfQlsdl7I2+oqIbk= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 h1:VaRN3TlFdd6KxX1x3ILT5ynH6HvKgqdiXoTxAF4HQcQ= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1/go.mod h1:FbtygfRFze9usAadmnGJNc8KsP346kEe+y2/oyhGAGc= -github.com/aws/aws-sdk-go-v2/service/dynamodb v1.36.5 h1:VWun/99wjelZZ+d0DGeSrffiCBJhC481geypGc6rfn0= -github.com/aws/aws-sdk-go-v2/service/dynamodb v1.36.5/go.mod h1:P+1rrWglInpWvnBpN0pH8jIIhkLkBaolkRVG4X9Kous= +github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 h1:qgDx1ChCsz5tSxok9hxWES30bt4koYM1Xub4ONuNYDU= +github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0/go.mod h1:P+1rrWglInpWvnBpN0pH8jIIhkLkBaolkRVG4X9Kous= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 h1:TToQNkvGguu209puTojY/ozlqy2d/SFNcoLIqTFi42g= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0/go.mod h1:0jp+ltwkf+SwG2fm/PKo8t4y8pJSgOCO4D8Lz3k0aHQ= github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 h1:rWKH6IiWDRIxmsTJUB/wEY+EIPp+P3C78Vidl+HXp6w= @@ -32,10 +32,10 @@ github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 h1:HJwZwRt2Z2Tdec+m+fPjvdmkq2s9 github.com/aws/aws-sdk-go-v2/service/sso v1.24.5/go.mod h1:wrMCEwjFPms+V86TCQQeOxQF/If4vT44FGIOFiMC2ck= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 h1:zcx9LiGWZ6i6pjdcoE9oXAB6mUdeyC36Ia/QEiIvYdg= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4/go.mod h1:Tp/ly1cTjRLGBBmNccFumbZ8oqpZlpdhFf80SrRh4is= -github.com/aws/aws-sdk-go-v2/service/sts v1.32.4 h1:yDxvkz3/uOKfxnv8YhzOi9m+2OGIxF+on3KOISbK5IU= -github.com/aws/aws-sdk-go-v2/service/sts v1.32.4/go.mod h1:9XEUty5v5UAsMiFOBJrNibZgwCeOma73jgGwwhgffa8= -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 h1:s7LRgBqhwLaxcocnAniBJp7gaAB+4I4vHzqUqjH18yc= +github.com/aws/aws-sdk-go-v2/service/sts v1.33.0/go.mod h1:9XEUty5v5UAsMiFOBJrNibZgwCeOma73jgGwwhgffa8= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= @@ -55,12 +55,12 @@ github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 h1:Oy0F4A github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3/go.mod h1:YvSRo5mw33fLEx1+DlK6L2VV43tJt5Eyel9n9XBcR+0= 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/eclipse/paho.golang v0.22.0 h1:JhhUngr8TBlyUZDZw/L6WVayPi9qmSmdWeki48i5AVE= +github.com/eclipse/paho.golang v0.22.0/go.mod h1:9ZiYJ93iEfGRJri8tErNeStPKLXIGBHiqbHV74t5pqI= 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.15.0 h1:IZyJhe7t7WI3NEFdcHnf6IJXqpRf+8S8QWLtZYYyBYk= -github.com/elastic/go-elasticsearch/v8 v8.15.0/go.mod h1:HCON3zj4btpqs2N1jjsAy4a/fiAul+YBP00mBH4xik8= +github.com/elastic/go-elasticsearch/v8 v8.16.0 h1:f7bR+iBz8GTAVhwyFO3hm4ixsz2eMaEy0QroYnXV3jE= +github.com/elastic/go-elasticsearch/v8 v8.16.0/go.mod h1:lGMlgKIbYoRvay3xWBeKahAiJOgmFDsjZC39nmO3H64= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= @@ -226,14 +226,14 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 h1:M0KvPgPmDZHPlbRbaNU1APr28TvwvvdUPlSv7PUvy8g= -google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28/go.mod h1:dguCy7UOdZhTvLzDyt15+rOrawrpM4q7DD9dQ1P11P4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 h1:XVhgTWWV3kGQlwJHR3upFWZeTsei6Oks1apkZSeonIE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= +google.golang.org/genproto/googleapis/api v0.0.0-20241113202542-65e8d215514f h1:M65LEviCfuZTfrfzwwEoxVtgvfkFkBUbFnRbxCXuXhU= +google.golang.org/genproto/googleapis/api v0.0.0-20241113202542-65e8d215514f/go.mod h1:Yo94eF2nj7igQt+TiJ49KxjIH8ndLYPZMIRSiRcEbg0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f h1:C1QccEa9kUwvMgEUORqQD9S17QesQijxjZ84sO82mfo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= google.golang.org/grpc v1.68.0 h1:aHQeeJbo8zAkAa3pRzrVjZlbz6uSfeOXlJNQM0RAbz0= google.golang.org/grpc v1.68.0/go.mod h1:fmSPC5AsjSBCK54MyHRx48kpOti1/jRfOlwEWywNjWA= -google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= -google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io= +google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/options_test.go b/options_test.go index 6741cd79b9..e76f827e2d 100644 --- a/options_test.go +++ b/options_test.go @@ -61,7 +61,7 @@ func TestSIGHUP(t *testing.T) { err := WithSIGHUP(nil)(svc) assert.Equal(t, errors.New("provided WithSIGHUP handler was nil"), err) - assert.Nil(t, nil, svc.sighupHandler) + assert.Nil(t, svc.sighupHandler) }) t.Run("non empty value for sighup handler", func(t *testing.T) { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md index a4db973efe..91c59f49cb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.28.4 (2024-11-14) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.3 (2024-11-07) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go index 932235f9b7..75a7fe1e82 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go @@ -3,4 +3,4 @@ package config // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.3" +const goModuleVersion = "1.28.4" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md index 2f0c60fbcf..ee33231003 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.17.45 (2024-11-14) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.44 (2024-11-07) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go index 5c028a10db..b6bb1432fb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go @@ -3,4 +3,4 @@ package credentials // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.44" +const goModuleVersion = "1.17.45" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/CHANGELOG.md index 35be46020f..5edb0521ed 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.37.0 (2024-11-13) + +* **Feature**: This release includes supports the new WarmThroughput feature for DynamoDB. You can now provide an optional WarmThroughput attribute for CreateTable or UpdateTable APIs to pre-warm your table or global secondary index. You can also use DescribeTable to see the latest WarmThroughput value. + # v1.36.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateTable.go index 3b46964206..fa592994d7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateTable.go @@ -246,6 +246,10 @@ type CreateTableInput struct { // [Tagging for DynamoDB]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html Tags []types.Tag + // Represents the warm throughput (in read units per second and write units per + // second) for creating a table. + WarmThroughput *types.WarmThroughput + noSmithyDocumentSerde } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateTable.go index 39c9189bfa..feed31998b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateTable.go @@ -126,6 +126,10 @@ type UpdateTableInput struct { // STANDARD_INFREQUENT_ACCESS . TableClass types.TableClass + // Represents the warm throughput (in read units per second and write units per + // second) for updating a table. + WarmThroughput *types.WarmThroughput + noSmithyDocumentSerde } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/deserializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/deserializers.go index 78f8e9733b..ee0687204e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/deserializers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/deserializers.go @@ -10881,6 +10881,11 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndex(v **types.GlobalSecond return err } + case "WarmThroughput": + if err := awsAwsjson10_deserializeDocumentWarmThroughput(&sv.WarmThroughput, value); err != nil { + return err + } + default: _, _ = key, value @@ -10994,6 +10999,11 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(v **types.G return err } + case "WarmThroughput": + if err := awsAwsjson10_deserializeDocumentGlobalSecondaryIndexWarmThroughputDescription(&sv.WarmThroughput, value); err != nil { + return err + } + default: _, _ = key, value @@ -11165,6 +11175,72 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexList(v *[]types.GlobalS return nil } +func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexWarmThroughputDescription(v **types.GlobalSecondaryIndexWarmThroughputDescription, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GlobalSecondaryIndexWarmThroughputDescription + if *v == nil { + sv = &types.GlobalSecondaryIndexWarmThroughputDescription{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ReadUnitsPerSecond": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PositiveLongObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ReadUnitsPerSecond = ptr.Int64(i64) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IndexStatus to be of type string, got %T instead", value) + } + sv.Status = types.IndexStatus(jtv) + } + + case "WriteUnitsPerSecond": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PositiveLongObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WriteUnitsPerSecond = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeDocumentGlobalTable(v **types.GlobalTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -14165,6 +14241,11 @@ func awsAwsjson10_deserializeDocumentReplicaDescription(v **types.ReplicaDescrip return err } + case "WarmThroughput": + if err := awsAwsjson10_deserializeDocumentTableWarmThroughputDescription(&sv.WarmThroughput, value); err != nil { + return err + } + default: _, _ = key, value @@ -14342,6 +14423,11 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexDescription(v ** return err } + case "WarmThroughput": + if err := awsAwsjson10_deserializeDocumentGlobalSecondaryIndexWarmThroughputDescription(&sv.WarmThroughput, value); err != nil { + return err + } + default: _, _ = key, value @@ -15826,6 +15912,11 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription sv.TableStatus = types.TableStatus(jtv) } + case "WarmThroughput": + if err := awsAwsjson10_deserializeDocumentTableWarmThroughputDescription(&sv.WarmThroughput, value); err != nil { + return err + } + default: _, _ = key, value @@ -15951,6 +16042,72 @@ func awsAwsjson10_deserializeDocumentTableNotFoundException(v **types.TableNotFo return nil } +func awsAwsjson10_deserializeDocumentTableWarmThroughputDescription(v **types.TableWarmThroughputDescription, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TableWarmThroughputDescription + if *v == nil { + sv = &types.TableWarmThroughputDescription{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ReadUnitsPerSecond": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PositiveLongObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ReadUnitsPerSecond = ptr.Int64(i64) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TableStatus to be of type string, got %T instead", value) + } + sv.Status = types.TableStatus(jtv) + } + + case "WriteUnitsPerSecond": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PositiveLongObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WriteUnitsPerSecond = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -16297,6 +16454,63 @@ func awsAwsjson10_deserializeDocumentUpdateKinesisStreamingConfiguration(v **typ return nil } +func awsAwsjson10_deserializeDocumentWarmThroughput(v **types.WarmThroughput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.WarmThroughput + if *v == nil { + sv = &types.WarmThroughput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ReadUnitsPerSecond": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected LongObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ReadUnitsPerSecond = ptr.Int64(i64) + } + + case "WriteUnitsPerSecond": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected LongObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WriteUnitsPerSecond = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeDocumentWriteRequest(v **types.WriteRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/go_module_metadata.go index c6146ac9a6..e4df2652ba 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/go_module_metadata.go @@ -3,4 +3,4 @@ package dynamodb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.5" +const goModuleVersion = "1.37.0" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/serializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/serializers.go index 4170a614cf..56379c54a9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/serializers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/serializers.go @@ -3911,6 +3911,13 @@ func awsAwsjson10_serializeDocumentCreateGlobalSecondaryIndexAction(v *types.Cre } } + if v.WarmThroughput != nil { + ok := object.Key("WarmThroughput") + if err := awsAwsjson10_serializeDocumentWarmThroughput(v.WarmThroughput, ok); err != nil { + return err + } + } + return nil } @@ -4258,6 +4265,13 @@ func awsAwsjson10_serializeDocumentGlobalSecondaryIndex(v *types.GlobalSecondary } } + if v.WarmThroughput != nil { + ok := object.Key("WarmThroughput") + if err := awsAwsjson10_serializeDocumentWarmThroughput(v.WarmThroughput, ok); err != nil { + return err + } + } + return nil } @@ -5486,6 +5500,13 @@ func awsAwsjson10_serializeDocumentUpdateGlobalSecondaryIndexAction(v *types.Upd } } + if v.WarmThroughput != nil { + ok := object.Key("WarmThroughput") + if err := awsAwsjson10_serializeDocumentWarmThroughput(v.WarmThroughput, ok); err != nil { + return err + } + } + return nil } @@ -5544,6 +5565,23 @@ func awsAwsjson10_serializeDocumentUpdateReplicationGroupMemberAction(v *types.U return nil } +func awsAwsjson10_serializeDocumentWarmThroughput(v *types.WarmThroughput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ReadUnitsPerSecond != nil { + ok := object.Key("ReadUnitsPerSecond") + ok.Long(*v.ReadUnitsPerSecond) + } + + if v.WriteUnitsPerSecond != nil { + ok := object.Key("WriteUnitsPerSecond") + ok.Long(*v.WriteUnitsPerSecond) + } + + return nil +} + func awsAwsjson10_serializeDocumentWriteRequest(v *types.WriteRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5768,6 +5806,13 @@ func awsAwsjson10_serializeOpDocumentCreateTableInput(v *CreateTableInput, value } } + if v.WarmThroughput != nil { + ok := object.Key("WarmThroughput") + if err := awsAwsjson10_serializeDocumentWarmThroughput(v.WarmThroughput, ok); err != nil { + return err + } + } + return nil } @@ -7270,6 +7315,13 @@ func awsAwsjson10_serializeOpDocumentUpdateTableInput(v *UpdateTableInput, value ok.String(*v.TableName) } + if v.WarmThroughput != nil { + ok := object.Key("WarmThroughput") + if err := awsAwsjson10_serializeDocumentWarmThroughput(v.WarmThroughput, ok); err != nil { + return err + } + } + return nil } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/types/types.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/types/types.go index 31f30fcee3..194a069b85 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/types/types.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/types/types.go @@ -968,6 +968,10 @@ type CreateGlobalSecondaryIndexAction struct { // [Service, Account, and Table Quotas]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html ProvisionedThroughput *ProvisionedThroughput + // Represents the warm throughput value (in read units per second and write units + // per second) when creating a secondary index. + WarmThroughput *WarmThroughput + noSmithyDocumentSerde } @@ -1528,6 +1532,11 @@ type GlobalSecondaryIndex struct { // [Service, Account, and Table Quotas]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html ProvisionedThroughput *ProvisionedThroughput + // Represents the warm throughput value (in read units per second and write units + // per second) for the specified secondary index. If you use this parameter, you + // must specify ReadUnitsPerSecond , WriteUnitsPerSecond , or both. + WarmThroughput *WarmThroughput + noSmithyDocumentSerde } @@ -1627,6 +1636,10 @@ type GlobalSecondaryIndexDescription struct { // [Service, Account, and Table Quotas]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html ProvisionedThroughput *ProvisionedThroughputDescription + // Represents the warm throughput value (in read units per second and write units + // per second) for the specified secondary index. + WarmThroughput *GlobalSecondaryIndexWarmThroughputDescription + noSmithyDocumentSerde } @@ -1705,6 +1718,24 @@ type GlobalSecondaryIndexUpdate struct { noSmithyDocumentSerde } +// The description of the warm throughput value on a global secondary index. +type GlobalSecondaryIndexWarmThroughputDescription struct { + + // Represents warm throughput read units per second value for a global secondary + // index. + ReadUnitsPerSecond *int64 + + // Represents the warm throughput status being created or updated on a global + // secondary index. The status can only be UPDATING or ACTIVE . + Status IndexStatus + + // Represents warm throughput write units per second value for a global secondary + // index. + WriteUnitsPerSecond *int64 + + noSmithyDocumentSerde +} + // Represents the properties of a global table. type GlobalTable struct { @@ -2550,6 +2581,9 @@ type ReplicaDescription struct { // Contains details of the table class. ReplicaTableClassSummary *TableClassSummary + // Represents the warm throughput value for this replica. + WarmThroughput *TableWarmThroughputDescription + noSmithyDocumentSerde } @@ -2628,6 +2662,9 @@ type ReplicaGlobalSecondaryIndexDescription struct { // If not described, uses the source table GSI's read capacity settings. ProvisionedThroughputOverride *ProvisionedThroughputOverride + // Represents the warm throughput of the global secondary index for this replica. + WarmThroughput *GlobalSecondaryIndexWarmThroughputDescription + noSmithyDocumentSerde } @@ -3360,6 +3397,25 @@ type TableDescription struct { // information. TableStatus TableStatus + // Describes the warm throughput value of the base table. + WarmThroughput *TableWarmThroughputDescription + + noSmithyDocumentSerde +} + +// Represents the warm throughput value (in read units per second and write units +// per second) of the base table. +type TableWarmThroughputDescription struct { + + // Represents the base table's warm throughput value in read units per second. + ReadUnitsPerSecond *int64 + + // Represents warm throughput value of the base table.. + Status TableStatus + + // Represents the base table's warm throughput value in write units per second. + WriteUnitsPerSecond *int64 + noSmithyDocumentSerde } @@ -3516,6 +3572,10 @@ type UpdateGlobalSecondaryIndexAction struct { // [Service, Account, and Table Quotas]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html ProvisionedThroughput *ProvisionedThroughput + // Represents the warm throughput value of the new provisioned throughput settings + // to be applied to a global secondary index. + WarmThroughput *WarmThroughput + noSmithyDocumentSerde } @@ -3559,6 +3619,23 @@ type UpdateReplicationGroupMemberAction struct { noSmithyDocumentSerde } +// Provides visibility into the number of read and write operations your table or +// secondary index can instantaneously support. The settings can be modified using +// the UpdateTable operation to meet the throughput requirements of an upcoming +// peak event. +type WarmThroughput struct { + + // Represents the number of read operations your base table can instantaneously + // support. + ReadUnitsPerSecond *int64 + + // Represents the number of write operations your base table can instantaneously + // support. + WriteUnitsPerSecond *int64 + + noSmithyDocumentSerde +} + // Represents an operation to perform - either DeleteItem or PutItem . You can only // request one of these operations, not both, in a single WriteRequest . If you do // need to perform both of these operations, you need to provide two separate diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md index 95fe128b0e..9763fcb9bb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.33.0 (2024-11-14) + +* **Feature**: This release introduces the new API 'AssumeRoot', which returns short-term credentials that you can use to perform privileged tasks. + # v1.32.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRole.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRole.go index be03f017d4..8838f4fb8a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRole.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRole.go @@ -16,7 +16,7 @@ import ( // Amazon Web Services resources. These temporary credentials consist of an access // key ID, a secret access key, and a security token. Typically, you use AssumeRole // within your account or for cross-account access. For a comparison of AssumeRole -// with other API operations that produce temporary credentials, see [Requesting Temporary Security Credentials]and [Comparing the Amazon Web Services STS API operations] in the +// with other API operations that produce temporary credentials, see [Requesting Temporary Security Credentials]and [Compare STS credentials] in the // IAM User Guide. // // # Permissions @@ -26,16 +26,16 @@ import ( // cannot call the Amazon Web Services STS GetFederationToken or GetSessionToken // API operations. // -// (Optional) You can pass inline or managed [session policies] to this operation. You can pass a -// single JSON policy document to use as an inline session policy. You can also -// specify up to 10 managed policy Amazon Resource Names (ARNs) to use as managed -// session policies. The plaintext that you use for both inline and managed session -// policies can't exceed 2,048 characters. Passing policies to this operation -// returns new temporary credentials. The resulting session's permissions are the -// intersection of the role's identity-based policy and the session policies. You -// can use the role's temporary credentials in subsequent Amazon Web Services API -// calls to access resources in the account that owns the role. You cannot use -// session policies to grant more permissions than those allowed by the +// (Optional) You can pass inline or managed session policies to this operation. +// You can pass a single JSON policy document to use as an inline session policy. +// You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use +// as managed session policies. The plaintext that you use for both inline and +// managed session policies can't exceed 2,048 characters. Passing policies to this +// operation returns new temporary credentials. The resulting session's permissions +// are the intersection of the role's identity-based policy and the session +// policies. You can use the role's temporary credentials in subsequent Amazon Web +// Services API calls to access resources in the account that owns the role. You +// cannot use session policies to grant more permissions than those allowed by the // identity-based policy of the role that is being assumed. For more information, // see [Session Policies]in the IAM User Guide. // @@ -104,10 +104,9 @@ import ( // [Session Policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session // [Passing Session Tags in STS]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html // [Chaining Roles with Session Tags]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining -// [Comparing the Amazon Web Services STS API operations]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison -// [session policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session // [IAM Policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html // [Requesting Temporary Security Credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html +// [Compare STS credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_sts-comparison.html // [Tutorial: Using Tags for Attribute-Based Access Control]: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html func (c *Client) AssumeRole(ctx context.Context, params *AssumeRoleInput, optFns ...func(*Options)) (*AssumeRoleOutput, error) { if params == nil { @@ -141,10 +140,18 @@ type AssumeRoleInput struct { // the temporary security credentials will expose the role session name to the // external account in their CloudTrail logs. // + // For security purposes, administrators can view this field in [CloudTrail logs] to help identify + // who performed an action in Amazon Web Services. Your administrator might require + // that you specify your user name as the session name when you assume the role. + // For more information, see [sts:RoleSessionName]sts:RoleSessionName . + // // The regex used to validate this parameter is a string of characters consisting // of upper- and lower-case alphanumeric characters with no spaces. You can also // include underscores or any of the following characters: =,.@- // + // [CloudTrail logs]: https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-tempcreds + // [sts:RoleSessionName]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_iam-condition-keys.html#ck_rolesessionname + // // This member is required. RoleSessionName *string @@ -163,7 +170,7 @@ type AssumeRoleInput struct { // 43200 seconds (12 hours), depending on the maximum session duration setting for // your role. However, if you assume a role using role chaining and provide a // DurationSeconds parameter value greater than one hour, the operation fails. To - // learn how to view the maximum value for your role, see [View the Maximum Session Duration Setting for a Role]in the IAM User Guide. + // learn how to view the maximum value for your role, see [Update the maximum session duration for a role]. // // By default, the value is set to 3600 seconds. // @@ -173,7 +180,7 @@ type AssumeRoleInput struct { // parameter that specifies the maximum length of the console session. For more // information, see [Creating a URL that Enables Federated Users to Access the Amazon Web Services Management Console]in the IAM User Guide. // - // [View the Maximum Session Duration Setting for a Role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session + // [Update the maximum session duration for a role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_update-role-settings.html#id_roles_update-session-duration // [Creating a URL that Enables Federated Users to Access the Amazon Web Services Management Console]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html DurationSeconds *int32 @@ -218,7 +225,10 @@ type AssumeRoleInput struct { // by percentage how close the policies and tags for your request are to the upper // size limit. // + // For more information about role session permissions, see [Session policies]. + // // [Session Policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session + // [Session policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session Policy *string // The Amazon Resource Names (ARNs) of the IAM managed policies that you want to @@ -273,10 +283,10 @@ type AssumeRoleInput struct { SerialNumber *string // The source identity specified by the principal that is calling the AssumeRole - // operation. + // operation. The source identity value persists across [chained role]sessions. // // You can require users to specify a source identity when they assume a role. You - // do this by using the sts:SourceIdentity condition key in a role trust policy. + // do this by using the [sts:SourceIdentity]sts:SourceIdentity condition key in a role trust policy. // You can use source identity information in CloudTrail logs to determine who took // actions with a role. You can use the aws:SourceIdentity condition key to // further control access to Amazon Web Services resources based on the value of @@ -289,7 +299,9 @@ type AssumeRoleInput struct { // value that begins with the text aws: . This prefix is reserved for Amazon Web // Services internal use. // + // [chained role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html#iam-term-role-chaining // [Monitor and control actions taken with assumed roles]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html + // [sts:SourceIdentity]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceidentity SourceIdentity *string // A list of session tags that you want to pass. Each session tag consists of a @@ -342,8 +354,8 @@ type AssumeRoleInput struct { // a tag key as transitive, the corresponding key and value passes to subsequent // sessions in a role chain. For more information, see [Chaining Roles with Session Tags]in the IAM User Guide. // - // This parameter is optional. When you set session tags as transitive, the - // session policy and session tags packed binary limit is not affected. + // This parameter is optional. The transitive status of a session tag does not + // impact its packed binary size. // // If you choose not to specify a transitive tag key, then no tags are passed from // this session to any subsequent sessions. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithSAML.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithSAML.go index b8b0c095f7..d0e117ac92 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithSAML.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithSAML.go @@ -16,7 +16,7 @@ import ( // mechanism for tying an enterprise identity store or directory to role-based // Amazon Web Services access without user-specific credentials or configuration. // For a comparison of AssumeRoleWithSAML with the other API operations that -// produce temporary credentials, see [Requesting Temporary Security Credentials]and [Comparing the Amazon Web Services STS API operations] in the IAM User Guide. +// produce temporary credentials, see [Requesting Temporary Security Credentials]and [Compare STS credentials] in the IAM User Guide. // // The temporary security credentials returned by this operation consist of an // access key ID, a secret access key, and a security token. Applications can use @@ -130,10 +130,10 @@ import ( // [View the Maximum Session Duration Setting for a Role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session // [Creating a Role for SAML 2.0 Federation]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html // [IAM and STS Character Limits]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length -// [Comparing the Amazon Web Services STS API operations]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison // [Creating SAML Identity Providers]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html // [session policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session // [Requesting Temporary Security Credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html +// [Compare STS credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_sts-comparison.html // [Tutorial: Using Tags for Attribute-Based Access Control]: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html // [Configuring a Relying Party and Claims]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html // [Role chaining]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-role-chaining @@ -219,6 +219,8 @@ type AssumeRoleWithSAMLInput struct { // \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage // return (\u000D) characters. // + // For more information about role session permissions, see [Session policies]. + // // An Amazon Web Services conversion compresses the passed inline session policy, // managed policy ARNs, and session tags into a packed binary format that has a // separate limit. Your request can fail for this limit even if your plaintext @@ -227,6 +229,7 @@ type AssumeRoleWithSAMLInput struct { // size limit. // // [Session Policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session + // [Session policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session Policy *string // The Amazon Resource Names (ARNs) of the IAM managed policies that you want to @@ -304,7 +307,8 @@ type AssumeRoleWithSAMLOutput struct { // allowed space. PackedPolicySize *int32 - // The value in the SourceIdentity attribute in the SAML assertion. + // The value in the SourceIdentity attribute in the SAML assertion. The source + // identity value persists across [chained role]sessions. // // You can require users to set a source identity value when they assume a role. // You do this by using the sts:SourceIdentity condition key in a role trust @@ -321,7 +325,7 @@ type AssumeRoleWithSAMLOutput struct { // of upper- and lower-case alphanumeric characters with no spaces. You can also // include underscores or any of the following characters: =,.@- // - // [chained role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts#iam-term-role-chaining + // [chained role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html#id_roles_terms-and-concepts // [Monitor and control actions taken with assumed roles]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html SourceIdentity *string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithWebIdentity.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithWebIdentity.go index ffe2479f63..803cded5a4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithWebIdentity.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithWebIdentity.go @@ -31,7 +31,7 @@ import ( // Services credentials. Instead, the identity of the caller is validated by using // a token from the web identity provider. For a comparison of // AssumeRoleWithWebIdentity with the other API operations that produce temporary -// credentials, see [Requesting Temporary Security Credentials]and [Comparing the Amazon Web Services STS API operations] in the IAM User Guide. +// credentials, see [Requesting Temporary Security Credentials]and [Compare STS credentials] in the IAM User Guide. // // The temporary security credentials returned by this API consist of an access // key ID, a secret access key, and a security token. Applications can use these @@ -45,7 +45,7 @@ import ( // DurationSeconds parameter to specify the duration of your session. You can // provide a value from 900 seconds (15 minutes) up to the maximum session duration // setting for the role. This setting can have a value from 1 hour to 12 hours. To -// learn how to view the maximum value for your role, see [View the Maximum Session Duration Setting for a Role]in the IAM User Guide. +// learn how to view the maximum value for your role, see [Update the maximum session duration for a role]in the IAM User Guide. // The maximum session duration limit applies when you use the AssumeRole* API // operations or the assume-role* CLI commands. However the limit does not apply // when you use those operations to create a console URL. For more information, see @@ -111,34 +111,23 @@ import ( // that you avoid using any personally identifiable information (PII) in this // field. For example, you could instead use a GUID or a pairwise identifier, as [suggested in the OIDC specification]. // -// For more information about how to use web identity federation and the +// For more information about how to use OIDC federation and the // AssumeRoleWithWebIdentity API, see the following resources: // // [Using Web Identity Federation API Operations for Mobile Apps] // - and [Federation Through a Web-based Identity Provider]. // -// [Web Identity Federation Playground] -// - . Walk through the process of authenticating through Login with Amazon, -// Facebook, or Google, getting temporary security credentials, and then using -// those credentials to make a request to Amazon Web Services. -// // [Amazon Web Services SDK for iOS Developer Guide] // - and [Amazon Web Services SDK for Android Developer Guide]. These toolkits contain sample apps that show how to invoke the // identity providers. The toolkits then show how to use the information from these // providers to get and use temporary security credentials. // -// [Web Identity Federation with Mobile Applications] -// - . This article discusses web identity federation and shows an example of -// how to use web identity federation to get access to content in Amazon S3. -// // [Amazon Web Services SDK for iOS Developer Guide]: http://aws.amazon.com/sdkforios/ -// [View the Maximum Session Duration Setting for a Role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session -// [Web Identity Federation Playground]: https://aws.amazon.com/blogs/aws/the-aws-web-identity-federation-playground/ // [Amazon Web Services SDK for Android Developer Guide]: http://aws.amazon.com/sdkforandroid/ // [IAM and STS Character Limits]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length -// [Comparing the Amazon Web Services STS API operations]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison // [session policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session // [Requesting Temporary Security Credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html +// [Compare STS credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_sts-comparison.html // [Subject]: http://openid.net/specs/openid-connect-core-1_0.html#Claims // [Tutorial: Using Tags for Attribute-Based Access Control]: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html // [Amazon Cognito identity pools]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html @@ -148,7 +137,7 @@ import ( // [Amazon Cognito federated identities]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html // [Passing Session Tags in STS]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html // [Chaining Roles with Session Tags]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining -// [Web Identity Federation with Mobile Applications]: http://aws.amazon.com/articles/web-identity-federation-with-mobile-applications +// [Update the maximum session duration for a role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_update-role-settings.html#id_roles_update-session-duration // [Using Web Identity Federation API Operations for Mobile Apps]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual.html // [suggested in the OIDC specification]: http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes func (c *Client) AssumeRoleWithWebIdentity(ctx context.Context, params *AssumeRoleWithWebIdentityInput, optFns ...func(*Options)) (*AssumeRoleWithWebIdentityOutput, error) { @@ -170,6 +159,17 @@ type AssumeRoleWithWebIdentityInput struct { // The Amazon Resource Name (ARN) of the role that the caller is assuming. // + // Additional considerations apply to Amazon Cognito identity pools that assume [cross-account IAM roles]. + // The trust policies of these roles must accept the cognito-identity.amazonaws.com + // service principal and must contain the cognito-identity.amazonaws.com:aud + // condition key to restrict role assumption to users from your intended identity + // pools. A policy that trusts Amazon Cognito identity pools without this condition + // creates a risk that a user from an unintended identity pool can assume the role. + // For more information, see [Trust policies for IAM roles in Basic (Classic) authentication]in the Amazon Cognito Developer Guide. + // + // [cross-account IAM roles]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-cross-account-resource-access.html + // [Trust policies for IAM roles in Basic (Classic) authentication]: https://docs.aws.amazon.com/cognito/latest/developerguide/iam-roles.html#trust-policies + // // This member is required. RoleArn *string @@ -179,17 +179,26 @@ type AssumeRoleWithWebIdentityInput struct { // associated with that user. This session name is included as part of the ARN and // assumed role ID in the AssumedRoleUser response element. // + // For security purposes, administrators can view this field in [CloudTrail logs] to help identify + // who performed an action in Amazon Web Services. Your administrator might require + // that you specify your user name as the session name when you assume the role. + // For more information, see [sts:RoleSessionName]sts:RoleSessionName . + // // The regex used to validate this parameter is a string of characters consisting // of upper- and lower-case alphanumeric characters with no spaces. You can also // include underscores or any of the following characters: =,.@- // + // [CloudTrail logs]: https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-tempcreds + // [sts:RoleSessionName]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_iam-condition-keys.html#ck_rolesessionname + // // This member is required. RoleSessionName *string // The OAuth 2.0 access token or OpenID Connect ID token that is provided by the // identity provider. Your application must get this token by authenticating the // user who is using your application with a web identity provider before the - // application makes an AssumeRoleWithWebIdentity call. Only tokens with RSA + // application makes an AssumeRoleWithWebIdentity call. Timestamps in the token + // must be formatted as either an integer or a long integer. Only tokens with RSA // algorithms (RS256) are supported. // // This member is required. @@ -232,6 +241,8 @@ type AssumeRoleWithWebIdentityInput struct { // \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage // return (\u000D) characters. // + // For more information about role session permissions, see [Session policies]. + // // An Amazon Web Services conversion compresses the passed inline session policy, // managed policy ARNs, and session tags into a packed binary format that has a // separate limit. Your request can fail for this limit even if your plaintext @@ -240,6 +251,7 @@ type AssumeRoleWithWebIdentityInput struct { // size limit. // // [Session Policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session + // [Session policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session Policy *string // The Amazon Resource Names (ARNs) of the IAM managed policies that you want to @@ -337,7 +349,7 @@ type AssumeRoleWithWebIdentityOutput struct { // of upper- and lower-case alphanumeric characters with no spaces. You can also // include underscores or any of the following characters: =,.@- // - // [chained role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts#iam-term-role-chaining + // [chained role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html#id_roles_terms-and-concepts // [Monitor and control actions taken with assumed roles]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html // [Using Tokens with User Pools]: https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html SourceIdentity *string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoot.go new file mode 100644 index 0000000000..537ab87527 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoot.go @@ -0,0 +1,221 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sts + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/sts/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a set of short term credentials you can use to perform privileged tasks +// in a member account. +// +// Before you can launch a privileged session, you must have enabled centralized +// root access in your organization. For steps to enable this feature, see [Centralize root access for member accounts]in the +// IAM User Guide. +// +// The global endpoint is not supported for AssumeRoot. You must send this request +// to a Regional STS endpoint. For more information, see [Endpoints]. +// +// You can track AssumeRoot in CloudTrail logs to determine what actions were +// performed in a session. For more information, see [Track privileged tasks in CloudTrail]in the IAM User Guide. +// +// [Endpoints]: https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html#sts-endpoints +// [Track privileged tasks in CloudTrail]: https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-track-privileged-tasks.html +// [Centralize root access for member accounts]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-enable-root-access.html +func (c *Client) AssumeRoot(ctx context.Context, params *AssumeRootInput, optFns ...func(*Options)) (*AssumeRootOutput, error) { + if params == nil { + params = &AssumeRootInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssumeRoot", params, optFns, c.addOperationAssumeRootMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssumeRootOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssumeRootInput struct { + + // The member account principal ARN or account ID. + // + // This member is required. + TargetPrincipal *string + + // The identity based policy that scopes the session to the privileged tasks that + // can be performed. You can use one of following Amazon Web Services managed + // policies to scope root session actions. You can add additional customer managed + // policies to further limit the permissions for the root session. + // + // [IAMAuditRootUserCredentials] + // + // [IAMCreateRootUserPassword] + // + // [IAMDeleteRootUserCredentials] + // + // [S3UnlockBucketPolicy] + // + // [SQSUnlockQueuePolicy] + // + // [IAMDeleteRootUserCredentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-IAMDeleteRootUserCredentials + // [IAMCreateRootUserPassword]: https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-IAMCreateRootUserPassword + // [IAMAuditRootUserCredentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-IAMAuditRootUserCredentials + // [S3UnlockBucketPolicy]: https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-S3UnlockBucketPolicy + // [SQSUnlockQueuePolicy]: https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-SQSUnlockQueuePolicy + // + // This member is required. + TaskPolicyArn *types.PolicyDescriptorType + + // The duration, in seconds, of the privileged session. The value can range from 0 + // seconds up to the maximum session duration of 900 seconds (15 minutes). If you + // specify a value higher than this setting, the operation fails. + // + // By default, the value is set to 900 seconds. + DurationSeconds *int32 + + noSmithyDocumentSerde +} + +type AssumeRootOutput struct { + + // The temporary security credentials, which include an access key ID, a secret + // access key, and a security token. + // + // The size of the security token that STS API operations return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. + Credentials *types.Credentials + + // The source identity specified by the principal that is calling the AssumeRoot + // operation. + // + // You can use the aws:SourceIdentity condition key to control access based on the + // value of source identity. For more information about using source identity, see [Monitor and control actions taken with assumed roles] + // in the IAM User Guide. + // + // The regex used to validate this parameter is a string of characters consisting + // of upper- and lower-case alphanumeric characters with no spaces. You can also + // include underscores or any of the following characters: =,.@- + // + // [Monitor and control actions taken with assumed roles]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html + SourceIdentity *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssumeRootMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpAssumeRoot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpAssumeRoot{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "AssumeRoot"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpAssumeRootValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssumeRoot(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opAssumeRoot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "AssumeRoot", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetFederationToken.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetFederationToken.go index 96f59ec63d..e2ecc792ac 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetFederationToken.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetFederationToken.go @@ -20,7 +20,7 @@ import ( // credentials of an IAM user. As a result, this call is appropriate in contexts // where those credentials can be safeguarded, usually in a server-based // application. For a comparison of GetFederationToken with the other API -// operations that produce temporary credentials, see [Requesting Temporary Security Credentials]and [Comparing the Amazon Web Services STS API operations] in the IAM User Guide. +// operations that produce temporary credentials, see [Requesting Temporary Security Credentials]and [Compare STS credentials] in the IAM User Guide. // // Although it is possible to call GetFederationToken using the security // credentials of an Amazon Web Services account root user rather than an IAM user @@ -104,9 +104,9 @@ import ( // [Session Policies]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session // [Passing Session Tags in STS]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html // [GetFederationToken—Federation Through a Custom Identity Broker]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken -// [Comparing the Amazon Web Services STS API operations]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison // [Safeguard your root user credentials and don't use them for everyday tasks]: https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#lock-away-credentials // [Requesting Temporary Security Credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html +// [Compare STS credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_sts-comparison.html // [Tutorial: Using Tags for Attribute-Based Access Control]: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html func (c *Client) GetFederationToken(ctx context.Context, params *GetFederationTokenInput, optFns ...func(*Options)) (*GetFederationTokenOutput, error) { if params == nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetSessionToken.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetSessionToken.go index 0ed9ecbc74..fdc451117b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetSessionToken.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetSessionToken.go @@ -22,7 +22,7 @@ import ( // the call returns, IAM users can then make programmatic calls to API operations // that require MFA authentication. An incorrect MFA code causes the API to return // an access denied error. For a comparison of GetSessionToken with the other API -// operations that produce temporary credentials, see [Requesting Temporary Security Credentials]and [Comparing the Amazon Web Services STS API operations] in the IAM User Guide. +// operations that produce temporary credentials, see [Requesting Temporary Security Credentials]and [Compare STS credentials] in the IAM User Guide. // // No permissions are required for users to perform this operation. The purpose of // the sts:GetSessionToken operation is to authenticate the user using MFA. You @@ -63,10 +63,10 @@ import ( // credentials, see [Temporary Credentials for Users in Untrusted Environments]in the IAM User Guide. // // [Permissions for GetSessionToken]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getsessiontoken.html -// [Comparing the Amazon Web Services STS API operations]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison // [Temporary Credentials for Users in Untrusted Environments]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken // [Safeguard your root user credentials and don't use them for everyday tasks]: https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#lock-away-credentials // [Requesting Temporary Security Credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html +// [Compare STS credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_sts-comparison.html func (c *Client) GetSessionToken(ctx context.Context, params *GetSessionTokenInput, optFns ...func(*Options)) (*GetSessionTokenOutput, error) { if params == nil { params = &GetSessionTokenInput{} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/deserializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/deserializers.go index cf0cc54e2a..59349890f6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/deserializers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/deserializers.go @@ -410,6 +410,121 @@ func awsAwsquery_deserializeOpErrorAssumeRoleWithWebIdentity(response *smithyhtt } } +type awsAwsquery_deserializeOpAssumeRoot struct { +} + +func (*awsAwsquery_deserializeOpAssumeRoot) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpAssumeRoot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorAssumeRoot(response, &metadata) + } + output := &AssumeRootOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("AssumeRootResult") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentAssumeRootOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorAssumeRoot(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("ExpiredTokenException", errorCode): + return awsAwsquery_deserializeErrorExpiredTokenException(response, errorBody) + + case strings.EqualFold("RegionDisabledException", errorCode): + return awsAwsquery_deserializeErrorRegionDisabledException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsquery_deserializeOpDecodeAuthorizationMessage struct { } @@ -2268,6 +2383,61 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithWebIdentityOutput(v **Assume return nil } +func awsAwsquery_deserializeOpDocumentAssumeRootOutput(v **AssumeRootOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *AssumeRootOutput + if *v == nil { + sv = &AssumeRootOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Credentials", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCredentials(&sv.Credentials, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("SourceIdentity", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SourceIdentity = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeOpDocumentDecodeAuthorizationMessageOutput(v **DecodeAuthorizationMessageOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/generated.json b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/generated.json index 6b6e839e6c..70a88452ee 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/generated.json +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/generated.json @@ -13,6 +13,7 @@ "api_op_AssumeRole.go", "api_op_AssumeRoleWithSAML.go", "api_op_AssumeRoleWithWebIdentity.go", + "api_op_AssumeRoot.go", "api_op_DecodeAuthorizationMessage.go", "api_op_GetAccessKeyInfo.go", "api_op_GetCallerIdentity.go", diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go index a7c0c28254..e1c926c8df 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go @@ -3,4 +3,4 @@ package sts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.4" +const goModuleVersion = "1.33.0" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/serializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/serializers.go index 1bcbc82842..96b222136b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/serializers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/serializers.go @@ -226,6 +226,76 @@ func (m *awsAwsquery_serializeOpAssumeRoleWithWebIdentity) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpAssumeRoot struct { +} + +func (*awsAwsquery_serializeOpAssumeRoot) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpAssumeRoot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*AssumeRootInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("AssumeRoot") + body.Key("Version").String("2011-06-15") + + if err := awsAwsquery_serializeOpDocumentAssumeRootInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpDecodeAuthorizationMessage struct { } @@ -821,6 +891,30 @@ func awsAwsquery_serializeOpDocumentAssumeRoleWithWebIdentityInput(v *AssumeRole return nil } +func awsAwsquery_serializeOpDocumentAssumeRootInput(v *AssumeRootInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DurationSeconds != nil { + objectKey := object.Key("DurationSeconds") + objectKey.Integer(*v.DurationSeconds) + } + + if v.TargetPrincipal != nil { + objectKey := object.Key("TargetPrincipal") + objectKey.String(*v.TargetPrincipal) + } + + if v.TaskPolicyArn != nil { + objectKey := object.Key("TaskPolicyArn") + if err := awsAwsquery_serializeDocumentPolicyDescriptorType(v.TaskPolicyArn, objectKey); err != nil { + return err + } + } + + return nil +} + func awsAwsquery_serializeOpDocumentDecodeAuthorizationMessageInput(v *DecodeAuthorizationMessageInput, value query.Value) error { object := value.Object() _ = object diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/errors.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/errors.go index 9573a4b646..041629bba2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/errors.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/errors.go @@ -95,8 +95,8 @@ func (e *IDPRejectedClaimException) ErrorCode() string { func (e *IDPRejectedClaimException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The error returned if the message passed to DecodeAuthorizationMessage was -// invalid. This can happen if the token contains invalid characters, such as -// linebreaks. +// invalid. This can happen if the token contains invalid characters, such as line +// breaks, or if the message has expired. type InvalidAuthorizationMessageException struct { Message *string @@ -218,10 +218,10 @@ func (e *PackedPolicyTooLargeException) ErrorFault() smithy.ErrorFault { return // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM -// console to activate STS in that region. For more information, see [Activating and Deactivating Amazon Web Services STS in an Amazon Web Services Region]in the IAM +// console to activate STS in that region. For more information, see [Activating and Deactivating STS in an Amazon Web Services Region]in the IAM // User Guide. // -// [Activating and Deactivating Amazon Web Services STS in an Amazon Web Services Region]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html +// [Activating and Deactivating STS in an Amazon Web Services Region]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html type RegionDisabledException struct { Message *string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/validators.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/validators.go index 3e4bad2a92..1026e22118 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/validators.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/validators.go @@ -70,6 +70,26 @@ func (m *validateOpAssumeRoleWithWebIdentity) HandleInitialize(ctx context.Conte return next.HandleInitialize(ctx, in) } +type validateOpAssumeRoot struct { +} + +func (*validateOpAssumeRoot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssumeRoot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssumeRootInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssumeRootInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDecodeAuthorizationMessage struct { } @@ -142,6 +162,10 @@ func addOpAssumeRoleWithWebIdentityValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpAssumeRoleWithWebIdentity{}, middleware.After) } +func addOpAssumeRootValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssumeRoot{}, middleware.After) +} + func addOpDecodeAuthorizationMessageValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDecodeAuthorizationMessage{}, middleware.After) } @@ -254,6 +278,24 @@ func validateOpAssumeRoleWithWebIdentityInput(v *AssumeRoleWithWebIdentityInput) } } +func validateOpAssumeRootInput(v *AssumeRootInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssumeRootInput"} + if v.TargetPrincipal == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetPrincipal")) + } + if v.TaskPolicyArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TaskPolicyArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDecodeAuthorizationMessageInput(v *DecodeAuthorizationMessageInput) error { if v == nil { return nil diff --git a/vendor/github.com/aws/smithy-go/CHANGELOG.md b/vendor/github.com/aws/smithy-go/CHANGELOG.md index c63f18f506..56b19e3a1c 100644 --- a/vendor/github.com/aws/smithy-go/CHANGELOG.md +++ b/vendor/github.com/aws/smithy-go/CHANGELOG.md @@ -1,3 +1,12 @@ +# Release (2024-11-15) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/smithy-go`: v1.22.1 + * **Bug Fix**: Fix failure to replace URI path segments when their names overlap. + # Release (2024-10-03) ## General Highlights diff --git a/vendor/github.com/aws/smithy-go/encoding/httpbinding/path_replace.go b/vendor/github.com/aws/smithy-go/encoding/httpbinding/path_replace.go index e78926c9a5..9ae308540c 100644 --- a/vendor/github.com/aws/smithy-go/encoding/httpbinding/path_replace.go +++ b/vendor/github.com/aws/smithy-go/encoding/httpbinding/path_replace.go @@ -22,33 +22,33 @@ func bufCap(b []byte, n int) []byte { // replacePathElement replaces a single element in the path []byte. // Escape is used to control whether the value will be escaped using Amazon path escape style. func replacePathElement(path, fieldBuf []byte, key, val string, escape bool) ([]byte, []byte, error) { - fieldBuf = bufCap(fieldBuf, len(key)+3) // { [+] } + // search for "{}". If not found, search for the greedy version "{+}". If none are found, return error + fieldBuf = bufCap(fieldBuf, len(key)+2) // { } fieldBuf = append(fieldBuf, uriTokenStart) fieldBuf = append(fieldBuf, key...) + fieldBuf = append(fieldBuf, uriTokenStop) start := bytes.Index(path, fieldBuf) - end := start + len(fieldBuf) - if start < 0 || len(path[end:]) == 0 { - // TODO what to do about error? - return path, fieldBuf, fmt.Errorf("invalid path index, start=%d,end=%d. %s", start, end, path) - } - encodeSep := true - if path[end] == uriTokenSkip { - // '+' token means do not escape slashes + if start < 0 { + fieldBuf = bufCap(fieldBuf, len(key)+3) // { [+] } + fieldBuf = append(fieldBuf, uriTokenStart) + fieldBuf = append(fieldBuf, key...) + fieldBuf = append(fieldBuf, uriTokenSkip) + fieldBuf = append(fieldBuf, uriTokenStop) + + start = bytes.Index(path, fieldBuf) + if start < 0 { + return path, fieldBuf, fmt.Errorf("invalid path index, start=%d. %s", start, path) + } encodeSep = false - end++ } + end := start + len(fieldBuf) if escape { val = EscapePath(val, encodeSep) } - if path[end] != uriTokenStop { - return path, fieldBuf, fmt.Errorf("invalid path element, does not contain token stop, %s", path) - } - end++ - fieldBuf = bufCap(fieldBuf, len(val)) fieldBuf = append(fieldBuf, val...) diff --git a/vendor/github.com/aws/smithy-go/go_module_metadata.go b/vendor/github.com/aws/smithy-go/go_module_metadata.go index d7a7627bdc..212eae4fab 100644 --- a/vendor/github.com/aws/smithy-go/go_module_metadata.go +++ b/vendor/github.com/aws/smithy-go/go_module_metadata.go @@ -3,4 +3,4 @@ package smithy // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.1" diff --git a/vendor/github.com/eclipse/paho.golang/autopaho/auto.go b/vendor/github.com/eclipse/paho.golang/autopaho/auto.go index 7e574463d8..c899e658ef 100644 --- a/vendor/github.com/eclipse/paho.golang/autopaho/auto.go +++ b/vendor/github.com/eclipse/paho.golang/autopaho/auto.go @@ -70,9 +70,11 @@ type ClientConfig struct { CleanStartOnInitialConnection bool // Clean Start flag, if true, existing session information will be cleared on the first connection (it will be false for subsequent connections) SessionExpiryInterval uint32 // Session Expiry Interval in seconds (if 0 the Session ends when the Network Connection is closed) - ConnectRetryDelay time.Duration // How long to wait between connection attempts (defaults to 10s) - ConnectTimeout time.Duration // How long to wait for the connection process to complete (defaults to 10s) - WebSocketCfg *WebSocketConfig // Enables customisation of the websocket connection + // Deprecated: ConnectRetryDelay is deprecated and its functionality is replaced by ReconnectBackoff. + ConnectRetryDelay time.Duration // How long to wait between connection attempts (defaults to 10s) + ReconnectBackoff func(int) time.Duration // How long to wait after failed connection attempt N (defaults to 10s) + ConnectTimeout time.Duration // How long to wait for the connection process to complete (defaults to 10s) + WebSocketCfg *WebSocketConfig // Enables customisation of the websocket connection Queue queue.Queue // Used to queue up publish messages (if nil an error will be returned if publish could not be transmitted) @@ -99,7 +101,7 @@ type ClientConfig struct { WillMessage *paho.WillMessage WillProperties *paho.WillProperties - ConnectPacketBuilder func(*paho.Connect, *url.URL) *paho.Connect // called prior to connection allowing customisation of the CONNECT packet + ConnectPacketBuilder func(*paho.Connect, *url.URL) (*paho.Connect, error) // called prior to connection allowing customisation of the CONNECT packet // DisconnectPacketBuilder - called prior to disconnection allowing customisation of the DISCONNECT // packet. If the function returns nil, then no DISCONNECT packet will be passed; if nil a default packet is sent. @@ -177,8 +179,8 @@ func (cfg *ClientConfig) SetWillMessage(topic string, payload []byte, qos byte, // // Deprecated: Set ConnectPacketBuilder directly instead. This function exists for // backwards compatibility only (and may be removed in the future). -func (cfg *ClientConfig) SetConnectPacketConfigurator(fn func(*paho.Connect) *paho.Connect) bool { - cfg.ConnectPacketBuilder = func(pc *paho.Connect, u *url.URL) *paho.Connect { +func (cfg *ClientConfig) SetConnectPacketConfigurator(fn func(*paho.Connect) (*paho.Connect, error)) bool { + cfg.ConnectPacketBuilder = func(pc *paho.Connect, u *url.URL) (*paho.Connect, error) { return fn(pc) } return fn != nil @@ -196,7 +198,7 @@ func (cfg *ClientConfig) SetDisConnectPacketConfigurator(fn func() *paho.Disconn // buildConnectPacket constructs a Connect packet for the paho client, based on staged configuration. // If the program uses SetConnectPacketConfigurator, the provided callback will be executed with the preliminary Connect packet representation. -func (cfg *ClientConfig) buildConnectPacket(firstConnection bool, serverURL *url.URL) *paho.Connect { +func (cfg *ClientConfig) buildConnectPacket(firstConnection bool, serverURL *url.URL) (*paho.Connect, error) { cp := &paho.Connect{ KeepAlive: cfg.KeepAlive, @@ -228,10 +230,14 @@ func (cfg *ClientConfig) buildConnectPacket(firstConnection bool, serverURL *url } if cfg.ConnectPacketBuilder != nil { - cp = cfg.ConnectPacketBuilder(cp, serverURL) + var err error + cp, err = cfg.ConnectPacketBuilder(cp, serverURL) + if err != nil { + return nil, err + } } - return cp + return cp, nil } // NewConnection creates a connection manager and begins the connection process (will retry until the context is cancelled) @@ -242,8 +248,15 @@ func NewConnection(ctx context.Context, cfg ClientConfig) (*ConnectionManager, e if cfg.Errors == nil { cfg.Errors = log.NOOPLogger{} } - if cfg.ConnectRetryDelay == 0 { - cfg.ConnectRetryDelay = 10 * time.Second + if cfg.ReconnectBackoff == nil { + // for backwards compatibility we check for ConnectRetryDelay first + // before using the default constant backoff strategy (which behaves + // identically to the previous behaviour) + if cfg.ConnectRetryDelay == 0 { + cfg.ReconnectBackoff = NewConstantBackoff(10 * time.Second) + } else { + cfg.ReconnectBackoff = NewConstantBackoff(cfg.ConnectRetryDelay) + } } if cfg.ConnectTimeout == 0 { cfg.ConnectTimeout = 10 * time.Second diff --git a/vendor/github.com/eclipse/paho.golang/autopaho/backoff.go b/vendor/github.com/eclipse/paho.golang/autopaho/backoff.go new file mode 100644 index 0000000000..d9bf9b19ee --- /dev/null +++ b/vendor/github.com/eclipse/paho.golang/autopaho/backoff.go @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v2.0 + * and Eclipse Distribution License v1.0 which accompany this distribution. + * + * The Eclipse Public License is available at + * https://www.eclipse.org/legal/epl-2.0/ + * and the Eclipse Distribution License is available at + * http://www.eclipse.org/org/documents/edl-v10.php. + * + * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause + */ + +package autopaho + +import ( + "math/rand" + "time" +) + +// Backoff function to compute backoff duration for the Nth attempt +// attempt starts at "0" indicating the delay BEFORE the first attempt +type Backoff func(attempt int) time.Duration + +//////////////////////////////////////////////////////////////////////////////// +// implementation for constant backoff +//////////////////////////////////////////////////////////////////////////////// + +// Creates a new backoff with constant delay (for attempt > 0, otherwise the backoff is 0). +func NewConstantBackoff(delay time.Duration) Backoff { + return func(attempt int) time.Duration { + if attempt <= 0 { + return 0 + } + return delay + } +} + +//////////////////////////////////////////////////////////////////////////////// +// implementation for an exponential backoff +//////////////////////////////////////////////////////////////////////////////// + +// NewExponentialBackoff provides a random duration within a range starting +// from a fixed min value up to a "moving" max value that increases +// exponentially for each attempt up to the specified max value. +// +// The "moving" max is computed by multiplying the initial max value with the +// factor for each attemt up the specified max value. +// +// Configuration parameters: +// - minDelay - lower bound for computed backoff +// - maxDelay - upper bound for computed backoff +// - initialMaxDelay - initial max value which wiil incerease exponentially up to the max delay +// - factor - factor for the exponential increase of initial max delay +func NewExponentialBackoff( + minDelay time.Duration, // lower bound for computed backoff + maxDelay time.Duration, // upper bound for computed backoff + initialMaxDelay time.Duration, // initial max value which wiil incerease exponentially up to the max delay + factor float32, // factor for the exponential increase of initial max delay +) Backoff { + if minDelay <= 0 { + panic("min delay must NOT be less than or equal to: 0") + } + if maxDelay <= minDelay { + panic("max delay must NOT be less than or equal to: min delay") + } + if initialMaxDelay < minDelay || maxDelay < initialMaxDelay { + panic("initial max delay must be in range of: (min, max) delay") + } + if factor <= 1 { + panic("factor must NOT be less than or equal to: 1") + } + + // for simplicity using numbers instead of duration internally + minDelayMillis := minDelay.Milliseconds() + maxDelayMillis := maxDelay.Milliseconds() + initialMaxDelayMillis := initialMaxDelay.Milliseconds() + + // computes the "moving" max value based on the given attempt by multiplying + // it with the factor and ensures it does not exceed the specified max value + computeMaxDelayForAttempt := func(attempt int) int64 { + + // only "moving part", + // will be multiplied by "factor" up to the max value for each attempt + movingMaxMillis := initialMaxDelayMillis + + // computaion is based on 1 as 0 is the backoff for the first attempt + for i := 1; i < attempt; i++ { + movingMaxMillis = int64(float32(movingMaxMillis) * factor) + // ensure we stay in range + // check for range overflow / numerical overflow + if maxDelayMillis < movingMaxMillis || movingMaxMillis < minDelayMillis { + movingMaxMillis = maxDelayMillis + // stop as we reached max value already + break + } + } + + return movingMaxMillis + } + + return func(attempt int) time.Duration { + if attempt <= 0 { + return 0 + } + + maxDelayForAttemptMillis := computeMaxDelayForAttempt(attempt) + randomMillisInRange := randRange(minDelayMillis, maxDelayForAttemptMillis) + + return time.Duration(randomMillisInRange) * time.Millisecond + } +} + +// DefaultExponentialBackoff returns an exponential backoff with default values. +// +// The default values are: +// - min delay: 5 seconds +// - max delay: 10 minutes +// - initial max delay: 10 seconds +// - factor: 1.5 +func DefaultExponentialBackoff() Backoff { + return NewExponentialBackoff( + 05*time.Second, // minDelay + 10*time.Minute, // maxDelay + 10*time.Second, // initialMaxDelay + 1.5, // factor + ) +} + +//////////////////////////////////////////////////////////////////////////////// +// util functions +//////////////////////////////////////////////////////////////////////////////// + +// Returns a random number in the range of [start, end] (inclusive) +func randRange(start int64, end int64) int64 { + normalizedRange := end - start + 1 + + return rand.Int63n(normalizedRange) + start +} diff --git a/vendor/github.com/eclipse/paho.golang/autopaho/net.go b/vendor/github.com/eclipse/paho.golang/autopaho/net.go index 149241a4ad..1c9e8b595e 100644 --- a/vendor/github.com/eclipse/paho.golang/autopaho/net.go +++ b/vendor/github.com/eclipse/paho.golang/autopaho/net.go @@ -42,52 +42,61 @@ import ( // context is cancelled (in which case nil will be returned). func establishServerConnection(ctx context.Context, cfg ClientConfig, firstConnection bool) (*paho.Client, *paho.Connack) { // Note: We do not touch b.cli in order to avoid adding thread safety issues. - var err error + var attempt int = 0 for { + // Delay before attempting connection + select { + case <-time.After(cfg.ReconnectBackoff(attempt)): + case <-ctx.Done(): + return nil, nil + } for _, u := range cfg.ServerUrls { - connectionCtx, cancelConnCtx := context.WithTimeout(ctx, cfg.ConnectTimeout) - - if cfg.AttemptConnection != nil { // Use custom function if it is provided - cfg.Conn, err = cfg.AttemptConnection(ctx, cfg, u) - } else { - switch strings.ToLower(u.Scheme) { - case "mqtt", "tcp", "": - cfg.Conn, err = attemptTCPConnection(connectionCtx, u.Host) - case "ssl", "tls", "mqtts", "mqtt+ssl", "tcps": - cfg.Conn, err = attemptTLSConnection(connectionCtx, cfg.TlsCfg, u.Host) - case "ws": - cfg.Conn, err = attemptWebsocketConnection(connectionCtx, nil, cfg.WebSocketCfg, u) - case "wss": - cfg.Conn, err = attemptWebsocketConnection(connectionCtx, cfg.TlsCfg, cfg.WebSocketCfg, u) - default: - if cfg.OnConnectError != nil { - cfg.OnConnectError(fmt.Errorf("unsupported scheme (%s) user in url %s", u.Scheme, u.String())) - } - cancelConnCtx() - continue - } - } - var connack *paho.Connack + + cp, err := cfg.buildConnectPacket(firstConnection, u) if err == nil { - cli := paho.NewClient(cfg.ClientConfig) - if cfg.PahoDebug != nil { - cli.SetDebugLogger(cfg.PahoDebug) + connectionCtx, cancelConnCtx := context.WithTimeout(ctx, cfg.ConnectTimeout) + + if cfg.AttemptConnection != nil { // Use custom function if it is provided + cfg.Conn, err = cfg.AttemptConnection(ctx, cfg, u) + } else { + switch strings.ToLower(u.Scheme) { + case "mqtt", "tcp", "": + cfg.Conn, err = attemptTCPConnection(connectionCtx, u.Host) + case "ssl", "tls", "mqtts", "mqtt+ssl", "tcps": + cfg.Conn, err = attemptTLSConnection(connectionCtx, cfg.TlsCfg, u.Host) + case "ws": + cfg.Conn, err = attemptWebsocketConnection(connectionCtx, nil, cfg.WebSocketCfg, u) + case "wss": + cfg.Conn, err = attemptWebsocketConnection(connectionCtx, cfg.TlsCfg, cfg.WebSocketCfg, u) + default: + if cfg.OnConnectError != nil { + cfg.OnConnectError(fmt.Errorf("unsupported scheme (%s) user in url %s", u.Scheme, u.String())) + } + cancelConnCtx() + continue + } } - if cfg.PahoErrors != nil { - cli.SetErrorLogger(cfg.PahoErrors) - } + if err == nil { + cli := paho.NewClient(cfg.ClientConfig) + if cfg.PahoDebug != nil { + cli.SetDebugLogger(cfg.PahoDebug) + } - cp := cfg.buildConnectPacket(firstConnection, u) - connack, err = cli.Connect(connectionCtx, cp) // will return an error if the connection is unsuccessful (checks the reason code) - if err == nil { // Successfully connected - cancelConnCtx() - return cli, connack + if cfg.PahoErrors != nil { + cli.SetErrorLogger(cfg.PahoErrors) + } + + connack, err = cli.Connect(connectionCtx, cp) // will return an error if the connection is unsuccessful (checks the reason code) + if err == nil { // Successfully connected + cancelConnCtx() + return cli, connack + } } + cancelConnCtx() } - cancelConnCtx() // Possible failure was due to outer context being cancelled if ctx.Err() != nil { @@ -104,12 +113,7 @@ func establishServerConnection(ctx context.Context, cfg ClientConfig, firstConne } } - // Delay before attempting another connection - select { - case <-time.After(cfg.ConnectRetryDelay): - case <-ctx.Done(): - return nil, nil - } + attempt++ } } @@ -120,8 +124,9 @@ func attemptTCPConnection(ctx context.Context, address string) (net.Conn, error) var d net.Dialer return d.DialContext(ctx, "tcp", address) } - proxyDialer := proxy.FromEnvironment() - return proxyDialer.Dial("tcp", address) + // Note: if custom dialer does not implement proxy.ContextDialer, a new goroutine is blocked ("leaked") + //until the provided implementation of Dial() times out + return proxy.Dial(ctx, "tcp", address) } // attemptTLSConnection - makes a single attempt at establishing a TLS connection with the server @@ -135,8 +140,9 @@ func attemptTLSConnection(ctx context.Context, tlsCfg *tls.Config, address strin return packets.NewThreadSafeConn(conn), err } - proxyDialer := proxy.FromEnvironment() - conn, err := proxyDialer.Dial("tcp", address) + // Note: if custom dialer does not implement proxy.ContextDialer, a new goroutine is blocked ("leaked") + //until the provided implementation of Dial() times out + conn, err := proxy.Dial(ctx, "tcp", address) if err != nil { return nil, err } diff --git a/vendor/github.com/eclipse/paho.golang/paho/client.go b/vendor/github.com/eclipse/paho.golang/paho/client.go index 94b89b7b3f..d4bea750d0 100644 --- a/vendor/github.com/eclipse/paho.golang/paho/client.go +++ b/vendor/github.com/eclipse/paho.golang/paho/client.go @@ -815,7 +815,7 @@ func (c *Client) Unsubscribe(ctx context.Context, u *Unsubscribe) (*Unsuback, er // Publish is used to send a publication to the MQTT server. // It is passed a pre-prepared Publish packet and blocks waiting for the appropriate response, or for the timeout to fire. -// Any response message is returned from the function, along with any errors. +// A PublishResponse is returned, which is relevant for QOS1+. For QOS0, a default success response is returned. // Note that a message may still be delivered even if Publish times out (once the message is part of the session state, // it may even be delivered following an application restart). // Warning: Publish may outlive the connection when QOS1+ (managed in `session_state`) @@ -838,7 +838,7 @@ type PublishOptions struct { // PublishWithOptions is used to send a publication to the MQTT server (with options to customise its behaviour) // It is passed a pre-prepared Publish packet and, by default, blocks waiting for the appropriate response, or for the -// timeout to fire. +// timeout to fire. A PublishResponse is returned, which is relevant for QOS1+. For QOS0, a default success response is returned. // Note that a message may still be delivered even if Publish times out (once the message is part of the session state, // it may even be delivered following an application restart). // Warning: Publish may outlive the connection when QOS1+ (managed in `session_state`) @@ -874,7 +874,7 @@ func (c *Client) PublishWithOptions(ctx context.Context, p *Publish, o PublishOp return nil, err } c.config.PingHandler.PacketSent() - return nil, nil + return &PublishResponse{}, nil case 1, 2: return c.publishQoS12(ctx, pb, o) } diff --git a/vendor/github.com/eclipse/paho.golang/paho/pinger.go b/vendor/github.com/eclipse/paho.golang/paho/pinger.go index 09c952c7c6..0eb28ccb22 100644 --- a/vendor/github.com/eclipse/paho.golang/paho/pinger.go +++ b/vendor/github.com/eclipse/paho.golang/paho/pinger.go @@ -87,11 +87,14 @@ func (p *DefaultPinger) Run(ctx context.Context, conn net.Conn, keepAlive uint16 interval := time.Duration(keepAlive) * time.Second timer := time.NewTimer(0) // Immediately send first pingreq + // If timer is not stopped, it cannot be garbage collected until it fires. + defer timer.Stop() var lastPingSent time.Time + // errCh should be buffered, so that the goroutine sending the error does not block if the context is cancelled + errCh := make(chan error, 1) for { select { case <-ctx.Done(): - timer.Stop() // We don't care if the timer has fired return nil case t := <-timer.C: p.mu.Lock() @@ -109,13 +112,20 @@ func (p *DefaultPinger) Run(ctx context.Context, conn net.Conn, keepAlive uint16 timer.Reset(pingDue.Sub(t)) continue } - - lastPingSent = time.Now() // set before sending because WriteTo may return after PINGRESP is handled - if _, err := packets.NewControlPacket(packets.PINGREQ).WriteTo(conn); err != nil { - p.debug.Printf("DefaultPinger packet write error: %v", err) - return fmt.Errorf("failed to send PINGREQ: %w", err) - } + lastPingSent = time.Now() + go func() { + // WriteTo may not complete within KeepAlive period due to slow/unstable network. + // For instance, if a huge message is sent over a very slow link at the same time as PINGREQ packet, + // the Write operation may block for longer than KeepAlive interval. + // Note: connection closure unblocks the Write operation. So, the goroutine is not leaked. + if _, err := packets.NewControlPacket(packets.PINGREQ).WriteTo(conn); err != nil { + p.debug.Printf("DefaultPinger packet write error: %v", err) + errCh <- fmt.Errorf("failed to send PINGREQ: %w", err) + } + }() timer.Reset(interval) + case err := <-errCh: + return err } } } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/CHANGELOG.md b/vendor/github.com/elastic/go-elasticsearch/v8/CHANGELOG.md index 6659ccf453..4d5074cea0 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/CHANGELOG.md +++ b/vendor/github.com/elastic/go-elasticsearch/v8/CHANGELOG.md @@ -1,3 +1,27 @@ +# 8.16.0 + +# API + +* `InferenceStreamInference` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/stream-inference-api.html) +* `QueryRulesTest` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/test-query-ruleset.html) +* `Ingest.DeleteIPLocationDatabase` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-ip-location-database-api.html) +* `Ingest.GetIPLocationDatabase` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ip-location-database-api.html) +* `Ingest.PutIPLocationDatabase` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-ip-location-database-api.html) + +# Typed API + +Update APIs to latest [elasticsearch-specification 8.16](https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3) + +# 8.15.0 + +# API + +* API is generated from the Elasticsearch 8.15.0 specification. + +# Typed API + +Update APIs to latest [elasticsearch-specification 8.15](https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10) + # 8.14.0 # API diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/Makefile b/vendor/github.com/elastic/go-elasticsearch/v8/Makefile index 77ed6e728c..283682fbcb 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.15.0-SNAPSHOT" +ELASTICSEARCH_DEFAULT_BUILD_VERSION = "8.16.0-SNAPSHOT" ##@ Test test-unit: ## Run unit tests 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 2ecc452aaa..349030a82a 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.15.0 (4a6bcd8): DO NOT EDIT +// Code generated from specification version 8.16.0 (30399bb): DO NOT EDIT package esapi @@ -130,6 +130,7 @@ type API struct { InferenceGet InferenceGet InferenceInference InferenceInference InferencePut InferencePut + InferenceStreamInference InferenceStreamInference Info Info KnnSearch KnnSearch LogstashDeletePipeline LogstashDeletePipeline @@ -153,6 +154,7 @@ type API struct { QueryRulesListRulesets QueryRulesListRulesets QueryRulesPutRule QueryRulesPutRule QueryRulesPutRuleset QueryRulesPutRuleset + QueryRulesTest QueryRulesTest RankEval RankEval Reindex Reindex ReindexRethrottle ReindexRethrottle @@ -335,15 +337,18 @@ type Indices struct { // Ingest contains the Ingest APIs type Ingest struct { - DeleteGeoipDatabase IngestDeleteGeoipDatabase - DeletePipeline IngestDeletePipeline - GeoIPStats IngestGeoIPStats - GetGeoipDatabase IngestGetGeoipDatabase - GetPipeline IngestGetPipeline - ProcessorGrok IngestProcessorGrok - PutGeoipDatabase IngestPutGeoipDatabase - PutPipeline IngestPutPipeline - Simulate IngestSimulate + DeleteGeoipDatabase IngestDeleteGeoipDatabase + DeleteIPLocationDatabase IngestDeleteIPLocationDatabase + DeletePipeline IngestDeletePipeline + GeoIPStats IngestGeoIPStats + GetGeoipDatabase IngestGetGeoipDatabase + GetIPLocationDatabase IngestGetIPLocationDatabase + GetPipeline IngestGetPipeline + ProcessorGrok IngestProcessorGrok + PutGeoipDatabase IngestPutGeoipDatabase + PutIPLocationDatabase IngestPutIPLocationDatabase + PutPipeline IngestPutPipeline + Simulate IngestSimulate } // Nodes contains the Nodes APIs @@ -363,18 +368,19 @@ type Remote struct { // Snapshot contains the Snapshot APIs type Snapshot struct { - CleanupRepository SnapshotCleanupRepository - Clone SnapshotClone - CreateRepository SnapshotCreateRepository - Create SnapshotCreate - DeleteRepository SnapshotDeleteRepository - Delete SnapshotDelete - GetRepository SnapshotGetRepository - Get SnapshotGet - RepositoryAnalyze SnapshotRepositoryAnalyze - Restore SnapshotRestore - Status SnapshotStatus - VerifyRepository SnapshotVerifyRepository + CleanupRepository SnapshotCleanupRepository + Clone SnapshotClone + CreateRepository SnapshotCreateRepository + Create SnapshotCreate + DeleteRepository SnapshotDeleteRepository + Delete SnapshotDelete + GetRepository SnapshotGetRepository + Get SnapshotGet + RepositoryAnalyze SnapshotRepositoryAnalyze + RepositoryVerifyIntegrity SnapshotRepositoryVerifyIntegrity + Restore SnapshotRestore + Status SnapshotStatus + VerifyRepository SnapshotVerifyRepository } // Tasks contains the Tasks APIs @@ -731,6 +737,7 @@ func New(t Transport) *API { InferenceGet: newInferenceGetFunc(t), InferenceInference: newInferenceInferenceFunc(t), InferencePut: newInferencePutFunc(t), + InferenceStreamInference: newInferenceStreamInferenceFunc(t), Info: newInfoFunc(t), KnnSearch: newKnnSearchFunc(t), LogstashDeletePipeline: newLogstashDeletePipelineFunc(t), @@ -754,6 +761,7 @@ func New(t Transport) *API { QueryRulesListRulesets: newQueryRulesListRulesetsFunc(t), QueryRulesPutRule: newQueryRulesPutRuleFunc(t), QueryRulesPutRuleset: newQueryRulesPutRulesetFunc(t), + QueryRulesTest: newQueryRulesTestFunc(t), RankEval: newRankEvalFunc(t), Reindex: newReindexFunc(t), ReindexRethrottle: newReindexRethrottleFunc(t), @@ -927,15 +935,18 @@ func New(t Transport) *API { ValidateQuery: newIndicesValidateQueryFunc(t), }, Ingest: &Ingest{ - DeleteGeoipDatabase: newIngestDeleteGeoipDatabaseFunc(t), - DeletePipeline: newIngestDeletePipelineFunc(t), - GeoIPStats: newIngestGeoIPStatsFunc(t), - GetGeoipDatabase: newIngestGetGeoipDatabaseFunc(t), - GetPipeline: newIngestGetPipelineFunc(t), - ProcessorGrok: newIngestProcessorGrokFunc(t), - PutGeoipDatabase: newIngestPutGeoipDatabaseFunc(t), - PutPipeline: newIngestPutPipelineFunc(t), - Simulate: newIngestSimulateFunc(t), + DeleteGeoipDatabase: newIngestDeleteGeoipDatabaseFunc(t), + DeleteIPLocationDatabase: newIngestDeleteIPLocationDatabaseFunc(t), + DeletePipeline: newIngestDeletePipelineFunc(t), + GeoIPStats: newIngestGeoIPStatsFunc(t), + GetGeoipDatabase: newIngestGetGeoipDatabaseFunc(t), + GetIPLocationDatabase: newIngestGetIPLocationDatabaseFunc(t), + GetPipeline: newIngestGetPipelineFunc(t), + ProcessorGrok: newIngestProcessorGrokFunc(t), + PutGeoipDatabase: newIngestPutGeoipDatabaseFunc(t), + PutIPLocationDatabase: newIngestPutIPLocationDatabaseFunc(t), + PutPipeline: newIngestPutPipelineFunc(t), + Simulate: newIngestSimulateFunc(t), }, Nodes: &Nodes{ ClearRepositoriesMeteringArchive: newNodesClearRepositoriesMeteringArchiveFunc(t), @@ -948,18 +959,19 @@ func New(t Transport) *API { }, Remote: &Remote{}, Snapshot: &Snapshot{ - CleanupRepository: newSnapshotCleanupRepositoryFunc(t), - Clone: newSnapshotCloneFunc(t), - CreateRepository: newSnapshotCreateRepositoryFunc(t), - Create: newSnapshotCreateFunc(t), - DeleteRepository: newSnapshotDeleteRepositoryFunc(t), - Delete: newSnapshotDeleteFunc(t), - GetRepository: newSnapshotGetRepositoryFunc(t), - Get: newSnapshotGetFunc(t), - RepositoryAnalyze: newSnapshotRepositoryAnalyzeFunc(t), - Restore: newSnapshotRestoreFunc(t), - Status: newSnapshotStatusFunc(t), - VerifyRepository: newSnapshotVerifyRepositoryFunc(t), + CleanupRepository: newSnapshotCleanupRepositoryFunc(t), + Clone: newSnapshotCloneFunc(t), + CreateRepository: newSnapshotCreateRepositoryFunc(t), + Create: newSnapshotCreateFunc(t), + DeleteRepository: newSnapshotDeleteRepositoryFunc(t), + Delete: newSnapshotDeleteFunc(t), + GetRepository: newSnapshotGetRepositoryFunc(t), + Get: newSnapshotGetFunc(t), + RepositoryAnalyze: newSnapshotRepositoryAnalyzeFunc(t), + RepositoryVerifyIntegrity: newSnapshotRepositoryVerifyIntegrityFunc(t), + Restore: newSnapshotRestoreFunc(t), + Status: newSnapshotStatusFunc(t), + VerifyRepository: newSnapshotVerifyRepositoryFunc(t), }, Tasks: &Tasks{ Cancel: newTasksCancelFunc(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 a590c8dd06..8389c75ce4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.capabilities.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.capabilities.go index b9436c1dbe..40957be3d1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.capabilities.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.capabilities.go @@ -15,13 +15,14 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi import ( "context" "net/http" + "strconv" "strings" ) @@ -46,12 +47,13 @@ func newCapabilitiesFunc(t Transport) Capabilities { // // This API is experimental. // -// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/capabilities.html. +// See full documentation at https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities. type Capabilities func(o ...func(*CapabilitiesRequest)) (*Response, error) // CapabilitiesRequest configures the Capabilities API request. type CapabilitiesRequest struct { Capabilities string + LocalOnly *bool Method string Parameters string Path string @@ -97,6 +99,10 @@ func (r CapabilitiesRequest) Do(providedCtx context.Context, transport Transport params["capabilities"] = r.Capabilities } + if r.LocalOnly != nil { + params["local_only"] = strconv.FormatBool(*r.LocalOnly) + } + if r.Method != "" { params["method"] = r.Method } @@ -194,6 +200,13 @@ func (f Capabilities) WithCapabilities(v string) func(*CapabilitiesRequest) { } } +// WithLocalOnly - true if only the node being called should be considered. +func (f Capabilities) WithLocalOnly(v bool) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.LocalOnly = &v + } +} + // WithMethod - rest method to check. func (f Capabilities) WithMethod(v string) func(*CapabilitiesRequest) { return func(r *CapabilitiesRequest) { 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 ab02ac1c1b..109a6c7825 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 2302a9b22a..ceb6fa6287 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 48d524f76c..1a7532f282 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b86e5277f8..227420c3f9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ab13fc82ff..c62adb1c1f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e4df856b88..c5e1c5f1bf 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f13d25232d..a03a4f52cc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bdac9493e0..f7081d8c5f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3f088a2e6a..a13b9ab237 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6f09f0d9bf..f017502db2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c16c071115..2b7b0be9a5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 82df780d73..de66e85cf4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a5a9be7c27..14ac83ca9c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1c35c19a8d..1ebc1ffd5f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 84dfe9a20c..7cdeabade6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b5415a1ec3..4139ff08ec 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ed41fff055..403f4b4839 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f21c95774f..74d8ca72f4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e4bd78109d..de5171ff85 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d3711fc6f7..2cff2b8746 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6ad19da78d..af889c1869 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5e77989c0b..9aa6cc8195 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9c5635f2b7..385e0ad03d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 833b79c3ff..704d056a41 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4d7479d2d4..497fa212cd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b00cfa6136..6802b1b1e7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8a7876cfcd..7445496f6c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 fe025bf8e4..728bdacb3f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6ac6406454..2349ec537d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d816f86f56..2b74fc438e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 91aa0e5721..616059e56d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ae27647486..e018d275e6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 91268937f7..977724aca8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a57953330a..0f9b9c74d9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 957beeac6b..2f46cceafd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 05cadf6218..d2487f1af6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f0acf517b3..dd219a7c91 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d9a5c15468..28daf94943 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -53,8 +53,8 @@ type ClusterStats func(o ...func(*ClusterStatsRequest)) (*Response, error) type ClusterStatsRequest struct { NodeID []string - FlatSettings *bool - Timeout time.Duration + IncludeRemotes *bool + Timeout time.Duration Pretty bool Human bool @@ -101,8 +101,8 @@ func (r ClusterStatsRequest) Do(providedCtx context.Context, transport Transport params = make(map[string]string) - if r.FlatSettings != nil { - params["flat_settings"] = strconv.FormatBool(*r.FlatSettings) + if r.IncludeRemotes != nil { + params["include_remotes"] = strconv.FormatBool(*r.IncludeRemotes) } if r.Timeout != 0 { @@ -194,10 +194,10 @@ func (f ClusterStats) WithNodeID(v ...string) func(*ClusterStatsRequest) { } } -// WithFlatSettings - return settings in flat format (default: false). -func (f ClusterStats) WithFlatSettings(v bool) func(*ClusterStatsRequest) { +// WithIncludeRemotes - include remote cluster data into the response (default: false). +func (f ClusterStats) WithIncludeRemotes(v bool) func(*ClusterStatsRequest) { return func(r *ClusterStatsRequest) { - r.FlatSettings = &v + r.IncludeRemotes = &v } } 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 a3ded928e7..32f435fb91 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9e071382f4..a4749cb87e 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,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 7048703e9d..0a2a6081a9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 55ce3ea43f..ce07ab1325 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b9999358a5..d9d61f7999 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9246573a0a..1810ba76d5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1e9e6b5693..c710e831ae 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 index d06aebc357..dd877e4f49 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index 145cdd45fe..a860294d7a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index 6ab485fe48..fe1dc7c16d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index 8660705cbb..563432118a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index d70e4c80f0..78a1ce91a0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index bc55c06a66..e75b083acb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_claim.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_claim.go index 237efc2986..10a0e26422 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_claim.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_claim.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index c089c9a932..c22be45922 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index 750331c6a3..9e71bdc7b5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index 17d179eb15..7db21eef5f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index bd4059285d..508206e768 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index 0ae5b80c7f..97bf8f023d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index 868669f96c..a4e5791280 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 index 733c29fb4c..af425f2c52 100644 --- 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 @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 17eefd3afe..4fe903e2a0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4f872c684b..667e0683f4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 94f8972a62..68ab7432bf 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_features.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_features.go index 48396f41e4..a645dc7741 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_features.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_features.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 27569f07ca..3a96096b80 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 index b642fb1dd9..5bbb9d1126 100644 --- 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 @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 44d5d96fc3..8cf47b74c5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6349b5faed..c540c2b407 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3498f0c2eb..dfbd7aaeaf 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 cff2345341..dbc5da91b4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 cf876de5f5..197ac84c83 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5672072f19..a3ea51318e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1ec5839174..a172bfdbba 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 10c3ce68f5..cbbf22707d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 54dd540494..5205b3b04b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 338dd623d4..2fb1275f44 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3dc6668bb4..8b1bae064f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3adaddf449..2c7daf7395 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9bbdd2c83c..b6d3de072c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e3811877df..da43f04daa 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3b5c3a78ec..d1441e6683 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1e0b000da7..7f22136968 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 405f4cb042..6ce32ba5a7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 56e96cb498..3199ebb08f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 336d45a8bb..a63bffc1e1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e916477d1f..055f83c274 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f665d00255..fcce6e3695 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 128dee6a41..1de29546ac 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 14b74425d2..496249a517 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0c270c1ca2..0ed9da0fb2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 dbbe9a0040..cf9ab110ea 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 aff720ce3b..a848d1ef92 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b77503d4c2..1aefeaef20 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 03e4cc7d9b..b9764f73ed 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a2fd07e431..561ab84669 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 77a14ed95b..abbb0ea08c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c9bfa81e4e..58add2132d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 fadb88d332..6111542e00 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e5d6f8eaa3..36fa4fd7a3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ebf2f5636e..276602a3d4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b6c0833feb..50f7b60517 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 20ecf5a0c2..4297642f49 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 66072ccd13..accf120546 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0b86ecaebd..20c931cbfb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 556d5f0045..2754d3f989 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c971168359..3601cd94cd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7011b8469b..4356d58eb4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d27f1ca7ad..449da765c5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b9d34f743d..c59086b934 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b6b4a4e649..30abf73550 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -46,8 +46,6 @@ func newIndicesDeleteDataLifecycleFunc(t Transport) IndicesDeleteDataLifecycle { // IndicesDeleteDataLifecycle deletes the data stream lifecycle of the selected data streams. // -// This API is experimental. -// // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-delete-lifecycle.html. type IndicesDeleteDataLifecycle func(name []string, o ...func(*IndicesDeleteDataLifecycleRequest)) (*Response, error) 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 329b7702c7..5babf1c954 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8c459302ff..6b7d5b4e70 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d25e02531e..e0a94adfa5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 595fb79408..3db0e6de86 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 78912b44ec..3bd22065ca 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c44c8c29e8..1dafdb9309 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ef9cc60078..211d8b4885 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 52199e6ab9..3dcdf54977 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 39252a3fc3..8a4baba168 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -46,8 +46,6 @@ func newIndicesExplainDataLifecycleFunc(t Transport) IndicesExplainDataLifecycle // IndicesExplainDataLifecycle retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. // -// This API is experimental. -// // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html. type IndicesExplainDataLifecycle func(index string, o ...func(*IndicesExplainDataLifecycleRequest)) (*Response, error) 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 138615c587..7c7083bb82 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4c27e45ab0..133a0dc0ba 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3c2065e12c..667e749707 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 34be93e374..1ac65c0a7a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 aa9e704467..f69d37f75f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 abb3eb8d82..0a26745d33 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -25,6 +25,7 @@ import ( "net/http" "strconv" "strings" + "time" ) func newIndicesGetDataLifecycleFunc(t Transport) IndicesGetDataLifecycle { @@ -46,8 +47,6 @@ func newIndicesGetDataLifecycleFunc(t Transport) IndicesGetDataLifecycle { // IndicesGetDataLifecycle returns the data stream lifecycle of the selected data streams. // -// This API is experimental. -// // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle.html. type IndicesGetDataLifecycle func(name []string, o ...func(*IndicesGetDataLifecycleRequest)) (*Response, error) @@ -57,6 +56,7 @@ type IndicesGetDataLifecycleRequest struct { ExpandWildcards string IncludeDefaults *bool + MasterTimeout time.Duration Pretty bool Human bool @@ -115,6 +115,10 @@ func (r IndicesGetDataLifecycleRequest) Do(providedCtx context.Context, transpor params["include_defaults"] = strconv.FormatBool(*r.IncludeDefaults) } + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -207,6 +211,13 @@ func (f IndicesGetDataLifecycle) WithIncludeDefaults(v bool) func(*IndicesGetDat } } +// WithMasterTimeout - specify timeout for connection to master. +func (f IndicesGetDataLifecycle) WithMasterTimeout(v time.Duration) func(*IndicesGetDataLifecycleRequest) { + return func(r *IndicesGetDataLifecycleRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f IndicesGetDataLifecycle) WithPretty() func(*IndicesGetDataLifecycleRequest) { return func(r *IndicesGetDataLifecycleRequest) { 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 533c7f361b..d67cb2af50 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 423f2e2c5f..7568269bec 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b9b386c5c0..762d143f43 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0d7c5ca1bb..08c36a63cc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8d8fd41522..08772e5bfe 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6a502150f9..e60f2e2cde 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e4e7a08aec..30120936f8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1f72927377..064779b444 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 925a2fb14d..693f71535c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -47,8 +47,6 @@ func newIndicesPutDataLifecycleFunc(t Transport) IndicesPutDataLifecycle { // IndicesPutDataLifecycle updates the data stream lifecycle of the selected data streams. // -// This API is experimental. -// // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-put-lifecycle.html. type IndicesPutDataLifecycle func(name []string, o ...func(*IndicesPutDataLifecycleRequest)) (*Response, error) 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 22de545ae0..ecc4fbf408 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b6d652d5c0..93c88c1571 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c0fed00e3a..be486699ff 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0c8313ebb4..9a074077a5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 090ac2544d..02a157974e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7cb5c3f3e9..611e283f7c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0da1eec04c..582e1275d1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7c0b952a2a..870bfbef81 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "errors" "net/http" + "strconv" "strings" ) @@ -52,7 +53,9 @@ type IndicesResolveIndex func(name []string, o ...func(*IndicesResolveIndexReque type IndicesResolveIndexRequest struct { Name []string - ExpandWildcards string + AllowNoIndices *bool + ExpandWildcards string + IgnoreUnavailable *bool Pretty bool Human bool @@ -103,10 +106,18 @@ func (r IndicesResolveIndexRequest) Do(providedCtx context.Context, transport Tr params = make(map[string]string) + if r.AllowNoIndices != nil { + params["allow_no_indices"] = strconv.FormatBool(*r.AllowNoIndices) + } + if r.ExpandWildcards != "" { params["expand_wildcards"] = r.ExpandWildcards } + if r.IgnoreUnavailable != nil { + params["ignore_unavailable"] = strconv.FormatBool(*r.IgnoreUnavailable) + } + if r.Pretty { params["pretty"] = "true" } @@ -185,6 +196,13 @@ func (f IndicesResolveIndex) WithContext(v context.Context) func(*IndicesResolve } } +// WithAllowNoIndices - whether to ignore if a wildcard indices expression resolves into no concrete indices. (this includes `_all` string or when no indices have been specified). +func (f IndicesResolveIndex) WithAllowNoIndices(v bool) func(*IndicesResolveIndexRequest) { + return func(r *IndicesResolveIndexRequest) { + r.AllowNoIndices = &v + } +} + // WithExpandWildcards - whether wildcard expressions should get expanded to open or closed indices (default: open). func (f IndicesResolveIndex) WithExpandWildcards(v string) func(*IndicesResolveIndexRequest) { return func(r *IndicesResolveIndexRequest) { @@ -192,6 +210,13 @@ func (f IndicesResolveIndex) WithExpandWildcards(v string) func(*IndicesResolveI } } +// WithIgnoreUnavailable - whether specified concrete indices should be ignored when unavailable (missing or closed). +func (f IndicesResolveIndex) WithIgnoreUnavailable(v bool) func(*IndicesResolveIndexRequest) { + return func(r *IndicesResolveIndexRequest) { + r.IgnoreUnavailable = &v + } +} + // WithPretty makes the response body pretty-printed. func (f IndicesResolveIndex) WithPretty() func(*IndicesResolveIndexRequest) { return func(r *IndicesResolveIndexRequest) { 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 5137173249..c75eebe9f3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 c58365e3f9..ecfe009bbe 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3da39039c1..933a70dbbf 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b562872974..cc9d992482 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 27732e6110..b7bf01084a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d5492f7a12..fcb6e977de 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7d319e23b5..27a59c0bf6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6f9d26d28a..e48590147e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d7dd7a8d04..8a62abdf2c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 818fe0896c..2410ac43c3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete.go index 4dea425dba..73828f2513 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get.go index f2b8ff3222..ceb1673d7f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 9196e297e2..311a47ade7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put.go index 3927c12399..7193a51065 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.stream_inference.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.stream_inference.go new file mode 100644 index 0000000000..bcf093c7e0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.stream_inference.go @@ -0,0 +1,259 @@ +// 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.16.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferenceStreamInferenceFunc(t Transport) InferenceStreamInference { + return func(inference_id string, o ...func(*InferenceStreamInferenceRequest)) (*Response, error) { + var r = InferenceStreamInferenceRequest{InferenceID: inference_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 ------------------------------------------------------- + +// InferenceStreamInference perform streaming inference +// +// This API is experimental. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/post-stream-inference-api.html. +type InferenceStreamInference func(inference_id string, o ...func(*InferenceStreamInferenceRequest)) (*Response, error) + +// InferenceStreamInferenceRequest configures the Inference Stream Inference API request. +type InferenceStreamInferenceRequest struct { + Body io.Reader + + InferenceID string + TaskType 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 InferenceStreamInferenceRequest) 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, "inference.stream_inference") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "POST" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.InferenceID) + 1 + len("_stream")) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + if r.TaskType != "" { + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.instrument.(Instrumentation); ok { + 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) + } + path.WriteString("/") + path.WriteString("_stream") + + 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, "inference.stream_inference") + if reader := instrument.RecordRequestBody(ctx, "inference.stream_inference", r.Body); reader != nil { + req.Body = reader + } + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.stream_inference") + } + 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 InferenceStreamInference) WithContext(v context.Context) func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + r.ctx = v + } +} + +// WithBody - The inference payload. +func (f InferenceStreamInference) WithBody(v io.Reader) func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + r.Body = v + } +} + +// WithTaskType - the task type. +func (f InferenceStreamInference) WithTaskType(v string) func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + r.TaskType = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferenceStreamInference) WithPretty() func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferenceStreamInference) WithHuman() func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferenceStreamInference) WithErrorTrace() func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferenceStreamInference) WithFilterPath(v ...string) func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferenceStreamInference) WithHeader(h map[string]string) func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + 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 InferenceStreamInference) WithOpaqueID(s string) func(*InferenceStreamInferenceRequest) { + return func(r *InferenceStreamInferenceRequest) { + 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.info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.info.go index 9c2f237f0c..5ade00d083 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_geoip_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_geoip_database.go index a08834feb9..0cd85dcf6e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_geoip_database.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_geoip_database.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -45,7 +45,7 @@ func newIngestDeleteGeoipDatabaseFunc(t Transport) IngestDeleteGeoipDatabase { // IngestDeleteGeoipDatabase deletes a geoip database configuration // -// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html. +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-geoip-database-api.html. type IngestDeleteGeoipDatabase func(id []string, o ...func(*IngestDeleteGeoipDatabaseRequest)) (*Response, error) // IngestDeleteGeoipDatabaseRequest configures the Ingest Delete Geoip Database API request. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_ip_location_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_ip_location_database.go new file mode 100644 index 0000000000..434d4d66eb --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_ip_location_database.go @@ -0,0 +1,232 @@ +// 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.16.0: DO NOT EDIT + +package esapi + +import ( + "context" + "errors" + "net/http" + "strings" +) + +func newIngestDeleteIPLocationDatabaseFunc(t Transport) IngestDeleteIPLocationDatabase { + return func(id []string, o ...func(*IngestDeleteIPLocationDatabaseRequest)) (*Response, error) { + var r = IngestDeleteIPLocationDatabaseRequest{DocumentID: 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 ------------------------------------------------------- + +// IngestDeleteIPLocationDatabase deletes an ip location database configuration +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-ip-location-database-api.html. +type IngestDeleteIPLocationDatabase func(id []string, o ...func(*IngestDeleteIPLocationDatabaseRequest)) (*Response, error) + +// IngestDeleteIPLocationDatabaseRequest configures the Ingest DeleteIP Location Database API request. +type IngestDeleteIPLocationDatabaseRequest struct { + DocumentID []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 IngestDeleteIPLocationDatabaseRequest) 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, "ingest.delete_ip_location_database") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "DELETE" + + if len(r.DocumentID) == 0 { + return nil, errors.New("id is required and cannot be nil or empty") + } + + path.Grow(7 + 1 + len("_ingest") + 1 + len("ip_location") + 1 + len("database") + 1 + len(strings.Join(r.DocumentID, ","))) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("ip_location") + path.WriteString("/") + path.WriteString("database") + path.WriteString("/") + path.WriteString(strings.Join(r.DocumentID, ",")) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "id", strings.Join(r.DocumentID, ",")) + } + + 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, "ingest.delete_ip_location_database") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "ingest.delete_ip_location_database") + } + 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 IngestDeleteIPLocationDatabase) WithContext(v context.Context) func(*IngestDeleteIPLocationDatabaseRequest) { + return func(r *IngestDeleteIPLocationDatabaseRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f IngestDeleteIPLocationDatabase) WithPretty() func(*IngestDeleteIPLocationDatabaseRequest) { + return func(r *IngestDeleteIPLocationDatabaseRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f IngestDeleteIPLocationDatabase) WithHuman() func(*IngestDeleteIPLocationDatabaseRequest) { + return func(r *IngestDeleteIPLocationDatabaseRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f IngestDeleteIPLocationDatabase) WithErrorTrace() func(*IngestDeleteIPLocationDatabaseRequest) { + return func(r *IngestDeleteIPLocationDatabaseRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f IngestDeleteIPLocationDatabase) WithFilterPath(v ...string) func(*IngestDeleteIPLocationDatabaseRequest) { + return func(r *IngestDeleteIPLocationDatabaseRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f IngestDeleteIPLocationDatabase) WithHeader(h map[string]string) func(*IngestDeleteIPLocationDatabaseRequest) { + return func(r *IngestDeleteIPLocationDatabaseRequest) { + 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 IngestDeleteIPLocationDatabase) WithOpaqueID(s string) func(*IngestDeleteIPLocationDatabaseRequest) { + return func(r *IngestDeleteIPLocationDatabaseRequest) { + 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.ingest.delete_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_pipeline.go index aef07fba41..77dd8c0489 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 71ab02bbd5..9165dec507 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_geoip_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_geoip_database.go index 0711e55b70..a1bc588800 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_geoip_database.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_geoip_database.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -44,7 +44,7 @@ func newIngestGetGeoipDatabaseFunc(t Transport) IngestGetGeoipDatabase { // IngestGetGeoipDatabase returns geoip database configuration. // -// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html. +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/get-geoip-database-api.html. type IngestGetGeoipDatabase func(o ...func(*IngestGetGeoipDatabaseRequest)) (*Response, error) // IngestGetGeoipDatabaseRequest configures the Ingest Get Geoip Database API request. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_ip_location_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_ip_location_database.go new file mode 100644 index 0000000000..fdb37096d4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_ip_location_database.go @@ -0,0 +1,236 @@ +// 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.16.0: DO NOT EDIT + +package esapi + +import ( + "context" + "net/http" + "strings" +) + +func newIngestGetIPLocationDatabaseFunc(t Transport) IngestGetIPLocationDatabase { + return func(o ...func(*IngestGetIPLocationDatabaseRequest)) (*Response, error) { + var r = IngestGetIPLocationDatabaseRequest{} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// IngestGetIPLocationDatabase returns the specified ip location database configuration +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/get-ip-location-database-api.html. +type IngestGetIPLocationDatabase func(o ...func(*IngestGetIPLocationDatabaseRequest)) (*Response, error) + +// IngestGetIPLocationDatabaseRequest configures the Ingest GetIP Location Database API request. +type IngestGetIPLocationDatabaseRequest struct { + DocumentID []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 IngestGetIPLocationDatabaseRequest) 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, "ingest.get_ip_location_database") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "GET" + + path.Grow(7 + 1 + len("_ingest") + 1 + len("ip_location") + 1 + len("database") + 1 + len(strings.Join(r.DocumentID, ","))) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("ip_location") + path.WriteString("/") + path.WriteString("database") + if len(r.DocumentID) > 0 { + path.WriteString("/") + path.WriteString(strings.Join(r.DocumentID, ",")) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "id", strings.Join(r.DocumentID, ",")) + } + } + + 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, "ingest.get_ip_location_database") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "ingest.get_ip_location_database") + } + 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 IngestGetIPLocationDatabase) WithContext(v context.Context) func(*IngestGetIPLocationDatabaseRequest) { + return func(r *IngestGetIPLocationDatabaseRequest) { + r.ctx = v + } +} + +// WithDocumentID - a list of ip location database configurations to get; use `*` to get all ip location database configurations. +func (f IngestGetIPLocationDatabase) WithDocumentID(v ...string) func(*IngestGetIPLocationDatabaseRequest) { + return func(r *IngestGetIPLocationDatabaseRequest) { + r.DocumentID = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f IngestGetIPLocationDatabase) WithPretty() func(*IngestGetIPLocationDatabaseRequest) { + return func(r *IngestGetIPLocationDatabaseRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f IngestGetIPLocationDatabase) WithHuman() func(*IngestGetIPLocationDatabaseRequest) { + return func(r *IngestGetIPLocationDatabaseRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f IngestGetIPLocationDatabase) WithErrorTrace() func(*IngestGetIPLocationDatabaseRequest) { + return func(r *IngestGetIPLocationDatabaseRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f IngestGetIPLocationDatabase) WithFilterPath(v ...string) func(*IngestGetIPLocationDatabaseRequest) { + return func(r *IngestGetIPLocationDatabaseRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f IngestGetIPLocationDatabase) WithHeader(h map[string]string) func(*IngestGetIPLocationDatabaseRequest) { + return func(r *IngestGetIPLocationDatabaseRequest) { + 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 IngestGetIPLocationDatabase) WithOpaqueID(s string) func(*IngestGetIPLocationDatabaseRequest) { + return func(r *IngestGetIPLocationDatabaseRequest) { + 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.ingest.get_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_pipeline.go index 9da536605c..73e9727661 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 16b3779ba1..809fef64c5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_geoip_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_geoip_database.go index a58eec85f0..0c0c5ad4cc 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_geoip_database.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_geoip_database.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -45,7 +45,7 @@ func newIngestPutGeoipDatabaseFunc(t Transport) IngestPutGeoipDatabase { // IngestPutGeoipDatabase puts the configuration for a geoip database to be downloaded // -// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html. +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/put-geoip-database-api.html. type IngestPutGeoipDatabase func(id string, body io.Reader, o ...func(*IngestPutGeoipDatabaseRequest)) (*Response, error) // IngestPutGeoipDatabaseRequest configures the Ingest Put Geoip Database API request. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_ip_location_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_ip_location_database.go new file mode 100644 index 0000000000..0c3fac6fb4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_ip_location_database.go @@ -0,0 +1,237 @@ +// 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.16.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newIngestPutIPLocationDatabaseFunc(t Transport) IngestPutIPLocationDatabase { + return func(id string, body io.Reader, o ...func(*IngestPutIPLocationDatabaseRequest)) (*Response, error) { + var r = IngestPutIPLocationDatabaseRequest{DocumentID: id, 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 ------------------------------------------------------- + +// IngestPutIPLocationDatabase puts the configuration for a ip location database to be downloaded +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/put-ip-location-database-api.html. +type IngestPutIPLocationDatabase func(id string, body io.Reader, o ...func(*IngestPutIPLocationDatabaseRequest)) (*Response, error) + +// IngestPutIPLocationDatabaseRequest configures the Ingest PutIP Location Database API request. +type IngestPutIPLocationDatabaseRequest struct { + DocumentID string + + 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 IngestPutIPLocationDatabaseRequest) 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, "ingest.put_ip_location_database") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_ingest") + 1 + len("ip_location") + 1 + len("database") + 1 + len(r.DocumentID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("ip_location") + path.WriteString("/") + path.WriteString("database") + path.WriteString("/") + path.WriteString(r.DocumentID) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "id", r.DocumentID) + } + + 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, "ingest.put_ip_location_database") + if reader := instrument.RecordRequestBody(ctx, "ingest.put_ip_location_database", r.Body); reader != nil { + req.Body = reader + } + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "ingest.put_ip_location_database") + } + 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 IngestPutIPLocationDatabase) WithContext(v context.Context) func(*IngestPutIPLocationDatabaseRequest) { + return func(r *IngestPutIPLocationDatabaseRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f IngestPutIPLocationDatabase) WithPretty() func(*IngestPutIPLocationDatabaseRequest) { + return func(r *IngestPutIPLocationDatabaseRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f IngestPutIPLocationDatabase) WithHuman() func(*IngestPutIPLocationDatabaseRequest) { + return func(r *IngestPutIPLocationDatabaseRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f IngestPutIPLocationDatabase) WithErrorTrace() func(*IngestPutIPLocationDatabaseRequest) { + return func(r *IngestPutIPLocationDatabaseRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f IngestPutIPLocationDatabase) WithFilterPath(v ...string) func(*IngestPutIPLocationDatabaseRequest) { + return func(r *IngestPutIPLocationDatabaseRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f IngestPutIPLocationDatabase) WithHeader(h map[string]string) func(*IngestPutIPLocationDatabaseRequest) { + return func(r *IngestPutIPLocationDatabaseRequest) { + 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 IngestPutIPLocationDatabase) WithOpaqueID(s string) func(*IngestPutIPLocationDatabaseRequest) { + return func(r *IngestPutIPLocationDatabaseRequest) { + 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.ingest.put_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_pipeline.go index da960fb175..833b2cb50b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e0bb9da3ef..1ca53dc154 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6f9ee2a974..71c2980cb8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6411aa717a..6a6990631a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 782a127fe4..60308eb986 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9fced95d0b..5a5cdb765d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b093ae15cc..9bb3f2eb45 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b2ab32e3ac..f9e4551e7f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bade77c97e..2a6e7dc3d2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 361402b3a7..d2092113df 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 64e4b97267..0bf18f5e02 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 71b51d6e18..591c966cfc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bedccf867e..a256c094a6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9e12fe91ac..0a589f062d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e5d7d3e393..1e4397a5a2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 2b3c884185..9cdafeec3a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e17ec70f47..9441d9b872 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 index 0d90f28eed..3287a1e994 100644 --- 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 @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 9246427c41..bc6ba719af 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_rule.go index bbdb2b017e..ab1dc71fec 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_rule.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_rule.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_ruleset.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_ruleset.go index 64de26e979..45dd5843ee 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_ruleset.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_ruleset.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_rule.go index 1c33d76ef6..fb5518a615 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_rule.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_rule.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_ruleset.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_ruleset.go index 092314442d..8ac5f6b6d2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_ruleset.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_ruleset.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.list_rulesets.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.list_rulesets.go index fe671a8c11..d21e4d6cae 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.list_rulesets.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.list_rulesets.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_rule.go index 36b24e8208..3492271068 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_rule.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_rule.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_ruleset.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_ruleset.go index c33f5b9b85..a171e4cca7 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_ruleset.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_ruleset.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.test.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.test.go new file mode 100644 index 0000000000..573adf9184 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.test.go @@ -0,0 +1,237 @@ +// 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.16.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newQueryRulesTestFunc(t Transport) QueryRulesTest { + return func(body io.Reader, ruleset_id string, o ...func(*QueryRulesTestRequest)) (*Response, error) { + var r = QueryRulesTestRequest{Body: body, RulesetID: ruleset_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 ------------------------------------------------------- + +// QueryRulesTest tests a query ruleset to identify the rules that would match input criteria +// +// This API is experimental. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/test-query-ruleset.html. +type QueryRulesTest func(body io.Reader, ruleset_id string, o ...func(*QueryRulesTestRequest)) (*Response, error) + +// QueryRulesTestRequest configures the Query Rules Test API request. +type QueryRulesTestRequest struct { + Body io.Reader + + RulesetID 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 QueryRulesTestRequest) 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, "query_rules.test") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "POST" + + path.Grow(7 + 1 + len("_query_rules") + 1 + len(r.RulesetID) + 1 + len("_test")) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_query_rules") + path.WriteString("/") + path.WriteString(r.RulesetID) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "ruleset_id", r.RulesetID) + } + path.WriteString("/") + path.WriteString("_test") + + 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, "query_rules.test") + if reader := instrument.RecordRequestBody(ctx, "query_rules.test", r.Body); reader != nil { + req.Body = reader + } + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "query_rules.test") + } + 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 QueryRulesTest) WithContext(v context.Context) func(*QueryRulesTestRequest) { + return func(r *QueryRulesTestRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f QueryRulesTest) WithPretty() func(*QueryRulesTestRequest) { + return func(r *QueryRulesTestRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f QueryRulesTest) WithHuman() func(*QueryRulesTestRequest) { + return func(r *QueryRulesTestRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f QueryRulesTest) WithErrorTrace() func(*QueryRulesTestRequest) { + return func(r *QueryRulesTestRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f QueryRulesTest) WithFilterPath(v ...string) func(*QueryRulesTestRequest) { + return func(r *QueryRulesTestRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f QueryRulesTest) WithHeader(h map[string]string) func(*QueryRulesTestRequest) { + return func(r *QueryRulesTestRequest) { + 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 QueryRulesTest) WithOpaqueID(s string) func(*QueryRulesTestRequest) { + return func(r *QueryRulesTestRequest) { + 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.rank_eval.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.rank_eval.go index 8692870a11..5aef194437 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 cffffdea21..9a8e9d8eb5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 dc05029812..7d36716df0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 68a4c906b9..0d6b0ae027 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 51564d530d..bef9a22ffb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e49674ea4b..52cc8aca0d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0a77bc7bec..3c93cd5e58 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 db519d17a5..a36a2cd170 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 321123a287..61a8c9055b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b0ef8a8202..478c96e5f0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e3e22935ae..da881ea819 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9cb88753d2..8caa449804 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8e64f9db10..1f58229eab 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a65b771723..1f100d03a8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d826175fca..9b7ff92754 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 83eee21117..817eca1b16 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 309ed738f0..4b19fa834c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 475520a77d..055fe7ba9b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 dd2aacf4a6..8e2dd573ff 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "net/http" "strconv" "strings" + "time" ) func newSearchShardsFunc(t Transport) SearchShards { @@ -56,6 +57,7 @@ type SearchShardsRequest struct { ExpandWildcards string IgnoreUnavailable *bool Local *bool + MasterTimeout time.Duration Preference string Routing string @@ -120,6 +122,10 @@ func (r SearchShardsRequest) Do(providedCtx context.Context, transport Transport params["local"] = strconv.FormatBool(*r.Local) } + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Preference != "" { params["preference"] = r.Preference } @@ -241,6 +247,13 @@ func (f SearchShards) WithLocal(v bool) func(*SearchShardsRequest) { } } +// WithMasterTimeout - explicit operation timeout for connection to master node. +func (f SearchShards) WithMasterTimeout(v time.Duration) func(*SearchShardsRequest) { + return func(r *SearchShardsRequest) { + r.MasterTimeout = v + } +} + // WithPreference - specify the node or shard the operation should be performed on (default: random). func (f SearchShards) WithPreference(v string) func(*SearchShardsRequest) { return func(r *SearchShardsRequest) { 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 49996fc2e9..b2beeaa0f1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0b69d626ef..4e7306a09c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bd309083ee..10706afac3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c41da842df..779427b6d6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 87c285998c..47c58fc696 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 82540c4a1a..fe72c15be2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f063d68c0a..8526d2e663 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 79976a0122..4f316f5030 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 af62049817..7506d05f29 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f8f19f3905..0beff6ce2e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 32fee65d76..46e262e8f6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a7a1bd1919..a5a1d42656 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3bb23496ba..f52cf023b9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 00e303db0f..cc958fe3a8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.repository_verify_integrity.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.repository_verify_integrity.go new file mode 100644 index 0000000000..4e2fe352f3 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.repository_verify_integrity.go @@ -0,0 +1,325 @@ +// 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.16.0: DO NOT EDIT + +package esapi + +import ( + "context" + "net/http" + "strconv" + "strings" +) + +func newSnapshotRepositoryVerifyIntegrityFunc(t Transport) SnapshotRepositoryVerifyIntegrity { + return func(repository string, o ...func(*SnapshotRepositoryVerifyIntegrityRequest)) (*Response, error) { + var r = SnapshotRepositoryVerifyIntegrityRequest{Repository: repository} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// SnapshotRepositoryVerifyIntegrity verifies the integrity of the contents of a snapshot repository +// +// This API is experimental. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html. +type SnapshotRepositoryVerifyIntegrity func(repository string, o ...func(*SnapshotRepositoryVerifyIntegrityRequest)) (*Response, error) + +// SnapshotRepositoryVerifyIntegrityRequest configures the Snapshot Repository Verify Integrity API request. +type SnapshotRepositoryVerifyIntegrityRequest struct { + Repository string + + BlobThreadPoolConcurrency *int + IndexSnapshotVerificationConcurrency *int + IndexVerificationConcurrency *int + MaxBytesPerSec string + MaxFailedShardSnapshots *int + MetaThreadPoolConcurrency *int + SnapshotVerificationConcurrency *int + VerifyBlobContents *bool + + 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 SnapshotRepositoryVerifyIntegrityRequest) 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, "snapshot.repository_verify_integrity") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "POST" + + path.Grow(7 + 1 + len("_snapshot") + 1 + len(r.Repository) + 1 + len("_verify_integrity")) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_snapshot") + path.WriteString("/") + path.WriteString(r.Repository) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "repository", r.Repository) + } + path.WriteString("/") + path.WriteString("_verify_integrity") + + params = make(map[string]string) + + if r.BlobThreadPoolConcurrency != nil { + params["blob_thread_pool_concurrency"] = strconv.FormatInt(int64(*r.BlobThreadPoolConcurrency), 10) + } + + if r.IndexSnapshotVerificationConcurrency != nil { + params["index_snapshot_verification_concurrency"] = strconv.FormatInt(int64(*r.IndexSnapshotVerificationConcurrency), 10) + } + + if r.IndexVerificationConcurrency != nil { + params["index_verification_concurrency"] = strconv.FormatInt(int64(*r.IndexVerificationConcurrency), 10) + } + + if r.MaxBytesPerSec != "" { + params["max_bytes_per_sec"] = r.MaxBytesPerSec + } + + if r.MaxFailedShardSnapshots != nil { + params["max_failed_shard_snapshots"] = strconv.FormatInt(int64(*r.MaxFailedShardSnapshots), 10) + } + + if r.MetaThreadPoolConcurrency != nil { + params["meta_thread_pool_concurrency"] = strconv.FormatInt(int64(*r.MetaThreadPoolConcurrency), 10) + } + + if r.SnapshotVerificationConcurrency != nil { + params["snapshot_verification_concurrency"] = strconv.FormatInt(int64(*r.SnapshotVerificationConcurrency), 10) + } + + if r.VerifyBlobContents != nil { + params["verify_blob_contents"] = strconv.FormatBool(*r.VerifyBlobContents) + } + + 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, "snapshot.repository_verify_integrity") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "snapshot.repository_verify_integrity") + } + 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 SnapshotRepositoryVerifyIntegrity) WithContext(v context.Context) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.ctx = v + } +} + +// WithBlobThreadPoolConcurrency - number of threads to use for reading blob contents. +func (f SnapshotRepositoryVerifyIntegrity) WithBlobThreadPoolConcurrency(v int) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.BlobThreadPoolConcurrency = &v + } +} + +// WithIndexSnapshotVerificationConcurrency - number of snapshots to verify concurrently within each index. +func (f SnapshotRepositoryVerifyIntegrity) WithIndexSnapshotVerificationConcurrency(v int) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.IndexSnapshotVerificationConcurrency = &v + } +} + +// WithIndexVerificationConcurrency - number of indices to verify concurrently. +func (f SnapshotRepositoryVerifyIntegrity) WithIndexVerificationConcurrency(v int) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.IndexVerificationConcurrency = &v + } +} + +// WithMaxBytesPerSec - rate limit for individual blob verification. +func (f SnapshotRepositoryVerifyIntegrity) WithMaxBytesPerSec(v string) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.MaxBytesPerSec = v + } +} + +// WithMaxFailedShardSnapshots - maximum permitted number of failed shard snapshots. +func (f SnapshotRepositoryVerifyIntegrity) WithMaxFailedShardSnapshots(v int) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.MaxFailedShardSnapshots = &v + } +} + +// WithMetaThreadPoolConcurrency - number of threads to use for reading metadata. +func (f SnapshotRepositoryVerifyIntegrity) WithMetaThreadPoolConcurrency(v int) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.MetaThreadPoolConcurrency = &v + } +} + +// WithSnapshotVerificationConcurrency - number of snapshots to verify concurrently. +func (f SnapshotRepositoryVerifyIntegrity) WithSnapshotVerificationConcurrency(v int) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.SnapshotVerificationConcurrency = &v + } +} + +// WithVerifyBlobContents - whether to verify the contents of individual blobs. +func (f SnapshotRepositoryVerifyIntegrity) WithVerifyBlobContents(v bool) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.VerifyBlobContents = &v + } +} + +// WithPretty makes the response body pretty-printed. +func (f SnapshotRepositoryVerifyIntegrity) WithPretty() func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f SnapshotRepositoryVerifyIntegrity) WithHuman() func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f SnapshotRepositoryVerifyIntegrity) WithErrorTrace() func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f SnapshotRepositoryVerifyIntegrity) WithFilterPath(v ...string) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f SnapshotRepositoryVerifyIntegrity) WithHeader(h map[string]string) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + 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 SnapshotRepositoryVerifyIntegrity) WithOpaqueID(s string) func(*SnapshotRepositoryVerifyIntegrityRequest) { + return func(r *SnapshotRepositoryVerifyIntegrityRequest) { + 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.snapshot.restore.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.restore.go index 5091c9e3eb..ca4234a819 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 220d54c5dc..fcee081d9d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 dd0303b799..c0919673b0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4d2bcc0340..6f2eb72d4d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 082f8fa2da..390122712b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 355696719f..05f4fec4bc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c078771f76..c9225d981e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3074bd0d77..f0b21a02f1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0d8b2becbd..4ec9236325 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d9426ef807..6645dc37a9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4553445ada..0af16f51cc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 cda9add11a..a32f48ca4f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e0cde90ede..944bdd752d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0704984d4e..f244464c90 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 cef3cfca06..1ff91335f9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bd404a372e..2ace2ab3de 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 93666edd0c..204e8f988e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 01d3d9f984..bd2a4e808c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d55305ac6c..13b0b4ad04 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bf474b704e..20d89af457 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1b229475e1..42c903652f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 204669b8dc..c04014c0f8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 629269060c..a1045820ce 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b419c36cfd..0ed535ad36 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b68ea1babd..050f7ec064 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a26b3dcefa..e16d51dcab 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ae4d45915e..4de4da7d2c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 386b5a8fbc..42fa88dee0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d065190da9..4806a3b0f4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f1e0bd7a01..b540c68315 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1d6338d2d3..cf0ce6d972 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9c0b0d21c8..aeebabaea0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 f7ec7dc003..5ea0cae439 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 cd2eaaca96..6e281fea18 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 11865018fc..17d20f6a9e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 aabbb26d85..13ae28fb8e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 585cea18d0..9d0e575a5e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 a336b60fd9..2874991d9c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 c1a09751be..bf2018ea40 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 93f71ad15c..aaaf1eb0ae 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 c7dcb8bbdf..b00bd3da24 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 43de1ea569..5daa658bee 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 8090effdea..f64c68f070 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 fd9d53e267..10b44195bd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 9d583a24a4..7946091da1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 75c114e1c6..fd28aa72e0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c87bf71daf..946e53fb7c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 335931c0a4..f19dba4982 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5466ca37d1..4003185845 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 72ebfbe157..fa1476a17c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 54f029be53..1d56a0fe98 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5d3450382e..983bbe6162 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 dbb2fa63fc..6263993aa7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0b7a6ea594..4637a11cbd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 dd46a7a628..3a61e36a36 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 a389c2275d..b2f644c9bc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 56a4945285..cc4b59bfe4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 69d614d6e9..6300452260 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a059173c59..5c99d4fe6b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f1becd01c7..372f9d9dd8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a8d5cfba4c..df4bafa5c1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 cb6ce76038..507b66f38a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d0c7d4cf24..7d4fae2f46 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0fe22484e7..b00a1c3a30 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 394bb45070..299f80a481 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f3b39d9b8e..a5ec25158a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b86c732ba8..94f0cee4f6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 34c3b0e72c..429336f3f8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c5ac80ecd5..1d1a772187 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6ee7ea7dba..be1d521e64 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newIndicesCreateDataStreamFunc(t Transport) IndicesCreateDataStream { @@ -51,6 +52,9 @@ type IndicesCreateDataStream func(name string, o ...func(*IndicesCreateDataStrea type IndicesCreateDataStreamRequest struct { Name string + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -94,6 +98,14 @@ func (r IndicesCreateDataStreamRequest) Do(providedCtx context.Context, transpor 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" } @@ -172,6 +184,20 @@ func (f IndicesCreateDataStream) WithContext(v context.Context) func(*IndicesCre } } +// WithMasterTimeout - specify timeout for connection to master. +func (f IndicesCreateDataStream) WithMasterTimeout(v time.Duration) func(*IndicesCreateDataStreamRequest) { + return func(r *IndicesCreateDataStreamRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - specify timeout for acknowledging the cluster state update. +func (f IndicesCreateDataStream) WithTimeout(v time.Duration) func(*IndicesCreateDataStreamRequest) { + return func(r *IndicesCreateDataStreamRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f IndicesCreateDataStream) WithPretty() func(*IndicesCreateDataStreamRequest) { return func(r *IndicesCreateDataStreamRequest) { 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 92d1042208..0576f1e67f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8a4a5b8567..4efa32233b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "errors" "net/http" "strings" + "time" ) func newIndicesDeleteDataStreamFunc(t Transport) IndicesDeleteDataStream { @@ -53,6 +54,7 @@ type IndicesDeleteDataStreamRequest struct { Name []string ExpandWildcards string + MasterTimeout time.Duration Pretty bool Human bool @@ -105,6 +107,10 @@ func (r IndicesDeleteDataStreamRequest) Do(providedCtx context.Context, transpor params["expand_wildcards"] = r.ExpandWildcards } + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -190,6 +196,13 @@ func (f IndicesDeleteDataStream) WithExpandWildcards(v string) func(*IndicesDele } } +// WithMasterTimeout - specify timeout for connection to master. +func (f IndicesDeleteDataStream) WithMasterTimeout(v time.Duration) func(*IndicesDeleteDataStreamRequest) { + return func(r *IndicesDeleteDataStreamRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f IndicesDeleteDataStream) WithPretty() func(*IndicesDeleteDataStreamRequest) { return func(r *IndicesDeleteDataStreamRequest) { 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 18f32ffb28..5ac9ed2da4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "net/http" "strconv" "strings" + "time" ) func newIndicesGetDataStreamFunc(t Transport) IndicesGetDataStream { @@ -54,6 +55,8 @@ type IndicesGetDataStreamRequest struct { ExpandWildcards string IncludeDefaults *bool + MasterTimeout time.Duration + Verbose *bool Pretty bool Human bool @@ -108,6 +111,14 @@ func (r IndicesGetDataStreamRequest) Do(providedCtx context.Context, transport T params["include_defaults"] = strconv.FormatBool(*r.IncludeDefaults) } + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + + if r.Verbose != nil { + params["verbose"] = strconv.FormatBool(*r.Verbose) + } + if r.Pretty { params["pretty"] = "true" } @@ -207,6 +218,20 @@ func (f IndicesGetDataStream) WithIncludeDefaults(v bool) func(*IndicesGetDataSt } } +// WithMasterTimeout - specify timeout for connection to master. +func (f IndicesGetDataStream) WithMasterTimeout(v time.Duration) func(*IndicesGetDataStreamRequest) { + return func(r *IndicesGetDataStreamRequest) { + r.MasterTimeout = v + } +} + +// WithVerbose - whether the maximum timestamp for each data stream should be calculated and returned (default: false). +func (f IndicesGetDataStream) WithVerbose(v bool) func(*IndicesGetDataStreamRequest) { + return func(r *IndicesGetDataStreamRequest) { + r.Verbose = &v + } +} + // WithPretty makes the response body pretty-printed. func (f IndicesGetDataStream) WithPretty() func(*IndicesGetDataStreamRequest) { return func(r *IndicesGetDataStreamRequest) { 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 87fda02d7d..bcfc3d818c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newIndicesMigrateToDataStreamFunc(t Transport) IndicesMigrateToDataStream { @@ -51,6 +52,9 @@ type IndicesMigrateToDataStream func(name string, o ...func(*IndicesMigrateToDat type IndicesMigrateToDataStreamRequest struct { Name string + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -96,6 +100,14 @@ func (r IndicesMigrateToDataStreamRequest) Do(providedCtx context.Context, trans 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" } @@ -174,6 +186,20 @@ func (f IndicesMigrateToDataStream) WithContext(v context.Context) func(*Indices } } +// WithMasterTimeout - specify timeout for connection to master. +func (f IndicesMigrateToDataStream) WithMasterTimeout(v time.Duration) func(*IndicesMigrateToDataStreamRequest) { + return func(r *IndicesMigrateToDataStreamRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - specify timeout for acknowledging the cluster state update. +func (f IndicesMigrateToDataStream) WithTimeout(v time.Duration) func(*IndicesMigrateToDataStreamRequest) { + return func(r *IndicesMigrateToDataStreamRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f IndicesMigrateToDataStream) WithPretty() func(*IndicesMigrateToDataStreamRequest) { return func(r *IndicesMigrateToDataStreamRequest) { 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 2c727c3ebb..253c709d10 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newIndicesPromoteDataStreamFunc(t Transport) IndicesPromoteDataStream { @@ -51,6 +52,8 @@ type IndicesPromoteDataStream func(name string, o ...func(*IndicesPromoteDataStr type IndicesPromoteDataStreamRequest struct { Name string + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -96,6 +99,10 @@ func (r IndicesPromoteDataStreamRequest) Do(providedCtx context.Context, 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 IndicesPromoteDataStream) WithContext(v context.Context) func(*IndicesPr } } +// WithMasterTimeout - specify timeout for connection to master. +func (f IndicesPromoteDataStream) WithMasterTimeout(v time.Duration) func(*IndicesPromoteDataStreamRequest) { + return func(r *IndicesPromoteDataStreamRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f IndicesPromoteDataStream) WithPretty() func(*IndicesPromoteDataStreamRequest) { return func(r *IndicesPromoteDataStreamRequest) { 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 1d8da80a84..1833d962a6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c9ae2ae114..d0614d11f9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 93d83e61b3..993bcc9cde 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3f85fcaa8e..073573e57a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6b61df22db..f5768acd6c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 53fbccca95..50aecfcbe1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 157dafe6ca..da5ca77004 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d6f6c2158f..691ce447c7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1c2967d80b..c71b21ddfb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 35e1372e2e..343a02f717 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a576c9e431..7bdc831ca6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6432ca21ee..0daabf6a49 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e789065e13..cf67b78591 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4463595b55..77ed8afad4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8c27b95be9..cda22ef994 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1041353587..63d100b96d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f3b36fe166..3e9cf686d4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 049818542b..194693a113 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 da193d0d46..d0dec58aa7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a9cedb97d9..5f3cecaaf1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ef94fc4166..91b14b8bd4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1c2bac6ea8..5b6a52a489 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bff2f28351..f63ccc8041 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e434f77740..4f9f55db54 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 80e769a209..f7e48836f6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1ba3abe721..0f3653430c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 fad6a752fb..4fd11e5c3f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f140ce7428..660ddf1b44 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c5237d669c..855f44bb9e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5595dcd136..90abe9b67e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 73ce6983cf..4f68841e75 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8b7c1c7525..0e8d5d7306 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 97280d8099..5f2394c643 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a4c5643b9a..c290711c38 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 42b16fdd78..aae1350c18 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e526f9d5f5..319b35e6dd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0e21933eda..4ffe1501b2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ea07c0e566..c30c544438 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0d497bd2c7..c25a904213 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e621a11226..fdcb8d41c5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7eada66764..3fc774f3e1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 053546b777..f9fc08027e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 2e654353b0..daf0410e88 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 06e50f60f4..01024e2d89 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 fc9ab71c80..0e24ef70b3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 639ff703e3..76df09282e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d546aa2576..5b9c3b5ef8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7209b72bd1..bb30dd2f3e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 677337922a..f3b607fec2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3d34418fa7..5e98222931 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3b028f2901..5d7e04fe81 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9547ecd370..9889f6f1f6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 40800d943b..0d51c06d5c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9846c64d91..e7e4619b9e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0d6970ca09..a3c238084e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6ba4b27519..1f03cce36c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b1681584e3..d0cc1a479f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 11116f82a8..cf3767351d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bb7c032f5c..7de623cf56 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 93cc5aedd6..ec9dac2462 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bd6105ad8d..c7efd600b2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f89de7a8a0..d955776cbd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a89ba16aed..dd6086abf2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 fd2a1baa4f..46f550d63e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 933b7426bc..83479aa417 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6a2bf3bfd4..47e6316c8e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 189ed45397..bcfcd79136 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4152cb35dd..b008226531 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a6fd32adcb..8e806cf9d0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 effcf41842..48f08dc0bf 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 de57bcb3ca..1999f9bf6c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 332f9a8e76..bc6b3fa63d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 40928d798e..0f45117209 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5512909a26..dbc57ef4d2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f7d4bdf239..8f02eadd4c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3122db56de..fc008407e3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b6101cb0d9..a7aa00bc2f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d97c85755d..0a51e2b5f0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 299383c030..4a25f46955 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 23ecd1f828..9a38e1a897 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 2f052fef78..486c7dc1b7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b2dec0e733..90e3930452 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 23eaca3995..540f2145e3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d700fa1b42..ec5078297c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 91998bc907..fb5345319f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4b8eda6cca..33b6a18933 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c37b8bfc54..851acb6790 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8319e9b7d0..a74f8ffd1d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e118604c85..f80c59d3c7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1a655771c4..210b811228 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1a32904ad3..7335792c01 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e0a42cd65c..2fa13e96e7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 037dd62d0f..42d0827dd4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 38d827dd04..eeb2beba5f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3c45fd0138..dc97b76eb1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 62242b5f7b..9ad730413d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 524c36bcc0..9d37d79b24 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 2a4ca057c7..bd28c9be20 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 47cad52c6b..540c069c4d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d9c7f301d9..b881ddce9a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 2c69b3c1be..cd0a69f875 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5f8c046f15..91aa50429a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 2ea0c995e0..a2762f1e39 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e1b41309eb..5be9dc3254 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ed35cc9754..1cf6539414 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_delete_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_delete_role.go index ca3cc4e0a4..3790b9b590 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_delete_role.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_delete_role.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_put_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_put_role.go index 1d410ccf38..5c5e4a5202 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_put_role.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_put_role.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f69330cda4..248e7f128f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 37ad40309b..f2cab71623 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 297abf3268..3fee069eda 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ef16182315..5ed1a4778f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f5b8fad737..506d038de6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9bac0d9a40..9f1041738d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8e983af4ef..3933616bbd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0283914d77..76f57e254b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 626e9625ac..aca03ed95e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -45,8 +45,6 @@ func newSecurityCreateCrossClusterAPIKeyFunc(t Transport) SecurityCreateCrossClu // SecurityCreateCrossClusterAPIKey - Creates a cross-cluster API key for API key based remote cluster access. // -// This API is beta. -// // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-cross-cluster-api-key.html. type SecurityCreateCrossClusterAPIKey func(body io.Reader, o ...func(*SecurityCreateCrossClusterAPIKeyRequest)) (*Response, error) 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 5dad9acbc4..5ef29cf4f3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 75c025d249..fd6f199c5c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9c883ec9cd..e01f8930d6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ca363013a9..978423920f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 86458a8876..55cf6e8ccb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c00b5e536a..81a9bf39c0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 327438caea..a119a31d33 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d32cb442d9..04575c5df6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a61f9cdd4a..ae798b8871 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b77ea7e711..3f10e39a5e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8d22411504..b65c1f7477 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 43f32e3b2c..50e3962d03 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 32c2df2479..c1fa14e21a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 9031a8b15a..abdb3b39bb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6c92241fa7..fa21bccf53 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c25cc8a7be..4b4d0fe91d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 42d4756e56..b89c0e6dfc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 d3373e45a3..e125bf767d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f84c8a4122..11e54f96cd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6646256842..16cdde250e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 694b9f5bbc..a7581472ad 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f77081c002..71b11ee7f7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 991d0a1254..f96994ab9a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 41a1331abc..cfd7be6ec3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6fa939574a..7f64353aff 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3556bdb063..f460ab1c91 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 eb89dafda5..bc073c75e7 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 927ad263f5..7d30c1aac1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 16c492fac5..166ffb84d4 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a41284c811..3c60956280 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7fb1294bf6..9e9ea8e5f9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 104079f498..2fc9c971b1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 23c6303905..85be74ceb9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ad81b7eb12..0b1da344de 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 3bd2bd4dd1..798367f4ba 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a155afb603..bd2f770c1d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 fa26fce632..0608a3459d 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_role.go index 8c35accc8e..dbeb9d5f50 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_role.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_role.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 aa31295a85..4f91b12eeb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ec89dc5249..39323896e9 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 78c887bdd7..41e2771016 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7907abe8e0..d6ec95b008 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7fa66cd55c..4df212a621 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 06cf0b482e..c3eaad279c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 99bd572179..1027e6c23f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 60203d7821..ab8b23821a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a9f39c49b9..fec4bd5730 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 acce0439fa..6e0e73967f 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -45,8 +45,6 @@ func newSecurityUpdateCrossClusterAPIKeyFunc(t Transport) SecurityUpdateCrossClu // SecurityUpdateCrossClusterAPIKey - Updates attributes of an existing cross-cluster API key. // -// This API is beta. -// // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-cross-cluster-api-key.html. type SecurityUpdateCrossClusterAPIKey func(id string, body io.Reader, o ...func(*SecurityUpdateCrossClusterAPIKeyRequest)) (*Response, error) 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 672ee890ab..041803e1bd 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 699ea576a6..2fba8f349e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8a0f9c4e76..7e05d77c86 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e01db94a16..d18186a1f5 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 57f67aa388..3007d49f8a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 b6bbe74707..842e455fcc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 7f5dbe6151..962e26afd3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5698accf81..7920546515 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 bf9cc75ed2..0ed61d6aee 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 9e3d5a4f80..09152462eb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1275af8398..3081996977 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 675be47472..b9cde5ee1e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f3578c3cbe..d8ddf80acb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5cfa1d7701..c6629044d8 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 88e9dae041..afb0d33885 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 050afc16ab..3c95c0360c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 0ca4ed9d1e..9370a8704e 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c20d3bc296..30abe1ded3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 index 3c9788c94a..fb85b7a76d 100644 --- 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 @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi @@ -29,7 +29,7 @@ import ( func newTextStructureFindFieldStructureFunc(t Transport) TextStructureFindFieldStructure { return func(field string, index string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error) { - var r = TextStructureFindFieldStructureRequest{Index: index, Field: field} + var r = TextStructureFindFieldStructureRequest{Field: field, Index: index} for _, f := range o { f(&r) } 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 index d2d30b3b9d..2226a60e3d 100644 --- 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 @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi 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 1bebb32da9..12610d9fd1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 03db27f3ee..0110dfa0eb 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 96864b4fce..57b66632b6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_node_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_node_stats.go index 9f4b6519e6..3e646cfbd3 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_node_stats.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_node_stats.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ad1a8f738f..e37c22f26c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 8f523fc9a6..378ec6c159 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ea7a0622e1..d53d6ad745 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6b4efd5f65..e66b3994fc 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 a64e0d3cdb..61db94fe58 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 aaf069cf77..a6a39e47d3 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 e7a412d4a2..441ced3b94 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6a56235de0..02816a03be 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 919bd49888..56916b5b46 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f3e1a005c9..4a409c7f25 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 15e6cde81d..5368d8816a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 eae2a9a6a5..7895dab8c0 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 497fa13b6e..a2ce74fc75 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 1cc889f991..6f51851f7c 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 5c6277dc03..13487baab2 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 934d875af7..5504455e1b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c98c963e60..0352f2c0e6 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c2089be98b..d4cacf7395 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 f804c7d3d4..5808d4e743 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 ea82cffdc7..277a484c9a 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 99534c64c4..6850110ea1 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 caa1dc74ff..d6ca0dc919 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 c8a2e5fb21..c5ec219b2b 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 4cb3a0e41f..f44342be90 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 6519295e40..f6943cd208 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.15.0: DO NOT EDIT +// Code generated from specification version 8.16.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 2a607e5ca8..4aad73631f 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.15.0" +const Client = "8.16.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 8dad1e538f..69554f7485 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package typedapi @@ -251,10 +251,13 @@ import ( inference_get "github.com/elastic/go-elasticsearch/v8/typedapi/inference/get" inference_inference "github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference" inference_put "github.com/elastic/go-elasticsearch/v8/typedapi/inference/put" + ingest_delete_geoip_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase" ingest_delete_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline" ingest_geo_ip_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats" + ingest_get_geoip_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase" ingest_get_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline" ingest_processor_grok "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok" + ingest_put_geoip_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase" ingest_put_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline" ingest_simulate "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate" license_delete "github.com/elastic/go-elasticsearch/v8/typedapi/license/delete" @@ -362,6 +365,7 @@ import ( query_rules_list_rulesets "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets" query_rules_put_rule "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule" query_rules_put_ruleset "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset" + query_rules_test "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test" rollup_delete_job "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob" rollup_get_jobs "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs" rollup_get_rollup_caps "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps" @@ -464,6 +468,7 @@ import ( snapshot_delete_repository "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository" snapshot_get "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get" snapshot_get_repository "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository" + snapshot_repository_verify_integrity "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity" snapshot_restore "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore" snapshot_status "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status" snapshot_verify_repository "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository" @@ -518,8 +523,9 @@ import ( ) type AsyncSearch struct { - // Deletes an async search by identifier. - // If the search is still running, the search request will be cancelled. + // Delete an async search. + // + // If the asynchronous search is still running, it is cancelled. // Otherwise, the saved search results are deleted. // If the Elasticsearch security features are enabled, the deletion of a // specific async search is restricted to: the authenticated user that submitted @@ -527,29 +533,33 @@ type AsyncSearch struct { // privilege. // https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html Delete async_search_delete.NewDelete - // Retrieves the results of a previously submitted async search request given - // its identifier. + // Get async search results. + // + // Retrieve the results of a previously submitted asynchronous search request. // If the Elasticsearch security features are enabled, access to the results of // a specific async search is restricted to the user or API key that submitted // it. // https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html Get async_search_get.NewGet - // Get async search status - // Retrieves the status of a previously submitted async search request given its + // Get the async search status. + // + // Get the status of a previously submitted async search request given its // identifier, without retrieving search results. // If the Elasticsearch security features are enabled, use of this API is // restricted to the `monitoring_user` role. // https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html Status async_search_status.NewStatus - // Runs a search request asynchronously. + // Run an async search. + // // When the primary sort of the results is an indexed field, shards get sorted - // based on minimum and maximum value that they hold for that field, hence - // partial results become available following the sort criteria that was - // requested. - // Warning: Async search does not support scroll nor search requests that only - // include the suggest section. - // By default, Elasticsearch doesn’t allow you to store an async search response - // larger than 10Mb and an attempt to do this results in an error. + // based on minimum and maximum value that they hold for that field. Partial + // results become available following the sort criteria that was requested. + // + // Warning: Asynchronous search does not support scroll or search requests that + // include only the suggest section. + // + // By default, Elasticsearch does not allow you to store an async search + // response larger than 10Mb and an attempt to do this results in an error. // The maximum allowed size for a stored async search response can be set by // changing the `search.max_async_search_response_size` cluster level setting. // https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html @@ -557,21 +567,50 @@ type AsyncSearch struct { } type Autoscaling struct { - // Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. - // Direct use is not supported. + // Delete an autoscaling policy. + // + // NOTE: This feature is designed for indirect use by Elasticsearch Service, + // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not + // supported. // https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html DeleteAutoscalingPolicy autoscaling_delete_autoscaling_policy.NewDeleteAutoscalingPolicy - // Gets the current autoscaling capacity based on the configured autoscaling - // policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not + // Get the autoscaling capacity. + // + // NOTE: This feature is designed for indirect use by Elasticsearch Service, + // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not // supported. + // + // This API gets the current autoscaling capacity based on the configured + // autoscaling policy. + // It will return information to size the cluster appropriately to the current + // workload. + // + // The `required_capacity` is calculated as the maximum of the + // `required_capacity` result of all individual deciders that are enabled for + // the policy. + // + // The operator should verify that the `current_nodes` match the operator’s + // knowledge of the cluster to avoid making autoscaling decisions based on stale + // or incomplete information. + // + // The response contains decider-specific information you can use to diagnose + // how and why autoscaling determined a certain capacity was required. + // This information is provided for diagnosis only. + // Do not use this information to make autoscaling decisions. // https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html GetAutoscalingCapacity autoscaling_get_autoscaling_capacity.NewGetAutoscalingCapacity - // Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and - // ECK. Direct use is not supported. + // Get an autoscaling policy. + // + // NOTE: This feature is designed for indirect use by Elasticsearch Service, + // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not + // supported. // https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html GetAutoscalingPolicy autoscaling_get_autoscaling_policy.NewGetAutoscalingPolicy - // Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and - // ECK. Direct use is not supported. + // Create or update an autoscaling policy. + // + // NOTE: This feature is designed for indirect use by Elasticsearch Service, + // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not + // supported. // https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html PutAutoscalingPolicy autoscaling_put_autoscaling_policy.NewPutAutoscalingPolicy } @@ -579,17 +618,19 @@ type Autoscaling struct { type Capabilities struct { // Checks if the specified combination of method, API, parameters, and arbitrary // capabilities are supported - // https://www.elastic.co/guide/en/elasticsearch/reference/current/capabilities.html + // https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities Capabilities capabilities.NewCapabilities } type Cat struct { + // Get aliases. // Retrieves the cluster’s index aliases, including filter and routing // information. // The API does not return data stream aliases. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or the Kibana console. They are not intended for use by applications. - // For application consumption, use the aliases API. + // + // CAT APIs are only intended for human consumption using the command line or + // the Kibana console. They are not intended for use by applications. For + // application consumption, use the aliases API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html Aliases cat_aliases.NewAliases // Provides a snapshot of the number of shards allocated to each data node and @@ -598,21 +639,25 @@ type Cat struct { // line or Kibana console. They are not intended for use by applications. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html Allocation cat_allocation.NewAllocation + // Get component templates. // Returns information about component templates in a cluster. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. + // + // CAT APIs are only intended for human consumption using the command line or + // Kibana console. // They are not intended for use by applications. For application consumption, // use the get component template API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-component-templates.html ComponentTemplates cat_component_templates.NewComponentTemplates + // Get a document count. // Provides quick access to a document count for a data stream, an index, or an // entire cluster. - // NOTE: The document count only includes live documents, not deleted documents - // which have not yet been removed by the merge process. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. + // The document count only includes live documents, not deleted documents which + // have not yet been removed by the merge process. + // + // CAT APIs are only intended for human consumption using the command line or + // Kibana console. // They are not intended for use by applications. For application consumption, // use the count API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-count.html @@ -642,23 +687,32 @@ type Cat struct { // longer period of time. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-health.html Health cat_health.NewHealth - // Returns help for the Cat APIs. + // Get CAT help. + // Returns help for the CAT APIs. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html Help cat_help.NewHelp + // Get index information. // Returns high-level information about indices in a cluster, including backing // indices for data streams. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. - // They are not intended for use by applications. For application consumption, - // use the get index API. - // Use the cat indices API to get the following information for each index in a - // cluster: shard count; document count; deleted document count; primary store - // size; total store size of all shards, including shard replicas. + // + // Use this request to get the following information for each index in a + // cluster: + // - shard count + // - document count + // - deleted document count + // - primary store size + // - total store size of all shards, including shard replicas + // // These metrics are retrieved directly from Lucene, which Elasticsearch uses // internally to power indexing and search. As a result, all document counts // include hidden nested documents. // To get an accurate count of Elasticsearch documents, use the cat count or // count APIs. + // + // CAT APIs are only intended for human consumption using the command line or + // Kibana console. + // They are not intended for use by applications. For application consumption, + // use an index endpoint. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html Indices cat_indices.NewIndices // Returns information about the master node, including the ID, bound IP @@ -668,39 +722,43 @@ type Cat struct { // application consumption, use the nodes info API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-master.html Master cat_master.NewMaster + // Get data frame analytics jobs. // Returns configuration and usage information about data frame analytics jobs. // - // IMPORTANT: cat APIs are only intended for human consumption using the Kibana + // CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get data frame analytics jobs statistics // API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html MlDataFrameAnalytics cat_ml_data_frame_analytics.NewMlDataFrameAnalytics + // Get datafeeds. // Returns configuration and usage information about datafeeds. // This API returns a maximum of 10,000 datafeeds. // If the Elasticsearch security features are enabled, you must have // `monitor_ml`, `monitor`, `manage_ml`, or `manage` // cluster privileges to use this API. // - // IMPORTANT: cat APIs are only intended for human consumption using the Kibana + // CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get datafeed statistics API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html MlDatafeeds cat_ml_datafeeds.NewMlDatafeeds + // Get anomaly detection jobs. // Returns configuration and usage information for anomaly detection jobs. // This API returns a maximum of 10,000 jobs. // If the Elasticsearch security features are enabled, you must have // `monitor_ml`, // `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. // - // IMPORTANT: cat APIs are only intended for human consumption using the Kibana + // CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get anomaly detection job statistics API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html MlJobs cat_ml_jobs.NewMlJobs + // Get trained models. // Returns configuration and usage information about inference trained models. // - // IMPORTANT: cat APIs are only intended for human consumption using the Kibana + // CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get trained models statistics API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html @@ -789,9 +847,10 @@ type Cat struct { // application consumption, use the nodes info API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html ThreadPool cat_thread_pool.NewThreadPool + // Get transforms. // Returns configuration and usage information about transforms. // - // IMPORTANT: cat APIs are only intended for human consumption using the Kibana + // CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get transform statistics API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html @@ -852,6 +911,7 @@ type Cluster struct { // Provides explanations for shard allocations in the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-allocation-explain.html AllocationExplain cluster_allocation_explain.NewAllocationExplain + // Delete component templates. // Deletes component templates. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. @@ -860,9 +920,11 @@ type Cluster struct { // Clears cluster voting config exclusions. // https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html DeleteVotingConfigExclusions cluster_delete_voting_config_exclusions.NewDeleteVotingConfigExclusions - // Returns information about whether a particular component template exist + // Check component templates. + // Returns information about whether a particular component template exists. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html ExistsComponentTemplate cluster_exists_component_template.NewExistsComponentTemplate + // Get component templates. // Retrieves information about component templates. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html GetComponentTemplate cluster_get_component_template.NewGetComponentTemplate @@ -882,7 +944,8 @@ type Cluster struct { // worst index status. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html Health cluster_health.NewHealth - // Returns different information about the cluster. + // Get cluster info. + // Returns basic information about the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-info.html Info cluster_info.NewInfo // Returns cluster-level changes (such as create index, update mapping, allocate @@ -899,6 +962,7 @@ type Cluster struct { // Updates the cluster voting config exclusions by node ids or node names. // https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html PostVotingConfigExclusions cluster_post_voting_config_exclusions.NewPostVotingConfigExclusions + // Create or update a component template. // Creates or updates a component template. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. @@ -947,182 +1011,335 @@ type Cluster struct { } type Connector struct { - // Updates the last_seen field in the connector, and sets it to current - // timestamp + // Check in a connector. + // + // Update the `last_seen` field in the connector and set it to the current + // timestamp. // https://www.elastic.co/guide/en/elasticsearch/reference/current/check-in-connector-api.html CheckIn connector_check_in.NewCheckIn - // Deletes a connector. + // Delete a connector. + // + // Removes a connector and associated sync jobs. + // This is a destructive action that is not recoverable. + // NOTE: This action doesn’t delete any API keys, ingest pipelines, or data + // indices associated with the connector. + // These need to be removed manually. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-api.html Delete connector_delete.NewDelete - // Retrieves a connector. + // Get a connector. + // + // Get the details about a connector. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-api.html Get connector_get.NewGet - // Updates last sync stats in the connector document + // Update the connector last sync stats. + // + // Update the fields related to the last sync of a connector. + // This action is used for analytics and monitoring. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-last-sync-api.html LastSync connector_last_sync.NewLastSync - // Returns existing connectors. + // Get all connectors. + // + // Get information about all connectors. // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-api.html List connector_list.NewList - // Creates a connector. + // Create a connector. + // + // Connectors are Elasticsearch integrations that bring content from third-party + // data sources, which can be deployed on Elastic Cloud or hosted on your own + // infrastructure. + // Elastic managed connectors (Native connectors) are a managed service on + // Elastic Cloud. + // Self-managed connectors (Connector clients) are self-managed on your + // infrastructure. // https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html Post connector_post.NewPost - // Creates or updates a connector. + // Create or update a connector. // https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html Put connector_put.NewPut // Creates a secret for a Connector. // SecretPost connector_secret_post.NewSecretPost - // Cancels a connector sync job. + // Cancel a connector sync job. + // + // Cancel a connector sync job, which sets the status to cancelling and updates + // `cancellation_requested_at` to the current time. + // The connector service is then responsible for setting the status of connector + // sync jobs to cancelled. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cancel-connector-sync-job-api.html SyncJobCancel connector_sync_job_cancel.NewSyncJobCancel - // Deletes a connector sync job. + // Delete a connector sync job. + // + // Remove a connector sync job and its associated data. + // This is a destructive action that is not recoverable. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-sync-job-api.html SyncJobDelete connector_sync_job_delete.NewSyncJobDelete - // Retrieves a connector sync job. + // Get a connector sync job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-sync-job-api.html SyncJobGet connector_sync_job_get.NewSyncJobGet - // Lists connector sync jobs. + // Get all connector sync jobs. + // + // Get information about all stored connector sync jobs listed by their creation + // date in ascending order. // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-sync-jobs-api.html SyncJobList connector_sync_job_list.NewSyncJobList - // Creates a connector sync job. + // Create a connector sync job. + // + // Create a connector sync job document in the internal index and initialize its + // counters and timestamps with default values. // https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-sync-job-api.html SyncJobPost connector_sync_job_post.NewSyncJobPost + // Activate the connector draft filter. + // // Activates the valid draft filtering for a connector. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html UpdateActiveFiltering connector_update_active_filtering.NewUpdateActiveFiltering - // Updates the API key id in the connector document + // Update the connector API key ID. + // + // Update the `api_key_id` and `api_key_secret_id` fields of a connector. + // You can specify the ID of the API key used for authorization and the ID of + // the connector secret where the API key is stored. + // The connector secret ID is required only for Elastic managed (native) + // connectors. + // Self-managed connectors (connector clients) do not use this field. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-api-key-id-api.html UpdateApiKeyId connector_update_api_key_id.NewUpdateApiKeyId - // Updates the configuration field in the connector document + // Update the connector configuration. + // + // Update the configuration field in the connector document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-configuration-api.html UpdateConfiguration connector_update_configuration.NewUpdateConfiguration - // Updates the filtering field in the connector document + // Update the connector error field. + // + // Set the error field for the connector. + // If the error provided in the request body is non-null, the connector’s status + // is updated to error. + // Otherwise, if the error is reset to null, the connector status is updated to + // connected. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-error-api.html UpdateError connector_update_error.NewUpdateError - // Updates the filtering field in the connector document + // Update the connector filtering. + // + // Update the draft filtering configuration of a connector and marks the draft + // validation state as edited. + // The filtering draft is activated once validated by the running Elastic + // connector service. + // The filtering property is used to configure sync rules (both basic and + // advanced) for a connector. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html UpdateFiltering connector_update_filtering.NewUpdateFiltering - // Updates the draft filtering validation info for a connector. + // Update the connector draft filtering validation. + // + // Update the draft filtering validation info for a connector. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-validation-api.html UpdateFilteringValidation connector_update_filtering_validation.NewUpdateFilteringValidation - // Updates the index_name in the connector document + // Update the connector index name. + // + // Update the `index_name` field of a connector, specifying the index where the + // data ingested by the connector is stored. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-index-name-api.html UpdateIndexName connector_update_index_name.NewUpdateIndexName - // Updates the name and description fields in the connector document + // Update the connector name and description. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-name-description-api.html UpdateName connector_update_name.NewUpdateName - // Updates the is_native flag in the connector document + // Update the connector is_native flag. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-native-api.html UpdateNative connector_update_native.NewUpdateNative - // Updates the pipeline field in the connector document + // Update the connector pipeline. + // + // When you create a new connector, the configuration of an ingest pipeline is + // populated with default settings. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-pipeline-api.html UpdatePipeline connector_update_pipeline.NewUpdatePipeline - // Updates the scheduling field in the connector document + // Update the connector scheduling. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-scheduling-api.html UpdateScheduling connector_update_scheduling.NewUpdateScheduling - // Updates the service type of the connector + // Update the connector service type. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-service-type-api.html UpdateServiceType connector_update_service_type.NewUpdateServiceType - // Updates the status of the connector + // Update the connector status. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-status-api.html UpdateStatus connector_update_status.NewUpdateStatus } type Core struct { + // Bulk index or delete documents. // Performs multiple indexing or delete operations in a single API call. // This reduces overhead and can greatly increase indexing speed. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html Bulk core_bulk.NewBulk - // Clears the search context and results for a scrolling search. + // Clear a scrolling search. + // + // Clear the search context and results for a scrolling search. // https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html ClearScroll core_clear_scroll.NewClearScroll - // Closes a point-in-time. + // Close a point in time. + // + // A point in time must be opened explicitly before being used in search + // requests. + // The `keep_alive` parameter tells Elasticsearch how long it should persist. + // A point in time is automatically closed when the `keep_alive` period has + // elapsed. + // However, keeping points in time has a cost; close them as soon as they are no + // longer required for search requests. // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html ClosePointInTime core_close_point_in_time.NewClosePointInTime // Returns number of documents matching a query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html Count core_count.NewCount + // Index a document. // Adds a JSON document to the specified data stream or index and makes it // searchable. // If the target is an index and the document already exists, the request // updates the document and increments its version. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html Create core_create.NewCreate + // Delete a document. // Removes a JSON document from the specified index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html Delete core_delete.NewDelete + // Delete documents. // Deletes documents that match the specified query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html DeleteByQuery core_delete_by_query.NewDeleteByQuery - // Changes the number of requests per second for a particular Delete By Query + // Throttle a delete by query operation. + // + // Change the number of requests per second for a particular delete by query // operation. + // Rethrottling that speeds up the query takes effect immediately but + // rethrotting that slows down the query takes effect after completing the + // current batch to prevent scroll timeouts. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html DeleteByQueryRethrottle core_delete_by_query_rethrottle.NewDeleteByQueryRethrottle + // Delete a script or search template. // Deletes a stored script or search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html DeleteScript core_delete_script.NewDeleteScript - // Checks if a document in an index exists. + // Check a document. + // Checks if a specified document exists. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html Exists core_exists.NewExists + // Check for a document source. // Checks if a document's `_source` is stored. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html ExistsSource core_exists_source.NewExistsSource - // Returns information about why a specific document matches (or doesn’t match) + // Explain a document match result. + // Returns information about why a specific document matches, or doesn’t match, // a query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html Explain core_explain.NewExplain - // The field capabilities API returns the information about the capabilities of - // fields among multiple indices. - // The field capabilities API returns runtime fields like any other field. For - // example, a runtime field with a type - // of keyword is returned as any other field that belongs to the `keyword` - // family. + // Get the field capabilities. + // + // Get information about the capabilities of fields among multiple indices. + // + // For data streams, the API returns field capabilities among the stream’s + // backing indices. + // It returns runtime fields like any other field. + // For example, a runtime field with a type of keyword is returned the same as + // any other field that belongs to the `keyword` family. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html FieldCaps core_field_caps.NewFieldCaps - // Returns a document. + // Get a document by its ID. + // Retrieves the document with the specified ID from an index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html Get core_get.NewGet + // Get a script or search template. // Retrieves a stored script or search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html GetScript core_get_script.NewGetScript - // Returns all script contexts. + // Get script contexts. + // + // Get a list of supported script contexts and their methods. // https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-contexts.html GetScriptContext core_get_script_context.NewGetScriptContext - // Returns available script types, languages and contexts + // Get script languages. + // + // Get a list of available script types, languages, and contexts. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html GetScriptLanguages core_get_script_languages.NewGetScriptLanguages + // Get a document's source. // Returns the source of a document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html GetSource core_get_source.NewGetSource // Returns the health of the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html HealthReport core_health_report.NewHealthReport + // Index a document. // Adds a JSON document to the specified data stream or index and makes it // searchable. // If the target is an index and the document already exists, the request // updates the document and increments its version. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html Index core_index.NewIndex + // Get cluster info. // Returns basic information about the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html Info core_info.NewInfo - // Performs a kNN search. + // Run a knn search. + // + // NOTE: The kNN search API has been replaced by the `knn` option in the search + // API. + // + // Perform a k-nearest neighbor (kNN) search on a dense_vector field and return + // the matching documents. + // Given a query vector, the API finds the k closest vectors and returns those + // documents as search hits. + // + // Elasticsearch uses the HNSW algorithm to support efficient kNN search. + // Like most kNN algorithms, HNSW is an approximate method that sacrifices + // result accuracy for improved search speed. + // This means the results returned are not always the true k closest neighbors. + // + // The kNN search API supports restricting the search using a filter. + // The search will return the top k documents that also match the filter query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html KnnSearch core_knn_search.NewKnnSearch - // Allows to get multiple documents in one request. + // Get multiple documents. + // + // Get multiple JSON documents by ID from one or more indices. + // If you specify an index in the request URI, you only need to specify the + // document IDs in the request body. + // To ensure fast responses, this multi get (mget) API responds with partial + // results if one or more shards fail. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html Mget core_mget.NewMget - // Allows to execute several search operations in one request. + // Run multiple searches. + // + // The format of the request is similar to the bulk API format and makes use of + // the newline delimited JSON (NDJSON) format. + // The structure is as follows: + // + // ``` + // header\n + // body\n + // header\n + // body\n + // ``` + // + // This structure is specifically optimized to reduce parsing if a specific + // search ends up redirected to another node. + // + // IMPORTANT: The final line of data must end with a newline character `\n`. + // Each newline character may be preceded by a carriage return `\r`. + // When sending requests to this endpoint the `Content-Type` header should be + // set to `application/x-ndjson`. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html Msearch core_msearch.NewMsearch - // Runs multiple templated searches with a single request. + // Run multiple templated searches. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html MsearchTemplate core_msearch_template.NewMsearchTemplate - // Returns multiple termvectors in one request. + // Get multiple term vectors. + // + // You can specify existing documents by index and ID or provide artificial + // documents in the body of the request. + // You can specify the index in the request body or request URI. + // The response contains a `docs` array with all the fetched termvectors. + // Each element has the structure provided by the termvectors API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-termvectors.html Mtermvectors core_mtermvectors.NewMtermvectors - // A search request by default executes against the most recent visible data of - // the target indices, + // Open a point in time. + // + // A search request by default runs against the most recent visible data of the + // target indices, // which is called point in time. Elasticsearch pit (point in time) is a // lightweight view into the // state of the data as it existed when initiated. In some cases, it’s preferred @@ -1132,103 +1349,193 @@ type Core struct { // `search_after` requests, then the results of those requests might not be // consistent as changes happening // between searches are only visible to the more recent point in time. + // + // A point in time must be opened explicitly before being used in search + // requests. + // The `keep_alive` parameter tells Elasticsearch how long it should persist. // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html OpenPointInTime core_open_point_in_time.NewOpenPointInTime + // Ping the cluster. // Returns whether the cluster is running. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html Ping core_ping.NewPing + // Create or update a script or search template. // Creates or updates a stored script or search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html PutScript core_put_script.NewPutScript - // Enables you to evaluate the quality of ranked search results over a set of - // typical search queries. + // Evaluate ranked search results. + // + // Evaluate the quality of ranked search results over a set of typical search + // queries. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html RankEval core_rank_eval.NewRankEval - // Allows to copy documents from one index to another, optionally filtering the - // source - // documents by a query, changing the destination index settings, or fetching - // the - // documents from a remote cluster. + // Reindex documents. + // Copies documents from a source to a destination. The source can be any + // existing index, alias, or data stream. The destination must differ from the + // source. For example, you cannot reindex a data stream into itself. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html Reindex core_reindex.NewReindex - // Copies documents from a source to a destination. + // Throttle a reindex operation. + // + // Change the number of requests per second for a particular reindex operation. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html ReindexRethrottle core_reindex_rethrottle.NewReindexRethrottle - // Renders a search template as a search request body. + // Render a search template. + // + // Render a search template as a search request body. // https://www.elastic.co/guide/en/elasticsearch/reference/current/render-search-template-api.html RenderSearchTemplate core_render_search_template.NewRenderSearchTemplate + // Run a script. // Runs a script and returns a result. // https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html ScriptsPainlessExecute core_scripts_painless_execute.NewScriptsPainlessExecute - // Allows to retrieve a large numbers of results from a single search request. + // Run a scrolling search. + // + // IMPORTANT: The scroll API is no longer recommend for deep pagination. If you + // need to preserve the index state while paging through more than 10,000 hits, + // use the `search_after` parameter with a point in time (PIT). + // + // The scroll API gets large sets of results from a single scrolling search + // request. + // To get the necessary scroll ID, submit a search API request that includes an + // argument for the `scroll` query parameter. + // The `scroll` parameter indicates how long Elasticsearch should retain the + // search context for the request. + // The search response returns a scroll ID in the `_scroll_id` response body + // parameter. + // You can then use the scroll ID with the scroll API to retrieve the next batch + // of results for the request. + // If the Elasticsearch security features are enabled, the access to the results + // of a specific scroll ID is restricted to the user or API key that submitted + // the search. + // + // You can also use the scroll API to specify a new scroll parameter that + // extends or shortens the retention period for the search context. + // + // IMPORTANT: Results from a scrolling search reflect the state of the index at + // the time of the initial search request. Subsequent indexing or document + // changes only affect later search and scroll requests. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-scroll Scroll core_scroll.NewScroll - // Returns search hits that match the query defined in the request. + // Run a search. + // + // Get search hits that match the query defined in the request. // You can provide search queries using the `q` query string parameter or the // request body. // If both are specified, only the query parameter is used. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html Search core_search.NewSearch - // Searches a vector tile for geospatial values. Returns results as a binary - // Mapbox vector tile. + // Search a vector tile. + // + // Search a vector tile for geospatial values. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-vector-tile-api.html SearchMvt core_search_mvt.NewSearchMvt - // Returns information about the indices and shards that a search request would - // be executed against. + // Get the search shards. + // + // Get the indices and shards that a search request would be run against. + // This information can be useful for working out issues or planning + // optimizations with routing and shard preferences. + // When filtered aliases are used, the filter is returned as part of the indices + // section. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html SearchShards core_search_shards.NewSearchShards - // Runs a search with a search template. + // Run a search with a search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html SearchTemplate core_search_template.NewSearchTemplate - // 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 + // Get terms in an index. + // + // Discover terms that match a partial string in an index. + // This "terms enum" API is designed for low-latency look-ups used in // auto-complete scenarios. + // + // If the `complete` property in the response is false, the returned terms set + // may be incomplete and should be treated as approximate. + // This can occur due to a few reasons, such as a request timeout or a node + // error. + // + // NOTE: The terms enum API may return terms from deleted documents. Deleted + // documents are initially only marked as deleted. It is not until their + // segments are merged that documents are actually deleted. Until that happens, + // the terms enum API will return terms from these documents. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html TermsEnum core_terms_enum.NewTermsEnum - // Returns information and statistics about terms in the fields of a particular + // Get term vector information. + // + // Get information and statistics about terms in the fields of a particular // document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html Termvectors core_termvectors.NewTermvectors - // Updates a document with a script or partial document. + // Update a document. + // Updates a document by running a script or passing a partial document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html Update core_update.NewUpdate + // Update documents. // Updates documents that match the specified query. // If no query is specified, performs an update on every document in the data // stream or index without modifying the source, which is useful for picking up // mapping changes. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html UpdateByQuery core_update_by_query.NewUpdateByQuery - // Changes the number of requests per second for a particular Update By Query + // Throttle an update by query operation. + // + // Change the number of requests per second for a particular update by query // operation. + // Rethrottling that speeds up the query takes effect immediately but + // rethrotting that slows down the query takes effect after completing the + // current batch to prevent scroll timeouts. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html UpdateByQueryRethrottle core_update_by_query_rethrottle.NewUpdateByQueryRethrottle } type DanglingIndices struct { - // Deletes the specified dangling index + // Delete a dangling index. + // + // If Elasticsearch encounters index data that is absent from the current + // cluster state, those indices are considered to be dangling. + // For example, this can happen if you delete more than + // `cluster.indices.tombstones.size` indices while an Elasticsearch node is + // offline. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html DeleteDanglingIndex dangling_indices_delete_dangling_index.NewDeleteDanglingIndex - // Imports the specified dangling index + // Import a dangling index. + // + // If Elasticsearch encounters index data that is absent from the current + // cluster state, those indices are considered to be dangling. + // For example, this can happen if you delete more than + // `cluster.indices.tombstones.size` indices while an Elasticsearch node is + // offline. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html ImportDanglingIndex dangling_indices_import_dangling_index.NewImportDanglingIndex - // Returns all dangling indices. + // Get the dangling indices. + // + // If Elasticsearch encounters index data that is absent from the current + // cluster state, those indices are considered to be dangling. + // For example, this can happen if you delete more than + // `cluster.indices.tombstones.size` indices while an Elasticsearch node is + // offline. + // + // Use this API to list dangling indices, which you can then import or delete. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html ListDanglingIndices dangling_indices_list_dangling_indices.NewListDanglingIndices } type Enrich struct { + // Delete an enrich policy. // Deletes an existing enrich policy and its enrich index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html DeletePolicy enrich_delete_policy.NewDeletePolicy // Creates the enrich index for an existing enrich policy. // https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html ExecutePolicy enrich_execute_policy.NewExecutePolicy + // Get an enrich policy. // Returns information about an enrich policy. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html GetPolicy enrich_get_policy.NewGetPolicy + // Create an enrich policy. // Creates an enrich policy. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html PutPolicy enrich_put_policy.NewPutPolicy + // Get enrich stats. // Returns enrich coordinator statistics and information about enrich policies // that are currently executing. // https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html @@ -1353,10 +1660,15 @@ type Ilm struct { } type Indices struct { - // Adds a block to an index. + // Add an index block. + // Limits the operations allowed on an index by blocking specific operation + // types. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-blocks.html AddBlock indices_add_block.NewAddBlock - // Performs analysis on a text string and returns the resulting tokens. + // Get tokens from text analysis. + // The analyze API performs + // [analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html) + // on a text string and returns the resulting tokens. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html Analyze indices_analyze.NewAnalyze // Clears the caches of one or more indices. @@ -1369,26 +1681,33 @@ type Indices struct { // Closes an index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-close.html Close indices_close.NewClose + // Create an index. // Creates a new index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html Create indices_create.NewCreate + // Create a data stream. // Creates a data stream. // You must have a matching index template with data stream enabled. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html CreateDataStream indices_create_data_stream.NewCreateDataStream + // Get data stream stats. // Retrieves statistics for one or more data streams. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html DataStreamsStats indices_data_streams_stats.NewDataStreamsStats + // Delete indices. // Deletes one or more indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html Delete indices_delete.NewDelete + // Delete an alias. // Removes a data stream or index from an alias. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html DeleteAlias indices_delete_alias.NewDeleteAlias - // Removes the data lifecycle from a data stream rendering it not managed by the - // data stream lifecycle + // Delete data stream lifecycles. + // Removes the data stream lifecycle from a data stream, rendering it not + // managed by the data stream lifecycle. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-delete-lifecycle.html DeleteDataLifecycle indices_delete_data_lifecycle.NewDeleteDataLifecycle + // Delete data streams. // Deletes one or more data streams and their backing indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html DeleteDataStream indices_delete_data_stream.NewDeleteDataStream @@ -1411,10 +1730,12 @@ type Indices struct { // field grouped by a configured time interval. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-downsample-data-stream.html Downsample indices_downsample.NewDownsample - // Checks if a data stream, index, or alias exists. + // Check indices. + // Checks if one or more indices, index aliases, or data streams exist. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html Exists indices_exists.NewExists - // Checks if an alias exists. + // Check aliases. + // Checks if one or more data stream or index aliases exist. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html ExistsAlias indices_exists_alias.NewExistsAlias // Returns information about whether a particular index template exists. @@ -1424,8 +1745,11 @@ type Indices struct { // Returns information about whether a particular index template exists. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-template-exists-v1.html ExistsTemplate indices_exists_template.NewExistsTemplate - // Retrieves information about the index's current data stream lifecycle, such - // as any potential encountered error, time since creation etc. + // Get the status for a data stream lifecycle. + // Retrieves information about an index or data stream’s current data stream + // lifecycle status, such as time since index creation, time since rollover, the + // lifecycle configuration managing the index, or any errors encountered during + // lifecycle execution. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html ExplainDataLifecycle indices_explain_data_lifecycle.NewExplainDataLifecycle // Returns field usage information for each shard and field of an index. @@ -1437,21 +1761,26 @@ type Indices struct { // Performs the force merge operation on one or more indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html Forcemerge indices_forcemerge.NewForcemerge + // Get index information. // Returns information about one or more indices. For data streams, the API // returns information about the // stream’s backing indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html Get indices_get.NewGet - // Retrieves information for one or more aliases. + // Get aliases. + // Retrieves information for one or more data stream or index aliases. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html GetAlias indices_get_alias.NewGetAlias + // Get data stream lifecycles. // Retrieves the data stream lifecycle configuration of one or more data // streams. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-get-lifecycle.html GetDataLifecycle indices_get_data_lifecycle.NewGetDataLifecycle + // Get data streams. // Retrieves information about one or more data streams. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html GetDataStream indices_get_data_stream.NewGetDataStream + // Get mapping definitions. // Retrieves mapping definitions for one or more fields. // For data streams, the API retrieves field mappings for the stream’s backing // indices. @@ -1461,11 +1790,13 @@ type Indices struct { // Returns information about one or more index templates. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template.html GetIndexTemplate indices_get_index_template.NewGetIndexTemplate + // Get mapping definitions. // Retrieves mapping definitions for one or more indices. // For data streams, the API retrieves mappings for the stream’s backing // indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html GetMapping indices_get_mapping.NewGetMapping + // Get index settings. // Returns setting information for one or more indices. For data streams, // returns setting information for the stream’s backing indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-settings.html @@ -1474,6 +1805,7 @@ type Indices struct { // Retrieves information about one or more index templates. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template-v1.html GetTemplate indices_get_template.NewGetTemplate + // Convert an index alias to a data stream. // Converts an index alias to a data stream. // You must have a matching index template that is data stream enabled. // The alias must meet the following criteria: @@ -1488,6 +1820,7 @@ type Indices struct { // The write index for the alias becomes the write index for the stream. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html MigrateToDataStream indices_migrate_to_data_stream.NewMigrateToDataStream + // Update data streams. // Performs one or more data stream modification actions in a single atomic // operation. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html @@ -1500,10 +1833,12 @@ type Indices struct { // regular data stream // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html PromoteDataStream indices_promote_data_stream.NewPromoteDataStream + // Create or update an alias. // Adds a data stream or index to an alias. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html PutAlias indices_put_alias.NewPutAlias - // Update the data lifecycle of the specified data streams. + // Update data stream lifecycles. + // Update the data stream lifecycle of the specified data streams. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-put-lifecycle.html PutDataLifecycle indices_put_data_lifecycle.NewPutDataLifecycle // Create or update an index template. @@ -1511,13 +1846,15 @@ type Indices struct { // automatically to new indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-template.html PutIndexTemplate indices_put_index_template.NewPutIndexTemplate + // Update field mappings. // Adds new fields to an existing data stream or index. // You can also use this API to change the search settings of existing fields. // For data streams, these changes are applied to all backing indices by // default. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html PutMapping indices_put_mapping.NewPutMapping - // Changes a dynamic index setting in real time. For data streams, index setting + // Update index settings. + // Changes dynamic index settings in real time. For data streams, index setting // changes are applied to all backing indices by default. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html PutSettings indices_put_settings.NewPutSettings @@ -1532,6 +1869,7 @@ type Indices struct { // indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-recovery.html Recovery indices_recovery.NewRecovery + // Refresh an index. // A refresh makes recent operations performed on one or more indices available // for search. // For data streams, the API runs the refresh operation on the stream’s backing @@ -1552,6 +1890,7 @@ type Indices struct { // Multiple patterns and remote clusters are supported. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-resolve-index-api.html ResolveIndex indices_resolve_index.NewResolveIndex + // Roll over to a new index. // Creates a new index for a data stream or index alias. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html Rollover indices_rollover.NewRollover @@ -1589,10 +1928,12 @@ type Indices struct { // Unfreezes an index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html Unfreeze indices_unfreeze.NewUnfreeze + // Create or update an alias. // Adds a data stream or index to an alias. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html UpdateAliases indices_update_aliases.NewUpdateAliases - // Validates a potentially expensive query without executing it. + // Validate a query. + // Validates a query without running it. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-validate.html ValidateQuery indices_validate_query.NewValidateQuery } @@ -1613,12 +1954,18 @@ type Inference struct { } type Ingest struct { + // Deletes a geoip database configuration. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-geoip-database-api.html + DeleteGeoipDatabase ingest_delete_geoip_database.NewDeleteGeoipDatabase // Deletes one or more existing ingest pipeline. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-pipeline-api.html DeletePipeline ingest_delete_pipeline.NewDeletePipeline // Gets download statistics for GeoIP2 databases used with the geoip processor. // https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-processor.html GeoIpStats ingest_geo_ip_stats.NewGeoIpStats + // Returns information about one or more geoip database configurations. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-geoip-database-api.html + GetGeoipDatabase ingest_get_geoip_database.NewGetGeoipDatabase // Returns information about one or more ingest pipelines. // This API returns a local reference of the pipeline. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-pipeline-api.html @@ -1630,6 +1977,9 @@ type Ingest struct { // that can be reused. // https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html ProcessorGrok ingest_processor_grok.NewProcessorGrok + // Returns information about one or more geoip database configurations. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-geoip-database-api.html + PutGeoipDatabase ingest_put_geoip_database.NewPutGeoipDatabase // Creates or updates an ingest pipeline. // Changes made using this API take effect immediately. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html @@ -1643,10 +1993,11 @@ type License struct { // Deletes licensing information for the cluster // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-license.html Delete license_delete.NewDelete - // This API returns information about the type of license, when it was issued, - // and when it expires, for example. - // For more information about the different types of licenses, see - // https://www.elastic.co/subscriptions. + // Get license information. + // Returns information about your Elastic license, including its type, its + // status, when it was issued, and when it expires. + // For more information about the different types of licenses, refer to [Elastic + // Stack subscriptions](https://www.elastic.co/subscriptions). // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-license.html Get license_get.NewGet // Retrieves information about the status of the basic license. @@ -1700,15 +2051,15 @@ type Migration struct { } type Ml struct { - // Clears a trained model deployment cache on all nodes where the trained model - // is assigned. + // Clear trained model deployment cache. + // Cache will be cleared on all nodes where the trained model is assigned. // A trained model deployment may have an inference cache enabled. // As requests are handled by each allocated node, their responses may be cached // on that individual node. // Calling this API clears the caches without restarting the deployment. // https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-trained-model-deployment-cache.html ClearTrainedModelDeploymentCache ml_clear_trained_model_deployment_cache.NewClearTrainedModelDeploymentCache - // Close anomaly detection jobs + // Close anomaly detection jobs. // A job can be opened and closed multiple times throughout its lifecycle. A // closed job cannot receive data or perform analysis operations, but you can // still explore and navigate results. @@ -1727,22 +2078,23 @@ type Ml struct { // its associated job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html CloseJob ml_close_job.NewCloseJob + // Delete a calendar. // Removes all scheduled events from a calendar, then deletes it. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html DeleteCalendar ml_delete_calendar.NewDeleteCalendar - // Deletes scheduled events from a calendar. + // Delete events from a calendar. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html DeleteCalendarEvent ml_delete_calendar_event.NewDeleteCalendarEvent - // Deletes anomaly detection jobs from a calendar. + // Delete anomaly jobs from a calendar. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html DeleteCalendarJob ml_delete_calendar_job.NewDeleteCalendarJob - // Deletes a data frame analytics job. + // Delete a data frame analytics job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html DeleteDataFrameAnalytics ml_delete_data_frame_analytics.NewDeleteDataFrameAnalytics - // Deletes an existing datafeed. + // Delete a datafeed. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html DeleteDatafeed ml_delete_datafeed.NewDeleteDatafeed - // Deletes expired and unused machine learning data. + // Delete expired ML data. // Deletes all job results, model snapshots and forecast data that have exceeded // their retention days period. Machine learning state documents that are not // associated with any job are also deleted. @@ -1753,20 +2105,19 @@ type Ml struct { // . // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-expired-data.html DeleteExpiredData ml_delete_expired_data.NewDeleteExpiredData - // Deletes a filter. + // Delete a filter. // If an anomaly detection job references the filter, you cannot delete the // filter. You must update or delete the job before you can delete the filter. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html DeleteFilter ml_delete_filter.NewDeleteFilter - // Deletes forecasts from a machine learning job. + // Delete forecasts from a job. // By default, forecasts are retained for 14 days. You can specify a // different retention period with the `expires_in` parameter in the forecast // jobs API. The delete forecast API enables you to delete one or more // forecasts before they expire. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html DeleteForecast ml_delete_forecast.NewDeleteForecast - // Deletes an anomaly detection job. - // + // Delete an anomaly detection job. // All job configuration, model state and results are deleted. // It is not currently possible to delete multiple jobs using wildcards or a // comma separated list. If you delete a job that has a datafeed, the request @@ -1775,35 +2126,37 @@ type Ml struct { // delete job request. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html DeleteJob ml_delete_job.NewDeleteJob - // Deletes an existing model snapshot. + // Delete a model snapshot. // You cannot delete the active model snapshot. To delete that snapshot, first // revert to a different one. To identify the active model snapshot, refer to // the `model_snapshot_id` in the results from the get jobs API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html DeleteModelSnapshot ml_delete_model_snapshot.NewDeleteModelSnapshot - // Deletes an existing trained inference model that is currently not referenced - // by an ingest pipeline. + // Delete an unreferenced trained model. + // The request deletes a trained inference model that is not referenced by an + // ingest pipeline. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html DeleteTrainedModel ml_delete_trained_model.NewDeleteTrainedModel - // Deletes a trained model alias. + // Delete a trained model alias. // This API deletes an existing model alias that refers to a trained model. If // the model alias is missing or refers to a model other than the one identified // by the `model_id`, this API returns an error. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models-aliases.html DeleteTrainedModelAlias ml_delete_trained_model_alias.NewDeleteTrainedModelAlias + // Estimate job model memory usage. // Makes an estimation of the memory usage for an anomaly detection job model. // It is based on analysis configuration details for the job and cardinality // estimates for the fields it references. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html EstimateModelMemory ml_estimate_model_memory.NewEstimateModelMemory - // Evaluates the data frame analytics for an annotated index. + // Evaluate data frame analytics. // The API packages together commonly used evaluation metrics for various types // of machine learning features. This has been designed for use on indexes // created by data frame analytics. Evaluation requires both a ground truth // field and an analytics result field to be present. // https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html EvaluateDataFrame ml_evaluate_data_frame.NewEvaluateDataFrame - // Explains a data frame analytics config. + // Explain data frame analytics config. // This API provides explanations for a data frame analytics config that either // exists already or one that has not been created yet. The following // explanations are provided: @@ -1814,7 +2167,7 @@ type Ml struct { // they are not included in the explanation. // http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html ExplainDataFrameAnalytics ml_explain_data_frame_analytics.NewExplainDataFrameAnalytics - // Forces any buffered data to be processed by the job. + // Force buffered data to be processed. // The flush jobs API is only applicable when sending data for analysis using // the post data API. Depending on the content of the buffer, then it might // additionally calculate new results. Both flush and close operations are @@ -1825,37 +2178,37 @@ type Ml struct { // analyzing further data. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html FlushJob ml_flush_job.NewFlushJob - // Predicts the future behavior of a time series by using its historical - // behavior. + // Predict future behavior of a time series. // // Forecasts are not supported for jobs that perform population analysis; an // error occurs if you try to create a forecast for a job that has an - // `over_field_name` in its configuration. + // `over_field_name` in its configuration. Forcasts predict future behavior + // based on historical data. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html Forecast ml_forecast.NewForecast - // Retrieves anomaly detection job results for one or more buckets. + // Get anomaly detection job results for buckets. // The API presents a chronological view of the records, grouped by bucket. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html GetBuckets ml_get_buckets.NewGetBuckets - // Retrieves information about the scheduled events in calendars. + // Get info about events in calendars. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html GetCalendarEvents ml_get_calendar_events.NewGetCalendarEvents - // Retrieves configuration information for calendars. + // Get calendar configuration info. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html GetCalendars ml_get_calendars.NewGetCalendars - // Retrieves anomaly detection job results for one or more categories. + // Get anomaly detection job results for categories. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html GetCategories ml_get_categories.NewGetCategories - // Retrieves configuration information for data frame analytics jobs. + // Get data frame analytics job configuration info. // You can get information for multiple data frame analytics jobs in a single // API request by using a comma-separated list of data frame analytics jobs or a // wildcard expression. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html GetDataFrameAnalytics ml_get_data_frame_analytics.NewGetDataFrameAnalytics - // Retrieves usage information for data frame analytics jobs. + // Get data frame analytics jobs usage info. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html GetDataFrameAnalyticsStats ml_get_data_frame_analytics_stats.NewGetDataFrameAnalyticsStats - // Retrieves usage information for datafeeds. + // Get datafeeds usage info. // You can get statistics for multiple datafeeds in a single API request by // using a comma-separated list of datafeeds or a wildcard expression. You can // get statistics for all datafeeds by using `_all`, by specifying `*` as the @@ -1864,7 +2217,7 @@ type Ml struct { // This API returns a maximum of 10,000 datafeeds. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html GetDatafeedStats ml_get_datafeed_stats.NewGetDatafeedStats - // Retrieves configuration information for datafeeds. + // Get datafeeds configuration info. // You can get information for multiple datafeeds in a single API request by // using a comma-separated list of datafeeds or a wildcard expression. You can // get information for all datafeeds by using `_all`, by specifying `*` as the @@ -1872,39 +2225,41 @@ type Ml struct { // This API returns a maximum of 10,000 datafeeds. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html GetDatafeeds ml_get_datafeeds.NewGetDatafeeds - // Retrieves filters. + // Get filters. // You can get a single filter or all filters. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html GetFilters ml_get_filters.NewGetFilters - // Retrieves anomaly detection job results for one or more influencers. + // Get anomaly detection job results for influencers. // Influencers are the entities that have contributed to, or are to blame for, // the anomalies. Influencer results are available only if an // `influencer_field_name` is specified in the job configuration. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html GetInfluencers ml_get_influencers.NewGetInfluencers - // Retrieves usage information for anomaly detection jobs. + // Get anomaly detection jobs usage info. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html GetJobStats ml_get_job_stats.NewGetJobStats - // Retrieves configuration information for anomaly detection jobs. + // Get anomaly detection jobs configuration info. // You can get information for multiple anomaly detection jobs in a single API // request by using a group name, a comma-separated list of jobs, or a wildcard // expression. You can get information for all anomaly detection jobs by using // `_all`, by specifying `*` as the ``, or by omitting the ``. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html GetJobs ml_get_jobs.NewGetJobs + // Get machine learning memory usage info. // Get information about how machine learning jobs and trained models are using // memory, // on each node, both within the JVM heap, and natively, outside of the JVM. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-memory.html GetMemoryStats ml_get_memory_stats.NewGetMemoryStats - // Retrieves usage information for anomaly detection job model snapshot - // upgrades. + // Get anomaly detection job model snapshot upgrade usage info. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-model-snapshot-upgrade-stats.html GetModelSnapshotUpgradeStats ml_get_model_snapshot_upgrade_stats.NewGetModelSnapshotUpgradeStats - // Retrieves information about model snapshots. + // Get model snapshots info. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html GetModelSnapshots ml_get_model_snapshots.NewGetModelSnapshots - // Retrieves overall bucket results that summarize the bucket results of + // Get overall bucket results. + // + // Retrievs overall bucket results that summarize the bucket results of // multiple anomaly detection jobs. // // The `overall_score` is calculated by combining the scores of all the @@ -1923,7 +2278,7 @@ type Ml struct { // jobs' largest bucket span. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html GetOverallBuckets ml_get_overall_buckets.NewGetOverallBuckets - // Retrieves anomaly records for an anomaly detection job. + // Get anomaly records for an anomaly detection job. // Records contain the detailed analytical results. They describe the anomalous // activity that has been identified in the input data based on the detector // configuration. @@ -1936,18 +2291,19 @@ type Ml struct { // number of detectors. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html GetRecords ml_get_records.NewGetRecords - // Retrieves configuration information for a trained model. + // Get trained model configuration info. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html GetTrainedModels ml_get_trained_models.NewGetTrainedModels - // Retrieves usage information for trained models. You can get usage information - // for multiple trained + // Get trained models usage info. + // You can get usage information for multiple trained // models in a single API request by using a comma-separated list of model IDs // or a wildcard expression. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html GetTrainedModelsStats ml_get_trained_models_stats.NewGetTrainedModelsStats - // Evaluates a trained model. + // Evaluate a trained model. // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-trained-model.html InferTrainedModel ml_infer_trained_model.NewInferTrainedModel + // Return ML defaults and limits. // Returns defaults and limits used by machine learning. // This endpoint is designed to be used by a user interface that needs to fully // understand machine learning configurations where some options are not @@ -1957,20 +2313,19 @@ type Ml struct { // cluster configuration. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html Info ml_info.NewInfo - // Opens one or more anomaly detection jobs. - // An anomaly detection job must be opened in order for it to be ready to - // receive and analyze data. It can be opened and closed multiple times - // throughout its lifecycle. + // Open anomaly detection jobs. + // An anomaly detection job must be opened to be ready to receive and analyze + // data. It can be opened and closed multiple times throughout its lifecycle. // When you open a new job, it starts with an empty model. // When you open an existing job, the most recent model state is automatically // loaded. The job is ready to resume its analysis from where it left off, once // new data is received. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html OpenJob ml_open_job.NewOpenJob - // Adds scheduled events to a calendar. + // Add scheduled events to the calendar. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html PostCalendarEvents ml_post_calendar_events.NewPostCalendarEvents - // Sends data to an anomaly detection job for analysis. + // Send data to an anomaly detection job for analysis. // // IMPORTANT: For each job, data can be accepted from only a single connection // at a time. @@ -1978,10 +2333,11 @@ type Ml struct { // a comma-separated list. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html PostData ml_post_data.NewPostData + // Preview features used by data frame analytics. // Previews the extracted features used by a data frame analytics config. // http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html PreviewDataFrameAnalytics ml_preview_data_frame_analytics.NewPreviewDataFrameAnalytics - // Previews a datafeed. + // Preview a datafeed. // This API returns the first "page" of search results from a datafeed. // You can preview an existing datafeed or provide configuration details for a // datafeed @@ -1997,18 +2353,18 @@ type Ml struct { // You can also use secondary authorization headers to supply the credentials. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html PreviewDatafeed ml_preview_datafeed.NewPreviewDatafeed - // Creates a calendar. + // Create a calendar. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html PutCalendar ml_put_calendar.NewPutCalendar - // Adds an anomaly detection job to a calendar. + // Add anomaly detection job to calendar. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html PutCalendarJob ml_put_calendar_job.NewPutCalendarJob - // Instantiates a data frame analytics job. + // Create a data frame analytics job. // This API creates a data frame analytics job that performs an analysis on the // source indices and stores the outcome in a destination index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html PutDataFrameAnalytics ml_put_data_frame_analytics.NewPutDataFrameAnalytics - // Instantiates a datafeed. + // Create a datafeed. // Datafeeds retrieve data from Elasticsearch for analysis by an anomaly // detection job. // You can associate only one datafeed with each anomaly detection job. @@ -2026,23 +2382,26 @@ type Ml struct { // the `.ml-config` index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html PutDatafeed ml_put_datafeed.NewPutDatafeed - // Instantiates a filter. + // Create a filter. // A filter contains a list of strings. It can be used by one or more anomaly // detection jobs. // Specifically, filters are referenced in the `custom_rules` property of // detector configuration objects. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-filter.html PutFilter ml_put_filter.NewPutFilter - // Instantiates an anomaly detection job. If you include a `datafeed_config`, - // you must have read index privileges on the source index. + // Create an anomaly detection job. + // If you include a `datafeed_config`, you must have read index privileges on + // the source index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html PutJob ml_put_job.NewPutJob - // Enables you to supply a trained model that is not created by data frame + // Create a trained model. + // Enable you to supply a trained model that is not created by data frame // analytics. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html PutTrainedModel ml_put_trained_model.NewPutTrainedModel - // Creates or updates a trained model alias. A trained model alias is a logical - // name used to reference a single trained model. + // Create or update a trained model alias. + // A trained model alias is a logical name used to reference a single trained + // model. // You can use aliases instead of trained model identifiers to make it easier to // reference your models. For example, you can use aliases in inference // aggregations and processors. @@ -2059,23 +2418,23 @@ type Ml struct { // returns a warning. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models-aliases.html PutTrainedModelAlias ml_put_trained_model_alias.NewPutTrainedModelAlias - // Creates part of a trained model definition. + // Create part of a trained model definition. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-model-definition-part.html PutTrainedModelDefinitionPart ml_put_trained_model_definition_part.NewPutTrainedModelDefinitionPart - // Creates a trained model vocabulary. + // Create a trained model vocabulary. // This API is supported only for natural language processing (NLP) models. // The vocabulary is stored in the index as described in // `inference_config.*.vocabulary` of the trained model definition. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-model-vocabulary.html PutTrainedModelVocabulary ml_put_trained_model_vocabulary.NewPutTrainedModelVocabulary - // Resets an anomaly detection job. + // Reset an anomaly detection job. // All model state and results are deleted. The job is ready to start over as if // it had just been created. // It is not currently possible to reset multiple jobs using wildcards or a // comma separated list. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-reset-job.html ResetJob ml_reset_job.NewResetJob - // Reverts to a specific snapshot. + // Revert to a snapshot. // The machine learning features react quickly to anomalous input, learning new // behaviors in data. Highly anomalous input increases the variance in the // models whilst the system learns whether this is a new step-change in behavior @@ -2085,6 +2444,7 @@ type Ml struct { // snapshot after Black Friday or a critical system failure. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html RevertModelSnapshot ml_revert_model_snapshot.NewRevertModelSnapshot + // Set upgrade_mode for ML indices. // Sets a cluster wide upgrade_mode setting that prepares machine learning // indices for an upgrade. // When upgrading your cluster, in some circumstances you must restart your @@ -2099,7 +2459,7 @@ type Ml struct { // machine learning info API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html SetUpgradeMode ml_set_upgrade_mode.NewSetUpgradeMode - // Starts a data frame analytics job. + // Start a data frame analytics job. // A data frame analytics job can be started and stopped multiple times // throughout its lifecycle. // If the destination index does not exist, it is created automatically the @@ -2113,7 +2473,7 @@ type Ml struct { // the destination index in advance with custom settings and mappings. // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html StartDataFrameAnalytics ml_start_data_frame_analytics.NewStartDataFrameAnalytics - // Starts one or more datafeeds. + // Start datafeeds. // // A datafeed must be started in order to retrieve data from Elasticsearch. A // datafeed can be started and stopped @@ -2135,28 +2495,28 @@ type Ml struct { // credentials are used instead. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html StartDatafeed ml_start_datafeed.NewStartDatafeed - // Starts a trained model deployment, which allocates the model to every machine - // learning node. + // Start a trained model deployment. + // It allocates the model to every machine learning node. // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trained-model-deployment.html StartTrainedModelDeployment ml_start_trained_model_deployment.NewStartTrainedModelDeployment - // Stops one or more data frame analytics jobs. + // Stop data frame analytics jobs. // A data frame analytics job can be started and stopped multiple times // throughout its lifecycle. // https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html StopDataFrameAnalytics ml_stop_data_frame_analytics.NewStopDataFrameAnalytics - // Stops one or more datafeeds. + // Stop datafeeds. // A datafeed that is stopped ceases to retrieve data from Elasticsearch. A // datafeed can be started and stopped // multiple times throughout its lifecycle. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html StopDatafeed ml_stop_datafeed.NewStopDatafeed - // Stops a trained model deployment. + // Stop a trained model deployment. // https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-trained-model-deployment.html StopTrainedModelDeployment ml_stop_trained_model_deployment.NewStopTrainedModelDeployment - // Updates an existing data frame analytics job. + // Update a data frame analytics job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html UpdateDataFrameAnalytics ml_update_data_frame_analytics.NewUpdateDataFrameAnalytics - // Updates the properties of a datafeed. + // Update a datafeed. // You must stop and start the datafeed for the changes to be applied. // When Elasticsearch security features are enabled, your datafeed remembers // which roles the user who updated it had at @@ -2165,20 +2525,23 @@ type Ml struct { // those credentials are used instead. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html UpdateDatafeed ml_update_datafeed.NewUpdateDatafeed + // Update a filter. // Updates the description of a filter, adds items, or removes items from the // list. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-filter.html UpdateFilter ml_update_filter.NewUpdateFilter + // Update an anomaly detection job. // Updates certain properties of an anomaly detection job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html UpdateJob ml_update_job.NewUpdateJob + // Update a snapshot. // 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 - // Starts a trained model deployment, which allocates the model to every machine - // learning node. + // Update a trained model deployment. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html UpdateTrainedModelDeployment ml_update_trained_model_deployment.NewUpdateTrainedModelDeployment + // Upgrade a snapshot. // Upgrades an anomaly detection model snapshot to the latest major version. // Over time, older snapshot formats are deprecated and removed. Anomaly // detection jobs support only snapshots that are from the current or previous @@ -2275,6 +2638,9 @@ type QueryRules struct { // Creates or updates a query ruleset. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-query-ruleset.html PutRuleset query_rules_put_ruleset.NewPutRuleset + // Creates or updates a query ruleset. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/test-query-ruleset.html + Test query_rules_test.NewTest } type Rollup struct { @@ -2307,28 +2673,36 @@ type Rollup struct { } type SearchApplication struct { - // Deletes a search application. + // Delete a search application. + // Remove a search application and its associated alias. Indices attached to the + // search application are not removed. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-search-application.html Delete search_application_delete.NewDelete // Delete a behavioral analytics collection. + // The associated data stream is also deleted. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-analytics-collection.html DeleteBehavioralAnalytics search_application_delete_behavioral_analytics.NewDeleteBehavioralAnalytics - // Returns the details about a search application + // Get search application details. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-search-application.html Get search_application_get.NewGet - // Returns the existing behavioral analytics collections. + // Get behavioral analytics collections. // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-analytics-collection.html GetBehavioralAnalytics search_application_get_behavioral_analytics.NewGetBehavioralAnalytics // Returns the existing search applications. // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-search-applications.html List search_application_list.NewList - // Creates or updates a search application. + // Create or update a search application. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-search-application.html Put search_application_put.NewPut - // Creates a behavioral analytics collection. + // Create a behavioral analytics collection. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-analytics-collection.html PutBehavioralAnalytics search_application_put_behavioral_analytics.NewPutBehavioralAnalytics - // Perform a search against a search application. + // Run a search application search. + // Generate and run an Elasticsearch query that uses the specified query + // parameteter and the search template associated with the search application or + // default template. + // Unspecified template parameters are assigned their default values if + // applicable. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-application-search.html Search search_application_search.NewSearch } @@ -2349,11 +2723,16 @@ type SearchableSnapshots struct { } type Security struct { - // Creates or updates a user profile on behalf of another user. + // Activate a user profile. + // + // Create or update a user profile on behalf of another user. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-activate-user-profile.html ActivateUserProfile security_activate_user_profile.NewActivateUserProfile - // Enables you to submit a request with a basic auth header to authenticate a - // user and retrieve information about the authenticated user. + // Authenticate a user. + // + // Authenticates a user and returns information about the authenticated user. + // Include the user information in a [basic auth + // header](https://en.wikipedia.org/wiki/Basic_access_authentication). // A successful call returns a JSON structure that shows user information such // as their username, the roles that are assigned to the user, any assigned // metadata, and information about the realms that authenticated and authorized @@ -2361,12 +2740,16 @@ type Security struct { // If the user cannot be authenticated, this API returns a 401 status code. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html Authenticate security_authenticate.NewAuthenticate + // Bulk delete roles. + // // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The bulk delete roles API cannot delete roles that are defined in roles // files. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-delete-role.html BulkDeleteRole security_bulk_delete_role.NewBulkDeleteRole + // Bulk create or update roles. + // // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The bulk create or update roles API cannot update roles that are defined in @@ -2376,28 +2759,44 @@ type Security struct { // Updates the attributes of multiple existing API keys. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-update-api-keys.html BulkUpdateApiKeys security_bulk_update_api_keys.NewBulkUpdateApiKeys - // Changes the passwords of users in the native realm and built-in users. + // Change passwords. + // + // Change the passwords of users in the native realm and built-in users. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html ChangePassword security_change_password.NewChangePassword - // Evicts a subset of all entries from the API key cache. + // Clear the API key cache. + // + // Evict a subset of all entries from the API key cache. // The cache is also automatically cleared on state changes of the security // index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html ClearApiKeyCache security_clear_api_key_cache.NewClearApiKeyCache - // Evicts application privileges from the native application privileges cache. + // Clear the privileges cache. + // + // Evict privileges from the native application privilege cache. + // The cache is also automatically cleared for applications that have their + // privileges updated. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html ClearCachedPrivileges security_clear_cached_privileges.NewClearCachedPrivileges - // Evicts users from the user cache. Can completely clear the cache or evict + // Clear the user cache. + // + // Evict users from the user cache. You can completely clear the cache or evict // specific users. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html ClearCachedRealms security_clear_cached_realms.NewClearCachedRealms - // Evicts roles from the native role cache. + // Clear the roles cache. + // + // Evict roles from the native role cache. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html ClearCachedRoles security_clear_cached_roles.NewClearCachedRoles - // Evicts tokens from the service account token caches. + // Clear service account token caches. + // + // Evict a subset of all entries from the service account token caches. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html ClearCachedServiceTokens security_clear_cached_service_tokens.NewClearCachedServiceTokens - // Creates an API key for access without requiring basic authentication. + // Create an API key. + // + // Create an API key for access without requiring basic authentication. // A successful request returns a JSON structure that contains the API key, its // unique id, and its name. // If applicable, it also returns expiration information for the API key in @@ -2409,44 +2808,67 @@ type Security struct { // Creates a cross-cluster API key for API key based remote cluster access. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-cross-cluster-api-key.html CreateCrossClusterApiKey security_create_cross_cluster_api_key.NewCreateCrossClusterApiKey - // Creates a service accounts token for access without requiring basic + // Create a service account token. + // + // Create a service accounts token for access without requiring basic // authentication. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html CreateServiceToken security_create_service_token.NewCreateServiceToken - // Removes application privileges. + // Delete application privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html DeletePrivileges security_delete_privileges.NewDeletePrivileges - // Removes roles in the native realm. + // Delete roles. + // + // Delete roles in the native realm. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html DeleteRole security_delete_role.NewDeleteRole - // Removes role mappings. + // Delete role mappings. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html DeleteRoleMapping security_delete_role_mapping.NewDeleteRoleMapping - // Deletes a service account token. + // Delete service account tokens. + // + // Delete service account tokens for a service in a specified namespace. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html DeleteServiceToken security_delete_service_token.NewDeleteServiceToken - // Deletes users from the native realm. + // Delete users. + // + // Delete users from the native realm. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html DeleteUser security_delete_user.NewDeleteUser - // Disables users in the native realm. + // Disable users. + // + // Disable users in the native realm. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html DisableUser security_disable_user.NewDisableUser - // Disables a user profile so it's not visible in user profile searches. + // Disable a user profile. + // + // Disable user profiles so that they are not visible in user profile searches. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user-profile.html DisableUserProfile security_disable_user_profile.NewDisableUserProfile - // Enables users in the native realm. + // Enable users. + // + // Enable users in the native realm. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html EnableUser security_enable_user.NewEnableUser - // Enables a user profile so it's visible in user profile searches. + // Enable a user profile. + // + // Enable user profiles to make them visible in user profile searches. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user-profile.html EnableUserProfile security_enable_user_profile.NewEnableUserProfile - // Enables a Kibana instance to configure itself for communication with a - // secured Elasticsearch cluster. + // Enroll Kibana. + // + // Enable a Kibana instance to configure itself for communication with a secured + // Elasticsearch cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-kibana-enrollment.html EnrollKibana security_enroll_kibana.NewEnrollKibana - // Allows a new node to join an existing cluster with security features enabled. + // Enroll a node. + // + // Enroll a new node to allow it to join an existing cluster with security + // features enabled. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-node-enrollment.html EnrollNode security_enroll_node.NewEnrollNode + // Get API key information. + // // Retrieves information for one or more API keys. // NOTE: If you have only the `manage_own_api_key` privilege, this API returns // only the API keys that you own. @@ -2455,46 +2877,66 @@ type Security struct { // ownership. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html GetApiKey security_get_api_key.NewGetApiKey - // Retrieves the list of cluster privileges and index privileges that are - // available in this version of Elasticsearch. + // Get builtin privileges. + // + // Get the list of cluster privileges and index privileges that are available in + // this version of Elasticsearch. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-builtin-privileges.html GetBuiltinPrivileges security_get_builtin_privileges.NewGetBuiltinPrivileges - // Retrieves application privileges. + // Get application privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html GetPrivileges security_get_privileges.NewGetPrivileges + // Get roles. + // + // Get roles in the native realm. // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The get roles API cannot retrieve roles that are defined in roles files. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html GetRole security_get_role.NewGetRole - // Retrieves role mappings. + // Get role mappings. + // + // Role mappings define which roles are assigned to each user. + // The role mapping APIs are generally the preferred way to manage role mappings + // rather than using role mapping files. + // The get role mappings API cannot retrieve role mappings that are defined in + // role mapping files. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html GetRoleMapping security_get_role_mapping.NewGetRoleMapping - // This API returns a list of service accounts that match the provided path - // parameter(s). + // Get service accounts. + // + // Get a list of service accounts that match the provided path parameters. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html GetServiceAccounts security_get_service_accounts.NewGetServiceAccounts - // Retrieves information of all service credentials for a service account. + // Get service account credentials. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html GetServiceCredentials security_get_service_credentials.NewGetServiceCredentials // Retrieve settings for the security system indices // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-settings.html GetSettings security_get_settings.NewGetSettings - // Creates a bearer token for access without requiring basic authentication. + // Get a token. + // + // Create a bearer token for access without requiring basic authentication. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html GetToken security_get_token.NewGetToken - // Retrieves information about users in the native realm and built-in users. + // Get users. + // + // Get information about users in the native realm and built-in users. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html GetUser security_get_user.NewGetUser - // Retrieves security privileges for the logged in user. + // Get user privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html GetUserPrivileges security_get_user_privileges.NewGetUserPrivileges - // Retrieves a user's profile using the unique profile ID. + // Get a user profile. + // + // Get a user's profile using the unique profile ID. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-profile.html GetUserProfile security_get_user_profile.NewGetUserProfile - // Creates an API key on behalf of another user. - // This API is similar to Create API keys, however it creates the API key for a - // user that is different than the user that runs the API. + // Grant an API key. + // + // Create an API key on behalf of another user. + // This API is similar to the create API keys API, however it creates the API + // key for a user that is different than the user that runs the API. // The caller must have authentication credentials (either an access token, or a // username and password) for the user on whose behalf the API key will be // created. @@ -2517,14 +2959,24 @@ type Security struct { // when you create the API keys. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html GrantApiKey security_grant_api_key.NewGrantApiKey - // Determines whether the specified user has a specified list of privileges. + // Check user privileges. + // + // Determine whether the specified user has a specified list of privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html HasPrivileges security_has_privileges.NewHasPrivileges - // Determines whether the users associated with the specified profile IDs have - // all the requested privileges. + // Check user profile privileges. + // + // Determine whether the users associated with the specified user profile IDs + // have all the requested privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges-user-profile.html HasPrivilegesUserProfile security_has_privileges_user_profile.NewHasPrivilegesUserProfile - // Invalidates one or more API keys. + // Invalidate API keys. + // + // This API invalidates API keys created by the create API key or grant API key + // APIs. + // Invalidated API keys fail authentication, but they can still be viewed using + // the get API key information and query API key information APIs, for at least + // the configured retention period, until they are automatically deleted. // The `manage_api_key` privilege allows deleting any API keys. // The `manage_own_api_key` only allows deleting API keys that are owned by the // user. @@ -2532,11 +2984,22 @@ type Security struct { // must be issued in one of the three formats: // - Set the parameter `owner=true`. // - Or, set both `username` and `realm_name` to match the user’s identity. - // - Or, if the request is issued by an API key, i.e. an API key invalidates - // itself, specify its ID in the `ids` field. + // - Or, if the request is issued by an API key, that is to say an API key + // invalidates itself, specify its ID in the `ids` field. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html InvalidateApiKey security_invalidate_api_key.NewInvalidateApiKey - // Invalidates one or more access tokens or refresh tokens. + // Invalidate a token. + // + // The access tokens returned by the get token API have a finite period of time + // for which they are valid. + // After that time period, they can no longer be used. + // The time period is defined by the `xpack.security.authc.token.timeout` + // setting. + // + // The refresh tokens returned by the get token API are only valid for 24 hours. + // They can also be used exactly once. + // If you want to invalidate one or more access or refresh tokens immediately, + // use this invalidate token API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html InvalidateToken security_invalidate_token.NewInvalidateToken // Exchanges an OpenID Connection authentication response message for an @@ -2550,56 +3013,95 @@ type Security struct { // Creates an OAuth 2.0 authentication request as a URL string // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-oidc-prepare-authentication.html OidcPrepareAuthentication security_oidc_prepare_authentication.NewOidcPrepareAuthentication - // Adds or updates application privileges. + // Create or update application privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html PutPrivileges security_put_privileges.NewPutPrivileges - // The role management APIs are generally the preferred way to manage roles, - // rather than using file-based role management. + // Create or update roles. + // + // The role management APIs are generally the preferred way to manage roles in + // the native realm, rather than using file-based role management. // The create or update roles API cannot update roles that are defined in roles // files. + // File-based role management is not available in Elastic Serverless. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html PutRole security_put_role.NewPutRole - // Creates and updates role mappings. + // Create or update role mappings. + // + // Role mappings define which roles are assigned to each user. + // Each mapping has rules that identify users and a list of roles that are + // granted to those users. + // The role mapping APIs are generally the preferred way to manage role mappings + // rather than using role mapping files. The create or update role mappings API + // cannot update role mappings that are defined in role mapping files. + // + // This API does not create roles. Rather, it maps users to existing roles. + // Roles can be created by using the create or update roles API or roles files. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html PutRoleMapping security_put_role_mapping.NewPutRoleMapping - // Adds and updates users in the native realm. These users are commonly referred - // to as native users. + // Create or update users. + // + // A password is required for adding a new user but is optional when updating an + // existing user. + // To change a user’s password without updating any other fields, use the change + // password API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html PutUser security_put_user.NewPutUser - // Retrieves information for API keys in a paginated manner. You can optionally + // Find API keys with a query. + // + // Get a paginated list of API keys and their information. You can optionally // filter the results with a query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-api-key.html QueryApiKeys security_query_api_keys.NewQueryApiKeys - // Retrieves roles in a paginated manner. You can optionally filter the results - // with a query. + // Find roles with a query. + // + // Get roles in a paginated manner. You can optionally filter the results with a + // query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-role.html QueryRole security_query_role.NewQueryRole - // Retrieves information for Users in a paginated manner. You can optionally - // filter the results with a query. + // Find users with a query. + // + // Get information for users in a paginated manner. + // You can optionally filter the results with a query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-user.html QueryUser security_query_user.NewQueryUser - // Submits a SAML Response message to Elasticsearch for consumption. + // Authenticate SAML. + // + // Submits a SAML response message to Elasticsearch for consumption. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-authenticate.html SamlAuthenticate security_saml_authenticate.NewSamlAuthenticate + // Logout of SAML completely. + // // Verifies the logout response sent from the SAML IdP. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-complete-logout.html SamlCompleteLogout security_saml_complete_logout.NewSamlCompleteLogout + // Invalidate SAML. + // // Submits a SAML LogoutRequest message to Elasticsearch for consumption. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-invalidate.html SamlInvalidate security_saml_invalidate.NewSamlInvalidate + // Logout of SAML. + // // Submits a request to invalidate an access token and refresh token. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-logout.html SamlLogout security_saml_logout.NewSamlLogout - // Creates a SAML authentication request () as a URL string, based - // on the configuration of the respective SAML realm in Elasticsearch. + // Prepare SAML authentication. + // + // Creates a SAML authentication request (``) as a URL string, + // based on the configuration of the respective SAML realm in Elasticsearch. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-prepare-authentication.html SamlPrepareAuthentication security_saml_prepare_authentication.NewSamlPrepareAuthentication + // Create SAML service provider metadata. + // // Generate SAML metadata for a SAML 2.0 Service Provider. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-sp-metadata.html SamlServiceProviderMetadata security_saml_service_provider_metadata.NewSamlServiceProviderMetadata + // Suggest a user profile. + // // Get suggestions for user profiles that match specified search criteria. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-suggest-user-profile.html SuggestUserProfiles security_suggest_user_profiles.NewSuggestUserProfiles + // Update an API key. + // // Updates attributes of an existing API key. // Users can only update API keys that they created or that were granted to // them. @@ -2629,8 +3131,10 @@ type Security struct { // Update settings for the security system index // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-settings.html UpdateSettings security_update_settings.NewUpdateSettings - // Updates specific data for the user profile that's associated with the - // specified unique ID. + // Update user profile data. + // + // Update specific data for the user profile that is associated with a unique + // ID. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-user-profile-data.html UpdateUserProfileData security_update_user_profile_data.NewUpdateUserProfileData } @@ -2712,6 +3216,9 @@ type Snapshot struct { // Returns information about a repository. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html GetRepository snapshot_get_repository.NewGetRepository + // Verifies the integrity of the contents of a snapshot repository + // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + RepositoryVerifyIntegrity snapshot_repository_verify_integrity.NewRepositoryVerifyIntegrity // Restores a snapshot. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html Restore snapshot_restore.NewRestore @@ -2748,8 +3255,36 @@ type Sql struct { } type Ssl struct { - // Retrieves information about the X.509 certificates used to encrypt + // Get SSL certificates. + // + // Get information about the X.509 certificates that are used to encrypt // communications in the cluster. + // The API returns a list that includes certificates from all TLS contexts + // including: + // + // - Settings for transport and HTTP interfaces + // - TLS settings that are used within authentication realms + // - TLS settings for remote monitoring exporters + // + // The list includes certificates that are used for configuring trust, such as + // those configured in the `xpack.security.transport.ssl.truststore` and + // `xpack.security.transport.ssl.certificate_authorities` settings. + // It also includes certificates that are used for configuring server identity, + // such as `xpack.security.http.ssl.keystore` and + // `xpack.security.http.ssl.certificate settings`. + // + // The list does not include certificates that are sourced from the default SSL + // context of the Java Runtime Environment (JRE), even if those certificates are + // in use within Elasticsearch. + // + // NOTE: When a PKCS#11 token is configured as the truststore of the JRE, the + // API returns all the certificates that are included in the PKCS#11 token + // irrespective of whether these are used in the Elasticsearch TLS + // configuration. + // + // If Elasticsearch is configured to use a keystore or truststore, the API + // output includes all certificates in that store, even though some of the + // certificates might not be in active use within the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html Certificates ssl_certificates.NewCertificates } @@ -2782,7 +3317,8 @@ type Tasks struct { // Cancels a task, if it can be cancelled through an API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html Cancel tasks_cancel.NewCancel - // Returns information about a task. + // Get task information. + // Returns information about the tasks currently executing in the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html Get tasks_get.NewGet // The task management API returns information about tasks currently executing @@ -2809,19 +3345,24 @@ type TextStructure struct { } type Transform struct { + // Delete a transform. // Deletes a transform. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html DeleteTransform transform_delete_transform.NewDeleteTransform // Retrieves transform usage information for transform nodes. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-node-stats.html GetNodeStats transform_get_node_stats.NewGetNodeStats + // Get transforms. // Retrieves configuration information for transforms. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html GetTransform transform_get_transform.NewGetTransform + // Get transform stats. // Retrieves usage information for transforms. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html GetTransformStats transform_get_transform_stats.NewGetTransformStats - // Previews a transform. + // Preview a transform. + // Generates a preview of the results that you will get when you create a + // transform with the same configuration. // // It returns a maximum of 100 results. The calculations are based on all the // current data in the source index. It also @@ -2830,6 +3371,7 @@ type Transform struct { // types of the source index and the transform aggregations. // https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html PreviewTransform transform_preview_transform.NewPreviewTransform + // Create a transform. // Creates a transform. // // A transform copies data from source indices, transforms it, and persists it @@ -2866,13 +3408,15 @@ type Transform struct { // give users any privileges on `.data-frame-internal*` indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html PutTransform transform_put_transform.NewPutTransform + // Reset a transform. // Resets a transform. // Before you can reset it, you must stop it; alternatively, use the `force` // query parameter. // If the destination index was created by the transform, it is deleted. // https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-transform.html ResetTransform transform_reset_transform.NewResetTransform - // Schedules now a transform. + // Schedule a transform to start now. + // Instantly runs a transform to process data. // // If you _schedule_now a transform, it will process the new data instantly, // without waiting for the configured frequency interval. After _schedule_now @@ -2882,6 +3426,7 @@ type Transform struct { // is called again in the meantime. // https://www.elastic.co/guide/en/elasticsearch/reference/current/schedule-now-transform.html ScheduleNowTransform transform_schedule_now_transform.NewScheduleNowTransform + // Start a transform. // Starts a transform. // // When you start a transform, it creates the destination index if it does not @@ -2912,9 +3457,11 @@ type Transform struct { // operations. // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html StartTransform transform_start_transform.NewStartTransform + // Stop transforms. // Stops one or more transforms. // https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html StopTransform transform_stop_transform.NewStopTransform + // Update a transform. // Updates certain properties of a transform. // // All updated properties except `description` do not take effect until after @@ -3045,100 +3592,184 @@ type API struct { Watcher Watcher Xpack Xpack + // Bulk index or delete documents. // Performs multiple indexing or delete operations in a single API call. // This reduces overhead and can greatly increase indexing speed. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html Bulk core_bulk.NewBulk - // Clears the search context and results for a scrolling search. + // Clear a scrolling search. + // + // Clear the search context and results for a scrolling search. // https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html ClearScroll core_clear_scroll.NewClearScroll - // Closes a point-in-time. + // Close a point in time. + // + // A point in time must be opened explicitly before being used in search + // requests. + // The `keep_alive` parameter tells Elasticsearch how long it should persist. + // A point in time is automatically closed when the `keep_alive` period has + // elapsed. + // However, keeping points in time has a cost; close them as soon as they are no + // longer required for search requests. // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html ClosePointInTime core_close_point_in_time.NewClosePointInTime // Returns number of documents matching a query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html Count core_count.NewCount + // Index a document. // Adds a JSON document to the specified data stream or index and makes it // searchable. // If the target is an index and the document already exists, the request // updates the document and increments its version. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html Create core_create.NewCreate + // Delete a document. // Removes a JSON document from the specified index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html Delete core_delete.NewDelete + // Delete documents. // Deletes documents that match the specified query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html DeleteByQuery core_delete_by_query.NewDeleteByQuery - // Changes the number of requests per second for a particular Delete By Query + // Throttle a delete by query operation. + // + // Change the number of requests per second for a particular delete by query // operation. + // Rethrottling that speeds up the query takes effect immediately but + // rethrotting that slows down the query takes effect after completing the + // current batch to prevent scroll timeouts. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html DeleteByQueryRethrottle core_delete_by_query_rethrottle.NewDeleteByQueryRethrottle + // Delete a script or search template. // Deletes a stored script or search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html DeleteScript core_delete_script.NewDeleteScript - // Checks if a document in an index exists. + // Check a document. + // Checks if a specified document exists. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html Exists core_exists.NewExists + // Check for a document source. // Checks if a document's `_source` is stored. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html ExistsSource core_exists_source.NewExistsSource - // Returns information about why a specific document matches (or doesn’t match) + // Explain a document match result. + // Returns information about why a specific document matches, or doesn’t match, // a query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html Explain core_explain.NewExplain - // The field capabilities API returns the information about the capabilities of - // fields among multiple indices. - // The field capabilities API returns runtime fields like any other field. For - // example, a runtime field with a type - // of keyword is returned as any other field that belongs to the `keyword` - // family. + // Get the field capabilities. + // + // Get information about the capabilities of fields among multiple indices. + // + // For data streams, the API returns field capabilities among the stream’s + // backing indices. + // It returns runtime fields like any other field. + // For example, a runtime field with a type of keyword is returned the same as + // any other field that belongs to the `keyword` family. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html FieldCaps core_field_caps.NewFieldCaps - // Returns a document. + // Get a document by its ID. + // Retrieves the document with the specified ID from an index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html Get core_get.NewGet + // Get a script or search template. // Retrieves a stored script or search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html GetScript core_get_script.NewGetScript - // Returns all script contexts. + // Get script contexts. + // + // Get a list of supported script contexts and their methods. // https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-contexts.html GetScriptContext core_get_script_context.NewGetScriptContext - // Returns available script types, languages and contexts + // Get script languages. + // + // Get a list of available script types, languages, and contexts. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html GetScriptLanguages core_get_script_languages.NewGetScriptLanguages + // Get a document's source. // Returns the source of a document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html GetSource core_get_source.NewGetSource // Returns the health of the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html HealthReport core_health_report.NewHealthReport + // Index a document. // Adds a JSON document to the specified data stream or index and makes it // searchable. // If the target is an index and the document already exists, the request // updates the document and increments its version. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html Index core_index.NewIndex + // Get cluster info. // Returns basic information about the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html Info core_info.NewInfo - // Performs a kNN search. + // Run a knn search. + // + // NOTE: The kNN search API has been replaced by the `knn` option in the search + // API. + // + // Perform a k-nearest neighbor (kNN) search on a dense_vector field and return + // the matching documents. + // Given a query vector, the API finds the k closest vectors and returns those + // documents as search hits. + // + // Elasticsearch uses the HNSW algorithm to support efficient kNN search. + // Like most kNN algorithms, HNSW is an approximate method that sacrifices + // result accuracy for improved search speed. + // This means the results returned are not always the true k closest neighbors. + // + // The kNN search API supports restricting the search using a filter. + // The search will return the top k documents that also match the filter query. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html KnnSearch core_knn_search.NewKnnSearch - // Allows to get multiple documents in one request. + // Get multiple documents. + // + // Get multiple JSON documents by ID from one or more indices. + // If you specify an index in the request URI, you only need to specify the + // document IDs in the request body. + // To ensure fast responses, this multi get (mget) API responds with partial + // results if one or more shards fail. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html Mget core_mget.NewMget - // Allows to execute several search operations in one request. + // Run multiple searches. + // + // The format of the request is similar to the bulk API format and makes use of + // the newline delimited JSON (NDJSON) format. + // The structure is as follows: + // + // ``` + // header\n + // body\n + // header\n + // body\n + // ``` + // + // This structure is specifically optimized to reduce parsing if a specific + // search ends up redirected to another node. + // + // IMPORTANT: The final line of data must end with a newline character `\n`. + // Each newline character may be preceded by a carriage return `\r`. + // When sending requests to this endpoint the `Content-Type` header should be + // set to `application/x-ndjson`. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html Msearch core_msearch.NewMsearch - // Runs multiple templated searches with a single request. + // Run multiple templated searches. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html MsearchTemplate core_msearch_template.NewMsearchTemplate - // Returns multiple termvectors in one request. + // Get multiple term vectors. + // + // You can specify existing documents by index and ID or provide artificial + // documents in the body of the request. + // You can specify the index in the request body or request URI. + // The response contains a `docs` array with all the fetched termvectors. + // Each element has the structure provided by the termvectors API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-termvectors.html Mtermvectors core_mtermvectors.NewMtermvectors - // A search request by default executes against the most recent visible data of - // the target indices, + // Open a point in time. + // + // A search request by default runs against the most recent visible data of the + // target indices, // which is called point in time. Elasticsearch pit (point in time) is a // lightweight view into the // state of the data as it existed when initiated. In some cases, it’s preferred @@ -3148,74 +3779,140 @@ type API struct { // `search_after` requests, then the results of those requests might not be // consistent as changes happening // between searches are only visible to the more recent point in time. + // + // A point in time must be opened explicitly before being used in search + // requests. + // The `keep_alive` parameter tells Elasticsearch how long it should persist. // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html OpenPointInTime core_open_point_in_time.NewOpenPointInTime + // Ping the cluster. // Returns whether the cluster is running. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html Ping core_ping.NewPing + // Create or update a script or search template. // Creates or updates a stored script or search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html PutScript core_put_script.NewPutScript - // Enables you to evaluate the quality of ranked search results over a set of - // typical search queries. + // Evaluate ranked search results. + // + // Evaluate the quality of ranked search results over a set of typical search + // queries. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html RankEval core_rank_eval.NewRankEval - // Allows to copy documents from one index to another, optionally filtering the - // source - // documents by a query, changing the destination index settings, or fetching - // the - // documents from a remote cluster. + // Reindex documents. + // Copies documents from a source to a destination. The source can be any + // existing index, alias, or data stream. The destination must differ from the + // source. For example, you cannot reindex a data stream into itself. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html Reindex core_reindex.NewReindex - // Copies documents from a source to a destination. + // Throttle a reindex operation. + // + // Change the number of requests per second for a particular reindex operation. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html ReindexRethrottle core_reindex_rethrottle.NewReindexRethrottle - // Renders a search template as a search request body. + // Render a search template. + // + // Render a search template as a search request body. // https://www.elastic.co/guide/en/elasticsearch/reference/current/render-search-template-api.html RenderSearchTemplate core_render_search_template.NewRenderSearchTemplate + // Run a script. // Runs a script and returns a result. // https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html ScriptsPainlessExecute core_scripts_painless_execute.NewScriptsPainlessExecute - // Allows to retrieve a large numbers of results from a single search request. + // Run a scrolling search. + // + // IMPORTANT: The scroll API is no longer recommend for deep pagination. If you + // need to preserve the index state while paging through more than 10,000 hits, + // use the `search_after` parameter with a point in time (PIT). + // + // The scroll API gets large sets of results from a single scrolling search + // request. + // To get the necessary scroll ID, submit a search API request that includes an + // argument for the `scroll` query parameter. + // The `scroll` parameter indicates how long Elasticsearch should retain the + // search context for the request. + // The search response returns a scroll ID in the `_scroll_id` response body + // parameter. + // You can then use the scroll ID with the scroll API to retrieve the next batch + // of results for the request. + // If the Elasticsearch security features are enabled, the access to the results + // of a specific scroll ID is restricted to the user or API key that submitted + // the search. + // + // You can also use the scroll API to specify a new scroll parameter that + // extends or shortens the retention period for the search context. + // + // IMPORTANT: Results from a scrolling search reflect the state of the index at + // the time of the initial search request. Subsequent indexing or document + // changes only affect later search and scroll requests. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-scroll Scroll core_scroll.NewScroll - // Returns search hits that match the query defined in the request. + // Run a search. + // + // Get search hits that match the query defined in the request. // You can provide search queries using the `q` query string parameter or the // request body. // If both are specified, only the query parameter is used. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html Search core_search.NewSearch - // Searches a vector tile for geospatial values. Returns results as a binary - // Mapbox vector tile. + // Search a vector tile. + // + // Search a vector tile for geospatial values. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-vector-tile-api.html SearchMvt core_search_mvt.NewSearchMvt - // Returns information about the indices and shards that a search request would - // be executed against. + // Get the search shards. + // + // Get the indices and shards that a search request would be run against. + // This information can be useful for working out issues or planning + // optimizations with routing and shard preferences. + // When filtered aliases are used, the filter is returned as part of the indices + // section. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html SearchShards core_search_shards.NewSearchShards - // Runs a search with a search template. + // Run a search with a search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html SearchTemplate core_search_template.NewSearchTemplate - // 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 + // Get terms in an index. + // + // Discover terms that match a partial string in an index. + // This "terms enum" API is designed for low-latency look-ups used in // auto-complete scenarios. + // + // If the `complete` property in the response is false, the returned terms set + // may be incomplete and should be treated as approximate. + // This can occur due to a few reasons, such as a request timeout or a node + // error. + // + // NOTE: The terms enum API may return terms from deleted documents. Deleted + // documents are initially only marked as deleted. It is not until their + // segments are merged that documents are actually deleted. Until that happens, + // the terms enum API will return terms from these documents. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html TermsEnum core_terms_enum.NewTermsEnum - // Returns information and statistics about terms in the fields of a particular + // Get term vector information. + // + // Get information and statistics about terms in the fields of a particular // document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html Termvectors core_termvectors.NewTermvectors - // Updates a document with a script or partial document. + // Update a document. + // Updates a document by running a script or passing a partial document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html Update core_update.NewUpdate + // Update documents. // Updates documents that match the specified query. // If no query is specified, performs an update on every document in the data // stream or index without modifying the source, which is useful for picking up // mapping changes. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html UpdateByQuery core_update_by_query.NewUpdateByQuery - // Changes the number of requests per second for a particular Update By Query + // Throttle an update by query operation. + // + // Change the number of requests per second for a particular update by query // operation. + // Rethrottling that speeds up the query takes effect immediately but + // rethrotting that slows down the query takes effect after completing the + // current batch to prevent scroll timeouts. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html UpdateByQueryRethrottle core_update_by_query_rethrottle.NewUpdateByQueryRethrottle } @@ -3525,12 +4222,15 @@ func New(tp elastictransport.Interface) *API { // Ingest Ingest: Ingest{ - DeletePipeline: ingest_delete_pipeline.NewDeletePipelineFunc(tp), - GeoIpStats: ingest_geo_ip_stats.NewGeoIpStatsFunc(tp), - GetPipeline: ingest_get_pipeline.NewGetPipelineFunc(tp), - ProcessorGrok: ingest_processor_grok.NewProcessorGrokFunc(tp), - PutPipeline: ingest_put_pipeline.NewPutPipelineFunc(tp), - Simulate: ingest_simulate.NewSimulateFunc(tp), + DeleteGeoipDatabase: ingest_delete_geoip_database.NewDeleteGeoipDatabaseFunc(tp), + DeletePipeline: ingest_delete_pipeline.NewDeletePipelineFunc(tp), + GeoIpStats: ingest_geo_ip_stats.NewGeoIpStatsFunc(tp), + GetGeoipDatabase: ingest_get_geoip_database.NewGetGeoipDatabaseFunc(tp), + GetPipeline: ingest_get_pipeline.NewGetPipelineFunc(tp), + ProcessorGrok: ingest_processor_grok.NewProcessorGrokFunc(tp), + PutGeoipDatabase: ingest_put_geoip_database.NewPutGeoipDatabaseFunc(tp), + PutPipeline: ingest_put_pipeline.NewPutPipelineFunc(tp), + Simulate: ingest_simulate.NewSimulateFunc(tp), }, // License @@ -3668,6 +4368,7 @@ func New(tp elastictransport.Interface) *API { ListRulesets: query_rules_list_rulesets.NewListRulesetsFunc(tp), PutRule: query_rules_put_rule.NewPutRuleFunc(tp), PutRuleset: query_rules_put_ruleset.NewPutRulesetFunc(tp), + Test: query_rules_test.NewTestFunc(tp), }, // Rollup @@ -3790,17 +4491,18 @@ func New(tp elastictransport.Interface) *API { // Snapshot Snapshot: Snapshot{ - CleanupRepository: snapshot_cleanup_repository.NewCleanupRepositoryFunc(tp), - Clone: snapshot_clone.NewCloneFunc(tp), - Create: snapshot_create.NewCreateFunc(tp), - CreateRepository: snapshot_create_repository.NewCreateRepositoryFunc(tp), - Delete: snapshot_delete.NewDeleteFunc(tp), - DeleteRepository: snapshot_delete_repository.NewDeleteRepositoryFunc(tp), - Get: snapshot_get.NewGetFunc(tp), - GetRepository: snapshot_get_repository.NewGetRepositoryFunc(tp), - Restore: snapshot_restore.NewRestoreFunc(tp), - Status: snapshot_status.NewStatusFunc(tp), - VerifyRepository: snapshot_verify_repository.NewVerifyRepositoryFunc(tp), + CleanupRepository: snapshot_cleanup_repository.NewCleanupRepositoryFunc(tp), + Clone: snapshot_clone.NewCloneFunc(tp), + Create: snapshot_create.NewCreateFunc(tp), + CreateRepository: snapshot_create_repository.NewCreateRepositoryFunc(tp), + Delete: snapshot_delete.NewDeleteFunc(tp), + DeleteRepository: snapshot_delete_repository.NewDeleteRepositoryFunc(tp), + Get: snapshot_get.NewGetFunc(tp), + GetRepository: snapshot_get_repository.NewGetRepositoryFunc(tp), + RepositoryVerifyIntegrity: snapshot_repository_verify_integrity.NewRepositoryVerifyIntegrityFunc(tp), + Restore: snapshot_restore.NewRestoreFunc(tp), + Status: snapshot_status.NewStatusFunc(tp), + VerifyRepository: snapshot_verify_repository.NewVerifyRepositoryFunc(tp), }, // Sql 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 759997d184..5675a129b8 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes an async search by identifier. -// If the search is still running, the search request will be cancelled. +// Delete an async search. +// +// If the asynchronous search is still running, it is cancelled. // Otherwise, the saved search results are deleted. // If the Elasticsearch security features are enabled, the deletion of a // specific async search is restricted to: the authenticated user that submitted @@ -82,8 +83,9 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } -// Deletes an async search by identifier. -// If the search is still running, the search request will be cancelled. +// Delete an async search. +// +// If the asynchronous search is still running, it is cancelled. // Otherwise, the saved search results are deleted. // If the Elasticsearch security features are enabled, the deletion of a // specific async search is restricted to: the authenticated user that submitted 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 3ce66d3ec7..d3867a078b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/delete/AsyncSearchDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e86b2c94dd..db2e53b110 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves the results of a previously submitted async search request given -// its identifier. +// Get async search results. +// +// Retrieve the results of a previously submitted asynchronous search request. // If the Elasticsearch security features are enabled, access to the results of // a specific async search is restricted to the user or API key that submitted // it. @@ -80,8 +81,9 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Retrieves the results of a previously submitted async search request given -// its identifier. +// Get async search results. +// +// Retrieve the results of a previously submitted asynchronous search request. // If the Elasticsearch security features are enabled, access to the results of // a specific async search is restricted to the user or API key that submitted // it. 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 504a5ffbdf..5a8d4f00b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1dc7fe01f3..fbe393910d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package status @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d05bd22e7b..39d9458211 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Get async search status -// Retrieves the status of a previously submitted async search request given its +// Get the async search status. +// +// Get the status of a previously submitted async search request given its // identifier, without retrieving search results. // If the Elasticsearch security features are enabled, use of this API is // restricted to the `monitoring_user` role. @@ -80,8 +81,9 @@ func NewStatusFunc(tp elastictransport.Interface) NewStatus { } } -// Get async search status -// Retrieves the status of a previously submitted async search request given its +// Get the async search status. +// +// Get the status of a previously submitted async search request given its // identifier, without retrieving search results. // If the Elasticsearch security features are enabled, use of this API is // restricted to the `monitoring_user` role. 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 b2c8e9927d..045aa427b2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package submit @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L55-L286 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L55-L290 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` 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 60ec59c468..7d4b44b629 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package submit @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 171f249182..3d18707544 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,17 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Runs a search request asynchronously. +// Run an async search. +// // When the primary sort of the results is an indexed field, shards get sorted -// based on minimum and maximum value that they hold for that field, hence -// partial results become available following the sort criteria that was -// requested. -// Warning: Async search does not support scroll nor search requests that only -// include the suggest section. -// By default, Elasticsearch doesn’t allow you to store an async search response -// larger than 10Mb and an attempt to do this results in an error. +// based on minimum and maximum value that they hold for that field. Partial +// results become available following the sort criteria that was requested. +// +// Warning: Asynchronous search does not support scroll or search requests that +// include only the suggest section. +// +// By default, Elasticsearch does not allow you to store an async search +// response larger than 10Mb and an attempt to do this results in an error. // The maximum allowed size for a stored async search response can be set by // changing the `search.max_async_search_response_size` cluster level setting. package submit @@ -93,15 +95,17 @@ func NewSubmitFunc(tp elastictransport.Interface) NewSubmit { } } -// Runs a search request asynchronously. +// Run an async search. +// // When the primary sort of the results is an indexed field, shards get sorted -// based on minimum and maximum value that they hold for that field, hence -// partial results become available following the sort criteria that was -// requested. -// Warning: Async search does not support scroll nor search requests that only -// include the suggest section. -// By default, Elasticsearch doesn’t allow you to store an async search response -// larger than 10Mb and an attempt to do this results in an error. +// based on minimum and maximum value that they hold for that field. Partial +// results become available following the sort criteria that was requested. +// +// Warning: Asynchronous search does not support scroll or search requests that +// include only the suggest section. +// +// By default, Elasticsearch does not allow you to store an async search +// response larger than 10Mb and an attempt to do this results in an error. // The maximum allowed size for a stored async search response can be set by // changing the `search.max_async_search_response_size` cluster level setting. // 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 8d101b8ef9..0bfab0be80 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,10 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. -// Direct use is not supported. +// Delete an autoscaling policy. +// +// NOTE: This feature is designed for indirect use by Elasticsearch Service, +// Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not +// supported. package deleteautoscalingpolicy import ( @@ -77,8 +80,11 @@ func NewDeleteAutoscalingPolicyFunc(tp elastictransport.Interface) NewDeleteAuto } } -// Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. -// Direct use is not supported. +// Delete an autoscaling policy. +// +// NOTE: This feature is designed for indirect use by Elasticsearch Service, +// Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not +// supported. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html func New(tp elastictransport.Interface) *DeleteAutoscalingPolicy { 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 87a7fa344d..b2791480b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteautoscalingpolicy // Response holds the response body struct for the package deleteautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 63b3ccaccc..025a88829f 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,11 +16,31 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Gets the current autoscaling capacity based on the configured autoscaling -// policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not +// Get the autoscaling capacity. +// +// NOTE: This feature is designed for indirect use by Elasticsearch Service, +// Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not // supported. +// +// This API gets the current autoscaling capacity based on the configured +// autoscaling policy. +// It will return information to size the cluster appropriately to the current +// workload. +// +// The `required_capacity` is calculated as the maximum of the +// `required_capacity` result of all individual deciders that are enabled for +// the policy. +// +// The operator should verify that the `current_nodes` match the operator’s +// knowledge of the cluster to avoid making autoscaling decisions based on stale +// or incomplete information. +// +// The response contains decider-specific information you can use to diagnose +// how and why autoscaling determined a certain capacity was required. +// This information is provided for diagnosis only. +// Do not use this information to make autoscaling decisions. package getautoscalingcapacity import ( @@ -70,10 +90,30 @@ func NewGetAutoscalingCapacityFunc(tp elastictransport.Interface) NewGetAutoscal } } -// Gets the current autoscaling capacity based on the configured autoscaling -// policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not +// Get the autoscaling capacity. +// +// NOTE: This feature is designed for indirect use by Elasticsearch Service, +// Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not // supported. // +// This API gets the current autoscaling capacity based on the configured +// autoscaling policy. +// It will return information to size the cluster appropriately to the current +// workload. +// +// The `required_capacity` is calculated as the maximum of the +// `required_capacity` result of all individual deciders that are enabled for +// the policy. +// +// The operator should verify that the `current_nodes` match the operator’s +// knowledge of the cluster to avoid making autoscaling decisions based on stale +// or incomplete information. +// +// The response contains decider-specific information you can use to diagnose +// how and why autoscaling determined a certain capacity was required. +// This information is provided for diagnosis only. +// Do not use this information to make autoscaling decisions. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html func New(tp elastictransport.Interface) *GetAutoscalingCapacity { r := &GetAutoscalingCapacity{ 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 029f17e4c5..84d77a8c26 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getautoscalingcapacity @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautoscalingcapacity // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2df9f99afc..1d0ab64dca 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,10 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and -// ECK. Direct use is not supported. +// Get an autoscaling policy. +// +// NOTE: This feature is designed for indirect use by Elasticsearch Service, +// Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not +// supported. package getautoscalingpolicy import ( @@ -77,8 +80,11 @@ func NewGetAutoscalingPolicyFunc(tp elastictransport.Interface) NewGetAutoscalin } } -// Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and -// ECK. Direct use is not supported. +// Get an autoscaling policy. +// +// NOTE: This feature is designed for indirect use by Elasticsearch Service, +// Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not +// supported. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html func New(tp elastictransport.Interface) *GetAutoscalingPolicy { 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 223168e348..ddef243aa3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getautoscalingpolicy @@ -26,10 +26,10 @@ import ( // Response holds the response body struct for the package getautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24 type Response struct { - // Deciders Decider settings + // Deciders Decider settings. Deciders map[string]json.RawMessage `json:"deciders"` Roles []string `json:"roles"` } 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 cc072bc98a..ba696e1666 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,10 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and -// ECK. Direct use is not supported. +// Create or update an autoscaling policy. +// +// NOTE: This feature is designed for indirect use by Elasticsearch Service, +// Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not +// supported. package putautoscalingpolicy import ( @@ -82,8 +85,11 @@ func NewPutAutoscalingPolicyFunc(tp elastictransport.Interface) NewPutAutoscalin } } -// Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and -// ECK. Direct use is not supported. +// Create or update an autoscaling policy. +// +// NOTE: This feature is designed for indirect use by Elasticsearch Service, +// Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not +// supported. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html func New(tp elastictransport.Interface) *PutAutoscalingPolicy { @@ -361,7 +367,7 @@ func (r *PutAutoscalingPolicy) Pretty(pretty bool) *PutAutoscalingPolicy { return r } -// Deciders Decider settings +// 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 243a1ac2b2..8e01086872 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putautoscalingpolicy @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L39 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 e54f3447bd..a6d0b52d5f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putautoscalingpolicy // Response holds the response body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/capabilities/capabilities.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/capabilities/capabilities.go index 0d8c7b3b8a..8bfeba3237 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/capabilities/capabilities.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/capabilities/capabilities.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Checks if the specified combination of method, API, parameters, and arbitrary // capabilities are supported @@ -69,7 +69,7 @@ func NewCapabilitiesFunc(tp elastictransport.Interface) NewCapabilities { // Checks if the specified combination of method, API, parameters, and arbitrary // capabilities are supported // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/capabilities.html +// https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities func New(tp elastictransport.Interface) *Capabilities { r := &Capabilities{ transport: tp, 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 0557a6cfd0..b9140e5a7d 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,14 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get aliases. // Retrieves the cluster’s index aliases, including filter and routing // information. // The API does not return data stream aliases. -// IMPORTANT: cat APIs are only intended for human consumption using the command -// line or the Kibana console. They are not intended for use by applications. -// For application consumption, use the aliases API. +// +// CAT APIs are only intended for human consumption using the command line or +// the Kibana console. They are not intended for use by applications. For +// application consumption, use the aliases API. package aliases import ( @@ -80,12 +82,14 @@ func NewAliasesFunc(tp elastictransport.Interface) NewAliases { } } +// Get aliases. // Retrieves the cluster’s index aliases, including filter and routing // information. // The API does not return data stream aliases. -// IMPORTANT: cat APIs are only intended for human consumption using the command -// line or the Kibana console. They are not intended for use by applications. -// For application consumption, use the aliases API. +// +// CAT APIs are only intended for human consumption using the command line or +// the Kibana console. They are not intended for use by applications. For +// application consumption, use the aliases API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html func New(tp elastictransport.Interface) *Aliases { 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 6798a3640b..121be2ef9d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package aliases @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package aliases // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/aliases/CatAliasesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 37fc3b8366..eef8b12bbb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Provides a snapshot of the number of shards allocated to each data node and // their disk space. 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 f859148edc..06e75eb816 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package allocation @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package allocation // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/allocation/CatAllocationResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5b57632f18..1d990cf373 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,13 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get component templates. // Returns information about component templates in a cluster. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. -// IMPORTANT: cat APIs are only intended for human consumption using the command -// line or Kibana console. +// +// CAT APIs are only intended for human consumption using the command line or +// Kibana console. // They are not intended for use by applications. For application consumption, // use the get component template API. package componenttemplates @@ -80,11 +82,13 @@ func NewComponentTemplatesFunc(tp elastictransport.Interface) NewComponentTempla } } +// Get component templates. // Returns information about component templates in a cluster. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. -// IMPORTANT: cat APIs are only intended for human consumption using the command -// line or Kibana console. +// +// CAT APIs are only intended for human consumption using the command line or +// Kibana console. // They are not intended for use by applications. For application consumption, // use the get component template API. // 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 f0dac0878c..b26214bfae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package componenttemplates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package componenttemplates // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3899f39544..faf692ddc5 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,14 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get a document count. // Provides quick access to a document count for a data stream, an index, or an // entire cluster. -// NOTE: The document count only includes live documents, not deleted documents -// which have not yet been removed by the merge process. -// IMPORTANT: cat APIs are only intended for human consumption using the command -// line or Kibana console. +// The document count only includes live documents, not deleted documents which +// have not yet been removed by the merge process. +// +// CAT APIs are only intended for human consumption using the command line or +// Kibana console. // They are not intended for use by applications. For application consumption, // use the count API. package count @@ -81,12 +83,14 @@ func NewCountFunc(tp elastictransport.Interface) NewCount { } } +// Get a document count. // Provides quick access to a document count for a data stream, an index, or an // entire cluster. -// NOTE: The document count only includes live documents, not deleted documents -// which have not yet been removed by the merge process. -// IMPORTANT: cat APIs are only intended for human consumption using the command -// line or Kibana console. +// The document count only includes live documents, not deleted documents which +// have not yet been removed by the merge process. +// +// CAT APIs are only intended for human consumption using the command line or +// Kibana console. // They are not intended for use by applications. For application consumption, // use the count API. // 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 9e59274d00..8353ebc2aa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package count @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/count/CatCountResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8019714376..37ccd88c44 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the amount of heap memory currently used by the field data cache on // every data node in the cluster. 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 a42552e1df..44161e2193 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package fielddata @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package fielddata // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/fielddata/CatFielddataResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e4062aaf90..ba134ebf3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the health status of a cluster, similar to the cluster health API. // IMPORTANT: cat APIs are only intended for human consumption using the command 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 bcd55db38a..2d0749b82e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package health @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/health/CatHealthResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cd623798a9..9bf947a381 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns help for the Cat APIs. +// Get CAT help. +// Returns help for the CAT APIs. package help import ( @@ -68,7 +69,8 @@ func NewHelpFunc(tp elastictransport.Interface) NewHelp { } } -// Returns help for the Cat APIs. +// Get CAT help. +// Returns help for the CAT APIs. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html func New(tp elastictransport.Interface) *Help { 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 5da7e93a84..6bb485a92e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package help @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package help // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/help/CatHelpResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 23e72b0be9..92885f2cd5 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,22 +16,30 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get index information. // Returns high-level information about indices in a cluster, including backing // indices for data streams. -// IMPORTANT: cat APIs are only intended for human consumption using the command -// line or Kibana console. -// They are not intended for use by applications. For application consumption, -// use the get index API. -// Use the cat indices API to get the following information for each index in a -// cluster: shard count; document count; deleted document count; primary store -// size; total store size of all shards, including shard replicas. +// +// Use this request to get the following information for each index in a +// cluster: +// - shard count +// - document count +// - deleted document count +// - primary store size +// - total store size of all shards, including shard replicas +// // These metrics are retrieved directly from Lucene, which Elasticsearch uses // internally to power indexing and search. As a result, all document counts // include hidden nested documents. // To get an accurate count of Elasticsearch documents, use the cat count or // count APIs. +// +// CAT APIs are only intended for human consumption using the command line or +// Kibana console. +// They are not intended for use by applications. For application consumption, +// use an index endpoint. package indices import ( @@ -91,21 +99,29 @@ func NewIndicesFunc(tp elastictransport.Interface) NewIndices { } } +// Get index information. // Returns high-level information about indices in a cluster, including backing // indices for data streams. -// IMPORTANT: cat APIs are only intended for human consumption using the command -// line or Kibana console. -// They are not intended for use by applications. For application consumption, -// use the get index API. -// Use the cat indices API to get the following information for each index in a -// cluster: shard count; document count; deleted document count; primary store -// size; total store size of all shards, including shard replicas. +// +// Use this request to get the following information for each index in a +// cluster: +// - shard count +// - document count +// - deleted document count +// - primary store size +// - total store size of all shards, including shard replicas +// // These metrics are retrieved directly from Lucene, which Elasticsearch uses // internally to power indexing and search. As a result, all document counts // include hidden nested documents. // To get an accurate count of Elasticsearch documents, use the cat count or // count APIs. // +// CAT APIs are only intended for human consumption using the command line or +// Kibana console. +// They are not intended for use by applications. For application consumption, +// use an index endpoint. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html func New(tp elastictransport.Interface) *Indices { r := &Indices{ 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 d78a8c560e..b756666aef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package indices @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package indices // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/indices/CatIndicesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c359dc42fd..b9685932ad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about the master node, including the ID, bound IP // address, and name. 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 848c579eb7..14bdd5a3dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package master @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package master // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/master/CatMasterResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fda796aa30..4901d1c80d 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,15 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get datafeeds. // Returns configuration and usage information about datafeeds. // This API returns a maximum of 10,000 datafeeds. // If the Elasticsearch security features are enabled, you must have // `monitor_ml`, `monitor`, `manage_ml`, or `manage` // cluster privileges to use this API. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get datafeed statistics API. package mldatafeeds @@ -84,13 +85,14 @@ func NewMlDatafeedsFunc(tp elastictransport.Interface) NewMlDatafeeds { } } +// Get datafeeds. // Returns configuration and usage information about datafeeds. // This API returns a maximum of 10,000 datafeeds. // If the Elasticsearch security features are enabled, you must have // `monitor_ml`, `monitor`, `manage_ml`, or `manage` // cluster privileges to use this API. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get datafeed statistics API. // 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 3b487b4ff1..a9337b2478 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mldatafeeds @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mldatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8e3bf0ed16..76f29a7529 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,11 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get data frame analytics jobs. // Returns configuration and usage information about data frame analytics jobs. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get data frame analytics jobs statistics // API. @@ -81,9 +82,10 @@ func NewMlDataFrameAnalyticsFunc(tp elastictransport.Interface) NewMlDataFrameAn } } +// Get data frame analytics jobs. // Returns configuration and usage information about data frame analytics jobs. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get data frame analytics jobs statistics // API. 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 b34a13df86..83a4ddcb1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mldataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mldataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5409efc941..6c8d13dd87 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,15 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get anomaly detection jobs. // Returns configuration and usage information for anomaly detection jobs. // This API returns a maximum of 10,000 jobs. // If the Elasticsearch security features are enabled, you must have // `monitor_ml`, // `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get anomaly detection job statistics API. package mljobs @@ -85,13 +86,14 @@ func NewMlJobsFunc(tp elastictransport.Interface) NewMlJobs { } } +// Get anomaly detection jobs. // Returns configuration and usage information for anomaly detection jobs. // This API returns a maximum of 10,000 jobs. // If the Elasticsearch security features are enabled, you must have // `monitor_ml`, // `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get anomaly detection job statistics API. // 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 13d58f018d..2788ab0e17 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mljobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mljobs // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dfcb1e3e15..2eebd83eac 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,11 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get trained models. // Returns configuration and usage information about inference trained models. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get trained models statistics API. package mltrainedmodels @@ -80,9 +81,10 @@ func NewMlTrainedModelsFunc(tp elastictransport.Interface) NewMlTrainedModels { } } +// Get trained models. // Returns configuration and usage information about inference trained models. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get trained models statistics API. // 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 efff866e19..f198493259 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mltrainedmodels @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mltrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 62463c5d89..097b4b521c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about custom node attributes. // IMPORTANT: cat APIs are only intended for human consumption using the command 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 cbceaa6704..e261de85d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package nodeattrs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package nodeattrs // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 716e9ef175..531dcea0a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about the nodes in a cluster. // IMPORTANT: cat APIs are only intended for human consumption using the command 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 0a01e22315..a25f37156e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package nodes @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package nodes // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/nodes/CatNodesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1e64fcfd06..ca4722f792 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns cluster-level changes that have not yet been executed. // IMPORTANT: cat APIs are only intended for human consumption using the command 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 84fabd174b..0bf859a24d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package pendingtasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e2b469654f..ba16a30067 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns a list of plugins running on each node of a cluster. // IMPORTANT: cat APIs are only intended for human consumption using the command 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 d04651f0ac..ea04770384 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package plugins @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package plugins // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/plugins/CatPluginsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0983f81edb..76186e5caf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about ongoing and completed shard recoveries. // Shard recovery is the process of initializing a shard copy, such as restoring 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 9aed77ce83..92f162fa22 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package recovery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/recovery/CatRecoveryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 da8d1da726..389bb7ecfd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the snapshot repositories for a cluster. // IMPORTANT: cat APIs are only intended for human consumption using the command 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 92c84abea3..7fc6ef3972 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package repositories @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositories // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fee9d3bae9..678aeeaaff 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package segments @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/segments/CatSegmentsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 41d20b3d42..a2b5848843 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns low-level information about the Lucene segments in index shards. // For data streams, the API returns information about the backing indices. 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 40b320308d..d554cd7935 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package shards @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package shards // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/shards/CatShardsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6bca35ea6e..350c43fa37 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about the shards in a cluster. // For data streams, the API returns information about the backing indices. 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 dc923d2b65..72458516ba 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package snapshots @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package snapshots // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 02e0e5c70c..5ac42c1ac4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about the snapshots stored in one or more repositories. // A snapshot is a backup of an index or running Elasticsearch cluster. 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 6d1c31d3c8..daff670aa4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package tasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package tasks // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/tasks/CatTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 01137c2fb3..d0ea247c55 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about tasks currently executing in the cluster. // IMPORTANT: cat APIs are only intended for human consumption using the command 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 cf15d87393..a07d6b2a47 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package templates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package templates // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/templates/CatTemplatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3c362825ce..343c640629 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about index templates in a cluster. // You can use index templates to apply index settings and field mappings to new 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 febd28fe33..0b5c4bdc38 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package threadpool @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package threadpool // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6ac5eac456..7a61766ffd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns thread pool statistics for each node in a cluster. // Returned information includes all built-in thread pools and custom thread 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 54a2eb72d2..c22900c0de 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package transforms @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package transforms // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/transforms/CatTransformsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 527d7a8456..205aea91d2 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,11 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get transforms. // Returns configuration and usage information about transforms. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get transform statistics API. package transforms @@ -80,9 +81,10 @@ func NewTransformsFunc(tp elastictransport.Interface) NewTransforms { } } +// Get transforms. // Returns configuration and usage information about transforms. // -// IMPORTANT: cat APIs are only intended for human consumption using the Kibana +// CAT APIs are only intended for human consumption using the Kibana // console or command line. They are not intended for use by applications. For // application consumption, use the get transform statistics API. // 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 84596100e2..0a0748fb20 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes auto-follow patterns. package deleteautofollowpattern 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 b09344c20c..5b432fea7a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteautofollowpattern // Response holds the response body struct for the package deleteautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5ad9b6c4aa..a418346ab0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a new follower index configured to follow the referenced leader // index. 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 dc7f840f43..a6ea0628b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package follow @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow/CreateFollowIndexRequest.ts#L25-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/follow/CreateFollowIndexRequest.ts#L25-L51 type Request struct { LeaderIndex *string `json:"leader_index,omitempty"` MaxOutstandingReadRequests *int64 `json:"max_outstanding_read_requests,omitempty"` 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 89d612d864..8b2c410bb9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package follow // Response holds the response body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow/CreateFollowIndexResponse.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b3b0b05348..20e3bde375 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves information about all follower indices, including parameters and // status for each follower index 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 e75492b24c..1efc60811a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package followinfo @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package followinfo // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow_info/FollowInfoResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f33b6090dd..8c4eceb797 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves follower stats. return shard-level stats about the following tasks // associated with each shard for the specified indices. 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 5414f3e4a6..59669c71a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package followstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package followstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7dc0a02001..32bf7e9775 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Removes the follower retention leases from the leader. package 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 bcc105861d..da55e3e9d3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package forgetfollower @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L38 type Request struct { FollowerCluster *string `json:"follower_cluster,omitempty"` FollowerIndex *string `json:"follower_index,omitempty"` 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 53c2563817..feb30d0d46 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package forgetfollower @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7570747d9b..dad832c8ea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Gets configured auto-follow patterns. Returns the specified auto-follow // pattern collection. 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 fc515f3765..37c1b39e71 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getautofollowpattern @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1104ac5c4d..a9d690cc3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Pauses an auto-follow pattern package pauseautofollowpattern 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 7faebe1dd2..1ddb2d1fb7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package pauseautofollowpattern // Response holds the response body struct for the package pauseautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 10061fec46..10b5faa5b6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Pauses a follower index. The follower index will not fetch any additional // operations from the leader index. 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 1d461f9dae..41957dcebc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package pausefollow // Response holds the response body struct for the package pausefollow // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 524f3099f8..593be6f18e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a new named collection of auto-follow patterns against a specified // remote cluster. Newly created indices on the remote cluster matching any of 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 59000e36db..51a301497f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putautofollowpattern @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L112 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 8e97dad6ca..06d6330ccc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putautofollowpattern // Response holds the response body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 679f3f5a44..49b53cc029 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package resumeautofollowpattern // Response holds the response body struct for the package resumeautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4d746c6800..068389e9d8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Resumes an auto-follow pattern that has been paused package resumeautofollowpattern 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 d436510094..901d9ca1cb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package resumefollow @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 45fc2446eb..3454c58282 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package resumefollow // Response holds the response body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a1fa95f8aa..3030a7be2d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Resumes a follower index that has been paused package 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 cc16554ad5..fc37098433 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/stats/CcrStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ae732ad42f..476c33fd17 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Gets all stats related to cross-cluster replication. package stats 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 a8fc9539a1..87fc17c643 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package unfollow // Response holds the response body struct for the package unfollow // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/unfollow/UnfollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4369b93a86..7e1901e5d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Stops the following task associated with a follower index and removes index // metadata and settings associated with cross-cluster replication. 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 1b87eed221..d36643a967 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Provides explanations for shard allocations in the cluster. package allocationexplain 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 0a3e5dd241..ce7ea0723e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package allocationexplain @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L24-L61 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 18b6272589..5d3412ccb0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package allocationexplain @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0a92255546..59fce3776d 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete component templates. // Deletes component templates. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. @@ -78,6 +79,7 @@ func NewDeleteComponentTemplateFunc(tp elastictransport.Interface) NewDeleteComp } } +// Delete component templates. // Deletes component templates. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. 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 36d3fe7237..398a48b2bc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletecomponenttemplate // Response holds the response body struct for the package deletecomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 49e49f92d9..a1a1626f75 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Clears cluster voting config exclusions. package deletevotingconfigexclusions 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 61386be70e..b52852e788 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns information about whether a particular component template exist +// Check component templates. +// Returns information about whether a particular component template exists. package existscomponenttemplate import ( @@ -74,7 +75,8 @@ func NewExistsComponentTemplateFunc(tp elastictransport.Interface) NewExistsComp } } -// Returns information about whether a particular component template exist +// Check component templates. +// Returns information about whether a particular component template exists. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html func New(tp elastictransport.Interface) *ExistsComponentTemplate { 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 d4d2be8cf9..59e21ad3b6 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get component templates. // Retrieves information about component templates. package getcomponenttemplate @@ -74,6 +75,7 @@ func NewGetComponentTemplateFunc(tp elastictransport.Interface) NewGetComponentT } } +// Get component templates. // Retrieves information about component templates. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html 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 e45d31a18b..0c4896711c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getcomponenttemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 def7d75012..97cb752a07 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns cluster-wide settings. // By default, it returns only settings that have been explicitly defined. 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 3f338011c3..15aece09fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f2409c8a84..a3890aec8b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // The cluster health API returns a simple status on the health of the cluster. // You can also use the API to get the health status of only specified data 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 172b8af91f..3264fdbb48 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package health @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/health/ClusterHealthResponse.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/health/ClusterHealthResponse.ts#L26-L37 type Response struct { // ActivePrimaryShards The number of active primary shards. @@ -63,6 +63,8 @@ type Response struct { // TimedOut If false the response returned within the period of time that is specified by // the timeout parameter (30s by default) TimedOut bool `json:"timed_out"` + // UnassignedPrimaryShards The number of primary shards that are not allocated. + UnassignedPrimaryShards int `json:"unassigned_primary_shards"` // UnassignedShards The number of shards that are not allocated. UnassignedShards int `json:"unassigned_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 7ce613ca52..562d23e6b6 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns different information about the cluster. +// Get cluster info. +// Returns basic information about the cluster. package info import ( @@ -76,7 +77,8 @@ func NewInfoFunc(tp elastictransport.Interface) NewInfo { } } -// Returns different information about the cluster. +// Get cluster info. +// Returns basic information about the cluster. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-info.html func New(tp elastictransport.Interface) *Info { 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 87857c7037..20067a2bf4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/info/ClusterInfoResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 195b838514..cf6685bdce 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns cluster-level changes (such as create index, update mapping, allocate // or fail shard) that have not yet been executed. 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 4a4ae1a049..6b779ae887 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package pendingtasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e0017a0ace..1b5c0fcd86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Updates the cluster voting config exclusions by node ids or node names. package postvotingconfigexclusions 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 7f2c5723b4..cba22ac5b4 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create or update a component template. // Creates or updates a component template. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. @@ -103,6 +104,7 @@ func NewPutComponentTemplateFunc(tp elastictransport.Interface) NewPutComponentT } } +// Create or update a component template. // Creates or updates a component template. // Component templates are building blocks for constructing index templates that // specify index mappings, settings, and aliases. @@ -350,7 +352,7 @@ func (r *PutComponentTemplate) Header(key, value string) *PutComponentTemplate { // Name Name of the component template to create. // Elasticsearch includes the following built-in component templates: -// `logs-mappings`; 'logs-settings`; `metrics-mappings`; +// `logs-mappings`; `logs-settings`; `metrics-mappings`; // `metrics-settings`;`synthetics-mapping`; `synthetics-settings`. // Elastic Agent uses these templates to configure backing indices for its data // streams. 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 1df0847341..7a4de4e116 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putcomponenttemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L93 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L95 type Request struct { // Deprecated Marks this index template as deprecated. When creating or updating a 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 500647e592..14c9b8ed63 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putcomponenttemplate // Response holds the response body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 15f7fda15d..10f2c8a51b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Updates the cluster settings. package 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 09cbb48fea..981be61266 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putsettings @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 d6895b394f..cea544328c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 867f446937..c8dac415f5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // The cluster remote info API allows you to retrieve all of the configured // remote cluster information. It returns connection and endpoint information 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 7fa2c64602..1f025b4944 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package remoteinfo @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package remoteinfo // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27 type Response map[string]types.ClusterRemoteInfo 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 98de9c15ea..2ec9eb83a5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package reroute @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L70 type Request struct { // Commands Defines the commands to perform. 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 33dfc54a68..d22a486e86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Allows to manually change the allocation of individual shards in the cluster. package 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 07d3480146..ebbfc1453c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package reroute @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/ClusterRerouteResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 78095673e6..b26edc4f4a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package state @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package state // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/state/ClusterStateResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f648a87351..ccb9970992 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns a comprehensive information about the state of the cluster. package state 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 75f9364581..db7dd442f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stats @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/ClusterStatsResponse.ts#L53-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 830c881131..3fdc69e29e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns cluster statistics. // It returns basic index metrics (shard numbers, store size, memory usage) and @@ -313,10 +313,10 @@ func (r *Stats) NodeId(nodeid string) *Stats { return r } -// FlatSettings If `true`, returns settings in flat format. -// API name: flat_settings -func (r *Stats) FlatSettings(flatsettings bool) *Stats { - r.values.Set("flat_settings", strconv.FormatBool(flatsettings)) +// IncludeRemotes Include remote cluster data into the response +// API name: include_remotes +func (r *Stats) IncludeRemotes(includeremotes bool) *Stats { + r.values.Set("include_remotes", strconv.FormatBool(includeremotes)) return r } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/check_in.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/check_in.go index 22a3c8490f..0a1c7b32a7 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/check_in.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/check_in.go @@ -16,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the last_seen field in the connector, and sets it to current -// timestamp +// Check in a connector. +// +// Update the `last_seen` field in the connector and set it to the current +// timestamp. package checkin import ( @@ -77,8 +79,10 @@ func NewCheckInFunc(tp elastictransport.Interface) NewCheckIn { } } -// Updates the last_seen field in the connector, and sets it to current -// timestamp +// Check in a connector. +// +// Update the `last_seen` field in the connector and set it to the current +// timestamp. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/check-in-connector-api.html func New(tp elastictransport.Interface) *CheckIn { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/response.go index 29f6331a23..549731f0f7 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package checkin @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package checkin // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/check_in/ConnectorCheckInResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/check_in/ConnectorCheckInResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/delete.go index 33bdb3396f..d035170895 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/delete.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/delete.go @@ -16,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes a connector. +// Delete a connector. +// +// Removes a connector and associated sync jobs. +// This is a destructive action that is not recoverable. +// NOTE: This action doesn’t delete any API keys, ingest pipelines, or data +// indices associated with the connector. +// These need to be removed manually. package delete import ( @@ -76,7 +82,13 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } -// Deletes a connector. +// Delete a connector. +// +// Removes a connector and associated sync jobs. +// This is a destructive action that is not recoverable. +// NOTE: This action doesn’t delete any API keys, ingest pipelines, or data +// indices associated with the connector. +// These need to be removed manually. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-api.html func New(tp elastictransport.Interface) *Delete { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/response.go index 31a728bd2e..d140c2486a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/delete/ConnectorDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/delete/ConnectorDeleteResponse.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/connector/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/get.go index fdfbe631d2..308b7d4df4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/get.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/get.go @@ -16,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves a connector. +// Get a connector. +// +// Get the details about a connector. package get import ( @@ -76,7 +78,9 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Retrieves a connector. +// Get a connector. +// +// Get the details about a connector. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-api.html func New(tp elastictransport.Interface) *Get { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/response.go index 8c3e60c693..c175499253 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -35,7 +35,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/get/ConnectorGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/get/ConnectorGetResponse.ts#L22-L24 type Response struct { ApiKeyId *string `json:"api_key_id,omitempty"` ApiKeySecretId *string `json:"api_key_secret_id,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/last_sync.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/last_sync.go index 03501f3649..f5badf8e13 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/last_sync.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/last_sync.go @@ -16,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates last sync stats in the connector document +// Update the connector last sync stats. +// +// Update the fields related to the last sync of a connector. +// This action is used for analytics and monitoring. package lastsync import ( @@ -82,7 +85,10 @@ func NewLastSyncFunc(tp elastictransport.Interface) NewLastSync { } } -// Updates last sync stats in the connector document +// Update the connector last sync stats. +// +// Update the fields related to the last sync of a connector. +// This action is used for analytics and monitoring. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-last-sync-api.html func New(tp elastictransport.Interface) *LastSync { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/request.go index 61de91ee8a..8d2a359280 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package lastsync @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package lastsync // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L60 type Request struct { LastAccessControlSyncError *string `json:"last_access_control_sync_error,omitempty"` LastAccessControlSyncScheduledAt types.DateTime `json:"last_access_control_sync_scheduled_at,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/response.go index b12d36c1ec..118ded3990 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package lastsync @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package lastsync // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/last_sync/ConnectorUpdateLastSyncResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/last_sync/ConnectorUpdateLastSyncResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/list.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/list.go index 7952131bf1..10f79e4491 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/list.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/list.go @@ -16,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns existing connectors. +// Get all connectors. +// +// Get information about all connectors. package list import ( @@ -68,7 +70,9 @@ func NewListFunc(tp elastictransport.Interface) NewList { } } -// Returns existing connectors. +// Get all connectors. +// +// Get information about all connectors. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-api.html func New(tp elastictransport.Interface) *List { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/response.go index 2f46119e45..13d4f20c2f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package list @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/list/ConnectorListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/list/ConnectorListResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Results []types.Connector `json:"results"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/post.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/post.go index c27c0ae42c..0e42b4eb9e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/post.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/post.go @@ -16,9 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a connector. +// Create a connector. +// +// Connectors are Elasticsearch integrations that bring content from third-party +// data sources, which can be deployed on Elastic Cloud or hosted on your own +// infrastructure. +// Elastic managed connectors (Native connectors) are a managed service on +// Elastic Cloud. +// Self-managed connectors (Connector clients) are self-managed on your +// infrastructure. package post import ( @@ -73,7 +81,15 @@ func NewPostFunc(tp elastictransport.Interface) NewPost { } } -// Creates a connector. +// Create a connector. +// +// Connectors are Elasticsearch integrations that bring content from third-party +// data sources, which can be deployed on Elastic Cloud or hosted on your own +// infrastructure. +// Elastic managed connectors (Native connectors) are a managed service on +// Elastic Cloud. +// Self-managed connectors (Connector clients) are self-managed on your +// infrastructure. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html func New(tp elastictransport.Interface) *Post { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/request.go index 396a35ebe7..9a342eda8a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package post @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/post/ConnectorPostRequest.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/post/ConnectorPostRequest.ts#L22-L46 type Request struct { Description *string `json:"description,omitempty"` IndexName *string `json:"index_name,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/response.go index 4f8008932a..347902ce07 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package post @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/post/ConnectorPostResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/post/ConnectorPostResponse.ts#L23-L28 type Response struct { Id string `json:"id"` Result result.Result `json:"result"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/put.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/put.go index 6dd31c08de..949ab23834 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/put.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/put.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates or updates a connector. +// Create or update a connector. package put import ( @@ -79,7 +79,7 @@ func NewPutFunc(tp elastictransport.Interface) NewPut { } } -// Creates or updates a connector. +// Create or update a connector. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html func New(tp elastictransport.Interface) *Put { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/request.go index 016ebfed3f..10cc5f96be 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package put @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/put/ConnectorPutRequest.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/put/ConnectorPutRequest.ts#L22-L48 type Request struct { Description *string `json:"description,omitempty"` IndexName *string `json:"index_name,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/response.go index a07fa49863..341a9fc9bc 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package put @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/put/ConnectorPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/put/ConnectorPutResponse.ts#L23-L28 type Response struct { Id string `json:"id"` Result result.Result `json:"result"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost/secret_post.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost/secret_post.go index e90c19fc23..6740f410fe 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost/secret_post.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost/secret_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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a secret for a Connector. package secretpost diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/response.go index 46e0990093..e4e2798e73 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package syncjobcancel @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package syncjobcancel // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/sync_job_cancel/SyncJobCancelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/sync_job_cancel/SyncJobCancelResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/sync_job_cancel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/sync_job_cancel.go index 79bdeb69fc..7ae249193a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/sync_job_cancel.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/sync_job_cancel.go @@ -16,9 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Cancels a connector sync job. +// Cancel a connector sync job. +// +// Cancel a connector sync job, which sets the status to cancelling and updates +// `cancellation_requested_at` to the current time. +// The connector service is then responsible for setting the status of connector +// sync jobs to cancelled. package syncjobcancel import ( @@ -76,7 +81,12 @@ func NewSyncJobCancelFunc(tp elastictransport.Interface) NewSyncJobCancel { } } -// Cancels a connector sync job. +// Cancel a connector sync job. +// +// Cancel a connector sync job, which sets the status to cancelling and updates +// `cancellation_requested_at` to the current time. +// The connector service is then responsible for setting the status of connector +// sync jobs to cancelled. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cancel-connector-sync-job-api.html func New(tp elastictransport.Interface) *SyncJobCancel { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/response.go index dba8a22406..dcbe89af83 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package syncjobdelete // Response holds the response body struct for the package syncjobdelete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/sync_job_delete/SyncJobDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/sync_job_delete/SyncJobDeleteResponse.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/connector/syncjobdelete/sync_job_delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/sync_job_delete.go index 888438aee1..d9ce37756d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/sync_job_delete.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/sync_job_delete.go @@ -16,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes a connector sync job. +// Delete a connector sync job. +// +// Remove a connector sync job and its associated data. +// This is a destructive action that is not recoverable. package syncjobdelete import ( @@ -76,7 +79,10 @@ func NewSyncJobDeleteFunc(tp elastictransport.Interface) NewSyncJobDelete { } } -// Deletes a connector sync job. +// Delete a connector sync job. +// +// Remove a connector sync job and its associated data. +// This is a destructive action that is not recoverable. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-sync-job-api.html func New(tp elastictransport.Interface) *SyncJobDelete { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/response.go index 5d52bfdb19..cfcfafb542 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package syncjobget @@ -36,7 +36,7 @@ import ( // Response holds the response body struct for the package syncjobget // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/sync_job_get/SyncJobGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/sync_job_get/SyncJobGetResponse.ts#L22-L24 type Response struct { CancelationRequestedAt types.DateTime `json:"cancelation_requested_at,omitempty"` CanceledAt types.DateTime `json:"canceled_at,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/sync_job_get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/sync_job_get.go index bd91d400a2..42f1f2dc9c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/sync_job_get.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/sync_job_get.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves a connector sync job. +// Get a connector sync job. package syncjobget import ( @@ -76,7 +76,7 @@ func NewSyncJobGetFunc(tp elastictransport.Interface) NewSyncJobGet { } } -// Retrieves a connector sync job. +// Get a connector sync job. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-sync-job-api.html func New(tp elastictransport.Interface) *SyncJobGet { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/response.go index f73277453a..fb49779b6f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package syncjoblist @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package syncjoblist // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/sync_job_list/SyncJobListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/sync_job_list/SyncJobListResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Results []types.ConnectorSyncJob `json:"results"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/sync_job_list.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/sync_job_list.go index ddc0b2ed54..1397559bd2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/sync_job_list.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/sync_job_list.go @@ -16,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Lists connector sync jobs. +// Get all connector sync jobs. +// +// Get information about all stored connector sync jobs listed by their creation +// date in ascending order. package syncjoblist import ( @@ -70,7 +73,10 @@ func NewSyncJobListFunc(tp elastictransport.Interface) NewSyncJobList { } } -// Lists connector sync jobs. +// Get all connector sync jobs. +// +// Get information about all stored connector sync jobs listed by their creation +// date in ascending order. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-sync-jobs-api.html func New(tp elastictransport.Interface) *SyncJobList { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/request.go index 938663b138..81ec212f61 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package syncjobpost @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package syncjobpost // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/sync_job_post/SyncJobPostRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/sync_job_post/SyncJobPostRequest.ts#L23-L45 type Request struct { // Id The id of the associated connector diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/response.go index 87c3f71bed..68338e8ba5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package syncjobpost // Response holds the response body struct for the package syncjobpost // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/sync_job_post/SyncJobPostResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/sync_job_post/SyncJobPostResponse.ts#L22-L26 type Response struct { Id string `json:"id"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/sync_job_post.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/sync_job_post.go index b869e3281d..de04b086c8 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/sync_job_post.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/sync_job_post.go @@ -16,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a connector sync job. +// Create a connector sync job. +// +// Create a connector sync job document in the internal index and initialize its +// counters and timestamps with default values. package syncjobpost import ( @@ -75,7 +78,10 @@ func NewSyncJobPostFunc(tp elastictransport.Interface) NewSyncJobPost { } } -// Creates a connector sync job. +// Create a connector sync job. +// +// Create a connector sync job document in the internal index and initialize its +// counters and timestamps with default values. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-sync-job-api.html func New(tp elastictransport.Interface) *SyncJobPost { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/response.go index 8939a99813..9c4f43cd23 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateactivefiltering @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateactivefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/update_active_filtering.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/update_active_filtering.go index b50b0a0e36..b7f1d51907 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/update_active_filtering.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/update_active_filtering.go @@ -16,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Activate the connector draft filter. +// // Activates the valid draft filtering for a connector. package updateactivefiltering @@ -76,6 +78,8 @@ func NewUpdateActiveFilteringFunc(tp elastictransport.Interface) NewUpdateActive } } +// Activate the connector draft filter. +// // Activates the valid draft filtering for a connector. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/request.go index 60079c944b..bbf7954d6f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateapikeyid @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateapikeyid // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L47 type Request struct { ApiKeyId *string `json:"api_key_id,omitempty"` ApiKeySecretId *string `json:"api_key_secret_id,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/response.go index 24cd1d566a..58b8eede60 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateapikeyid @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateapikeyid // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/update_api_key_id.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/update_api_key_id.go index 3c8fbfa9b0..96de86bff6 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/update_api_key_id.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/update_api_key_id.go @@ -16,9 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the API key id in the connector document +// Update the connector API key ID. +// +// Update the `api_key_id` and `api_key_secret_id` fields of a connector. +// You can specify the ID of the API key used for authorization and the ID of +// the connector secret where the API key is stored. +// The connector secret ID is required only for Elastic managed (native) +// connectors. +// Self-managed connectors (connector clients) do not use this field. package updateapikeyid import ( @@ -81,7 +88,14 @@ func NewUpdateApiKeyIdFunc(tp elastictransport.Interface) NewUpdateApiKeyId { } } -// Updates the API key id in the connector document +// Update the connector API key ID. +// +// Update the `api_key_id` and `api_key_secret_id` fields of a connector. +// You can specify the ID of the API key used for authorization and the ID of +// the connector secret where the API key is stored. +// The connector secret ID is required only for Elastic managed (native) +// connectors. +// Self-managed connectors (connector clients) do not use this field. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-api-key-id-api.html func New(tp elastictransport.Interface) *UpdateApiKeyId { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/request.go index a23b78243f..52d3ca5f16 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateconfiguration @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updateconfiguration // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L49 type Request struct { Configuration types.ConnectorConfiguration `json:"configuration,omitempty"` Values map[string]json.RawMessage `json:"values,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/response.go index 0d11463cd4..a577ed2125 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateconfiguration @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateconfiguration // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_configuration/ConnectorUpdateConfigurationResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_configuration/ConnectorUpdateConfigurationResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/update_configuration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/update_configuration.go index 8e1d12da31..e588bf6989 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/update_configuration.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/update_configuration.go @@ -16,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the configuration field in the connector document +// Update the connector configuration. +// +// Update the configuration field in the connector document. package updateconfiguration import ( @@ -81,7 +83,9 @@ func NewUpdateConfigurationFunc(tp elastictransport.Interface) NewUpdateConfigur } } -// Updates the configuration field in the connector document +// Update the connector configuration. +// +// Update the configuration field in the connector document. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-configuration-api.html func New(tp elastictransport.Interface) *UpdateConfiguration { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/request.go index 62b121baa7..d7040fc372 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateerror @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updateerror // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L48 type Request struct { Error any `json:"error"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/response.go index d025544549..1f41397c6d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateerror @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateerror // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_error/ConnectorUpdateErrorResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_error/ConnectorUpdateErrorResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/update_error.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/update_error.go index a0569acd12..bf48706ba9 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/update_error.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/update_error.go @@ -16,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the filtering field in the connector document +// Update the connector error field. +// +// Set the error field for the connector. +// If the error provided in the request body is non-null, the connector’s status +// is updated to error. +// Otherwise, if the error is reset to null, the connector status is updated to +// connected. package updateerror import ( @@ -81,7 +87,13 @@ func NewUpdateErrorFunc(tp elastictransport.Interface) NewUpdateError { } } -// Updates the filtering field in the connector document +// Update the connector error field. +// +// Set the error field for the connector. +// If the error provided in the request body is non-null, the connector’s status +// is updated to error. +// Otherwise, if the error is reset to null, the connector status is updated to +// connected. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-error-api.html func New(tp elastictransport.Interface) *UpdateError { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/request.go index 1bda1e550e..35834512ce 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatefiltering @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L54 type Request struct { AdvancedSnippet *types.FilteringAdvancedSnippet `json:"advanced_snippet,omitempty"` Filtering []types.FilteringConfig `json:"filtering,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/response.go index 8f1b22af34..5ae5fd90b4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatefiltering @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_filtering/ConnectorUpdateFilteringResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_filtering/ConnectorUpdateFilteringResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/update_filtering.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/update_filtering.go index 1330ef0e51..f39c11d332 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/update_filtering.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/update_filtering.go @@ -16,9 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the filtering field in the connector document +// Update the connector filtering. +// +// Update the draft filtering configuration of a connector and marks the draft +// validation state as edited. +// The filtering draft is activated once validated by the running Elastic +// connector service. +// The filtering property is used to configure sync rules (both basic and +// advanced) for a connector. package updatefiltering import ( @@ -81,7 +88,14 @@ func NewUpdateFilteringFunc(tp elastictransport.Interface) NewUpdateFiltering { } } -// Updates the filtering field in the connector document +// Update the connector filtering. +// +// Update the draft filtering configuration of a connector and marks the draft +// validation state as edited. +// The filtering draft is activated once validated by the running Elastic +// connector service. +// The filtering property is used to configure sync rules (both basic and +// advanced) for a connector. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html func New(tp elastictransport.Interface) *UpdateFiltering { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/request.go index 6c3f955aa9..6d19eeb8b0 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatefilteringvalidation @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatefilteringvalidation // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L42 type Request struct { Validation types.FilteringRulesValidation `json:"validation"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/response.go index 52e9a5d59e..e451782b87 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatefilteringvalidation @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatefilteringvalidation // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go index f5253afdf5..82cd7e2b4d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go @@ -16,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the draft filtering validation info for a connector. +// Update the connector draft filtering validation. +// +// Update the draft filtering validation info for a connector. package updatefilteringvalidation import ( @@ -81,7 +83,9 @@ func NewUpdateFilteringValidationFunc(tp elastictransport.Interface) NewUpdateFi } } -// Updates the draft filtering validation info for a connector. +// Update the connector draft filtering validation. +// +// Update the draft filtering validation info for a connector. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-validation-api.html func New(tp elastictransport.Interface) *UpdateFilteringValidation { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/request.go index 172f3dd45b..861698d87d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateindexname @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updateindexname // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L45 type Request struct { IndexName any `json:"index_name"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/response.go index 2c99c5d9a9..da785a26df 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateindexname @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateindexname // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_index_name/ConnectorUpdateIndexNameResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_index_name/ConnectorUpdateIndexNameResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/update_index_name.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/update_index_name.go index 86d1221fc8..13024a2a87 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/update_index_name.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/update_index_name.go @@ -16,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the index_name in the connector document +// Update the connector index name. +// +// Update the `index_name` field of a connector, specifying the index where the +// data ingested by the connector is stored. package updateindexname import ( @@ -81,7 +84,10 @@ func NewUpdateIndexNameFunc(tp elastictransport.Interface) NewUpdateIndexName { } } -// Updates the index_name in the connector document +// Update the connector index name. +// +// Update the `index_name` field of a connector, specifying the index where the +// data ingested by the connector is stored. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-index-name-api.html func New(tp elastictransport.Interface) *UpdateIndexName { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/request.go index 40a483d1ab..d94a4c5a19 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatename @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatename // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_name/ConnectorUpdateNameRequest.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_name/ConnectorUpdateNameRequest.ts#L22-L43 type Request struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/response.go index 6942b6d095..3b0b0527d2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatename @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatename // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_name/ConnectorUpdateNameResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_name/ConnectorUpdateNameResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/update_name.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/update_name.go index 1dffa13a1d..685f6ce55f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/update_name.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/update_name.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the name and description fields in the connector document +// Update the connector name and description. package updatename import ( @@ -81,7 +81,7 @@ func NewUpdateNameFunc(tp elastictransport.Interface) NewUpdateName { } } -// Updates the name and description fields in the connector document +// Update the connector name and description. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-name-description-api.html func New(tp elastictransport.Interface) *UpdateName { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/request.go index 0a78a90dfd..d449655799 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatenative @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatenative // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L42 type Request struct { IsNative bool `json:"is_native"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/response.go index ee3ac5509c..d7beea6b2e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatenative @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatenative // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_native/ConnectorUpdateNativeResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_native/ConnectorUpdateNativeResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/update_native.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/update_native.go index 3817b21a07..11c51305b5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/update_native.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/update_native.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the is_native flag in the connector document +// Update the connector is_native flag. package updatenative import ( @@ -81,7 +81,7 @@ func NewUpdateNativeFunc(tp elastictransport.Interface) NewUpdateNative { } } -// Updates the is_native flag in the connector document +// Update the connector is_native flag. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-native-api.html func New(tp elastictransport.Interface) *UpdateNative { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/request.go index 6d638012ec..2e63757cf2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatepipeline @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L46 type Request struct { Pipeline types.IngestPipelineParams `json:"pipeline"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/response.go index 07f4c2193a..0ef681a83a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatepipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_pipeline/ConnectorUpdatePipelineResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_pipeline/ConnectorUpdatePipelineResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/update_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/update_pipeline.go index 6760310a7b..5caea8742b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/update_pipeline.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/update_pipeline.go @@ -16,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the pipeline field in the connector document +// Update the connector pipeline. +// +// When you create a new connector, the configuration of an ingest pipeline is +// populated with default settings. package updatepipeline import ( @@ -81,7 +84,10 @@ func NewUpdatePipelineFunc(tp elastictransport.Interface) NewUpdatePipeline { } } -// Updates the pipeline field in the connector document +// Update the connector pipeline. +// +// When you create a new connector, the configuration of an ingest pipeline is +// populated with default settings. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-pipeline-api.html func New(tp elastictransport.Interface) *UpdatePipeline { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/request.go index c2d8bb01c7..482d921754 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatescheduling @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatescheduling // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L44 type Request struct { Scheduling types.SchedulingConfiguration `json:"scheduling"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/response.go index cb3348ce66..e8078e831b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatescheduling @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatescheduling // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_scheduling/ConnectorUpdateSchedulingResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_scheduling/ConnectorUpdateSchedulingResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/update_scheduling.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/update_scheduling.go index 62478f8bae..4032eac10b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/update_scheduling.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/update_scheduling.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the scheduling field in the connector document +// Update the connector scheduling. package updatescheduling import ( @@ -81,7 +81,7 @@ func NewUpdateSchedulingFunc(tp elastictransport.Interface) NewUpdateScheduling } } -// Updates the scheduling field in the connector document +// Update the connector scheduling. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-scheduling-api.html func New(tp elastictransport.Interface) *UpdateScheduling { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/request.go index ed01933851..dd9761f47e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateservicetype @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateservicetype // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L42 type Request struct { ServiceType string `json:"service_type"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/response.go index 0fec82e203..d1d172d95c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateservicetype @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateservicetype // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_service_type/ConnectorUpdateServiceTypeResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_service_type/ConnectorUpdateServiceTypeResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/update_service_type.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/update_service_type.go index 606b027ad0..40af4e4c80 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/update_service_type.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/update_service_type.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the service type of the connector +// Update the connector service type. package updateservicetype import ( @@ -81,7 +81,7 @@ func NewUpdateServiceTypeFunc(tp elastictransport.Interface) NewUpdateServiceTyp } } -// Updates the service type of the connector +// Update the connector service type. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-service-type-api.html func New(tp elastictransport.Interface) *UpdateServiceType { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/request.go index 07132d7f39..433e30249a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatestatus @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatestatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L43 type Request struct { Status connectorstatus.ConnectorStatus `json:"status"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/response.go index 185683a3f5..df8e5c4006 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatestatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatestatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_status/ConnectorUpdateStatusResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/update_status/ConnectorUpdateStatusResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/update_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/update_status.go index ff19e3aae2..d36413cbf4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/update_status.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/update_status.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the status of the connector +// Update the connector status. package updatestatus import ( @@ -82,7 +82,7 @@ func NewUpdateStatusFunc(tp elastictransport.Interface) NewUpdateStatus { } } -// Updates the status of the connector +// Update the connector status. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-status-api.html func New(tp elastictransport.Interface) *UpdateStatus { 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 ab001a149d..27142b5145 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Bulk index or delete documents. // Performs multiple indexing or delete operations in a single API call. // This reduces overhead and can greatly increase indexing speed. package bulk @@ -81,6 +82,7 @@ func NewBulkFunc(tp elastictransport.Interface) NewBulk { } } +// Bulk index or delete documents. // Performs multiple indexing or delete operations in a single API call. // This reduces overhead and can greatly increase indexing speed. // 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 ade2ddad4d..6c8a4a8d5e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/BulkRequest.ts#L32-L103 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/bulk/BulkRequest.ts#L32-L105 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 9e1b2b03ce..ca0534b045 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package bulk @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/BulkResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bb7aa7d594..bace04af41 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Clears the search context and results for a scrolling search. +// Clear a scrolling search. +// +// Clear the search context and results for a scrolling search. package clearscroll import ( @@ -75,7 +77,9 @@ func NewClearScrollFunc(tp elastictransport.Interface) NewClearScroll { } } -// Clears the search context and results for a scrolling search. +// Clear a scrolling search. +// +// Clear the search context and results for a scrolling search. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html func New(tp elastictransport.Interface) *ClearScroll { 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 5cfeb173c2..c67492cb73 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearscroll @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L48 type Request struct { // ScrollId Scroll IDs to clear. 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 855f95d14c..cc559a5325 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearscroll // Response holds the response body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/clear_scroll/ClearScrollResponse.ts#L22-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 28af1df26d..211f1a2ce5 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,9 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Closes a point-in-time. +// Close a point in time. +// +// A point in time must be opened explicitly before being used in search +// requests. +// The `keep_alive` parameter tells Elasticsearch how long it should persist. +// A point in time is automatically closed when the `keep_alive` period has +// elapsed. +// However, keeping points in time has a cost; close them as soon as they are no +// longer required for search requests. package closepointintime import ( @@ -73,7 +81,15 @@ func NewClosePointInTimeFunc(tp elastictransport.Interface) NewClosePointInTime } } -// Closes a point-in-time. +// Close a point in time. +// +// A point in time must be opened explicitly before being used in search +// requests. +// The `keep_alive` parameter tells Elasticsearch how long it should persist. +// A point in time is automatically closed when the `keep_alive` period has +// elapsed. +// However, keeping points in time has a cost; close them as soon as they are no +// longer required for search requests. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html func New(tp elastictransport.Interface) *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 d765b8af1c..35b6c137ea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package closepointintime @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L43 type Request struct { // Id The ID of the point-in-time. 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 2e51e37303..3f52fe7241 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package closepointintime // Response holds the response body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9f1840d152..5da130ef4c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns number of documents matching a query. package 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 578d23319c..8875a7ac9b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package count @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/count/CountRequest.ts#L26-L120 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/count/CountRequest.ts#L26-L121 type Request struct { // Query Defines the search definition using the Query DSL. 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 27d5212064..589a03379d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package count @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/count/CountResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4b5fb95dde..31b32fb38c 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Index a document. // Adds a JSON document to the specified data stream or index and makes it // searchable. // If the target is an index and the document already exists, the request @@ -91,6 +92,7 @@ func NewCreateFunc(tp elastictransport.Interface) NewCreate { } } +// Index a document. // Adds a JSON document to the specified data stream or index and makes it // searchable. // If the target is an index and the document already exists, the request 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 186fe272f8..39e3605602 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package create @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/create/CreateRequest.ts#L32-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/create/CreateRequest.ts#L32-L96 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 d6903a6553..74aac6baef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package create @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/create/CreateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/create/CreateResponse.ts#L22-L24 type Response struct { ForcedRefresh *bool `json:"forced_refresh,omitempty"` Id_ string `json:"_id"` 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 72c38d48e7..7a9930fc5a 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete a document. // Removes a JSON document from the specified index. package delete @@ -84,6 +85,7 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } +// Delete a document. // Removes a JSON document from the specified index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html 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 e8a7d0a230..9346556a86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/delete/DeleteResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/delete/DeleteResponse.ts#L22-L34 type Response struct { ForcedRefresh *bool `json:"forced_refresh,omitempty"` Id_ string `json:"_id"` 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 f4060a7628..616a12c681 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete documents. // Deletes documents that match the specified query. package deletebyquery @@ -85,6 +86,7 @@ func NewDeleteByQueryFunc(tp elastictransport.Interface) NewDeleteByQuery { } } +// Delete documents. // Deletes documents that match the specified query. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html 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 c0109b3295..cc3fb0dbc6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletebyquery @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L209 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L211 type Request struct { // MaxDocs The maximum number of documents to delete. 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 2cdddd1144..02aaf033c8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletebyquery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/delete_by_query/DeleteByQueryResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3265a22cd2..a74633cdf9 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,10 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Changes the number of requests per second for a particular Delete By Query +// Throttle a delete by query operation. +// +// Change the number of requests per second for a particular delete by query // operation. +// Rethrottling that speeds up the query takes effect immediately but +// rethrotting that slows down the query takes effect after completing the +// current batch to prevent scroll timeouts. package deletebyqueryrethrottle import ( @@ -77,8 +82,13 @@ func NewDeleteByQueryRethrottleFunc(tp elastictransport.Interface) NewDeleteByQu } } -// Changes the number of requests per second for a particular Delete By Query +// Throttle a delete by query operation. +// +// Change the number of requests per second for a particular delete by query // operation. +// Rethrottling that speeds up the query takes effect immediately but +// rethrotting that slows down the query takes effect after completing the +// current batch to prevent scroll timeouts. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html func New(tp elastictransport.Interface) *DeleteByQueryRethrottle { 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 d76a955e4e..866d946787 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletebyqueryrethrottle @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package deletebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 51ca47b866..d8c3faeed8 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete a script or search template. // Deletes a stored script or search template. package deletescript @@ -76,6 +77,7 @@ func NewDeleteScriptFunc(tp elastictransport.Interface) NewDeleteScript { } } +// Delete a script or search template. // Deletes a stored script or search template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html 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 5ac945d21a..fa61c2330e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletescript // Response holds the response body struct for the package deletescript // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/delete_script/DeleteScriptResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0400053489..5d9bc42b8d 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Checks if a document in an index exists. +// Check a document. +// Checks if a specified document exists. package exists import ( @@ -80,7 +81,8 @@ func NewExistsFunc(tp elastictransport.Interface) NewExists { } } -// Checks if a document in an index exists. +// Check a document. +// Checks if a specified document exists. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html func New(tp elastictransport.Interface) *Exists { 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 caeeb3835b..4f2c9f2d36 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Check for a document source. // Checks if a document's `_source` is stored. package existssource @@ -80,6 +81,7 @@ func NewExistsSourceFunc(tp elastictransport.Interface) NewExistsSource { } } +// Check for a document source. // Checks if a document's `_source` is stored. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html 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 13af7aeb4a..ac6a48473e 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns information about why a specific document matches (or doesn’t match) +// Explain a document match result. +// Returns information about why a specific document matches, or doesn’t match, // a query. package explain @@ -88,7 +89,8 @@ func NewExplainFunc(tp elastictransport.Interface) NewExplain { } } -// Returns information about why a specific document matches (or doesn’t match) +// Explain a document match result. +// Returns information about why a specific document matches, or doesn’t match, // a query. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html 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 6a003c8b0f..7c99cf3972 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package explain @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/explain/ExplainRequest.ts#L26-L105 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/explain/ExplainRequest.ts#L26-L107 type Request struct { // Query Defines the search definition using the Query DSL. 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 88c473aa8b..d0a089afe9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package explain @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/explain/ExplainResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 adbc69a074..6061bd045d 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,14 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 - -// The field capabilities API returns the information about the capabilities of -// fields among multiple indices. -// The field capabilities API returns runtime fields like any other field. For -// example, a runtime field with a type -// of keyword is returned as any other field that belongs to the `keyword` -// family. +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Get the field capabilities. +// +// Get information about the capabilities of fields among multiple indices. +// +// For data streams, the API returns field capabilities among the stream’s +// backing indices. +// It returns runtime fields like any other field. +// For example, a runtime field with a type of keyword is returned the same as +// any other field that belongs to the `keyword` family. package fieldcaps import ( @@ -85,12 +88,15 @@ func NewFieldCapsFunc(tp elastictransport.Interface) NewFieldCaps { } } -// The field capabilities API returns the information about the capabilities of -// fields among multiple indices. -// The field capabilities API returns runtime fields like any other field. For -// example, a runtime field with a type -// of keyword is returned as any other field that belongs to the `keyword` -// family. +// Get the field capabilities. +// +// Get information about the capabilities of fields among multiple indices. +// +// For data streams, the API returns field capabilities among the stream’s +// backing indices. +// It returns runtime fields like any other field. +// For example, a runtime field with a type of keyword is returned the same as +// any other field that belongs to the `keyword` family. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html func New(tp elastictransport.Interface) *FieldCaps { 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 68b64bc13a..db6f160901 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package fieldcaps @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L106 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L111 type Request struct { // Fields List of fields to retrieve capabilities for. Wildcard (`*`) expressions are 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 c89c77ca0c..38fe82ec3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package fieldcaps @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/field_caps/FieldCapabilitiesResponse.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 205e525985..d582936482 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns a document. +// Get a document by its ID. +// Retrieves the document with the specified ID from an index. package get import ( @@ -83,7 +84,8 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Returns a document. +// Get a document by its ID. +// Retrieves the document with the specified ID from an index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html func New(tp elastictransport.Interface) *Get { 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 bf9bcc1224..0567ab0e31 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -26,11 +26,12 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get/GetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/get/GetResponse.ts#L23-L34 type Response struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` Id_ string `json:"_id"` + Ignored_ []string `json:"_ignored,omitempty"` Index_ string `json:"_index"` PrimaryTerm_ *int64 `json:"_primary_term,omitempty"` Routing_ *string `json:"_routing,omitempty"` 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 ef05eac3d5..dffcd03c3e 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get a script or search template. // Retrieves a stored script or search template. package getscript @@ -76,6 +77,7 @@ func NewGetScriptFunc(tp elastictransport.Interface) NewGetScript { } } +// Get a script or search template. // Retrieves a stored script or search template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html 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 bf51150890..aa5a8d72dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getscript @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscript // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get_script/GetScriptResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c901de4832..4983018ba2 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns all script contexts. +// Get script contexts. +// +// Get a list of supported script contexts and their methods. package getscriptcontext import ( @@ -68,7 +70,9 @@ func NewGetScriptContextFunc(tp elastictransport.Interface) NewGetScriptContext } } -// Returns all script contexts. +// Get script contexts. +// +// Get a list of supported script contexts and their methods. // // https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-contexts.html func New(tp elastictransport.Interface) *GetScriptContext { 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 adae4e9f50..f4b089d05d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getscriptcontext @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscriptcontext // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get_script_context/GetScriptContextResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cd68577052..cbaad3b6f3 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns available script types, languages and contexts +// Get script languages. +// +// Get a list of available script types, languages, and contexts. package getscriptlanguages import ( @@ -68,7 +70,9 @@ func NewGetScriptLanguagesFunc(tp elastictransport.Interface) NewGetScriptLangua } } -// Returns available script types, languages and contexts +// Get script languages. +// +// Get a list of available script types, languages, and contexts. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html func New(tp elastictransport.Interface) *GetScriptLanguages { 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 fd4148921f..cda72759f6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getscriptlanguages @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscriptlanguages // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c60e2bce29..865d04a87d 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get a document's source. // Returns the source of a document. package getsource @@ -82,6 +83,7 @@ func NewGetSourceFunc(tp elastictransport.Interface) NewGetSource { } } +// Get a document's source. // Returns the source of a document. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html 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 abaf775ed2..13a730c92b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getsource @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsource // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get_source/SourceResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6a90ca7e0f..ae44a70568 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the health of the cluster. package healthreport 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 83053d04d6..c266c5d93e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package healthreport @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package healthreport // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c4b6d86d78..3a4df033b9 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Index a document. // Adds a JSON document to the specified data stream or index and makes it // searchable. // If the target is an index and the document already exists, the request @@ -90,6 +91,7 @@ func NewIndexFunc(tp elastictransport.Interface) NewIndex { } } +// Index a document. // Adds a JSON document to the specified data stream or index and makes it // searchable. // If the target is an index and the document already exists, the request 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 a5fba1e17c..db24653fa1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package index @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/index/IndexRequest.ts#L35-L117 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/index/IndexRequest.ts#L35-L119 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 7ee6579f7d..de41688643 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package index @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/index/IndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/index/IndexResponse.ts#L22-L24 type Response struct { ForcedRefresh *bool `json:"forced_refresh,omitempty"` Id_ string `json:"_id"` 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 424312940f..920f9297ea 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get cluster info. // Returns basic information about the cluster. package info @@ -68,6 +69,7 @@ func NewInfoFunc(tp elastictransport.Interface) NewInfo { } } +// Get cluster info. // Returns basic information about the cluster. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html 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 3740d0544a..1b23b1195b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/info/RootNodeInfoResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e2a3cae235..1410872e60 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,9 +16,25 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Performs a kNN search. +// Run a knn search. +// +// NOTE: The kNN search API has been replaced by the `knn` option in the search +// API. +// +// Perform a k-nearest neighbor (kNN) search on a dense_vector field and return +// the matching documents. +// Given a query vector, the API finds the k closest vectors and returns those +// documents as search hits. +// +// Elasticsearch uses the HNSW algorithm to support efficient kNN search. +// Like most kNN algorithms, HNSW is an approximate method that sacrifices +// result accuracy for improved search speed. +// This means the results returned are not always the true k closest neighbors. +// +// The kNN search API supports restricting the search using a filter. +// The search will return the top k documents that also match the filter query. package knnsearch import ( @@ -81,7 +97,23 @@ func NewKnnSearchFunc(tp elastictransport.Interface) NewKnnSearch { } } -// Performs a kNN search. +// Run a knn search. +// +// NOTE: The kNN search API has been replaced by the `knn` option in the search +// API. +// +// Perform a k-nearest neighbor (kNN) search on a dense_vector field and return +// the matching documents. +// Given a query vector, the API finds the k closest vectors and returns those +// documents as search hits. +// +// Elasticsearch uses the HNSW algorithm to support efficient kNN search. +// Like most kNN algorithms, HNSW is an approximate method that sacrifices +// result accuracy for improved search speed. +// This means the results returned are not always the true k closest neighbors. +// +// The kNN search API supports restricting the search using a filter. +// The search will return the top k documents that also match the filter query. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html func New(tp elastictransport.Interface) *KnnSearch { 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 1e6206ed51..74ae927f4a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package knnsearch @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package knnsearch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/knn_search/KnnSearchRequest.ts#L27-L80 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/knn_search/KnnSearchRequest.ts#L26-L96 type Request struct { // DocvalueFields The request returns doc values for field names matching these patterns 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 73137931f3..264c76245a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package knnsearch @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package knnsearch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/knn_search/KnnSearchResponse.ts#L26-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 88806c3d9e..621619db13 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Allows to get multiple documents in one request. +// Get multiple documents. +// +// Get multiple JSON documents by ID from one or more indices. +// If you specify an index in the request URI, you only need to specify the +// document IDs in the request body. +// To ensure fast responses, this multi get (mget) API responds with partial +// results if one or more shards fail. package mget import ( @@ -79,7 +85,13 @@ func NewMgetFunc(tp elastictransport.Interface) NewMget { } } -// Allows to get multiple documents in one request. +// Get multiple documents. +// +// Get multiple JSON documents by ID from one or more indices. +// If you specify an index in the request URI, you only need to specify the +// document IDs in the request body. +// To ensure fast responses, this multi get (mget) API responds with partial +// results if one or more shards fail. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html func New(tp elastictransport.Interface) *Mget { 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 9d25130aa5..22f47a9256 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mget @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mget/MultiGetRequest.ts#L25-L98 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/mget/MultiGetRequest.ts#L25-L104 type Request struct { // Docs The documents you want to retrieve. Required if no index is specified in the 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 38ce14e6cc..20e069da11 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mget @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mget/MultiGetResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/mget/MultiGetResponse.ts#L22-L26 type Response struct { Docs []types.MgetResponseItem `json:"docs"` } @@ -76,7 +76,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { switch t { - case "fields", "found", "_primary_term", "_routing", "_seq_no", "_source", "_version": + case "fields", "found", "_ignored", "_primary_term", "_routing", "_seq_no", "_source", "_version": o := types.NewGetResult() localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&o); err != nil { 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 0123e8c0cf..0d763ed379 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,9 +16,28 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Allows to execute several search operations in one request. +// Run multiple searches. +// +// The format of the request is similar to the bulk API format and makes use of +// the newline delimited JSON (NDJSON) format. +// The structure is as follows: +// +// ``` +// header\n +// body\n +// header\n +// body\n +// ``` +// +// This structure is specifically optimized to reduce parsing if a specific +// search ends up redirected to another node. +// +// IMPORTANT: The final line of data must end with a newline character `\n`. +// Each newline character may be preceded by a carriage return `\r`. +// When sending requests to this endpoint the `Content-Type` header should be +// set to `application/x-ndjson`. package msearch import ( @@ -81,7 +100,26 @@ func NewMsearchFunc(tp elastictransport.Interface) NewMsearch { } } -// Allows to execute several search operations in one request. +// Run multiple searches. +// +// The format of the request is similar to the bulk API format and makes use of +// the newline delimited JSON (NDJSON) format. +// The structure is as follows: +// +// ``` +// header\n +// body\n +// header\n +// body\n +// ``` +// +// This structure is specifically optimized to reduce parsing if a specific +// search ends up redirected to another node. +// +// IMPORTANT: The final line of data must end with a newline character `\n`. +// Each newline character may be preceded by a carriage return `\r`. +// When sending requests to this endpoint the `Content-Type` header should be +// set to `application/x-ndjson`. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html func New(tp elastictransport.Interface) *Msearch { 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 31082e31de..37bbd5b519 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package msearch @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/MultiSearchRequest.ts#L25-L106 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/msearch/MultiSearchRequest.ts#L25-L124 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 6e3bcd78da..a095b80585 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package msearch @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/MultiSearchResponse.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/msearch/MultiSearchResponse.ts#L25-L27 type Response struct { Responses []types.MsearchResponseItem `json:"responses"` Took int64 `json:"took"` 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 27f2266a2a..1f7aceab6d 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Runs multiple templated searches with a single request. +// Run multiple templated searches. package msearchtemplate import ( @@ -80,7 +80,7 @@ func NewMsearchTemplateFunc(tp elastictransport.Interface) NewMsearchTemplate { } } -// Runs multiple templated searches with a single request. +// Run multiple templated searches. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html func New(tp elastictransport.Interface) *MsearchTemplate { 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 c4a288c9de..f8606452b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package msearchtemplate @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L72 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 02a0bd2ca0..fa329b1ced 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package msearchtemplate @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24 type Response struct { Responses []types.MsearchResponseItem `json:"responses"` Took int64 `json:"took"` 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 84cb95c521..ca95083a25 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns multiple termvectors in one request. +// Get multiple term vectors. +// +// You can specify existing documents by index and ID or provide artificial +// documents in the body of the request. +// You can specify the index in the request body or request URI. +// The response contains a `docs` array with all the fetched termvectors. +// Each element has the structure provided by the termvectors API. package mtermvectors import ( @@ -80,7 +86,13 @@ func NewMtermvectorsFunc(tp elastictransport.Interface) NewMtermvectors { } } -// Returns multiple termvectors in one request. +// Get multiple term vectors. +// +// You can specify existing documents by index and ID or provide artificial +// documents in the body of the request. +// You can specify the index in the request body or request URI. +// The response contains a `docs` array with all the fetched termvectors. +// Each element has the structure provided by the termvectors API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-termvectors.html func New(tp elastictransport.Interface) *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 d2fe7c7667..bb83a7045a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mtermvectors @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L109 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L116 type Request struct { // Docs Array of existing or artificial documents. 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 6ee7417297..77fbc4a87f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mtermvectors @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d4e78547f3..799c57d860 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// A search request by default executes against the most recent visible data of -// the target indices, +// Open a point in time. +// +// A search request by default runs against the most recent visible data of the +// target indices, // which is called point in time. Elasticsearch pit (point in time) is a // lightweight view into the // state of the data as it existed when initiated. In some cases, it’s preferred @@ -29,9 +31,14 @@ // `search_after` requests, then the results of those requests might not be // consistent as changes happening // between searches are only visible to the more recent point in time. +// +// A point in time must be opened explicitly before being used in search +// requests. +// The `keep_alive` parameter tells Elasticsearch how long it should persist. package openpointintime import ( + gobytes "bytes" "context" "encoding/json" "errors" @@ -63,6 +70,10 @@ type OpenPointInTime struct { raw io.Reader + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + paramSet int index string @@ -87,8 +98,10 @@ func NewOpenPointInTimeFunc(tp elastictransport.Interface) NewOpenPointInTime { } } -// A search request by default executes against the most recent visible data of -// the target indices, +// Open a point in time. +// +// A search request by default runs against the most recent visible data of the +// target indices, // which is called point in time. Elasticsearch pit (point in time) is a // lightweight view into the // state of the data as it existed when initiated. In some cases, it’s preferred @@ -99,12 +112,20 @@ func NewOpenPointInTimeFunc(tp elastictransport.Interface) NewOpenPointInTime { // consistent as changes happening // between searches are only visible to the more recent point in time. // +// A point in time must be opened explicitly before being used in search +// requests. +// The `keep_alive` parameter tells Elasticsearch how long it should persist. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html func New(tp elastictransport.Interface) *OpenPointInTime { r := &OpenPointInTime{ transport: tp, values: make(url.Values), headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + + req: NewRequest(), } if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { @@ -116,6 +137,21 @@ func New(tp elastictransport.Interface) *OpenPointInTime { 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 *OpenPointInTime) Raw(raw io.Reader) *OpenPointInTime { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *OpenPointInTime) Request(req *Request) *OpenPointInTime { + r.req = req + + return r +} + // HttpRequest returns the http.Request object built from the // given parameters. func (r *OpenPointInTime) HttpRequest(ctx context.Context) (*http.Request, error) { @@ -125,6 +161,31 @@ func (r *OpenPointInTime) HttpRequest(ctx context.Context) (*http.Request, error 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 OpenPointInTime: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + r.path.Scheme = "http" switch { @@ -269,45 +330,6 @@ func (r OpenPointInTime) 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 OpenPointInTime) 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, "open_point_in_time") - 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 OpenPointInTime 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 OpenPointInTime headers map. func (r *OpenPointInTime) Header(key, value string) *OpenPointInTime { r.headers.Set(key, value) @@ -418,3 +440,13 @@ func (r *OpenPointInTime) Pretty(pretty bool) *OpenPointInTime { return r } + +// IndexFilter Allows to filter indices if the provided query rewrites to `match_none` on +// every shard. +// API name: index_filter +func (r *OpenPointInTime) IndexFilter(indexfilter *types.Query) *OpenPointInTime { + + r.req.IndexFilter = indexfilter + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/request.go new file mode 100644 index 0000000000..535c8ff610 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/request.go @@ -0,0 +1,57 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package openpointintime + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// Request holds the request body struct for the package openpointintime +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts#L25-L81 +type Request struct { + + // IndexFilter Allows to filter indices if the provided query rewrites to `match_none` on + // every shard. + IndexFilter *types.Query `json:"index_filter,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 Openpointintime request: %w", err) + } + + return &req, nil +} 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 ce9d1bae62..21bffae6cd 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,15 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package openpointintime +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + // Response holds the response body struct for the package openpointintime // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L23-L29 type Response struct { Id string `json:"id"` + // Shards_ Shards used to create the PIT + Shards_ types.ShardStatistics `json:"_shards"` } // NewResponse returns a Response 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 a68ecad3f3..218327656b 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Ping the cluster. // Returns whether the cluster is running. package ping @@ -66,6 +67,7 @@ func NewPingFunc(tp elastictransport.Interface) NewPing { } } +// Ping the cluster. // Returns whether the cluster is running. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html 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 28e554f105..6a59dd3383 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create or update a script or search template. // Creates or updates a stored script or search template. package putscript @@ -84,6 +85,7 @@ func NewPutScriptFunc(tp elastictransport.Interface) NewPutScript { } } +// Create or update a script or search template. // Creates or updates a stored script or search template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html 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 c680adb53f..70e2c49ac0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putscript @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/put_script/PutScriptRequest.ts#L25-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/put_script/PutScriptRequest.ts#L25-L66 type Request struct { // Script Contains the script or search template, its parameters, and its language. 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 db500769b6..b5bdd714b9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putscript // Response holds the response body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/put_script/PutScriptResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 83d2e69c3a..76fe9f3d2f 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Enables you to evaluate the quality of ranked search results over a set of -// typical search queries. +// Evaluate ranked search results. +// +// Evaluate the quality of ranked search results over a set of typical search +// queries. package rankeval import ( @@ -81,8 +83,10 @@ func NewRankEvalFunc(tp elastictransport.Interface) NewRankEval { } } -// Enables you to evaluate the quality of ranked search results over a set of -// typical search queries. +// Evaluate ranked search results. +// +// Evaluate the quality of ranked search results over a set of typical search +// queries. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html func New(tp elastictransport.Interface) *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 63111c7998..ab9ac54be8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package rankeval @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/RankEvalRequest.ts#L24-L61 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/rank_eval/RankEvalRequest.ts#L24-L64 type Request struct { // Metric Definition of the evaluation metric to calculate. 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 ddf4307d6f..9d2a29f1a2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package rankeval @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/RankEvalResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4a0f5d199b..8476b92079 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,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Allows to copy documents from one index to another, optionally filtering the -// source -// documents by a query, changing the destination index settings, or fetching -// the -// documents from a remote cluster. +// Reindex documents. +// Copies documents from a source to a destination. The source can be any +// existing index, alias, or data stream. The destination must differ from the +// source. For example, you cannot reindex a data stream into itself. package reindex import ( @@ -78,11 +77,10 @@ func NewReindexFunc(tp elastictransport.Interface) NewReindex { } } -// Allows to copy documents from one index to another, optionally filtering the -// source -// documents by a query, changing the destination index settings, or fetching -// the -// documents from a remote cluster. +// Reindex documents. +// Copies documents from a source to a destination. The source can be any +// existing index, alias, or data stream. The destination must differ from the +// source. For example, you cannot reindex a data stream into itself. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html func New(tp elastictransport.Interface) *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 660db16498..87d46670d5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package reindex @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex/ReindexRequest.ts#L27-L101 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/reindex/ReindexRequest.ts#L27-L104 type Request struct { // Conflicts Set to proceed to continue reindexing even if there are conflicts. 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 00c8aef42c..2599032c22 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package reindex @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex/ReindexResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8761859073..2a92bffa86 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Copies documents from a source to a destination. +// Throttle a reindex operation. +// +// Change the number of requests per second for a particular reindex operation. package reindexrethrottle import ( @@ -76,7 +78,9 @@ func NewReindexRethrottleFunc(tp elastictransport.Interface) NewReindexRethrottl } } -// Copies documents from a source to a destination. +// Throttle a reindex operation. +// +// Change the number of requests per second for a particular reindex operation. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html func New(tp elastictransport.Interface) *ReindexRethrottle { 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 ea9e282365..4504c0f531 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package reindexrethrottle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reindexrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cf1cfe78fc..3002c108e8 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Renders a search template as a search request body. +// Render a search template. +// +// Render a search template as a search request body. package rendersearchtemplate import ( @@ -79,7 +81,9 @@ func NewRenderSearchTemplateFunc(tp elastictransport.Interface) NewRenderSearchT } } -// Renders a search template as a search request body. +// Render a search template. +// +// Render a search template as a search request body. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/render-search-template-api.html func New(tp elastictransport.Interface) *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 c3866c6c91..d81188334f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package rendersearchtemplate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L58 type Request struct { File *string `json:"file,omitempty"` // Params Key-value pairs used to replace Mustache variables in the template. 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 a4e1047e08..1812ea9c0d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package rendersearchtemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d643904b19..a2dd1b31de 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package scriptspainlessexecute @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L48 type Request struct { // Context The context that the script should run in. 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 54dc1c5760..47bc30ee1e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package scriptspainlessexecute @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 169d1f6ccd..e34ef01b0d 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Run a script. // Runs a script and returns a result. package scriptspainlessexecute @@ -73,6 +74,7 @@ func NewScriptsPainlessExecuteFunc(tp elastictransport.Interface) NewScriptsPain } } +// Run a script. // Runs a script and returns a result. // // https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html 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 4ac3294f8c..a081a3fbf6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package scroll @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scroll/ScrollRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/scroll/ScrollRequest.ts#L24-L75 type Request struct { // Scroll Period to retain the search context for scrolling. 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 4e9c5d7a0e..28752f8613 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package scroll @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scroll/ScrollResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/scroll/ScrollResponse.ts#L22-L24 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` @@ -504,6 +504,13 @@ func (s *Response) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := types.NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := types.NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 b28d9bc821..95d9e84132 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,9 +16,34 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Allows to retrieve a large numbers of results from a single search request. +// Run a scrolling search. +// +// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you +// need to preserve the index state while paging through more than 10,000 hits, +// use the `search_after` parameter with a point in time (PIT). +// +// The scroll API gets large sets of results from a single scrolling search +// request. +// To get the necessary scroll ID, submit a search API request that includes an +// argument for the `scroll` query parameter. +// The `scroll` parameter indicates how long Elasticsearch should retain the +// search context for the request. +// The search response returns a scroll ID in the `_scroll_id` response body +// parameter. +// You can then use the scroll ID with the scroll API to retrieve the next batch +// of results for the request. +// If the Elasticsearch security features are enabled, the access to the results +// of a specific scroll ID is restricted to the user or API key that submitted +// the search. +// +// You can also use the scroll API to specify a new scroll parameter that +// extends or shortens the retention period for the search context. +// +// IMPORTANT: Results from a scrolling search reflect the state of the index at +// the time of the initial search request. Subsequent indexing or document +// changes only affect later search and scroll requests. package scroll import ( @@ -75,7 +100,32 @@ func NewScrollFunc(tp elastictransport.Interface) NewScroll { } } -// Allows to retrieve a large numbers of results from a single search request. +// Run a scrolling search. +// +// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you +// need to preserve the index state while paging through more than 10,000 hits, +// use the `search_after` parameter with a point in time (PIT). +// +// The scroll API gets large sets of results from a single scrolling search +// request. +// To get the necessary scroll ID, submit a search API request that includes an +// argument for the `scroll` query parameter. +// The `scroll` parameter indicates how long Elasticsearch should retain the +// search context for the request. +// The search response returns a scroll ID in the `_scroll_id` response body +// parameter. +// You can then use the scroll ID with the scroll API to retrieve the next batch +// of results for the request. +// If the Elasticsearch security features are enabled, the access to the results +// of a specific scroll ID is restricted to the user or API key that submitted +// the search. +// +// You can also use the scroll API to specify a new scroll parameter that +// extends or shortens the retention period for the search context. +// +// IMPORTANT: Results from a scrolling search reflect the state of the index at +// the time of the initial search request. Subsequent indexing or document +// changes only affect later search and scroll requests. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-scroll func New(tp elastictransport.Interface) *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 24c7bcd7a1..2f64738231 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package search @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/SearchRequest.ts#L54-L530 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/SearchRequest.ts#L54-L531 type Request struct { // Aggregations Defines the aggregations that are run as part of the search request. 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 be47d2e076..a103fd312d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/SearchResponse.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/SearchResponse.ts#L34-L36 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` @@ -504,6 +504,13 @@ func (s *Response) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := types.NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := types.NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 9293eccfc2..70577cbc6b 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns search hits that match the query defined in the request. +// Run a search. +// +// Get search hits that match the query defined in the request. // You can provide search queries using the `q` query string parameter or the // request body. // If both are specified, only the query parameter is used. @@ -86,7 +88,9 @@ func NewSearchFunc(tp elastictransport.Interface) NewSearch { } } -// Returns search hits that match the query defined in the request. +// Run a search. +// +// Get search hits that match the query defined in the request. // You can provide search queries using the `q` query string parameter or the // request body. // If both are specified, only the query parameter is used. 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 7d3ee97ca2..215f929c73 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package searchmvt @@ -35,7 +35,7 @@ import ( // Request holds the request body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L188 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L193 type Request struct { // Aggs Sub-aggregations for the geotile_grid. 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 fa5efe558b..f3a436961d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package searchmvt // Response holds the response body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_mvt/SearchMvtResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c575543463..85423a581e 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Searches a vector tile for geospatial values. Returns results as a binary -// Mapbox vector tile. +// Search a vector tile. +// +// Search a vector tile for geospatial values. package searchmvt import ( @@ -104,8 +105,9 @@ func NewSearchMvtFunc(tp elastictransport.Interface) NewSearchMvt { } } -// Searches a vector tile for geospatial values. Returns results as a binary -// Mapbox vector tile. +// Search a vector tile. +// +// Search a vector tile for geospatial values. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-vector-tile-api.html func New(tp elastictransport.Interface) *SearchMvt { 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 0e934b95b7..1fcd91179b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package searchshards @@ -26,18 +26,18 @@ import ( // Response holds the response body struct for the package searchshards // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_shards/SearchShardsResponse.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search_shards/SearchShardsResponse.ts#L34-L40 type Response struct { - Indices map[string]types.ShardStoreIndex `json:"indices"` - Nodes map[string]types.NodeAttributes `json:"nodes"` - Shards [][]types.NodeShard `json:"shards"` + Indices map[string]types.ShardStoreIndex `json:"indices"` + Nodes map[string]types.SearchShardsNodeAttributes `json:"nodes"` + Shards [][]types.NodeShard `json:"shards"` } // NewResponse returns a Response func NewResponse() *Response { r := &Response{ Indices: make(map[string]types.ShardStoreIndex, 0), - Nodes: make(map[string]types.NodeAttributes, 0), + Nodes: make(map[string]types.SearchShardsNodeAttributes, 0), } return r } 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 147a70f8dc..a17893242c 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,10 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns information about the indices and shards that a search request would -// be executed against. +// Get the search shards. +// +// Get the indices and shards that a search request would be run against. +// This information can be useful for working out issues or planning +// optimizations with routing and shard preferences. +// When filtered aliases are used, the filter is returned as part of the indices +// section. package searchshards import ( @@ -76,8 +81,13 @@ func NewSearchShardsFunc(tp elastictransport.Interface) NewSearchShards { } } -// Returns information about the indices and shards that a search request would -// be executed against. +// Get the search shards. +// +// Get the indices and shards that a search request would be run against. +// This information can be useful for working out issues or planning +// optimizations with routing and shard preferences. +// When filtered aliases are used, the filter is returned as part of the indices +// section. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html func New(tp elastictransport.Interface) *SearchShards { 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 d54a106bce..5e47616875 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package searchtemplate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_template/SearchTemplateRequest.ts#L32-L134 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search_template/SearchTemplateRequest.ts#L32-L136 type Request struct { // Explain If `true`, returns detailed information about score calculation as part of 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 84acbc1133..4bc06c87af 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package searchtemplate @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_template/SearchTemplateResponse.ts#L30-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` @@ -504,6 +504,13 @@ func (s *Response) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := types.NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := types.NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 0358512203..b7f8116e36 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Runs a search with a search template. +// Run a search with a search template. package searchtemplate import ( @@ -81,7 +81,7 @@ func NewSearchTemplateFunc(tp elastictransport.Interface) NewSearchTemplate { } } -// Runs a search with a search template. +// Run a search with a search template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html func New(tp elastictransport.Interface) *SearchTemplate { 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 af727ddc71..74a712625c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package termsenum @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L75 type Request struct { // CaseInsensitive When true the provided search string is matched against index terms without 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 164fcbe9f1..4f75301ba0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package termsenum @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/terms_enum/TermsEnumResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c9f150fd7a..9d2d18822b 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,11 +16,23 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// 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 +// Get terms in an index. +// +// Discover terms that match a partial string in an index. +// This "terms enum" API is designed for low-latency look-ups used in // auto-complete scenarios. +// +// If the `complete` property in the response is false, the returned terms set +// may be incomplete and should be treated as approximate. +// This can occur due to a few reasons, such as a request timeout or a node +// error. +// +// NOTE: The terms enum API may return terms from deleted documents. Deleted +// documents are initially only marked as deleted. It is not until their +// segments are merged that documents are actually deleted. Until that happens, +// the terms enum API will return terms from these documents. package termsenum import ( @@ -83,10 +95,22 @@ func NewTermsEnumFunc(tp elastictransport.Interface) NewTermsEnum { } } -// 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 +// Get terms in an index. +// +// Discover terms that match a partial string in an index. +// This "terms enum" API is designed for low-latency look-ups used in // auto-complete scenarios. // +// If the `complete` property in the response is false, the returned terms set +// may be incomplete and should be treated as approximate. +// This can occur due to a few reasons, such as a request timeout or a node +// error. +// +// NOTE: The terms enum API may return terms from deleted documents. Deleted +// documents are initially only marked as deleted. It is not until their +// segments are merged that documents are actually deleted. Until that happens, +// the terms enum API will return terms from these documents. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html func New(tp elastictransport.Interface) *TermsEnum { r := &TermsEnum{ 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 1169606def..9821278320 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package termvectors @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/TermVectorsRequest.ts#L33-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/termvectors/TermVectorsRequest.ts#L33-L122 type Request struct { // Doc An artificial document (a document not present in the index) for which you 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 e5c577412b..4adbee0e2c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package termvectors @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34 type Response struct { Found bool `json:"found"` Id_ *string `json:"_id,omitempty"` 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 9845e19e5c..2e45f82b14 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns information and statistics about terms in the fields of a particular +// Get term vector information. +// +// Get information and statistics about terms in the fields of a particular // document. package termvectors @@ -86,7 +88,9 @@ func NewTermvectorsFunc(tp elastictransport.Interface) NewTermvectors { } } -// Returns information and statistics about terms in the fields of a particular +// Get term vector information. +// +// Get information and statistics about terms in the fields of a particular // document. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html 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 845cf9e6d5..3645a4fb61 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package update @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/update/UpdateRequest.ts#L38-L151 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/update/UpdateRequest.ts#L38-L154 type Request struct { // DetectNoop Set to false to disable setting 'result' in the response 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 6974504a6b..2172bbfd0d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package update @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/update/UpdateResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/update/UpdateResponse.ts#L27-L29 type Response struct { ForcedRefresh *bool `json:"forced_refresh,omitempty"` Get *types.InlineGet `json:"get,omitempty"` 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 9f65164ab1..ed0cb5343a 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates a document with a script or partial document. +// Update a document. +// Updates a document by running a script or passing a partial document. package update import ( @@ -87,7 +88,8 @@ func NewUpdateFunc(tp elastictransport.Interface) NewUpdate { } } -// Updates a document with a script or partial document. +// Update a document. +// Updates a document by running a script or passing a partial document. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html func New(tp elastictransport.Interface) *Update { 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 9cc73cc8ae..09ab23988b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatebyquery @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L221 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L227 type Request struct { // Conflicts What to do if update by query hits version conflicts: `abort` or `proceed`. 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 48a80cc656..ca563da0e9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatebyquery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/update_by_query/UpdateByQueryResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d44baedda6..2364200f65 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Update documents. // Updates documents that match the specified query. // If no query is specified, performs an update on every document in the data // stream or index without modifying the source, which is useful for picking up @@ -88,6 +89,7 @@ func NewUpdateByQueryFunc(tp elastictransport.Interface) NewUpdateByQuery { } } +// Update documents. // Updates documents that match the specified query. // If no query is specified, performs an update on every document in the data // stream or index without modifying the source, which is useful for picking up @@ -433,6 +435,14 @@ func (r *UpdateByQuery) Preference(preference string) *UpdateByQuery { return r } +// Q Query in the Lucene query string syntax. +// API name: q +func (r *UpdateByQuery) Q(q string) *UpdateByQuery { + r.values.Set("q", q) + + return r +} + // Refresh If `true`, Elasticsearch refreshes affected shards to make the operation // visible to search. // API name: refresh 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 d546ce631c..f17c202428 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatebyqueryrethrottle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1bbc0fd163..27ccc0642a 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,10 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Changes the number of requests per second for a particular Update By Query +// Throttle an update by query operation. +// +// Change the number of requests per second for a particular update by query // operation. +// Rethrottling that speeds up the query takes effect immediately but +// rethrotting that slows down the query takes effect after completing the +// current batch to prevent scroll timeouts. package updatebyqueryrethrottle import ( @@ -77,8 +82,13 @@ func NewUpdateByQueryRethrottleFunc(tp elastictransport.Interface) NewUpdateByQu } } -// Changes the number of requests per second for a particular Update By Query +// Throttle an update by query operation. +// +// Change the number of requests per second for a particular update by query // operation. +// Rethrottling that speeds up the query takes effect immediately but +// rethrotting that slows down the query takes effect after completing the +// current batch to prevent scroll timeouts. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html func New(tp elastictransport.Interface) *UpdateByQueryRethrottle { 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 2125f23bdc..8abf635600 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes the specified dangling index +// Delete a dangling index. +// +// If Elasticsearch encounters index data that is absent from the current +// cluster state, those indices are considered to be dangling. +// For example, this can happen if you delete more than +// `cluster.indices.tombstones.size` indices while an Elasticsearch node is +// offline. package deletedanglingindex import ( @@ -76,7 +82,13 @@ func NewDeleteDanglingIndexFunc(tp elastictransport.Interface) NewDeleteDangling } } -// Deletes the specified dangling index +// Delete a dangling index. +// +// If Elasticsearch encounters index data that is absent from the current +// cluster state, those indices are considered to be dangling. +// For example, this can happen if you delete more than +// `cluster.indices.tombstones.size` indices while an Elasticsearch node is +// offline. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html func New(tp elastictransport.Interface) *DeleteDanglingIndex { @@ -288,7 +300,8 @@ func (r *DeleteDanglingIndex) Header(key, value string) *DeleteDanglingIndex { return r } -// IndexUuid The UUID of the dangling index +// IndexUuid The UUID of the index to delete. Use the get dangling indices API to find the +// UUID. // API Name: indexuuid func (r *DeleteDanglingIndex) _indexuuid(indexuuid string) *DeleteDanglingIndex { r.paramSet |= indexuuidMask @@ -297,7 +310,8 @@ func (r *DeleteDanglingIndex) _indexuuid(indexuuid string) *DeleteDanglingIndex return r } -// AcceptDataLoss Must be set to true in order to delete the dangling index +// AcceptDataLoss This parameter must be set to true to acknowledge that it will no longer be +// possible to recove data from the dangling index. // API name: accept_data_loss func (r *DeleteDanglingIndex) AcceptDataLoss(acceptdataloss bool) *DeleteDanglingIndex { r.values.Set("accept_data_loss", strconv.FormatBool(acceptdataloss)) 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 9df6d79ec0..632d72b3fb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletedanglingindex // Response holds the response body struct for the package deletedanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4bc4563cd5..6148c19721 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Imports the specified dangling index +// Import a dangling index. +// +// If Elasticsearch encounters index data that is absent from the current +// cluster state, those indices are considered to be dangling. +// For example, this can happen if you delete more than +// `cluster.indices.tombstones.size` indices while an Elasticsearch node is +// offline. package importdanglingindex import ( @@ -76,7 +82,13 @@ func NewImportDanglingIndexFunc(tp elastictransport.Interface) NewImportDangling } } -// Imports the specified dangling index +// Import a dangling index. +// +// If Elasticsearch encounters index data that is absent from the current +// cluster state, those indices are considered to be dangling. +// For example, this can happen if you delete more than +// `cluster.indices.tombstones.size` indices while an Elasticsearch node is +// offline. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html func New(tp elastictransport.Interface) *ImportDanglingIndex { @@ -288,7 +300,8 @@ func (r *ImportDanglingIndex) Header(key, value string) *ImportDanglingIndex { return r } -// IndexUuid The UUID of the dangling index +// IndexUuid The UUID of the index to import. Use the get dangling indices API to locate +// the UUID. // API Name: indexuuid func (r *ImportDanglingIndex) _indexuuid(indexuuid string) *ImportDanglingIndex { r.paramSet |= indexuuidMask @@ -297,7 +310,11 @@ func (r *ImportDanglingIndex) _indexuuid(indexuuid string) *ImportDanglingIndex return r } -// AcceptDataLoss Must be set to true in order to import the dangling index +// AcceptDataLoss This parameter must be set to true to import a dangling index. +// Because Elasticsearch cannot know where the dangling index data came from or +// determine which shard copies are fresh and which are stale, it cannot +// guarantee that the imported data represents the latest state of the index +// when it was last in the cluster. // API name: accept_data_loss func (r *ImportDanglingIndex) AcceptDataLoss(acceptdataloss bool) *ImportDanglingIndex { r.values.Set("accept_data_loss", strconv.FormatBool(acceptdataloss)) 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 adb9f31470..beaf3417b5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package importdanglingindex // Response holds the response body struct for the package importdanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7f997b3a19..d5c77f613a 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,9 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns all dangling indices. +// Get the dangling indices. +// +// If Elasticsearch encounters index data that is absent from the current +// cluster state, those indices are considered to be dangling. +// For example, this can happen if you delete more than +// `cluster.indices.tombstones.size` indices while an Elasticsearch node is +// offline. +// +// Use this API to list dangling indices, which you can then import or delete. package listdanglingindices import ( @@ -68,7 +76,15 @@ func NewListDanglingIndicesFunc(tp elastictransport.Interface) NewListDanglingIn } } -// Returns all dangling indices. +// Get the dangling indices. +// +// If Elasticsearch encounters index data that is absent from the current +// cluster state, those indices are considered to be dangling. +// For example, this can happen if you delete more than +// `cluster.indices.tombstones.size` indices while an Elasticsearch node is +// offline. +// +// Use this API to list dangling indices, which you can then import or delete. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html func New(tp elastictransport.Interface) *ListDanglingIndices { 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 e0aec9baf0..676da4a824 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package listdanglingindices @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package listdanglingindices // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6dcd11945e..be9dba044a 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete an enrich policy. // Deletes an existing enrich policy and its enrich index. package deletepolicy @@ -76,6 +77,7 @@ func NewDeletePolicyFunc(tp elastictransport.Interface) NewDeletePolicy { } } +// Delete an enrich policy. // Deletes an existing enrich policy and its enrich index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html 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 09979048d4..6f61964629 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletepolicy // Response holds the response body struct for the package deletepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 00631db7ca..4176c82239 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates the enrich index for an existing enrich policy. package executepolicy 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 7ef8abcc80..e46cddfbee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package executepolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package executepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f39f156b24..9f2e0c6b23 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get an enrich policy. // Returns information about an enrich policy. package getpolicy @@ -74,6 +75,7 @@ func NewGetPolicyFunc(tp elastictransport.Interface) NewGetPolicy { } } +// Get an enrich policy. // Returns information about an enrich policy. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html 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 6e876c6cdc..cd6e6bf5dc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getpolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 90bde035fd..e44b48043b 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create an enrich policy. // Creates an enrich policy. package putpolicy @@ -81,6 +82,7 @@ func NewPutPolicyFunc(tp elastictransport.Interface) NewPutPolicy { } } +// Create an enrich policy. // Creates an enrich policy. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html 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 8d37d77d91..d91da6c282 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putpolicy @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L53 type Request struct { // GeoMatch Matches enrich data to incoming documents based on a `geo_shape` query. 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 db3b053cb7..83bcf89ad1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putpolicy // Response holds the response body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f986264829..ceb6dabd2d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/stats/EnrichStatsResponse.ts#L22-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ba684b22ee..35e05e2f81 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get enrich stats. // Returns enrich coordinator statistics and information about enrich policies // that are currently executing. package stats @@ -69,6 +70,7 @@ func NewStatsFunc(tp elastictransport.Interface) NewStats { } } +// Get enrich stats. // Returns enrich coordinator statistics and information about enrich policies // that are currently executing. // 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 a8f9772075..f4a0e18551 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes an async EQL search or a stored synchronous EQL search. // The API also deletes results for the search. 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 286edf6b36..436c9c6930 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/delete/EqlDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d08198b01f..74873eaeff 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the current status and available results for an async EQL search or a // stored synchronous EQL search. 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 fb35c8cf05..7f45dfb4c6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/get/EqlGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9f4f3a08f5..34828cf197 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the current status for an async EQL search or a stored synchronous // EQL search without returning results. 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 1282f9a1e0..04ec242dcb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getstatus // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/get_status/EqlGetStatusResponse.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 14cd837234..61f7bb37ec 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package search @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/search/EqlSearchRequest.ts#L28-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 123eccc86d..99b8be58ad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package search @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/search/EqlSearchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 77282c598f..b8975f9327 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns results matching a query expressed in Event Query Language (EQL) package search diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery/async_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery/async_query.go index f9e02fd3a0..5fc85464cd 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery/async_query.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery/async_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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Executes an ESQL request asynchronously package asyncquery 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 index bde2cb2c4e..47db6ae65d 100644 --- 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 @@ -24,6 +24,8 @@ import ( "errors" "fmt" "io" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat" ) type metadata struct { @@ -41,7 +43,7 @@ type esqlResponse struct { func Helper[T any](ctx context.Context, esqlQuery *Query) ([]T, error) { response, err := esqlQuery. Columnar(false). - Format("json"). + Format(esqlformat.Json). Header("x-elastic-client-meta", "h=qo"). Do(ctx) if err != nil { @@ -142,7 +144,7 @@ func (d iterator[T]) Next() (*T, error) { func NewIteratorHelper[T any](ctx context.Context, query *Query) (EsqlIterator[T], error) { response, err := query. Columnar(false). - Format("json"). + Format(esqlformat.Json). Header("x-elastic-client-meta", "h=qo"). Perform(ctx) if err != 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 c52ec887b7..c0e0dedf38 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Executes an ES|QL request package query @@ -35,6 +35,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -292,8 +293,8 @@ func (r *Query) Header(key, value string) *Query { // Format A short version of the Accept header, e.g. json, yaml. // API name: format -func (r *Query) Format(format string) *Query { - r.values.Set("format", format) +func (r *Query) Format(format esqlformat.EsqlFormat) *Query { + r.values.Set("format", format.String()) return r } @@ -307,6 +308,17 @@ func (r *Query) Delimiter(delimiter string) *Query { return r } +// DropNullColumns Should columns that are entirely `null` be removed from the `columns` and +// `values` portion of the results? +// Defaults to `false`. If `true` then the response will include an extra +// section under the name `all_columns` which has the name of all columns. +// API name: drop_null_columns +func (r *Query) DropNullColumns(dropnullcolumns bool) *Query { + r.values.Set("drop_null_columns", strconv.FormatBool(dropnullcolumns)) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace @@ -384,12 +396,25 @@ func (r *Query) Locale(locale string) *Query { // separate list of parameters. Use question mark placeholders (?) in the query // string for each of the parameters. // API name: params -func (r *Query) Params(params ...types.ScalarValue) *Query { +func (r *Query) Params(params ...types.FieldValue) *Query { r.req.Params = params return r } +// Profile If provided and `true` the response will include an extra `profile` object +// with information on how the query was executed. This information is for human +// debugging +// and its format can change at any time but it can give some insight into the +// performance +// of each part of the query. +// API name: profile +func (r *Query) Profile(profile bool) *Query { + r.req.Profile = &profile + + return r +} + // Query The ES|QL query API accepts an ES|QL query string in the query parameter, // runs it, and returns the results. // API name: query @@ -399,3 +424,13 @@ func (r *Query) Query(query string) *Query { return r } + +// Tables Tables to use with the LOOKUP operation. The top level key is the table +// name and the next level key is the column name. +// API name: tables +func (r *Query) Tables(tables map[string]map[string]types.TableValuesContainer) *Query { + + r.req.Tables = tables + + return r +} 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 f30ccca055..0a5fe7088d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package query @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/esql/query/QueryRequest.ts#L24-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/esql/query/QueryRequest.ts#L26-L89 type Request struct { // Columnar By default, ES|QL returns results as rows. For example, FROM returns each @@ -44,15 +44,27 @@ type Request struct { // Params To avoid any attempts of hacking or code injection, extract the values in a // separate list of parameters. Use question mark placeholders (?) in the query // string for each of the parameters. - Params []types.ScalarValue `json:"params,omitempty"` + Params []types.FieldValue `json:"params,omitempty"` + // Profile If provided and `true` the response will include an extra `profile` object + // with information on how the query was executed. This information is for human + // debugging + // and its format can change at any time but it can give some insight into the + // performance + // of each part of the query. + Profile *bool `json:"profile,omitempty"` // Query The ES|QL query API accepts an ES|QL query string in the query parameter, // runs it, and returns the results. Query string `json:"query"` + // Tables Tables to use with the LOOKUP operation. The top level key is the table + // name and the next level key is the column name. + Tables map[string]map[string]types.TableValuesContainer `json:"tables,omitempty"` } // NewRequest returns a Request func NewRequest() *Request { - r := &Request{} + r := &Request{ + Tables: make(map[string]map[string]types.TableValuesContainer, 0), + } 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 0bdb67a818..da949fb6b8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package query // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/esql/query/QueryResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6e1c1df594..fb006cb636 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Gets a list of features which can be included in snapshots using the // feature_states field when creating a snapshot 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 8eb1463002..829acc9230 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getfeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/features/get_features/GetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 52ed76523a..87631a324a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Resets the internal state of features, usually by deleting system indices package resetfeatures 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 d15dab1131..a6084976a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package resetfeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resetfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/features/reset_features/ResetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a41557cd53..a83ce94d1e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the current global checkpoints for an index. This API is design for // internal use by the fleet server project. 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 454f48ffc1..e7d9cf14f3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package globalcheckpoints // Response holds the response body struct for the package globalcheckpoints // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c18bc4b1d6..c789ee6dab 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Executes several [fleet // searches](https://www.elastic.co/guide/en/elasticsearch/reference/current/fleet-search.html) 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 c158475489..e6055c0684 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package msearch @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/msearch/MultiSearchRequest.ts#L32-L115 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/fleet/msearch/MultiSearchRequest.ts#L31-L114 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 ff76ebb984..0987ecf285 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package msearch @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 52aaee37dc..5702b3238e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a secret stored by Fleet. package postsecret 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 eb0b97f8bb..7cb580874e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package search @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/search/SearchRequest.ts#L55-L260 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/fleet/search/SearchRequest.ts#L55-L260 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` 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 61b51f4be3..5f6abf69b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/search/SearchResponse.ts#L33-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/fleet/search/SearchResponse.ts#L33-L50 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` @@ -504,6 +504,13 @@ func (s *Response) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := types.NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := types.NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 d49034761e..ad4e2acc45 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // The purpose of the fleet search api is to provide a search api where the // search will only be executed 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 d104457f33..c795fb8047 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Extracts and summarizes information about the documents and terms in an // Elasticsearch data stream or index. 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 be50687138..64ba2c4408 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package explore @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/explore/GraphExploreRequest.ts#L28-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/graph/explore/GraphExploreRequest.ts#L28-L72 type Request struct { // Connections Specifies or more fields from which you want to extract terms that are 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 c34f36c641..b2298349b6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package explore @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/explore/GraphExploreResponse.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 00b9db732f..153955edb6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes the specified lifecycle policy definition. You cannot delete policies // that are currently in use. If the policy is being used to manage any indices, 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 a054e629f4..31cac93596 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 835e385b61..36e0adb78b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves information about the index’s current lifecycle state, such as the // currently executing phase, action, and step. Shows when the index entered 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 85be0b0293..f64f257f00 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package explainlifecycle @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package explainlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28 type Response struct { Indices map[string]types.LifecycleExplain `json:"indices"` } 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 82f4e2d30f..55c82812a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves a lifecycle policy. package getlifecycle 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 8fdea6ccf3..deb28508c8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getlifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b13578bea8..fc1bafa2ff 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves the current index lifecycle management (ILM) status. package getstatus 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 68b5dc0546..09a7d18088 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getstatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/get_status/GetIlmStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 030f0b4338..e56d18c317 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Switches the indices, ILM policies, and legacy, composable and component // templates from using custom node attributes and 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 fac0110ded..cf60547df0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package migratetodatatiers @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/migrate_to_data_tiers/Request.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 2e0aa9244c..bdea42af8b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package migratetodatatiers @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L32 type Response struct { DryRun bool `json:"dry_run"` MigratedComponentTemplates []string `json:"migrated_component_templates"` 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 2c524e0a0f..d7fea864f7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Manually moves an index into the specified step and executes that step. package movetostep @@ -362,7 +362,7 @@ func (r *MoveToStep) Pretty(pretty bool) *MoveToStep { // API name: current_step func (r *MoveToStep) CurrentStep(currentstep *types.StepKey) *MoveToStep { - r.req.CurrentStep = currentstep + r.req.CurrentStep = *currentstep return r } @@ -370,7 +370,7 @@ func (r *MoveToStep) CurrentStep(currentstep *types.StepKey) *MoveToStep { // API name: next_step func (r *MoveToStep) NextStep(nextstep *types.StepKey) *MoveToStep { - r.req.NextStep = nextstep + r.req.NextStep = *nextstep return r } 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 3a099e0999..302785ff1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package movetostep @@ -29,10 +29,10 @@ import ( // Request holds the request body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/move_to_step/MoveToStepRequest.ts#L24-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` + CurrentStep types.StepKey `json:"current_step"` + NextStep types.StepKey `json:"next_step"` } // NewRequest returns a Request 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 4cb2d71e0b..12f6d6ff63 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package movetostep // Response holds the response body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/move_to_step/MoveToStepResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 22109b5c14..f0e5601990 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a lifecycle policy. If the specified policy exists, the policy is // replaced and the policy version is incremented. 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 36d5bdd062..3c515c0ac8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putlifecycle @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L55 type Request struct { Policy *types.IlmPolicy `json:"policy,omitempty"` } 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 989d0102a1..1b3de41db6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b84a0a53ea..eadd6a9c5e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Removes the assigned lifecycle policy and stops managing the specified index package removepolicy 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 bd2cb7aaec..b81ea2f581 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package removepolicy // Response holds the response body struct for the package removepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/remove_policy/RemovePolicyResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 57c0ab1046..54b7e12617 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package retry // Response holds the response body struct for the package retry // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/retry/RetryIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e3aee370a5..a8ed0beb89 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retries executing the policy for an index that is in the ERROR step. package retry 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 c2adb699a0..9c17275843 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/start/StartIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d5478111b9..665bc7d6b6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Start the index lifecycle management (ILM) plugin. package start 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 b776011433..b56453a5d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/stop/StopIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fc094070c3..b43427aea5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Halts all lifecycle management operations and stops the index lifecycle // management (ILM) plugin 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 2199fdea65..e0a32beac0 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Adds a block to an index. +// Add an index block. +// Limits the operations allowed on an index by blocking specific operation +// types. package addblock import ( @@ -82,7 +84,9 @@ func NewAddBlockFunc(tp elastictransport.Interface) NewAddBlock { } } -// Adds a block to an index. +// Add an index block. +// Limits the operations allowed on an index by blocking specific operation +// types. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-blocks.html func New(tp elastictransport.Interface) *AddBlock { 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 1d0a037258..13863bf1bd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package addblock @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package addblock // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/add_block/IndicesAddBlockResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0de7c3d354..703145ba24 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Performs analysis on a text string and returns the resulting tokens. +// Get tokens from text analysis. +// The analyze API performs +// [analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html) +// on a text string and returns the resulting tokens. package analyze import ( @@ -79,7 +82,10 @@ func NewAnalyzeFunc(tp elastictransport.Interface) NewAnalyze { } } -// Performs analysis on a text string and returns the resulting tokens. +// Get tokens from text analysis. +// The analyze API performs +// [analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html) +// on a text string and returns the resulting tokens. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html func New(tp elastictransport.Interface) *Analyze { 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 75ef68c688..1d03eee080 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package analyze @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L93 type Request struct { // Analyzer The name of the analyzer that should be applied to the provided `text`. @@ -536,6 +536,12 @@ func (s *Request) UnmarshalJSON(data []byte) error { return err } s.Tokenizer = *o + case "classic": + o := types.NewClassicTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o case "edge_ngram": o := types.NewEdgeNGramTokenizer() if err := localDec.Decode(&o); err != nil { @@ -566,14 +572,26 @@ func (s *Request) UnmarshalJSON(data []byte) error { return err } s.Tokenizer = *o - case "nori_tokenizer": - o := types.NewNoriTokenizer() + case "path_hierarchy": + o := types.NewPathHierarchyTokenizer() if err := localDec.Decode(&o); err != nil { return err } s.Tokenizer = *o - case "path_hierarchy": - o := types.NewPathHierarchyTokenizer() + case "pattern": + o := types.NewPatternTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "simple_pattern": + o := types.NewSimplePatternTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "simple_pattern_split": + o := types.NewSimplePatternSplitTokenizer() if err := localDec.Decode(&o); err != nil { return err } @@ -584,6 +602,12 @@ func (s *Request) UnmarshalJSON(data []byte) error { return err } s.Tokenizer = *o + case "thai": + o := types.NewThaiTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o case "uax_url_email": o := types.NewUaxEmailUrlTokenizer() if err := localDec.Decode(&o); err != nil { @@ -596,20 +620,20 @@ func (s *Request) UnmarshalJSON(data []byte) error { return err } s.Tokenizer = *o - case "kuromoji_tokenizer": - o := types.NewKuromojiTokenizer() + case "icu_tokenizer": + o := types.NewIcuTokenizer() if err := localDec.Decode(&o); err != nil { return err } s.Tokenizer = *o - case "pattern": - o := types.NewPatternTokenizer() + case "kuromoji_tokenizer": + o := types.NewKuromojiTokenizer() if err := localDec.Decode(&o); err != nil { return err } s.Tokenizer = *o - case "icu_tokenizer": - o := types.NewIcuTokenizer() + case "nori_tokenizer": + o := types.NewNoriTokenizer() if err := localDec.Decode(&o); err != nil { return 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 9a3b838f85..2bebc26f74 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package analyze @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/IndicesAnalyzeResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1bc84299ca..038a03fac6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Clears the caches of one or more indices. // For data streams, the API clears the caches of the stream’s backing indices. 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 11e410a602..0671c66f85 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearcache @@ -26,9 +26,9 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24 type Response struct { - Shards_ types.ShardStatistics `json:"_shards"` + Shards_ *types.ShardStatistics `json:"_shards,omitempty"` } // NewResponse returns a Response 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 b12d530b1b..d6a4aa2b7d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Clones an existing index. package 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 4b2cb4db9e..20b17f6708 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clone @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/clone/IndicesCloneRequest.ts#L27-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/clone/IndicesCloneRequest.ts#L27-L75 type Request struct { // Aliases Aliases for the resulting index. 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 c9f34440af..bce31b062e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/clone/IndicesCloneResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 14a0d9fe44..808e3aa54b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Closes an index. package close 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 54511ca710..7b04b9f578 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package close @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package close // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/close/CloseIndexResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 60be215727..b8ae5c3ee4 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create an index. // Creates a new index. package create @@ -81,6 +82,7 @@ func NewCreateFunc(tp elastictransport.Interface) NewCreate { } } +// Create an index. // Creates a new index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html 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 1f38f0d3be..e59675e2be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package create @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/create/IndicesCreateRequest.ts#L28-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/create/IndicesCreateRequest.ts#L28-L82 type Request struct { // Aliases Aliases for the index. 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 b21089fb14..70aa80c1cc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package create // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/create/IndicesCreateResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 187625cc03..1db6989595 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create a data stream. // Creates a data stream. // You must have a matching index template with data stream enabled. package createdatastream @@ -77,6 +78,7 @@ func NewCreateDataStreamFunc(tp elastictransport.Interface) NewCreateDataStream } } +// Create a data stream. // Creates a data stream. // You must have a matching index template with data stream enabled. // @@ -306,6 +308,24 @@ func (r *CreateDataStream) _name(name string) *CreateDataStream { 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 *CreateDataStream) MasterTimeout(duration string) *CreateDataStream { + r.values.Set("master_timeout", duration) + + 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 *CreateDataStream) Timeout(duration string) *CreateDataStream { + 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 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 7e84784e9b..48364cdd65 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package createdatastream // Response holds the response body struct for the package createdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6833533831..7d1b94f864 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get data stream stats. // Retrieves statistics for one or more data streams. package datastreamsstats @@ -75,6 +76,7 @@ func NewDataStreamsStatsFunc(tp elastictransport.Interface) NewDataStreamsStats } } +// Get data stream stats. // Retrieves statistics for one or more data streams. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html 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 b142f446f4..feb2b592cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package datastreamsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package datastreamsstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 15a81f074e..7b76777bd2 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete indices. // Deletes one or more indices. package delete @@ -77,6 +78,7 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } +// Delete indices. // Deletes one or more indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html 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 9d14b787ef..87d8ea09f2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/delete/IndicesDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b346ee1991..d2fbc51694 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete an alias. // Removes a data stream or index from an alias. package deletealias @@ -81,6 +82,7 @@ func NewDeleteAliasFunc(tp elastictransport.Interface) NewDeleteAlias { } } +// Delete an alias. // Removes a data stream or index from an alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html 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 d28dd7ce89..78ba4ed9fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletealias // Response holds the response body struct for the package deletealias // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d4202a00c1..7462b78e57 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Removes the data lifecycle from a data stream rendering it not managed by the -// data stream lifecycle +// Delete data stream lifecycles. +// Removes the data stream lifecycle from a data stream, rendering it not +// managed by the data stream lifecycle. package deletedatalifecycle import ( @@ -78,8 +79,9 @@ func NewDeleteDataLifecycleFunc(tp elastictransport.Interface) NewDeleteDataLife } } -// Removes the data lifecycle from a data stream rendering it not managed by the -// data stream lifecycle +// Delete data stream lifecycles. +// Removes the data stream lifecycle from a data stream, rendering it not +// managed by the data stream lifecycle. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-delete-lifecycle.html func New(tp elastictransport.Interface) *DeleteDataLifecycle { 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 dbeb9e6e86..8dfd29df60 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletedatalifecycle // Response holds the response body struct for the package deletedatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cac44aee93..fd9b848308 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete data streams. // Deletes one or more data streams and their backing indices. package deletedatastream @@ -77,6 +78,7 @@ func NewDeleteDataStreamFunc(tp elastictransport.Interface) NewDeleteDataStream } } +// Delete data streams. // Deletes one or more data streams and their backing indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html @@ -299,6 +301,15 @@ func (r *DeleteDataStream) _name(name string) *DeleteDataStream { 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 *DeleteDataStream) MasterTimeout(duration string) *DeleteDataStream { + r.values.Set("master_timeout", duration) + + return r +} + // ExpandWildcards Type of data stream that wildcard patterns can match. Supports // comma-separated values,such as `open,hidden`. // API name: expand_wildcards 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 64289a664f..dccf55230d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletedatastream // Response holds the response body struct for the package deletedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ed01d61abd..20bcdf7826 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Delete an index template. // The provided may contain multiple template names separated 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 9a4e42632e..b4e2f41f3f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteindextemplate // Response holds the response body struct for the package deleteindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 74864fbe3c..b886610dac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes a legacy index template. package deletetemplate 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 fd1ea58db0..27204ec383 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletetemplate // Response holds the response body struct for the package deletetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 27f0b883d1..3297a92ded 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Analyzes the disk usage of each field of an index or data stream. package diskusage 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 4db08f242a..2622da85ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package diskusage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package diskusage // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d3707b7be2..65ec434959 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Aggregates a time series (TSDS) index and stores pre-computed statistical // summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each metric 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 1dfe2b48c0..a2b2844661 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package downsample @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/downsample/Request.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6210d6b304..875fa4c72f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package downsample @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/downsample/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8ff1e53756..82918bef49 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Checks if a data stream, index, or alias exists. +// Check indices. +// Checks if one or more indices, index aliases, or data streams exist. package exists import ( @@ -75,7 +76,8 @@ func NewExistsFunc(tp elastictransport.Interface) NewExists { } } -// Checks if a data stream, index, or alias exists. +// Check indices. +// Checks if one or more indices, index aliases, or data streams exist. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html func New(tp elastictransport.Interface) *Exists { 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 ccbabba5ee..c2aad2b9a5 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Checks if an alias exists. +// Check aliases. +// Checks if one or more data stream or index aliases exist. package existsalias import ( @@ -78,7 +79,8 @@ func NewExistsAliasFunc(tp elastictransport.Interface) NewExistsAlias { } } -// Checks if an alias exists. +// Check aliases. +// Checks if one or more data stream or index aliases exist. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html func New(tp elastictransport.Interface) *ExistsAlias { 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 cddb7fb12b..d3583ef9db 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about whether a particular index template exists. package existsindextemplate 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 6d18e430a0..3e06d55177 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Check existence of index templates. // Returns information about whether a particular index template exists. 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 3f12c116e4..7337f959b7 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,10 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information about the index's current data stream lifecycle, such -// as any potential encountered error, time since creation etc. +// Get the status for a data stream lifecycle. +// Retrieves information about an index or data stream’s current data stream +// lifecycle status, such as time since index creation, time since rollover, the +// lifecycle configuration managing the index, or any errors encountered during +// lifecycle execution. package explaindatalifecycle import ( @@ -77,8 +80,11 @@ func NewExplainDataLifecycleFunc(tp elastictransport.Interface) NewExplainDataLi } } -// Retrieves information about the index's current data stream lifecycle, such -// as any potential encountered error, time since creation etc. +// Get the status for a data stream lifecycle. +// Retrieves information about an index or data stream’s current data stream +// lifecycle status, such as time since index creation, time since rollover, the +// lifecycle configuration managing the index, or any errors encountered during +// lifecycle execution. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html func New(tp elastictransport.Interface) *ExplainDataLifecycle { 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 70a1d651f8..90ffaef37a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package explaindatalifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explaindatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 18cf73a8f2..bddd3bba24 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns field usage information for each shard and field of an index. package fieldusagestats 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 8361328055..f62b252e8e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package fieldusagestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package fieldusagestats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f250c13b75..0af1b1a4b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Flushes one or more data streams or indices. package flush 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 7478c7636d..a612a21a49 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package flush @@ -26,9 +26,9 @@ import ( // Response holds the response body struct for the package flush // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/flush/IndicesFlushResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/flush/IndicesFlushResponse.ts#L22-L24 type Response struct { - Shards_ types.ShardStatistics `json:"_shards"` + Shards_ *types.ShardStatistics `json:"_shards,omitempty"` } // NewResponse returns a Response 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 baf9739533..dec77a2b83 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Performs the force merge operation on one or more indices. package forcemerge 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 5cdcb0e14f..6a646acf55 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package forcemerge @@ -26,9 +26,9 @@ import ( // Response holds the response body struct for the package forcemerge // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24 type Response struct { - Shards_ types.ShardStatistics `json:"_shards"` + Shards_ *types.ShardStatistics `json:"_shards,omitempty"` // Task task contains a task id returned when wait_for_completion=false, // you can use the task_id to get the status of the task at _tasks/ Task *string `json:"task,omitempty"` 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 81952f55c1..07ae060bf2 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get index information. // Returns information about one or more indices. For data streams, the API // returns information about the // stream’s backing indices. @@ -80,6 +81,7 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } +// Get index information. // Returns information about one or more indices. For data streams, the API // returns information about the // stream’s backing indices. 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 e08ee907f3..43608ab3db 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get/IndicesGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5080b8b08f..d949cd8b78 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information for one or more aliases. +// Get aliases. +// Retrieves information for one or more data stream or index aliases. package getalias import ( @@ -79,7 +80,8 @@ func NewGetAliasFunc(tp elastictransport.Interface) NewGetAlias { } } -// Retrieves information for one or more aliases. +// Get aliases. +// Retrieves information for one or more data stream or index aliases. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html func New(tp elastictransport.Interface) *GetAlias { 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 d19dac0174..e2527a7948 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getalias @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getalias // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2bf1748dad..0af0f2971a 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get data stream lifecycles. // Retrieves the data stream lifecycle configuration of one or more data // streams. package getdatalifecycle @@ -78,6 +79,7 @@ func NewGetDataLifecycleFunc(tp elastictransport.Interface) NewGetDataLifecycle } } +// Get data stream lifecycles. // Retrieves the data stream lifecycle configuration of one or more data // streams. // @@ -326,6 +328,15 @@ func (r *GetDataLifecycle) IncludeDefaults(includedefaults bool) *GetDataLifecyc 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 *GetDataLifecycle) MasterTimeout(duration string) *GetDataLifecycle { + r.values.Set("master_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 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 90bca5950a..3d2d2aaf7b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getdatalifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 85f1ecd702..48af554213 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get data streams. // Retrieves information about one or more data streams. package getdatastream @@ -75,6 +76,7 @@ func NewGetDataStreamFunc(tp elastictransport.Interface) NewGetDataStream { } } +// Get data streams. // Retrieves information about one or more data streams. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html @@ -324,6 +326,24 @@ func (r *GetDataStream) IncludeDefaults(includedefaults bool) *GetDataStream { 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 *GetDataStream) MasterTimeout(duration string) *GetDataStream { + r.values.Set("master_timeout", duration) + + return r +} + +// Verbose Whether the maximum timestamp for each data stream should be calculated and +// returned. +// API name: verbose +func (r *GetDataStream) Verbose(verbose bool) *GetDataStream { + r.values.Set("verbose", strconv.FormatBool(verbose)) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace 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 d0d0d3a5aa..6892938877 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getdatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7dd71e5922..c2737b37aa 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get mapping definitions. // Retrieves mapping definitions for one or more fields. // For data streams, the API retrieves field mappings for the stream’s backing // indices. @@ -82,6 +83,7 @@ func NewGetFieldMappingFunc(tp elastictransport.Interface) NewGetFieldMapping { } } +// Get mapping definitions. // Retrieves mapping definitions for one or more fields. // For data streams, the API retrieves field mappings for the stream’s backing // indices. 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 516c6a3963..a48014b677 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getfieldmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfieldmapping // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9f42a7f9bc..9e54148b5c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Get index templates. // Returns information about one or more index templates. 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 f6f0205534..d086c1d5cd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getindextemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 760e514553..2592a67fa1 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get mapping definitions. // Retrieves mapping definitions for one or more indices. // For data streams, the API retrieves mappings for the stream’s backing // indices. @@ -77,6 +78,7 @@ func NewGetMappingFunc(tp elastictransport.Interface) NewGetMapping { } } +// Get mapping definitions. // Retrieves mapping definitions for one or more indices. // For data streams, the API retrieves mappings for the stream’s backing // indices. 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 5342cf664f..4cecce890c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmapping // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bbbbe7705e..087d183326 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get index settings. // Returns setting information for one or more indices. For data streams, // returns setting information for the stream’s backing indices. package getsettings @@ -79,6 +80,7 @@ func NewGetSettingsFunc(tp elastictransport.Interface) NewGetSettings { } } +// Get index settings. // Returns setting information for one or more indices. For data streams, // returns setting information for the stream’s backing indices. // 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 790696b69b..9b2c8e7b5c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ad64193578..46f4340ab2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Get index templates. // Retrieves information about one or more index templates. 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 50ff27b32e..3e63d54c96 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package gettemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_template/IndicesGetTemplateResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6b4a3a55df..993db24405 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Convert an index alias to a data stream. // Converts an index alias to a data stream. // You must have a matching index template that is data stream enabled. // The alias must meet the following criteria: @@ -87,6 +88,7 @@ func NewMigrateToDataStreamFunc(tp elastictransport.Interface) NewMigrateToDataS } } +// Convert an index alias to a data stream. // Converts an index alias to a data stream. // You must have a matching index template that is data stream enabled. // The alias must meet the following criteria: @@ -321,6 +323,24 @@ func (r *MigrateToDataStream) _name(name string) *MigrateToDataStream { 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 *MigrateToDataStream) MasterTimeout(duration string) *MigrateToDataStream { + r.values.Set("master_timeout", duration) + + 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 *MigrateToDataStream) Timeout(duration string) *MigrateToDataStream { + 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 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 c2c08472d0..ede762e90f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package migratetodatastream // Response holds the response body struct for the package migratetodatastream // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 25eb74aa1f..e3ffa9a978 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Update data streams. // Performs one or more data stream modification actions in a single atomic // operation. package modifydatastream @@ -74,6 +75,7 @@ func NewModifyDataStreamFunc(tp elastictransport.Interface) NewModifyDataStream } } +// Update data streams. // Performs one or more data stream modification actions in a single atomic // operation. // 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 e0d540d41c..c6d7696a48 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package modifydatastream @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L38 type Request struct { // Actions Actions to perform. 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 cf221675fd..b7911473cc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package modifydatastream // Response holds the response body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7af46c44e1..64a8948601 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Opens a closed index. // For data streams, the API opens any closed backing indices. 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 9b7b553a14..251f2a0255 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package open // Response holds the response body struct for the package open // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/open/IndicesOpenResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3bc7c8ed7b..1a6d4d198a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Promotes a data stream from a replicated data stream managed by CCR to a // regular data stream @@ -301,6 +301,15 @@ func (r *PromoteDataStream) _name(name string) *PromoteDataStream { 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 *PromoteDataStream) MasterTimeout(duration string) *PromoteDataStream { + r.values.Set("master_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 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 061a84666e..289a353149 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package promotedatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package promotedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 93085822f6..9b2621858d 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create or update an alias. // Adds a data stream or index to an alias. package putalias @@ -86,6 +87,7 @@ func NewPutAliasFunc(tp elastictransport.Interface) NewPutAlias { } } +// Create or update an alias. // Adds a data stream or index to an alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html 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 6c64c7ba11..21ee4f519f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putalias @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L92 type Request struct { // Filter Query used to limit documents the alias can access. 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 bf4e2dfb58..bddc48756c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putalias // Response holds the response body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_alias/IndicesPutAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0137c5fe06..6b56e242ad 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Update the data lifecycle of the specified data streams. +// Update data stream lifecycles. +// Update the data stream lifecycle of the specified data streams. package putdatalifecycle import ( @@ -82,7 +83,8 @@ func NewPutDataLifecycleFunc(tp elastictransport.Interface) NewPutDataLifecycle } } -// Update the data lifecycle of the specified data streams. +// Update data stream lifecycles. +// Update the data stream lifecycle of the specified data streams. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-put-lifecycle.html func New(tp elastictransport.Interface) *PutDataLifecycle { 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 4e303c92df..fa7f13442e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putdatalifecycle @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L76 type Request struct { // DataRetention If defined, every document added to this data stream will be stored at least 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 94df0d0a6b..28f8205b99 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putdatalifecycle // Response holds the response body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 63a10cfa3e..38366185ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Create or update an index template. // Index templates define settings, mappings, and aliases that can be applied 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 798e5613f0..67eff8c81c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putindextemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L119 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 e663b942d2..d69c470587 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putindextemplate // Response holds the response body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 14f3861a42..c68e814aca 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Update field mappings. // Adds new fields to an existing data stream or index. // You can also use this API to change the search settings of existing fields. // For data streams, these changes are applied to all backing indices by @@ -86,6 +87,7 @@ func NewPutMappingFunc(tp elastictransport.Interface) NewPutMapping { } } +// Update field mappings. // Adds new fields to an existing data stream or index. // You can also use this API to change the search settings of existing fields. // For data streams, these changes are applied to all backing indices by 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 6406c478ce..aee82e14c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putmapping @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L42-L149 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L41-L149 type Request struct { // DateDetection Controls whether dynamic date detection is enabled. 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 47b21b0895..d1d857e5c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_mapping/IndicesPutMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 10db48263d..c07092c386 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Changes a dynamic index setting in real time. For data streams, index setting +// Update index settings. +// Changes dynamic index settings in real time. For data streams, index setting // changes are applied to all backing indices by default. package putsettings @@ -82,7 +83,8 @@ func NewPutSettingsFunc(tp elastictransport.Interface) NewPutSettings { } } -// Changes a dynamic index setting in real time. For data streams, index setting +// Update index settings. +// Changes dynamic index settings in real time. For data streams, index setting // changes are applied to all backing indices by default. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html 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 65338eb076..c6ef54fd3b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putsettings @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L93 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 4d5789fd2c..2fed35c242 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putsettings // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0ec927743e..839ea014fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Create or update an index template. // Index templates define settings, mappings, and aliases that can be applied 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 472a75c2a1..32816a7046 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L95 type Request struct { // Aliases Aliases for the index. 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 a09fa789b4..e4939cd767 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttemplate // Response holds the response body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_template/IndicesPutTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b91862908f..60f133795f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about ongoing and completed shard recoveries for one or // more indices. 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 61d2eef78e..1404f1a52e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package recovery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/IndicesRecoveryResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 37d6f360bd..4bfe1e8d29 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Refresh an index. // A refresh makes recent operations performed on one or more indices available // for search. // For data streams, the API runs the refresh operation on the stream’s backing @@ -78,6 +79,7 @@ func NewRefreshFunc(tp elastictransport.Interface) NewRefresh { } } +// Refresh an index. // A refresh makes recent operations performed on one or more indices available // for search. // For data streams, the API runs the refresh operation on the stream’s backing 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 29f5d5e11e..0370c21587 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package refresh @@ -26,9 +26,9 @@ import ( // Response holds the response body struct for the package refresh // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24 type Response struct { - Shards_ types.ShardStatistics `json:"_shards"` + Shards_ *types.ShardStatistics `json:"_shards,omitempty"` } // NewResponse returns a Response 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 55515c25b0..750d271ec6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Reloads an index's search analyzers and their resources. package reloadsearchanalyzers 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 a549803fed..a3c26336c2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package reloadsearchanalyzers @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reloadsearchanalyzers // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a338f13da6..e1caa6d203 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Resolves the specified index expressions to return information about each // cluster, including 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 e96d189e55..e3d6693969 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package resolvecluster @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resolvecluster // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8d46422d55..b1785974fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Resolves the specified name(s) and/or index patterns for indices, aliases, // and data streams. @@ -323,6 +323,27 @@ func (r *ResolveIndex) ExpandWildcards(expandwildcards ...expandwildcard.ExpandW return r } +// IgnoreUnavailable If `false`, the request returns an error if it targets a missing or closed +// index. +// API name: ignore_unavailable +func (r *ResolveIndex) IgnoreUnavailable(ignoreunavailable bool) *ResolveIndex { + r.values.Set("ignore_unavailable", strconv.FormatBool(ignoreunavailable)) + + return r +} + +// AllowNoIndices If `false`, the request returns an error if any wildcard expression, index +// alias, or `_all` value targets only missing or closed indices. +// This behavior applies even if the request targets other open indices. +// For example, a request targeting `foo*,bar*` returns an error if an index +// starts with `foo` but no index starts with `bar`. +// API name: allow_no_indices +func (r *ResolveIndex) AllowNoIndices(allownoindices bool) *ResolveIndex { + r.values.Set("allow_no_indices", strconv.FormatBool(allownoindices)) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace 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 6848a45d7a..3d54486cee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package resolveindex @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resolveindex // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/resolve_index/ResolveIndexResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2d813708b7..7cae3e5e7d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package rollover @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L100 type Request struct { // Aliases Aliases for the target index. 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 2fa83c6276..c5167f1f9a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package rollover // Response holds the response body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/rollover/IndicesRolloverResponse.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2fc1115b72..965f1f2697 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Roll over to a new index. // Creates a new index for a data stream or index alias. package rollover @@ -84,6 +85,7 @@ func NewRolloverFunc(tp elastictransport.Interface) NewRollover { } } +// Roll over to a new index. // Creates a new index for a data stream or index alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html 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 9244507900..de4c5462c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package segments @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/segments/IndicesSegmentsResponse.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8eb8038fb8..6d0cefcecb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns low-level information about the Lucene segments in index shards. // For data streams, the API returns information about the stream’s backing 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 8c36f33da6..2fc2cd461f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package shardstores @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package shardstores // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a01d620812..69a11c198f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves store information about replica shards in one or more indices. // For data streams, the API retrieves store information for the stream’s 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 435acb6634..0459ee0373 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package shrink @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L75 type Request struct { // Aliases The key is the alias name. 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 c9aa1f7976..b3ff35cdf6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package shrink // Response holds the response body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shrink/IndicesShrinkResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 145e0d61e0..9d4081e602 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Shrinks an existing index into a new index with fewer primary shards. package shrink 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 1dcfbecdaf..f1d5223f4a 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,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package simulateindextemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulateindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30 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/simulateindextemplate/simulate_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/simulate_index_template.go index 3953a73588..07b29e3fee 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,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Simulate an index. // Returns the index configuration that would be applied to the specified index 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 7e3ee877ce..4da26303f3 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,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package simulatetemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L120 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L120 type Request struct { // AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster 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 745546fb4a..ef9f0f6ed9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package simulatetemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 52eaf79d47..82cceae68e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Simulate an index template. // Returns the index configuration that would be applied by a particular index 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 849ad05732..e9694a2477 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package split @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/split/IndicesSplitRequest.ts#L27-L74 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/split/IndicesSplitRequest.ts#L27-L74 type Request struct { // Aliases Aliases for the resulting index. 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 6b9691f3f1..6cd41f55b4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package split // Response holds the response body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/split/IndicesSplitResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 84db207e93..e6a98839e9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Splits an existing index into a new index with more primary shards. package 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 8a156d76da..0300c72a72 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/IndicesStatsResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 073040dac5..d111d7ee7d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns statistics for one or more indices. // For data streams, the API retrieves statistics for the stream’s backing 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 3b64106a33..74e66d8d76 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package unfreeze // Response holds the response body struct for the package unfreeze // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/unfreeze/IndicesUnfreezeResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5ce92abd89..413f5eac6a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Unfreezes an index. package unfreeze 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 0d1d59de04..1c0393acd2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatealiases @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L52 type Request struct { // Actions Actions to perform. 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 3f6fdc8dca..f328a2a0c0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatealiases // Response holds the response body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 308eb58d62..afe665276d 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create or update an alias. // Adds a data stream or index to an alias. package updatealiases @@ -73,6 +74,7 @@ func NewUpdateAliasesFunc(tp elastictransport.Interface) NewUpdateAliases { } } +// Create or update an alias. // Adds a data stream or index to an alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html 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 cb6a4c65bf..0b772255fa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package validatequery @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L111 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L112 type Request struct { // Query Query in the Lucene query string syntax. 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 f68a6fbec0..add17e821a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package validatequery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e53af278bc..1ed714b8f3 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Validates a potentially expensive query without executing it. +// Validate a query. +// Validates a query without running it. package validatequery import ( @@ -81,7 +82,8 @@ func NewValidateQueryFunc(tp elastictransport.Interface) NewValidateQuery { } } -// Validates a potentially expensive query without executing it. +// Validate a query. +// Validates a query without running it. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-validate.html func New(tp elastictransport.Interface) *ValidateQuery { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/delete.go index b6c27a1a33..04cea8c2e5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/delete.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Delete an inference endpoint package delete diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/response.go index b66367dce5..04a7b1601d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/delete/DeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/delete/DeleteResponse.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/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/get.go index 640f7d1309..e76c18dc2d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/get.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Get an inference endpoint package get diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/response.go index 33f3f0cf3c..f11407dbf5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/get/GetResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/get/GetResponse.ts#L22-L26 type Response struct { Endpoints []types.InferenceEndpointInfo `json:"endpoints"` } 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 51580b2c3b..95ffe8edc6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Perform inference on the service package 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 b7ba6e277c..2766f51790 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package inference @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package inference // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/inference/InferenceRequest.ts#L26-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/inference/InferenceRequest.ts#L26-L66 type Request struct { // Input Inference input. 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 a6db3fe9f4..4d47a36b3f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package inference @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package inference // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/inference/InferenceResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/inference/InferenceResponse.ts#L22-L24 type Response struct { Completion []types.CompletionResult `json:"completion,omitempty"` Rerank []types.RankedDocument `json:"rerank,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/put.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/put.go index fd5cf77278..bcac0b67b6 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/put.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Create an inference endpoint package put diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/request.go index acb6edfc1e..46710fd40b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package put @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/put/PutRequest.ts#L25-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/put/PutRequest.ts#L25-L44 type Request = types.InferenceEndpoint // NewRequest returns a Request diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/response.go index 0fb7bc8980..21c2811e39 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package put @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/put/PutResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/put/PutResponse.ts#L22-L24 type Response struct { // InferenceId The inference Id @@ -38,7 +38,7 @@ type Response struct { // ServiceSettings Settings specific to the service ServiceSettings json.RawMessage `json:"service_settings"` // TaskSettings Task settings specific to the service and task type - TaskSettings json.RawMessage `json:"task_settings"` + TaskSettings json.RawMessage `json:"task_settings,omitempty"` // TaskType The task type TaskType tasktype.TaskType `json:"task_type"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go new file mode 100644 index 0000000000..f2371554c1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go @@ -0,0 +1,365 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Deletes a geoip database configuration. +package deletegeoipdatabase + +import ( + "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 ( + idMask = 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 DeleteGeoipDatabase struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + id string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewDeleteGeoipDatabase type alias for index. +type NewDeleteGeoipDatabase func(id string) *DeleteGeoipDatabase + +// NewDeleteGeoipDatabaseFunc returns a new instance of DeleteGeoipDatabase with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewDeleteGeoipDatabaseFunc(tp elastictransport.Interface) NewDeleteGeoipDatabase { + return func(id string) *DeleteGeoipDatabase { + n := New(tp) + + n._id(id) + + return n + } +} + +// Deletes a geoip database configuration. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-geoip-database-api.html +func New(tp elastictransport.Interface) *DeleteGeoipDatabase { + r := &DeleteGeoipDatabase{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *DeleteGeoipDatabase) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + r.path.Scheme = "http" + + switch { + case r.paramSet == idMask: + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("geoip") + path.WriteString("/") + path.WriteString("database") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "id", r.id) + } + path.WriteString(r.id) + + method = http.MethodDelete + } + + 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("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 DeleteGeoipDatabase) 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, "ingest.delete_geoip_database") + 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, "ingest.delete_geoip_database") + if reader := instrument.RecordRequestBody(ctx, "ingest.delete_geoip_database", 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", "ingest.delete_geoip_database") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the DeleteGeoipDatabase 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 deletegeoipdatabase.Response +func (r DeleteGeoipDatabase) 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, "ingest.delete_geoip_database") + 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 +} + +// 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 DeleteGeoipDatabase) 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, "ingest.delete_geoip_database") + 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 DeleteGeoipDatabase 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 DeleteGeoipDatabase headers map. +func (r *DeleteGeoipDatabase) Header(key, value string) *DeleteGeoipDatabase { + r.headers.Set(key, value) + + return r +} + +// Id A comma-separated list of geoip database configurations to delete +// API Name: id +func (r *DeleteGeoipDatabase) _id(id string) *DeleteGeoipDatabase { + r.paramSet |= idMask + r.id = id + + 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 *DeleteGeoipDatabase) MasterTimeout(duration string) *DeleteGeoipDatabase { + r.values.Set("master_timeout", duration) + + 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 *DeleteGeoipDatabase) Timeout(duration string) *DeleteGeoipDatabase { + 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 *DeleteGeoipDatabase) ErrorTrace(errortrace bool) *DeleteGeoipDatabase { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *DeleteGeoipDatabase) FilterPath(filterpaths ...string) *DeleteGeoipDatabase { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *DeleteGeoipDatabase) Human(human bool) *DeleteGeoipDatabase { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *DeleteGeoipDatabase) Pretty(pretty bool) *DeleteGeoipDatabase { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase/response.go new file mode 100644 index 0000000000..fa66572ff6 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase/response.go @@ -0,0 +1,37 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package deletegeoipdatabase + +// Response holds the response body struct for the package deletegeoipdatabase +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L24 +type Response struct { + + // Acknowledged For a successful response, this value is always true. On failure, an + // exception is returned instead. + Acknowledged bool `json:"acknowledged"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 8b3d1b3aef..d3ef9673d4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes one or more existing ingest pipeline. package deletepipeline 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 b77642a35a..7148b2816a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletepipeline // Response holds the response body struct for the package deletepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3fa360ea1b..3708a1c0bd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Gets download statistics for GeoIP2 databases used with the geoip processor. package geoipstats 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 3651ec34f5..9b79e6dccb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package geoipstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package geoipstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/getgeoipdatabase/get_geoip_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase/get_geoip_database.go new file mode 100644 index 0000000000..436e40b7a0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase/get_geoip_database.go @@ -0,0 +1,365 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Returns information about one or more geoip database configurations. +package getgeoipdatabase + +import ( + "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 ( + idMask = 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 GetGeoipDatabase struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + id string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewGetGeoipDatabase type alias for index. +type NewGetGeoipDatabase func() *GetGeoipDatabase + +// NewGetGeoipDatabaseFunc returns a new instance of GetGeoipDatabase with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewGetGeoipDatabaseFunc(tp elastictransport.Interface) NewGetGeoipDatabase { + return func() *GetGeoipDatabase { + n := New(tp) + + return n + } +} + +// Returns information about one or more geoip database configurations. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/get-geoip-database-api.html +func New(tp elastictransport.Interface) *GetGeoipDatabase { + r := &GetGeoipDatabase{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *GetGeoipDatabase) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + r.path.Scheme = "http" + + switch { + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("geoip") + path.WriteString("/") + path.WriteString("database") + + method = http.MethodGet + case r.paramSet == idMask: + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("geoip") + path.WriteString("/") + path.WriteString("database") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "id", r.id) + } + path.WriteString(r.id) + + method = http.MethodGet + } + + 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("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 GetGeoipDatabase) 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, "ingest.get_geoip_database") + 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, "ingest.get_geoip_database") + if reader := instrument.RecordRequestBody(ctx, "ingest.get_geoip_database", 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", "ingest.get_geoip_database") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the GetGeoipDatabase 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 getgeoipdatabase.Response +func (r GetGeoipDatabase) 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, "ingest.get_geoip_database") + 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 +} + +// 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 GetGeoipDatabase) 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, "ingest.get_geoip_database") + 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 GetGeoipDatabase 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 GetGeoipDatabase headers map. +func (r *GetGeoipDatabase) Header(key, value string) *GetGeoipDatabase { + r.headers.Set(key, value) + + return r +} + +// Id Comma-separated list of database configuration IDs to retrieve. +// Wildcard (`*`) expressions are supported. +// To get all database configurations, omit this parameter or use `*`. +// API Name: id +func (r *GetGeoipDatabase) Id(id string) *GetGeoipDatabase { + r.paramSet |= idMask + r.id = id + + 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 *GetGeoipDatabase) MasterTimeout(duration string) *GetGeoipDatabase { + r.values.Set("master_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 *GetGeoipDatabase) ErrorTrace(errortrace bool) *GetGeoipDatabase { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *GetGeoipDatabase) FilterPath(filterpaths ...string) *GetGeoipDatabase { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *GetGeoipDatabase) Human(human bool) *GetGeoipDatabase { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *GetGeoipDatabase) Pretty(pretty bool) *GetGeoipDatabase { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase/response.go new file mode 100644 index 0000000000..0b2a7825c1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase/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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package getgeoipdatabase + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// Response holds the response body struct for the package getgeoipdatabase +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L25-L27 +type Response struct { + Databases []types.DatabaseConfigurationMetadata `json:"databases"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 a1453f1f16..19f15988bc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about one or more ingest pipelines. // This API returns a local reference of the pipeline. 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 90de6922e7..6299903e4b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getpipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/get_pipeline/GetPipelineResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 351bc5f653..1278562145 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Extracts structured fields out of a single text field within a document. // You choose which field to extract matched fields from, as well as the grok 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 7ba5868c3d..c105b6734d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package processorgrok // Response holds the response body struct for the package processorgrok // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/putgeoipdatabase/put_geoip_database.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/put_geoip_database.go new file mode 100644 index 0000000000..b1311567ea --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/put_geoip_database.go @@ -0,0 +1,402 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Returns information about one or more geoip database configurations. +package putgeoipdatabase + +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 ( + idMask = 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 PutGeoipDatabase 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 + + id string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutGeoipDatabase type alias for index. +type NewPutGeoipDatabase func(id string) *PutGeoipDatabase + +// NewPutGeoipDatabaseFunc returns a new instance of PutGeoipDatabase with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutGeoipDatabaseFunc(tp elastictransport.Interface) NewPutGeoipDatabase { + return func(id string) *PutGeoipDatabase { + n := New(tp) + + n._id(id) + + return n + } +} + +// Returns information about one or more geoip database configurations. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/put-geoip-database-api.html +func New(tp elastictransport.Interface) *PutGeoipDatabase { + r := &PutGeoipDatabase{ + 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 *PutGeoipDatabase) Raw(raw io.Reader) *PutGeoipDatabase { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutGeoipDatabase) Request(req *Request) *PutGeoipDatabase { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutGeoipDatabase) 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 PutGeoipDatabase: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == idMask: + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("geoip") + path.WriteString("/") + path.WriteString("database") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "id", r.id) + } + path.WriteString(r.id) + + method = http.MethodPut + } + + 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 PutGeoipDatabase) 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, "ingest.put_geoip_database") + 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, "ingest.put_geoip_database") + if reader := instrument.RecordRequestBody(ctx, "ingest.put_geoip_database", 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", "ingest.put_geoip_database") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutGeoipDatabase 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 putgeoipdatabase.Response +func (r PutGeoipDatabase) 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, "ingest.put_geoip_database") + 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 PutGeoipDatabase headers map. +func (r *PutGeoipDatabase) Header(key, value string) *PutGeoipDatabase { + r.headers.Set(key, value) + + return r +} + +// Id ID of the database configuration to create or update. +// API Name: id +func (r *PutGeoipDatabase) _id(id string) *PutGeoipDatabase { + r.paramSet |= idMask + r.id = id + + 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 *PutGeoipDatabase) MasterTimeout(duration string) *PutGeoipDatabase { + r.values.Set("master_timeout", duration) + + 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 *PutGeoipDatabase) Timeout(duration string) *PutGeoipDatabase { + 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 *PutGeoipDatabase) ErrorTrace(errortrace bool) *PutGeoipDatabase { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutGeoipDatabase) FilterPath(filterpaths ...string) *PutGeoipDatabase { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutGeoipDatabase) Human(human bool) *PutGeoipDatabase { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutGeoipDatabase) Pretty(pretty bool) *PutGeoipDatabase { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// Maxmind The configuration necessary to identify which IP geolocation provider to use +// to download the database, as well as any provider-specific configuration +// necessary for such downloading. +// At present, the only supported provider is maxmind, and the maxmind provider +// requires that an account_id (string) is configured. +// API name: maxmind +func (r *PutGeoipDatabase) Maxmind(maxmind *types.Maxmind) *PutGeoipDatabase { + + r.req.Maxmind = *maxmind + + return r +} + +// Name The provider-assigned name of the IP geolocation database to download. +// API name: name +func (r *PutGeoipDatabase) Name(name string) *PutGeoipDatabase { + r.req.Name = name + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/request.go new file mode 100644 index 0000000000..72c4bdd63e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/request.go @@ -0,0 +1,94 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package putgeoipdatabase + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// Request holds the request body struct for the package putgeoipdatabase +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L57 +type Request struct { + + // Maxmind The configuration necessary to identify which IP geolocation provider to use + // to download the database, as well as any provider-specific configuration + // necessary for such downloading. + // At present, the only supported provider is maxmind, and the maxmind provider + // requires that an account_id (string) is configured. + Maxmind types.Maxmind `json:"maxmind"` + // Name The provider-assigned name of the IP geolocation database to download. + Name string `json:"name"` +} + +// 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 Putgeoipdatabase 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 "maxmind": + if err := dec.Decode(&s.Maxmind); err != nil { + return fmt.Errorf("%s | %w", "Maxmind", err) + } + + case "name": + if err := dec.Decode(&s.Name); err != nil { + return fmt.Errorf("%s | %w", "Name", err) + } + + } + } + return nil +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/response.go new file mode 100644 index 0000000000..c581168f20 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase/response.go @@ -0,0 +1,37 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package putgeoipdatabase + +// Response holds the response body struct for the package putgeoipdatabase +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/put_geoip_database/PutGeoipDatabaseResponse.ts#L22-L24 +type Response struct { + + // Acknowledged For a successful response, this value is always true. On failure, an + // exception is returned instead. + Acknowledged bool `json:"acknowledged"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 157ee33c09..a3061e67a2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates or updates an ingest pipeline. // Changes made using this API take effect immediately. @@ -387,6 +387,17 @@ func (r *PutPipeline) Pretty(pretty bool) *PutPipeline { return r } +// Deprecated Marks this ingest pipeline as deprecated. +// When a deprecated ingest pipeline is referenced as the default or final +// pipeline when creating or updating a non-deprecated index template, +// Elasticsearch will emit a deprecation warning. +// API name: deprecated +func (r *PutPipeline) Deprecated(deprecated bool) *PutPipeline { + r.req.Deprecated = &deprecated + + 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 d8fb0056ac..12fa954f5b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putpipeline @@ -33,9 +33,14 @@ import ( // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L83 type Request struct { + // Deprecated Marks this ingest pipeline as deprecated. + // When a deprecated ingest pipeline is referenced as the default or final + // pipeline when creating or updating a non-deprecated index template, + // Elasticsearch will emit a deprecation warning. + Deprecated *bool `json:"deprecated,omitempty"` // Description Description of the ingest pipeline. Description *string `json:"description,omitempty"` // Meta_ Optional metadata about the ingest pipeline. May have any contents. This map @@ -90,6 +95,20 @@ func (s *Request) UnmarshalJSON(data []byte) error { switch t { + 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 "description": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { 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 b0b76a0764..4b3303fc89 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putpipeline // Response holds the response body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/put_pipeline/PutPipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 57372238b0..8ab178b059 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package simulate @@ -29,11 +29,11 @@ import ( // Request holds the request body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L57 type Request struct { // Docs Sample documents to test in the pipeline. - Docs []types.Document `json:"docs,omitempty"` + Docs []types.Document `json:"docs"` // Pipeline Pipeline to test. // If you don’t specify the `pipeline` request path parameter, this parameter is // required. 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 35c05ef47f..ed20db38b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package simulate @@ -26,9 +26,9 @@ import ( // Response holds the response body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24 type Response struct { - Docs []types.PipelineSimulation `json:"docs"` + Docs []types.SimulateDocumentResult `json:"docs"` } // NewResponse returns a Response 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 0422925a4c..bdfe96a06e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Executes an ingest pipeline against a set of provided documents. package 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 b8d319f148..ae7de4878b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes licensing information for the cluster package delete 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 392c5a0c3b..b3890bf4ef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/delete/DeleteLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 469f2b9bac..78318dc6d3 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,12 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// This API returns information about the type of license, when it was issued, -// and when it expires, for example. -// For more information about the different types of licenses, see -// https://www.elastic.co/subscriptions. +// Get license information. +// Returns information about your Elastic license, including its type, its +// status, when it was issued, and when it expires. +// For more information about the different types of licenses, refer to [Elastic +// Stack subscriptions](https://www.elastic.co/subscriptions). package get import ( @@ -71,10 +72,11 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// This API returns information about the type of license, when it was issued, -// and when it expires, for example. -// For more information about the different types of licenses, see -// https://www.elastic.co/subscriptions. +// Get license information. +// Returns information about your Elastic license, including its type, its +// status, when it was issued, and when it expires. +// For more information about the different types of licenses, refer to [Elastic +// Stack subscriptions](https://www.elastic.co/subscriptions). // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-license.html func New(tp elastictransport.Interface) *Get { 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 3bbdb5a818..0fa01b4925 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/get/GetLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 31b66444d3..007b40fce3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves information about the status of the basic license. package getbasicstatus 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 3e53862edd..b9967ad0aa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getbasicstatus // Response holds the response body struct for the package getbasicstatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 264df9afea..7711bffed4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves information about the status of the trial license. package gettrialstatus 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 baf521432e..f15b73692e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package gettrialstatus // Response holds the response body struct for the package gettrialstatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 624c5d064b..7390bc303b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Updates the license for the cluster. package 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 b23fcbf18f..1d57359e69 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package post @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/post/PostLicenseRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 a44b8d8426..310ac52dac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package post @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/post/PostLicenseResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f6e262e7a3..6c51bccdcf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // The start basic API enables you to initiate an indefinite basic license, // which gives access to all the basic features. If the basic license does not 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 bd45feb1cd..0827e6fa94 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package poststartbasic @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package poststartbasic // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31 type Response struct { Acknowledge map[string][]string `json:"acknowledge,omitempty"` Acknowledged bool `json:"acknowledged"` 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 6dfc3811ba..8a7a2900d4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // The start trial API enables you to start a 30-day trial, which gives access // to all subscription features. 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 e552d94ca4..9c33d06dd7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package poststarttrial @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package poststarttrial // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 91d7fd8943..d8b3941243 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes a pipeline used for Logstash Central Management. package deletepipeline 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 2904e850e9..d2c648ad5f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves pipelines used for Logstash Central Management. package getpipeline 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 77d8fd84b5..e2582b0522 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getpipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f0071963f5..da5dd3ff33 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates or updates a pipeline used for Logstash Central Management. package putpipeline 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 9e3f45f2de..1b72dfe3d8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putpipeline @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0a3b4af1e3..db58df0075 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves information about different cluster, node, and index level settings // that use deprecated features that will be removed or changed in the next 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 2019612d2f..4bf2ca5bfb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deprecations @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deprecations // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/deprecations/DeprecationInfoResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bd860e61ed..9c59e2aea4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Find out whether system features need to be upgraded or not package getfeatureupgradestatus 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 8a1660f2bc..7bd99fcf8b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getfeatureupgradestatus @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getfeatureupgradestatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2a0674e8ce..5e3fe12c9b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Begin upgrades for system features package postfeatureupgrade 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 171a24e74a..e2a2ca50b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package postfeatureupgrade @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postfeatureupgrade // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 599aa7c9be..d7922306a3 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Clears a trained model deployment cache on all nodes where the trained model -// is assigned. +// Clear trained model deployment cache. +// Cache will be cleared on all nodes where the trained model is assigned. // A trained model deployment may have an inference cache enabled. // As requests are handled by each allocated node, their responses may be cached // on that individual node. @@ -81,8 +81,8 @@ func NewClearTrainedModelDeploymentCacheFunc(tp elastictransport.Interface) NewC } } -// Clears a trained model deployment cache on all nodes where the trained model -// is assigned. +// Clear trained model deployment cache. +// Cache will be cleared on all nodes where the trained model is assigned. // A trained model deployment may have an inference cache enabled. // As requests are handled by each allocated node, their responses may be cached // on that individual node. 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 0ebbf32613..d3a4441fb9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package cleartrainedmodeldeploymentcache // Response holds the response body struct for the package cleartrainedmodeldeploymentcache // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b62e34404e..a29e556209 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Close anomaly detection jobs +// Close anomaly detection jobs. // A job can be opened and closed multiple times throughout its lifecycle. A // closed job cannot receive data or perform analysis operations, but you can // still explore and navigate results. @@ -97,7 +97,7 @@ func NewCloseJobFunc(tp elastictransport.Interface) NewCloseJob { } } -// Close anomaly detection jobs +// Close anomaly detection jobs. // A job can be opened and closed multiple times throughout its lifecycle. A // closed job cannot receive data or perform analysis operations, but you can // still explore and navigate results. 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 9140a8b9fe..d15a89cdad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package closejob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/close_job/MlCloseJobRequest.ts#L24-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/close_job/MlCloseJobRequest.ts#L24-L78 type Request struct { // AllowNoMatch Refer to the description for the `allow_no_match` query parameter. 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 25c213f8ba..21a12cea23 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package closejob // Response holds the response body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/close_job/MlCloseJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c6d4944976..824b486194 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete a calendar. // Removes all scheduled events from a calendar, then deletes it. package deletecalendar @@ -76,6 +77,7 @@ func NewDeleteCalendarFunc(tp elastictransport.Interface) NewDeleteCalendar { } } +// Delete a calendar. // Removes all scheduled events from a calendar, then deletes it. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html 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 3e6b883851..4481a5a189 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletecalendar // Response holds the response body struct for the package deletecalendar // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c3a7ca5d5d..f33f2ad877 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes scheduled events from a calendar. +// Delete events from a calendar. package deletecalendarevent import ( @@ -81,7 +81,7 @@ func NewDeleteCalendarEventFunc(tp elastictransport.Interface) NewDeleteCalendar } } -// Deletes scheduled events from a calendar. +// Delete events from a calendar. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html func New(tp elastictransport.Interface) *DeleteCalendarEvent { 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 941eee3187..67e1b91ee1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletecalendarevent // Response holds the response body struct for the package deletecalendarevent // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3f5325dfad..1a4c85a508 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes anomaly detection jobs from a calendar. +// Delete anomaly jobs from a calendar. package deletecalendarjob import ( @@ -81,7 +81,7 @@ func NewDeleteCalendarJobFunc(tp elastictransport.Interface) NewDeleteCalendarJo } } -// Deletes anomaly detection jobs from a calendar. +// Delete anomaly jobs from a calendar. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html func New(tp elastictransport.Interface) *DeleteCalendarJob { 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 2c18b61a03..17e0cf09fd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletecalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package deletecalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2d86d46272..bde5d29b97 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes an existing datafeed. +// Delete a datafeed. package deletedatafeed import ( @@ -76,7 +76,7 @@ func NewDeleteDatafeedFunc(tp elastictransport.Interface) NewDeleteDatafeed { } } -// Deletes an existing datafeed. +// Delete a datafeed. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html func New(tp elastictransport.Interface) *DeleteDatafeed { 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 73808b796b..9c123cb281 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletedatafeed // Response holds the response body struct for the package deletedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1ef361cc1e..15c14b15a8 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes a data frame analytics job. +// Delete a data frame analytics job. package deletedataframeanalytics import ( @@ -76,7 +76,7 @@ func NewDeleteDataFrameAnalyticsFunc(tp elastictransport.Interface) NewDeleteDat } } -// Deletes a data frame analytics job. +// Delete a data frame analytics job. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html func New(tp elastictransport.Interface) *DeleteDataFrameAnalytics { 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 1a7d914f9c..ac787c9ad2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletedataframeanalytics // Response holds the response body struct for the package deletedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 56c470778c..c30a983448 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes expired and unused machine learning data. +// Delete expired ML data. // Deletes all job results, model snapshots and forecast data that have exceeded // their retention days period. Machine learning state documents that are not // associated with any job are also deleted. @@ -87,7 +87,7 @@ func NewDeleteExpiredDataFunc(tp elastictransport.Interface) NewDeleteExpiredDat } } -// Deletes expired and unused machine learning data. +// Delete expired ML data. // Deletes all job results, model snapshots and forecast data that have exceeded // their retention days period. Machine learning state documents that are not // associated with any job are also deleted. 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 91cc1f86b3..fb898aacf7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteexpireddata @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L73 type Request struct { // RequestsPerSecond The desired requests per second for the deletion processes. The default 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 74e23ab8bc..3a05a43c55 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteexpireddata // Response holds the response body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 55807f59c7..f4c89632e2 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes a filter. +// Delete a filter. // If an anomaly detection job references the filter, you cannot delete the // filter. You must update or delete the job before you can delete the filter. package deletefilter @@ -78,7 +78,7 @@ func NewDeleteFilterFunc(tp elastictransport.Interface) NewDeleteFilter { } } -// Deletes a filter. +// Delete a filter. // If an anomaly detection job references the filter, you cannot delete the // filter. You must update or delete the job before you can delete the filter. // 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 d65682da05..680a5606d4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletefilter // Response holds the response body struct for the package deletefilter // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_filter/MlDeleteFilterResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 512b0eaae7..1c8623da02 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes forecasts from a machine learning job. +// Delete forecasts from a job. // By default, forecasts are retained for 14 days. You can specify a // different retention period with the `expires_in` parameter in the forecast // jobs API. The delete forecast API enables you to delete one or more @@ -83,7 +83,7 @@ func NewDeleteForecastFunc(tp elastictransport.Interface) NewDeleteForecast { } } -// Deletes forecasts from a machine learning job. +// Delete forecasts from a job. // By default, forecasts are retained for 14 days. You can specify a // different retention period with the `expires_in` parameter in the forecast // jobs API. The delete forecast API enables you to delete one or more 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 78829db364..f7aefd565b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteforecast // Response holds the response body struct for the package deleteforecast // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 195b23a362..7b675b2407 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes an anomaly detection job. -// +// Delete an anomaly detection job. // All job configuration, model state and results are deleted. // It is not currently possible to delete multiple jobs using wildcards or a // comma separated list. If you delete a job that has a datafeed, the request @@ -83,8 +82,7 @@ func NewDeleteJobFunc(tp elastictransport.Interface) NewDeleteJob { } } -// Deletes an anomaly detection job. -// +// Delete an anomaly detection job. // All job configuration, model state and results are deleted. // It is not currently possible to delete multiple jobs using wildcards or a // comma separated list. If you delete a job that has a datafeed, the request 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 903632786b..d0d70fbb0e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletejob // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_job/MlDeleteJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fed34b1019..62eadafd07 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes an existing model snapshot. +// Delete a model snapshot. // You cannot delete the active model snapshot. To delete that snapshot, first // revert to a different one. To identify the active model snapshot, refer to // the `model_snapshot_id` in the results from the get jobs API. @@ -84,7 +84,7 @@ func NewDeleteModelSnapshotFunc(tp elastictransport.Interface) NewDeleteModelSna } } -// Deletes an existing model snapshot. +// Delete a model snapshot. // You cannot delete the active model snapshot. To delete that snapshot, first // revert to a different one. To identify the active model snapshot, refer to // the `model_snapshot_id` in the results from the get jobs API. 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 d0584c7222..cc56ff4b0d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletemodelsnapshot // Response holds the response body struct for the package deletemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7de2db319c..4aa89f1c85 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes an existing trained inference model that is currently not referenced -// by an ingest pipeline. +// Delete an unreferenced trained model. +// The request deletes a trained inference model that is not referenced by an +// ingest pipeline. package deletetrainedmodel import ( @@ -77,8 +78,9 @@ func NewDeleteTrainedModelFunc(tp elastictransport.Interface) NewDeleteTrainedMo } } -// Deletes an existing trained inference model that is currently not referenced -// by an ingest pipeline. +// Delete an unreferenced trained model. +// The request deletes a trained inference model that is not referenced by an +// ingest pipeline. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html func New(tp elastictransport.Interface) *DeleteTrainedModel { 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 105c1a978d..012e2edd9d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletetrainedmodel // Response holds the response body struct for the package deletetrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 765fc1fa80..d545001773 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes a trained model alias. +// Delete a trained model alias. // This API deletes an existing model alias that refers to a trained model. If // the model alias is missing or refers to a model other than the one identified // by the `model_id`, this API returns an error. @@ -84,7 +84,7 @@ func NewDeleteTrainedModelAliasFunc(tp elastictransport.Interface) NewDeleteTrai } } -// Deletes a trained model alias. +// Delete a trained model alias. // This API deletes an existing model alias that refers to a trained model. If // the model alias is missing or refers to a model other than the one identified // by the `model_id`, this API returns an error. 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 e2022ce2b9..fda245235a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletetrainedmodelalias // Response holds the response body struct for the package deletetrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ecd4aa8f17..63ab060f5a 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Estimate job model memory usage. // Makes an estimation of the memory usage for an anomaly detection job model. // It is based on analysis configuration details for the job and cardinality // estimates for the fields it references. @@ -75,6 +76,7 @@ func NewEstimateModelMemoryFunc(tp elastictransport.Interface) NewEstimateModelM } } +// Estimate job model memory usage. // Makes an estimation of the memory usage for an anomaly detection job model. // It is based on analysis configuration details for the job and cardinality // estimates for the fields it references. 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 ddfe792136..de9449bac5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package estimatemodelmemory @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L61 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L63 type Request struct { // AnalysisConfig For a list of the properties that you can specify in the 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 6b289e7b1c..e24498e2b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package estimatemodelmemory // Response holds the response body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1d5599868b..5e94837a78 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Evaluates the data frame analytics for an annotated index. +// Evaluate data frame analytics. // The API packages together commonly used evaluation metrics for various types // of machine learning features. This has been designed for use on indexes // created by data frame analytics. Evaluation requires both a ground truth @@ -77,7 +77,7 @@ func NewEvaluateDataFrameFunc(tp elastictransport.Interface) NewEvaluateDataFram } } -// Evaluates the data frame analytics for an annotated index. +// Evaluate data frame analytics. // The API packages together commonly used evaluation metrics for various types // of machine learning features. This has been designed for use on indexes // created by data frame analytics. Evaluation requires both a ground truth 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 37e88d9d1e..ab44dc060e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package evaluatedataframe @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L53 type Request struct { // Evaluation Defines the type of evaluation you want to perform. 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 bd86252301..3f9b9de494 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package evaluatedataframe @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f2d8941ce9..7a7c4803fb 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Explains a data frame analytics config. +// Explain data frame analytics config. // This API provides explanations for a data frame analytics config that either // exists already or one that has not been created yet. The following // explanations are provided: @@ -87,7 +87,7 @@ func NewExplainDataFrameAnalyticsFunc(tp elastictransport.Interface) NewExplainD } } -// Explains a data frame analytics config. +// Explain data frame analytics config. // This API provides explanations for a data frame analytics config that either // exists already or one that has not been created yet. The following // explanations are provided: 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 1ea2bd0966..c58510e9ab 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package explaindataframeanalytics @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L108 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine 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 46c4f80bcd..1c6d645876 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package explaindataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 88ac40ffcb..463f5947c2 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Forces any buffered data to be processed by the job. +// Force buffered data to be processed. // The flush jobs API is only applicable when sending data for analysis using // the post data API. Depending on the content of the buffer, then it might // additionally calculate new results. Both flush and close operations are @@ -89,7 +89,7 @@ func NewFlushJobFunc(tp elastictransport.Interface) NewFlushJob { } } -// Forces any buffered data to be processed by the job. +// Force buffered data to be processed. // The flush jobs API is only applicable when sending data for analysis using // the post data API. Depending on the content of the buffer, then it might // additionally calculate new results. Both flush and close operations are 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 f39f6cfe20..3539c7a585 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package flushjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L100 type Request struct { // AdvanceTime Refer to the description for the `advance_time` query parameter. 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 57da8852bf..2c92a20b74 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package flushjob // Response holds the response body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/flush_job/MlFlushJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ba56d4d6cd..b16e81a2de 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,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Predicts the future behavior of a time series by using its historical -// behavior. +// Predict future behavior of a time series. // // Forecasts are not supported for jobs that perform population analysis; an // error occurs if you try to create a forecast for a job that has an -// `over_field_name` in its configuration. +// `over_field_name` in its configuration. Forcasts predict future behavior +// based on historical data. package forecast import ( @@ -86,12 +86,12 @@ func NewForecastFunc(tp elastictransport.Interface) NewForecast { } } -// Predicts the future behavior of a time series by using its historical -// behavior. +// Predict future behavior of a time series. // // Forecasts are not supported for jobs that perform population analysis; an // error occurs if you try to create a forecast for a job that has an -// `over_field_name` in its configuration. +// `over_field_name` in its configuration. Forcasts predict future behavior +// based on historical data. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html func New(tp elastictransport.Interface) *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 051ee6bb72..000bde2286 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package forecast @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/forecast/MlForecastJobRequest.ts#L24-L87 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/forecast/MlForecastJobRequest.ts#L24-L88 type Request struct { // Duration Refer to the description for the `duration` query parameter. 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 d90c1be7b3..a3b4358a4b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package forecast // Response holds the response body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/forecast/MlForecastJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cdafaa2976..d4c1b63718 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves anomaly detection job results for one or more buckets. +// Get anomaly detection job results for buckets. // The API presents a chronological view of the records, grouped by bucket. package getbuckets @@ -85,7 +85,7 @@ func NewGetBucketsFunc(tp elastictransport.Interface) NewGetBuckets { } } -// Retrieves anomaly detection job results for one or more buckets. +// Get anomaly detection job results for buckets. // The API presents a chronological view of the records, grouped by bucket. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html 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 b8589fd9fe..da6134fa9f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getbuckets @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L133 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L134 type Request struct { // AnomalyScore Refer to the description for the `anomaly_score` query parameter. 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 79659c8085..5af42cfa90 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getbuckets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_buckets/MlGetBucketsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5f6e88b651..313636ab63 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information about the scheduled events in calendars. +// Get info about events in calendars. package getcalendarevents import ( @@ -76,7 +76,7 @@ func NewGetCalendarEventsFunc(tp elastictransport.Interface) NewGetCalendarEvent } } -// Retrieves information about the scheduled events in calendars. +// Get info about events in calendars. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html func New(tp elastictransport.Interface) *GetCalendarEvents { 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 dc083e9f4d..e3477907d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getcalendarevents @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cc7b3c7d1e..edcb349a58 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves configuration information for calendars. +// Get calendar configuration info. package getcalendars import ( @@ -79,7 +79,7 @@ func NewGetCalendarsFunc(tp elastictransport.Interface) NewGetCalendars { } } -// Retrieves configuration information for calendars. +// Get calendar configuration info. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html func New(tp elastictransport.Interface) *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 c664a5831d..97acd2cf5c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getcalendars @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L52 type Request struct { // Page This object is supported only when you omit the calendar identifier. 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 25b0968fe9..214a84c113 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getcalendars @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d73bcf9ac0..f375062156 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves anomaly detection job results for one or more categories. +// Get anomaly detection job results for categories. package getcategories import ( @@ -84,7 +84,7 @@ func NewGetCategoriesFunc(tp elastictransport.Interface) NewGetCategories { } } -// Retrieves anomaly detection job results for one or more categories. +// Get anomaly detection job results for categories. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html func New(tp elastictransport.Interface) *GetCategories { 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 47e2bb8805..fb629c7bc5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getcategories @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L71 type Request struct { // Page Configures pagination. 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 aeb9045b7f..3dd32e3b99 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getcategories @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_categories/MlGetCategoriesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1151fe49ae..554e036659 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves configuration information for datafeeds. +// Get datafeeds configuration info. // You can get information for multiple datafeeds in a single API request by // using a comma-separated list of datafeeds or a wildcard expression. You can // get information for all datafeeds by using `_all`, by specifying `*` as the @@ -79,7 +79,7 @@ func NewGetDatafeedsFunc(tp elastictransport.Interface) NewGetDatafeeds { } } -// Retrieves configuration information for datafeeds. +// Get datafeeds configuration info. // You can get information for multiple datafeeds in a single API request by // using a comma-separated list of datafeeds or a wildcard expression. You can // get information for all datafeeds by using `_all`, by specifying `*` as the 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 849789a29d..06408ca965 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getdatafeeds @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 38eefb0c20..627246ab5b 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves usage information for datafeeds. +// Get datafeeds usage info. // You can get statistics for multiple datafeeds in a single API request by // using a comma-separated list of datafeeds or a wildcard expression. You can // get statistics for all datafeeds by using `_all`, by specifying `*` as the @@ -80,7 +80,7 @@ func NewGetDatafeedStatsFunc(tp elastictransport.Interface) NewGetDatafeedStats } } -// Retrieves usage information for datafeeds. +// Get datafeeds usage info. // You can get statistics for multiple datafeeds in a single API request by // using a comma-separated list of datafeeds or a wildcard expression. You can // get statistics for all datafeeds by using `_all`, by specifying `*` as the 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 bd469bf44b..66f14abb92 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getdatafeedstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatafeedstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 24c3208927..aa8cb9844b 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves configuration information for data frame analytics jobs. +// Get data frame analytics job configuration info. // You can get information for multiple data frame analytics jobs in a single // API request by using a comma-separated list of data frame analytics jobs or a // wildcard expression. @@ -77,7 +77,7 @@ func NewGetDataFrameAnalyticsFunc(tp elastictransport.Interface) NewGetDataFrame } } -// Retrieves configuration information for data frame analytics jobs. +// Get data frame analytics job configuration info. // You can get information for multiple data frame analytics jobs in a single // API request by using a comma-separated list of data frame analytics jobs or a // wildcard expression. 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 fb8279eae7..1268d1624d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getdataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 465a20353f..4b82fc3971 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves usage information for data frame analytics jobs. +// Get data frame analytics jobs usage info. package getdataframeanalyticsstats import ( @@ -74,7 +74,7 @@ func NewGetDataFrameAnalyticsStatsFunc(tp elastictransport.Interface) NewGetData } } -// Retrieves usage information for data frame analytics jobs. +// Get data frame analytics jobs usage info. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html func New(tp elastictransport.Interface) *GetDataFrameAnalyticsStats { 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 ed23534325..eee37aeb4f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getdataframeanalyticsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdataframeanalyticsstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L23-L29 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 ce0bb94142..158d83d383 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves filters. +// Get filters. // You can get a single filter or all filters. package getfilters @@ -75,7 +75,7 @@ func NewGetFiltersFunc(tp elastictransport.Interface) NewGetFilters { } } -// Retrieves filters. +// Get filters. // You can get a single filter or all filters. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html 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 83e797c570..fda901abc8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getfilters @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfilters // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_filters/MlGetFiltersResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 02d2cac803..6d2a4a4dfd 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves anomaly detection job results for one or more influencers. +// Get anomaly detection job results for influencers. // Influencers are the entities that have contributed to, or are to blame for, // the anomalies. Influencer results are available only if an // `influencer_field_name` is specified in the job configuration. @@ -84,7 +84,7 @@ func NewGetInfluencersFunc(tp elastictransport.Interface) NewGetInfluencers { } } -// Retrieves anomaly detection job results for one or more influencers. +// Get anomaly detection job results for influencers. // Influencers are the entities that have contributed to, or are to blame for, // the anomalies. Influencer results are available only if an // `influencer_field_name` is specified in the job configuration. 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 4321c62905..5b2e5aea9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getinfluencers @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L98 type Request struct { // Page Configures pagination. 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 1d44aff6bf..a44f848169 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getinfluencers @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d8ead96867..c5de822259 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves configuration information for anomaly detection jobs. +// Get anomaly detection jobs configuration info. // You can get information for multiple anomaly detection jobs in a single API // request by using a group name, a comma-separated list of jobs, or a wildcard // expression. You can get information for all anomaly detection jobs by using @@ -78,7 +78,7 @@ func NewGetJobsFunc(tp elastictransport.Interface) NewGetJobs { } } -// Retrieves configuration information for anomaly detection jobs. +// Get anomaly detection jobs configuration info. // You can get information for multiple anomaly detection jobs in a single API // request by using a group name, a comma-separated list of jobs, or a wildcard // expression. You can get information for all anomaly detection jobs by using 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 7b7d785de8..7e227c9a32 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getjobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_jobs/MlGetJobsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e7ca445900..c3254928aa 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves usage information for anomaly detection jobs. +// Get anomaly detection jobs usage info. package getjobstats import ( @@ -74,7 +74,7 @@ func NewGetJobStatsFunc(tp elastictransport.Interface) NewGetJobStats { } } -// Retrieves usage information for anomaly detection jobs. +// Get anomaly detection jobs usage info. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html func New(tp elastictransport.Interface) *GetJobStats { 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 e3856c2f9a..2dfbdc9a25 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getjobstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 71c45daed8..29c488cafa 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get machine learning memory usage info. // Get information about how machine learning jobs and trained models are using // memory, // on each node, both within the JVM heap, and natively, outside of the JVM. @@ -76,6 +77,7 @@ func NewGetMemoryStatsFunc(tp elastictransport.Interface) NewGetMemoryStats { } } +// Get machine learning memory usage info. // Get information about how machine learning jobs and trained models are using // memory, // on each node, both within the JVM heap, and natively, outside of the JVM. 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 373518631f..851b381814 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getmemorystats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmemorystats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 badc2d6453..ddab9b41a0 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information about model snapshots. +// Get model snapshots info. package getmodelsnapshots import ( @@ -84,7 +84,7 @@ func NewGetModelSnapshotsFunc(tp elastictransport.Interface) NewGetModelSnapshot } } -// Retrieves information about model snapshots. +// Get model snapshots info. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html func New(tp elastictransport.Interface) *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 0cfd2003de..5dd95464a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getmodelsnapshots @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L97 type Request struct { // Desc Refer to the description for the `desc` query parameter. 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 80c675b1ec..edb56e871e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getmodelsnapshots @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8b38b77b62..81ff9b3eb2 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves usage information for anomaly detection job model snapshot -// upgrades. +// Get anomaly detection job model snapshot upgrade usage info. package getmodelsnapshotupgradestats import ( @@ -82,8 +81,7 @@ func NewGetModelSnapshotUpgradeStatsFunc(tp elastictransport.Interface) NewGetMo } } -// Retrieves usage information for anomaly detection job model snapshot -// upgrades. +// Get anomaly detection job model snapshot upgrade usage info. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-model-snapshot-upgrade-stats.html func New(tp elastictransport.Interface) *GetModelSnapshotUpgradeStats { 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 2a49d8183c..53cdbaf740 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getmodelsnapshotupgradestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmodelsnapshotupgradestats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f742240380..c8d55bed5b 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves overall bucket results that summarize the bucket results of +// Get overall bucket results. +// +// Retrievs overall bucket results that summarize the bucket results of // multiple anomaly detection jobs. // // The `overall_score` is calculated by combining the scores of all the @@ -97,7 +99,9 @@ func NewGetOverallBucketsFunc(tp elastictransport.Interface) NewGetOverallBucket } } -// Retrieves overall bucket results that summarize the bucket results of +// Get overall bucket results. +// +// Retrievs overall bucket results that summarize the bucket results of // multiple anomaly detection jobs. // // The `overall_score` is calculated by combining the scores of all the 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 b667e2f0b7..1a2d366fd8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getoverallbuckets @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L143 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L146 type Request struct { // AllowNoMatch Refer to the description for the `allow_no_match` query parameter. 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 d6f2f8f59d..795552e29e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getoverallbuckets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ae7db15ef2..9abad63721 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves anomaly records for an anomaly detection job. +// Get anomaly records for an anomaly detection job. // Records contain the detailed analytical results. They describe the anomalous // activity that has been identified in the input data based on the detector // configuration. @@ -91,7 +91,7 @@ func NewGetRecordsFunc(tp elastictransport.Interface) NewGetRecords { } } -// Retrieves anomaly records for an anomaly detection job. +// Get anomaly records for an anomaly detection job. // Records contain the detailed analytical results. They describe the anomalous // activity that has been identified in the input data based on the detector // configuration. 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 7d9644a60f..c0204f24fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrecords @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L127 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L128 type Request struct { // Desc Refer to the description for the `desc` query parameter. 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 f52e5b4db1..e13d49e024 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrecords @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 43e038e720..055f45c2d0 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves configuration information for a trained model. +// Get trained model configuration info. package gettrainedmodels import ( @@ -75,7 +75,7 @@ func NewGetTrainedModelsFunc(tp elastictransport.Interface) NewGetTrainedModels } } -// Retrieves configuration information for a trained model. +// Get trained model configuration info. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html func New(tp elastictransport.Interface) *GetTrainedModels { 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 ffb4704de0..e87dbbeeca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package gettrainedmodels @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ea38855988..5fa57a3add 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves usage information for trained models. You can get usage information -// for multiple trained +// Get trained models usage info. +// You can get usage information for multiple trained // models in a single API request by using a comma-separated list of model IDs // or a wildcard expression. package gettrainedmodelsstats @@ -77,8 +77,8 @@ func NewGetTrainedModelsStatsFunc(tp elastictransport.Interface) NewGetTrainedMo } } -// Retrieves usage information for trained models. You can get usage information -// for multiple trained +// Get trained models usage info. +// You can get usage information for multiple trained // models in a single API request by using a comma-separated list of model IDs // or a wildcard expression. // 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 b175493ea3..a8aa3856c3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package gettrainedmodelsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettrainedmodelsstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cc7296fe3b..fd33e5acac 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Evaluates a trained model. +// Evaluate a trained model. package infertrainedmodel import ( @@ -81,7 +81,7 @@ func NewInferTrainedModelFunc(tp elastictransport.Interface) NewInferTrainedMode } } -// Evaluates a trained model. +// Evaluate a trained model. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-trained-model.html func New(tp elastictransport.Interface) *InferTrainedModel { 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 9c78c01deb..1da43e1f43 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package infertrainedmodel @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L60 type Request struct { // Docs An array of objects to pass to the model for inference. The objects should 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 5fe52cad99..12110117b8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package infertrainedmodel @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 66dcc060ec..163e600f28 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Return ML defaults and limits. // Returns defaults and limits used by machine learning. // This endpoint is designed to be used by a user interface that needs to fully // understand machine learning configurations where some options are not @@ -74,6 +75,7 @@ func NewInfoFunc(tp elastictransport.Interface) NewInfo { } } +// Return ML defaults and limits. // Returns defaults and limits used by machine learning. // This endpoint is designed to be used by a user interface that needs to fully // understand machine learning configurations where some options are not 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 8559c9add2..9b5e0ab2d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/info/MlInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3982120245..c4fc11a58e 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,12 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Opens one or more anomaly detection jobs. -// An anomaly detection job must be opened in order for it to be ready to -// receive and analyze data. It can be opened and closed multiple times -// throughout its lifecycle. +// Open anomaly detection jobs. +// An anomaly detection job must be opened to be ready to receive and analyze +// data. It can be opened and closed multiple times throughout its lifecycle. // When you open a new job, it starts with an empty model. // When you open an existing job, the most recent model state is automatically // loaded. The job is ready to resume its analysis from where it left off, once @@ -88,10 +87,9 @@ func NewOpenJobFunc(tp elastictransport.Interface) NewOpenJob { } } -// Opens one or more anomaly detection jobs. -// An anomaly detection job must be opened in order for it to be ready to -// receive and analyze data. It can be opened and closed multiple times -// throughout its lifecycle. +// Open anomaly detection jobs. +// An anomaly detection job must be opened to be ready to receive and analyze +// data. It can be opened and closed multiple times throughout its lifecycle. // When you open a new job, it starts with an empty model. // When you open an existing job, the most recent model state is automatically // loaded. The job is ready to resume its analysis from where it left off, once 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 cd73a57f29..331e1c4f81 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package openjob @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/open_job/MlOpenJobRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/open_job/MlOpenJobRequest.ts#L24-L59 type Request struct { // Timeout Refer to the description for the `timeout` query parameter. 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 468a085423..9f8bfdd20a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package openjob // Response holds the response body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/open_job/MlOpenJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c08d9b9b2d..9c0efce4e2 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Adds scheduled events to a calendar. +// Add scheduled events to the calendar. package postcalendarevents import ( @@ -81,7 +81,7 @@ func NewPostCalendarEventsFunc(tp elastictransport.Interface) NewPostCalendarEve } } -// Adds scheduled events to a calendar. +// Add scheduled events to the calendar. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html func New(tp elastictransport.Interface) *PostCalendarEvents { 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 863ebdc60d..d6d30ef7d1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package postcalendarevents @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L41 type Request struct { // Events A list of one of more scheduled events. The event’s start and end times can 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 d1f056de2f..198199d403 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package postcalendarevents @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 201cf851d9..adcbb17e51 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Sends data to an anomaly detection job for analysis. +// Send data to an anomaly detection job for analysis. // // IMPORTANT: For each job, data can be accepted from only a single connection // at a time. @@ -86,7 +86,7 @@ func NewPostDataFunc(tp elastictransport.Interface) NewPostData { } } -// Sends data to an anomaly detection job for analysis. +// Send data to an anomaly detection job for analysis. // // IMPORTANT: For each job, data can be accepted from only a single connection // at a time. 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 455bbb0207..84fb7294ba 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package postdata @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L68 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L69 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 76f0716c51..84d7dbb371 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package postdata // Response holds the response body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/post_data/MlPostJobDataResponse.ts#L23-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 efc1701f7d..e89f9be37b 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Previews a datafeed. +// Preview a datafeed. // This API returns the first "page" of search results from a datafeed. // You can preview an existing datafeed or provide configuration details for a // datafeed @@ -92,7 +92,7 @@ func NewPreviewDatafeedFunc(tp elastictransport.Interface) NewPreviewDatafeed { } } -// Previews a datafeed. +// Preview a datafeed. // This API returns the first "page" of search results from a datafeed. // You can preview an existing datafeed or provide configuration details for a // datafeed 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 1e2a91aa56..27664597cb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package previewdatafeed @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L69 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L70 type Request struct { // DatafeedConfig The datafeed definition to preview. 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 c9a6d9d93b..2c6dc733d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package previewdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 647738c09c..4b5f9c358c 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Preview features used by data frame analytics. // Previews the extracted features used by a data frame analytics config. package previewdataframeanalytics @@ -79,6 +80,7 @@ func NewPreviewDataFrameAnalyticsFunc(tp elastictransport.Interface) NewPreviewD } } +// Preview features used by data frame analytics. // Previews the extracted features used by a data frame analytics config. // // http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html 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 50eef627aa..6bf2c7db8f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package previewdataframeanalytics @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L49 type Request struct { // Config A data frame analytics config as described in create data frame analytics 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 afa8cd9ea4..9a79aa7d23 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package previewdataframeanalytics // Response holds the response body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3c7313e33c..11b3834980 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a calendar. +// Create a calendar. package putcalendar import ( @@ -81,7 +81,7 @@ func NewPutCalendarFunc(tp elastictransport.Interface) NewPutCalendar { } } -// Creates a calendar. +// Create a calendar. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html func New(tp elastictransport.Interface) *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 02358a5684..c464920be3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putcalendar @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L44 type Request struct { // Description A description of the calendar. 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 90882602c1..71dce21117 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putcalendar @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_calendar/MlPutCalendarResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c376920e14..446face935 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Adds an anomaly detection job to a calendar. +// Add anomaly detection job to calendar. package putcalendarjob import ( @@ -81,7 +81,7 @@ func NewPutCalendarJobFunc(tp elastictransport.Interface) NewPutCalendarJob { } } -// Adds an anomaly detection job to a calendar. +// Add anomaly detection job to calendar. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html func New(tp elastictransport.Interface) *PutCalendarJob { 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 62009df211..22d60a567c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putcalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8ce9ce78ef..c5f01a43a7 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Instantiates a datafeed. +// Create a datafeed. // Datafeeds retrieve data from Elasticsearch for analysis by an anomaly // detection job. // You can associate only one datafeed with each anomaly detection job. @@ -97,7 +97,7 @@ func NewPutDatafeedFunc(tp elastictransport.Interface) NewPutDatafeed { } } -// Instantiates a datafeed. +// Create a datafeed. // Datafeeds retrieve data from Elasticsearch for analysis by an anomaly // detection job. // You can associate only one datafeed with each anomaly detection job. 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 9d86547e39..e876be646d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putdatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L172 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L173 type Request struct { // Aggregations If set, the datafeed performs aggregation searches. 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 a8913b39a6..15df7dd302 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c694f76838..bfb73f25eb 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Instantiates a data frame analytics job. +// Create a data frame analytics job. // This API creates a data frame analytics job that performs an analysis on the // source indices and stores the outcome in a destination index. package putdataframeanalytics @@ -83,7 +83,7 @@ func NewPutDataFrameAnalyticsFunc(tp elastictransport.Interface) NewPutDataFrame } } -// Instantiates a data frame analytics job. +// Create a data frame analytics job. // This API creates a data frame analytics job that performs an analysis on the // source indices and stores the outcome in a destination index. // 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 5a51f47421..39fde1772e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putdataframeanalytics @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L141 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L142 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine 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 2bb235b0be..9a0d30f6d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putdataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7098286c70..dc661c8a1f 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Instantiates a filter. +// Create a filter. // A filter contains a list of strings. It can be used by one or more anomaly // detection jobs. // Specifically, filters are referenced in the `custom_rules` property of @@ -85,7 +85,7 @@ func NewPutFilterFunc(tp elastictransport.Interface) NewPutFilter { } } -// Instantiates a filter. +// Create a filter. // A filter contains a list of strings. It can be used by one or more anomaly // detection jobs. // Specifically, filters are referenced in the `custom_rules` property of 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 361658a6f4..0a91f13a6d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putfilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L51 type Request struct { // Description A description of the filter. 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 30d31f411a..419f1f645c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putfilter // Response holds the response body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_filter/MlPutFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0aafa81ce5..d01129888d 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Instantiates an anomaly detection job. If you include a `datafeed_config`, -// you must have read index privileges on the source index. +// Create an anomaly detection job. +// If you include a `datafeed_config`, you must have read index privileges on +// the source index. package putjob import ( @@ -82,8 +83,9 @@ func NewPutJobFunc(tp elastictransport.Interface) NewPutJob { } } -// Instantiates an anomaly detection job. If you include a `datafeed_config`, -// you must have read index privileges on the source index. +// Create an anomaly detection job. +// If you include a `datafeed_config`, you must have read index privileges on +// the source index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html func New(tp elastictransport.Interface) *PutJob { 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 d09f25ae87..5f6ac913d5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_job/MlPutJobRequest.ts#L30-L111 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_job/MlPutJobRequest.ts#L30-L113 type Request struct { // AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there 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 14adc084a4..e6b0d0fafc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putjob @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_job/MlPutJobResponse.ts#L29-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0e9df3eeb7..5e40423e05 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Enables you to supply a trained model that is not created by data frame +// Create a trained model. +// Enable you to supply a trained model that is not created by data frame // analytics. package puttrainedmodel @@ -83,7 +84,8 @@ func NewPutTrainedModelFunc(tp elastictransport.Interface) NewPutTrainedModel { } } -// Enables you to supply a trained model that is not created by data frame +// Create a trained model. +// Enable you to supply a trained model that is not created by data frame // analytics. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html 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 521b624e7d..de60078e48 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttrainedmodel @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L29-L124 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L128 type Request struct { // CompressedDefinition The compressed (GZipped and Base64 encoded) inference definition of the 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 c85ff2d22d..f66b3eb685 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttrainedmodel @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 216acae118..276ee98306 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates or updates a trained model alias. A trained model alias is a logical -// name used to reference a single trained model. +// Create or update a trained model alias. +// A trained model alias is a logical name used to reference a single trained +// model. // You can use aliases instead of trained model identifiers to make it easier to // reference your models. For example, you can use aliases in inference // aggregations and processors. @@ -96,8 +97,9 @@ func NewPutTrainedModelAliasFunc(tp elastictransport.Interface) NewPutTrainedMod } } -// Creates or updates a trained model alias. A trained model alias is a logical -// name used to reference a single trained model. +// Create or update a trained model alias. +// A trained model alias is a logical name used to reference a single trained +// model. // You can use aliases instead of trained model identifiers to make it easier to // reference your models. For example, you can use aliases in inference // aggregations and processors. 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 00046d59ce..37e87cc562 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttrainedmodelalias // Response holds the response body struct for the package puttrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 57d492bec5..d9582ee932 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates part of a trained model definition. +// Create part of a trained model definition. package puttrainedmodeldefinitionpart import ( @@ -86,7 +86,7 @@ func NewPutTrainedModelDefinitionPartFunc(tp elastictransport.Interface) NewPutT } } -// Creates part of a trained model definition. +// Create part of a trained model definition. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-model-definition-part.html func New(tp elastictransport.Interface) *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 38a2fad9bf..d6a157f640 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttrainedmodeldefinitionpart @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L58 type Request struct { // Definition The definition part for the model. Must be a base64 encoded string. 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 351d906062..62ce439384 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttrainedmodeldefinitionpart // Response holds the response body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 45f281274f..539c5fe5c5 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a trained model vocabulary. +// Create a trained model vocabulary. // This API is supported only for natural language processing (NLP) models. // The vocabulary is stored in the index as described in // `inference_config.*.vocabulary` of the trained model definition. @@ -84,7 +84,7 @@ func NewPutTrainedModelVocabularyFunc(tp elastictransport.Interface) NewPutTrain } } -// Creates a trained model vocabulary. +// Create a trained model vocabulary. // This API is supported only for natural language processing (NLP) models. // The vocabulary is stored in the index as described in // `inference_config.*.vocabulary` of the trained model definition. 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 2a0cd48a58..3de88a5c0a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttrainedmodelvocabulary @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L61 type Request struct { // Merges The optional model merges if required by the tokenizer. 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 83789f066c..c6009e7e9a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttrainedmodelvocabulary // Response holds the response body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cd3caecc99..a930fe7440 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Resets an anomaly detection job. +// Reset an anomaly detection job. // All model state and results are deleted. The job is ready to start over as if // it had just been created. // It is not currently possible to reset multiple jobs using wildcards or a @@ -80,7 +80,7 @@ func NewResetJobFunc(tp elastictransport.Interface) NewResetJob { } } -// Resets an anomaly detection job. +// Reset an anomaly detection job. // All model state and results are deleted. The job is ready to start over as if // it had just been created. // It is not currently possible to reset multiple jobs using wildcards or a 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 9f4483a38a..0c1f9b0939 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package resetjob // Response holds the response body struct for the package resetjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/reset_job/MlResetJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a2125583f6..15c3629073 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package revertmodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L69 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L70 type Request struct { // DeleteInterveningResults Refer to the description for the `delete_intervening_results` query 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 0ef11cd0ef..b6de68192c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package revertmodelsnapshot @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 aa5cc2b9c3..c11f124928 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Reverts to a specific snapshot. +// Revert to a snapshot. // The machine learning features react quickly to anomalous input, learning new // behaviors in data. Highly anomalous input increases the variance in the // models whilst the system learns whether this is a new step-change in behavior @@ -93,7 +93,7 @@ func NewRevertModelSnapshotFunc(tp elastictransport.Interface) NewRevertModelSna } } -// Reverts to a specific snapshot. +// Revert to a snapshot. // The machine learning features react quickly to anomalous input, learning new // behaviors in data. Highly anomalous input increases the variance in the // models whilst the system learns whether this is a new step-change in behavior 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 39e31986bd..fadadf5789 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package setupgrademode // Response holds the response body struct for the package setupgrademode // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 227ccaf6cf..67988ee034 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Set upgrade_mode for ML indices. // Sets a cluster wide upgrade_mode setting that prepares machine learning // indices for an upgrade. // When upgrading your cluster, in some circumstances you must restart your @@ -79,6 +80,7 @@ func NewSetUpgradeModeFunc(tp elastictransport.Interface) NewSetUpgradeMode { } } +// Set upgrade_mode for ML indices. // Sets a cluster wide upgrade_mode setting that prepares machine learning // indices for an upgrade. // When upgrading your cluster, in some circumstances you must restart your 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 7f454b5fe5..bd7e93e986 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package startdatafeed @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L92 type Request struct { // End Refer to the description for the `end` query parameter. 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 631d1c37d3..d45dc57c2a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package startdatafeed @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 48c53ae91a..2ba0c3c8b7 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Starts one or more datafeeds. +// Start datafeeds. // // A datafeed must be started in order to retrieve data from Elasticsearch. A // datafeed can be started and stopped @@ -100,7 +100,7 @@ func NewStartDatafeedFunc(tp elastictransport.Interface) NewStartDatafeed { } } -// Starts one or more datafeeds. +// Start datafeeds. // // A datafeed must be started in order to retrieve data from Elasticsearch. A // datafeed can be started and stopped 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 613b740e81..8e594c786f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package startdataframeanalytics // Response holds the response body struct for the package startdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1e8e4498bc..0fcb321eb1 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Starts a data frame analytics job. +// Start a data frame analytics job. // A data frame analytics job can be started and stopped multiple times // throughout its lifecycle. // If the destination index does not exist, it is created automatically the @@ -87,7 +87,7 @@ func NewStartDataFrameAnalyticsFunc(tp elastictransport.Interface) NewStartDataF } } -// Starts a data frame analytics job. +// Start a data frame analytics job. // A data frame analytics job can be started and stopped multiple times // throughout its lifecycle. // If the destination index does not exist, it is created automatically the 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 31dad02f5e..6aa555c350 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package starttrainedmodeldeployment @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package starttrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 62d93773c4..5ee360298f 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Starts a trained model deployment, which allocates the model to every machine -// learning node. +// Start a trained model deployment. +// It allocates the model to every machine learning node. package starttrainedmodeldeployment import ( @@ -79,8 +79,8 @@ func NewStartTrainedModelDeploymentFunc(tp elastictransport.Interface) NewStartT } } -// Starts a trained model deployment, which allocates the model to every machine -// learning node. +// Start a trained model deployment. +// It allocates the model to every machine learning node. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trained-model-deployment.html func New(tp elastictransport.Interface) *StartTrainedModelDeployment { 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 ed83a5f1ee..6310effde2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stopdatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L78 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L79 type Request struct { // AllowNoMatch Refer to the description for the `allow_no_match` query parameter. 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 ef4e3a06bd..26f789aac7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stopdatafeed // Response holds the response body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 22ab5884f9..a260e41098 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Stops one or more datafeeds. +// Stop datafeeds. // A datafeed that is stopped ceases to retrieve data from Elasticsearch. A // datafeed can be started and stopped // multiple times throughout its lifecycle. @@ -84,7 +84,7 @@ func NewStopDatafeedFunc(tp elastictransport.Interface) NewStopDatafeed { } } -// Stops one or more datafeeds. +// Stop datafeeds. // A datafeed that is stopped ceases to retrieve data from Elasticsearch. A // datafeed can be started and stopped // multiple times throughout its lifecycle. 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 a2bcd75b30..f42580b48f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stopdataframeanalytics // Response holds the response body struct for the package stopdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0ff159b4a7..7cc99b9d39 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Stops one or more data frame analytics jobs. +// Stop data frame analytics jobs. // A data frame analytics job can be started and stopped multiple times // throughout its lifecycle. package stopdataframeanalytics @@ -78,7 +78,7 @@ func NewStopDataFrameAnalyticsFunc(tp elastictransport.Interface) NewStopDataFra } } -// Stops one or more data frame analytics jobs. +// Stop data frame analytics jobs. // A data frame analytics job can be started and stopped multiple times // throughout its lifecycle. // 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 be02052017..c716d3ca31 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stoptrainedmodeldeployment // Response holds the response body struct for the package stoptrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 347a8b78f7..e5589b0a89 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Stops a trained model deployment. +// Stop a trained model deployment. package stoptrainedmodeldeployment import ( @@ -76,7 +76,7 @@ func NewStopTrainedModelDeploymentFunc(tp elastictransport.Interface) NewStopTra } } -// Stops a trained model deployment. +// Stop a trained model deployment. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-trained-model-deployment.html func New(tp elastictransport.Interface) *StopTrainedModelDeployment { 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 ef17b7d98d..2b1e0cab91 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatedatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L162 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L163 type Request struct { // Aggregations If set, the datafeed performs aggregation searches. Support for aggregations 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 15acc4b306..daa5573051 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatedatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 19f4138173..eba94983a1 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates the properties of a datafeed. +// Update a datafeed. // You must stop and start the datafeed for the changes to be applied. // When Elasticsearch security features are enabled, your datafeed remembers // which roles the user who updated it had at @@ -88,7 +88,7 @@ func NewUpdateDatafeedFunc(tp elastictransport.Interface) NewUpdateDatafeed { } } -// Updates the properties of a datafeed. +// Update a datafeed. // You must stop and start the datafeed for the changes to be applied. // When Elasticsearch security features are enabled, your datafeed remembers // which roles the user who updated it had at 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 882398f729..c49d295900 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatedataframeanalytics @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L73 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine 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 36f191e0df..1e86dec60c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatedataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f225450030..6c0b9541bf 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates an existing data frame analytics job. +// Update a data frame analytics job. package updatedataframeanalytics import ( @@ -81,7 +81,7 @@ func NewUpdateDataFrameAnalyticsFunc(tp elastictransport.Interface) NewUpdateDat } } -// Updates an existing data frame analytics job. +// Update a data frame analytics job. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html func New(tp elastictransport.Interface) *UpdateDataFrameAnalytics { 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 341971e7c2..e3ec2f0540 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatefilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L53 type Request struct { // AddItems The items to add to the filter. 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 69d89b419a..ba51a25d28 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatefilter // Response holds the response body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_filter/MlUpdateFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5204668b9b..dde2131110 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Update a filter. // Updates the description of a filter, adds items, or removes items from the // list. package updatefilter @@ -82,6 +83,7 @@ func NewUpdateFilterFunc(tp elastictransport.Interface) NewUpdateFilter { } } +// Update a filter. // Updates the description of a filter, adds items, or removes items from the // list. // 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 66911439a5..a4411fd3bb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatejob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L138 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L140 type Request struct { // AllowLazyOpen Advanced configuration option. Specifies whether this job can open when 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 2c040b8419..8baa0fbbc2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatejob @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_job/MlUpdateJobResponse.ts#L29-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a929f7bf78..4ea194ec4d 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Update an anomaly detection job. // Updates certain properties of an anomaly detection job. package updatejob @@ -81,6 +82,7 @@ func NewUpdateJobFunc(tp elastictransport.Interface) NewUpdateJob { } } +// Update an anomaly detection job. // Updates certain properties of an anomaly detection job. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html 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 c199e635fb..4bffcc687b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatemodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L56 type Request struct { // Description A description of the model snapshot. 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 a7dda12a7d..100fd889b8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatemodelsnapshot @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 191a2f3b12..e2f680566b 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Update a snapshot. // Updates certain properties of a snapshot. package updatemodelsnapshot @@ -86,6 +87,7 @@ func NewUpdateModelSnapshotFunc(tp elastictransport.Interface) NewUpdateModelSna } } +// Update a snapshot. // Updates certain properties of a snapshot. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html 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 index 84d3bfc482..09de4aabb5 100644 --- 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 @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatetrainedmodeldeployment @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L24-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L24-L63 type Request struct { // NumberOfAllocations The number of model allocations on each node where the model is deployed. 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 index c62a23241e..8ee03d3ba6 100644 --- 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 @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatetrainedmodeldeployment @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26 type Response struct { Assignment types.TrainedModelAssignment `json:"assignment"` } 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 index 9264f48e5d..03a130ca0a 100644 --- 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 @@ -16,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Starts a trained model deployment, which allocates the model to every machine -// learning node. +// Update a trained model deployment. package updatetrainedmodeldeployment import ( @@ -82,8 +81,7 @@ func NewUpdateTrainedModelDeploymentFunc(tp elastictransport.Interface) NewUpdat } } -// Starts a trained model deployment, which allocates the model to every machine -// learning node. +// Update a trained model deployment. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html func New(tp elastictransport.Interface) *UpdateTrainedModelDeployment { 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 47245fbbfc..ff6eadace2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package upgradejobsnapshot // Response holds the response body struct for the package upgradejobsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9bb1f2f6c1..5532f29549 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Upgrade a snapshot. // Upgrades an anomaly detection model snapshot to the latest major version. // Over time, older snapshot formats are deprecated and removed. Anomaly // detection jobs support only snapshots that are from the current or previous @@ -89,6 +90,7 @@ func NewUpgradeJobSnapshotFunc(tp elastictransport.Interface) NewUpgradeJobSnaps } } +// Upgrade a snapshot. // Upgrades an anomaly detection model snapshot to the latest major version. // Over time, older snapshot formats are deprecated and removed. Anomaly // detection jobs support only snapshots that are from the current or previous 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 efb47bf177..89761f8a7e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package validate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/validate/MlValidateJobRequest.ts#L27-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/validate/MlValidateJobRequest.ts#L27-L44 type Request struct { AnalysisConfig *types.AnalysisConfig `json:"analysis_config,omitempty"` AnalysisLimits *types.AnalysisLimits `json:"analysis_limits,omitempty"` 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 6b7337cb27..893e511a31 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package validate // Response holds the response body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/validate/MlValidateJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0f7374d634..d03f52a88a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Validates an anomaly detection job. package 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 aa607a5df0..be9d780fb3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package validatedetector @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/validate_detector/MlValidateDetectorRequest.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 67330d9cc4..0137cb4949 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package validatedetector // Response holds the response body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/validate_detector/MlValidateDetectorResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 07ac7f3a31..817b530580 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Validates an anomaly detection detector. package validatedetector 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 97485ced5a..3e41fb2e04 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Used by the monitoring features to send monitoring data. package bulk 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 13daf96278..3114199deb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/monitoring/bulk/BulkMonitoringRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 999f57e931..3cce60eb78 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package bulk @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/monitoring/bulk/BulkMonitoringResponse.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d9bd1031cb..3ba41eed51 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // You can use this API to clear the archived repositories metering information // in the cluster. 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 018d1d7517..3f82b9f3da 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearrepositoriesmeteringarchive @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearrepositoriesmeteringarchive // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e9cbae7ec4..c065dd8a03 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // You can use the cluster repositories metering API to retrieve repositories // metering information in a cluster. 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 1a9f03f79c..3d59209356 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrepositoriesmeteringinfo @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrepositoriesmeteringinfo // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 986f95052e..c1ce74edcf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // This API yields a breakdown of the hot threads on each selected node in the // cluster. 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 a5e41e4611..a17dd409ae 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,19 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package hotthreads -import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" -) - // Response holds the response body struct for the package hotthreads // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22 type Response struct { - HotThreads []types.HotThread `json:"hot_threads"` } // NewResponse returns a Response 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 c048fef78b..df45d47095 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns cluster nodes information. package info 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 06faca2b99..3fb8e3066e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/NodesInfoResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4c3359bc1d..12e418297e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Reloads the keystore on nodes in the cluster. package 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 88455d3769..fbfa851658 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package reloadsecuresettings @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L51 type Request struct { // SecureSettingsPassword The password for the Elasticsearch keystore. 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 8e30920385..78a80146b2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package reloadsecuresettings @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 65be094af9..fa87278766 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/stats/NodesStatsResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2136a6ec27..8a2148110e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns cluster nodes statistics. package stats 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 c9e9c9f10e..c22903120b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package usage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/usage/NodesUsageResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f7b62e53d9..8a7c6640c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information on the usage of features. package usage diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph/flamegraph.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph/flamegraph.go index abb58c2ac2..6966d5e620 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph/flamegraph.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph/flamegraph.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Extracts a UI-optimized structure to render flamegraphs from Universal // Profiling. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces/stacktraces.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces/stacktraces.go index b2922fd346..4b2f755ac0 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces/stacktraces.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces/stacktraces.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Extracts raw stacktrace information from Universal Profiling. package stacktraces diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/status/status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/status/status.go index 56ede85046..13add2c18c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/status/status.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns basic information about the status of Universal Profiling. package status diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions/topn_functions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions/topn_functions.go index 8a717295a5..c6a78eb0b1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions/topn_functions.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions/topn_functions.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Extracts a list of topN functions from Universal Profiling. package topnfunctions diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/delete_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/delete_rule.go index c9eca0081a..5f3cd5caa4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/delete_rule.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/delete_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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes a query rule within a query ruleset. package deleterule diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/response.go index 2822b45603..f6d889820a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleterule // Response holds the response body struct for the package deleterule // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/delete_rule/QueryRuleDeleteResponse.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/queryrules/deleteruleset/delete_ruleset.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/delete_ruleset.go index 25632425d7..b20fc3edf3 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/delete_ruleset.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/delete_ruleset.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes a query ruleset. package deleteruleset diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/response.go index f17c4a343d..6d1bdc5820 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteruleset // Response holds the response body struct for the package deleteruleset // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/delete_ruleset/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/queryrules/getrule/get_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/get_rule.go index a0f3759ee4..9ac3111c96 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/get_rule.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/get_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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the details about a query rule within a query ruleset package getrule diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/response.go index db470b6362..d1b29ae2a1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getrule // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/get_rule/QueryRuleGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/get_rule/QueryRuleGetResponse.ts#L22-L24 type Response struct { Actions types.QueryRuleActions `json:"actions"` Criteria []types.QueryRuleCriteria `json:"criteria"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/get_ruleset.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/get_ruleset.go index e69bec22b0..a440752d53 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/get_ruleset.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/get_ruleset.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the details about a query ruleset package getruleset diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/response.go index 6c7fd4bc74..696be56d84 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getruleset @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getruleset // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/get_ruleset/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/queryrules/listrulesets/list_rulesets.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/list_rulesets.go index c89068ab51..b637a1a538 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/list_rulesets.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/list_rulesets.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns summarized information about existing query rulesets. package listrulesets diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/response.go index a4df09fd84..dd9d1a3890 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package listrulesets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package listrulesets // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/list_rulesets/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/queryrules/putrule/put_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/put_rule.go index b5c4c8c98b..dd251c5cba 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/put_rule.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/put_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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates or updates a query rule within a query ruleset. package putrule diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/request.go index 126647a1e6..4774065986 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putrule @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putrule // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/put_rule/QueryRulePutRequest.ts#L28-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/put_rule/QueryRulePutRequest.ts#L28-L56 type Request struct { Actions types.QueryRuleActions `json:"actions"` Criteria []types.QueryRuleCriteria `json:"criteria"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/response.go index 367c59ac7b..0dd0f5b6ca 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putrule @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrule // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/put_rule/QueryRulePutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/put_rule/QueryRulePutResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/put_ruleset.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/put_ruleset.go index 37191da549..1230afd470 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/put_ruleset.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/put_ruleset.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates or updates a query ruleset. package putruleset diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/request.go index aba3475999..ea12549ede 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putruleset @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putruleset // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L43 type Request struct { Rules []types.QueryRule `json:"rules"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/response.go index e83a5bedf1..4de344a436 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putruleset @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putruleset // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/request.go new file mode 100644 index 0000000000..0c4b7b7817 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/request.go @@ -0,0 +1,54 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package test + +import ( + "encoding/json" + "fmt" +) + +// Request holds the request body struct for the package test +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/test/QueryRulesetTestRequest.ts#L24-L44 +type Request struct { + MatchCriteria map[string]json.RawMessage `json:"match_criteria"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{ + MatchCriteria: make(map[string]json.RawMessage, 0), + } + + 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 Test request: %w", err) + } + + return &req, nil +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/response.go new file mode 100644 index 0000000000..722b206e82 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/response.go @@ -0,0 +1,39 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package test + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// Response holds the response body struct for the package test +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/test/QueryRulesetTestResponse.ts#L23-L28 +type Response struct { + MatchedRules []types.QueryRulesetMatchedRule `json:"matched_rules"` + TotalMatchedRules int `json:"total_matched_rules"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/test.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/test.go new file mode 100644 index 0000000000..7d96a8ae06 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test/test.go @@ -0,0 +1,368 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Creates or updates a query ruleset. +package test + +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 ( + rulesetidMask = 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 Test 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 + + rulesetid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewTest type alias for index. +type NewTest func(rulesetid string) *Test + +// NewTestFunc returns a new instance of Test with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewTestFunc(tp elastictransport.Interface) NewTest { + return func(rulesetid string) *Test { + n := New(tp) + + n._rulesetid(rulesetid) + + return n + } +} + +// Creates or updates a query ruleset. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/test-query-ruleset.html +func New(tp elastictransport.Interface) *Test { + r := &Test{ + 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 *Test) Raw(raw io.Reader) *Test { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *Test) Request(req *Request) *Test { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *Test) 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 Test: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == rulesetidMask: + path.WriteString("/") + path.WriteString("_query_rules") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "rulesetid", r.rulesetid) + } + path.WriteString(r.rulesetid) + path.WriteString("/") + path.WriteString("_test") + + 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 Test) 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, "query_rules.test") + 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, "query_rules.test") + if reader := instrument.RecordRequestBody(ctx, "query_rules.test", 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", "query_rules.test") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the Test 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 test.Response +func (r Test) 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, "query_rules.test") + 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 Test headers map. +func (r *Test) Header(key, value string) *Test { + r.headers.Set(key, value) + + return r +} + +// RulesetId The unique identifier of the query ruleset to be created or updated +// API Name: rulesetid +func (r *Test) _rulesetid(rulesetid string) *Test { + r.paramSet |= rulesetidMask + r.rulesetid = rulesetid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *Test) ErrorTrace(errortrace bool) *Test { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *Test) FilterPath(filterpaths ...string) *Test { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *Test) Human(human bool) *Test { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *Test) Pretty(pretty bool) *Test { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: match_criteria +func (r *Test) MatchCriteria(matchcriteria map[string]json.RawMessage) *Test { + + r.req.MatchCriteria = matchcriteria + + return r +} 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 f2619084d5..861a1a46cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes an existing rollup job. package deletejob 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 255bc3feae..0fdaf7b8d5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletejob @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5134224152..cc900689ce 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves the configuration, stats, and status of rollup jobs. package getjobs 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 46e61d9d5d..7a1495dae7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getjobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_jobs/GetRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 920ac80232..bb02ac738f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the capabilities of any rollup jobs that have been configured for a // specific index or index pattern. 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 e8c677f0aa..4d0fbe91b5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrollupcaps @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrollupcaps // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 273718b779..17494b647f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the rollup capabilities of all jobs inside of a rollup index (for // example, the index where rollup data is stored). 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 9d702d1f78..6421d5e0bb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrollupindexcaps @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrollupindexcaps // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1cd644b208..91c5811971 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a rollup job. package putjob 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 421f0a17b8..4709b2a2ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/put_job/CreateRollupJobRequest.ts#L27-L89 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 7cb5cf1f42..411627ea10 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putjob // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/put_job/CreateRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 efcb6753d6..035a1b3dc2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package rollupsearch @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L57 type Request struct { // Aggregations Specifies aggregations. 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 024357f385..ff026d58a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package rollupsearch @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Hits types.HitsMetadata `json:"hits"` @@ -494,6 +494,13 @@ func (s *Response) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := types.NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := types.NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 c4a01db547..a48c7e3b66 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Enables searching rolled-up data using the standard Query DSL. package 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 9e4e9d8e9d..a30464cc55 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package startjob // Response holds the response body struct for the package startjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/start_job/StartRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7f2aa30cce..729ac2d96e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Starts an existing, stopped rollup job. package startjob 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 44c0b0cf0a..fd4e91455d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stopjob // Response holds the response body struct for the package stopjob // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/stop_job/StopRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 52be3b83f3..babd8be5bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Stops an existing, started rollup job. package stopjob 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 5b3355b793..120d5e0a17 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieve node-level cache statistics about searchable snapshots. package cachestats 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 7c15824b23..889c367445 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package cachestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package cachestats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/cache_stats/Response.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d2ed29b0a2..83dc97ade8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Clear the cache of searchable snapshots. package clearcache 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 7f18da07e8..c9b07d6a7c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearcache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dcfa740534..bfa3bcd6d7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Mount a snapshot as a searchable index. package mount 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 ad6da80a73..99cf513167 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mount @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L49 type Request struct { IgnoreIndexSettings []string `json:"ignore_index_settings,omitempty"` Index string `json:"index"` 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 4b22f6a9c1..b0a7975e5d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package mount @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 27b5327f06..a60407628f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dbdec5fd25..4f855e74a0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieve shard-level statistics about searchable snapshots. package stats 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 5bc965db5a..cd55a1ef63 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes a search application. +// Delete a search application. +// Remove a search application and its associated alias. Indices attached to the +// search application are not removed. package delete import ( @@ -76,7 +78,9 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } -// Deletes a search application. +// Delete a search application. +// Remove a search application and its associated alias. Indices attached to the +// search application are not removed. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-search-application.html func New(tp elastictransport.Interface) *Delete { 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 ab3ac5b4ad..39c3889706 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 88df38bee9..87194935d1 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Delete a behavioral analytics collection. +// The associated data stream is also deleted. package deletebehavioralanalytics import ( @@ -77,6 +78,7 @@ func NewDeleteBehavioralAnalyticsFunc(tp elastictransport.Interface) NewDeleteBe } // Delete a behavioral analytics collection. +// The associated data stream is also deleted. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-analytics-collection.html func New(tp elastictransport.Interface) *DeleteBehavioralAnalytics { 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 787e8f1b0e..151f50fef9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletebehavioralanalytics // Response holds the response body struct for the package deletebehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ad4e498533..a142a7f075 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns the details about a search application +// Get search application details. package get import ( @@ -76,7 +76,7 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Returns the details about a search application +// Get search application details. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-search-application.html func New(tp elastictransport.Interface) *Get { 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 e3e9273372..76c53416b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1dbac51e6d..8105d61e2f 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns the existing behavioral analytics collections. +// Get behavioral analytics collections. package getbehavioralanalytics import ( @@ -74,7 +74,7 @@ func NewGetBehavioralAnalyticsFunc(tp elastictransport.Interface) NewGetBehavior } } -// Returns the existing behavioral analytics collections. +// Get behavioral analytics collections. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-analytics-collection.html func New(tp elastictransport.Interface) *GetBehavioralAnalytics { 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 0466be7ae0..942fa5a19a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getbehavioralanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1b40b185b7..01be729073 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the existing search applications. package list 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 03c2c97c86..2343bbdef9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package list @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/list/SearchApplicationsListResponse.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bbeea9bc34..37ed345ece 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates or updates a search application. +// Create or update a search application. package put import ( @@ -81,7 +81,7 @@ func NewPutFunc(tp elastictransport.Interface) NewPut { } } -// Creates or updates a search application. +// Create or update a search application. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-search-application.html func New(tp elastictransport.Interface) *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 414f0be8bc..a921bf168f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package put @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/put/SearchApplicationsPutRequest.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3b4fff3f63..98dea835dc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package put @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/put/SearchApplicationsPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 492c77ce05..9eace4cdd1 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a behavioral analytics collection. +// Create a behavioral analytics collection. package putbehavioralanalytics import ( @@ -76,7 +76,7 @@ func NewPutBehavioralAnalyticsFunc(tp elastictransport.Interface) NewPutBehavior } } -// Creates a behavioral analytics collection. +// Create a behavioral analytics collection. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-analytics-collection.html func New(tp elastictransport.Interface) *PutBehavioralAnalytics { 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 6d652ff60f..3740c59293 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putbehavioralanalytics // Response holds the response body struct for the package putbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L23-L25 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 5586162121..e881da6175 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package search @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L54 type Request struct { // Params Query parameters specific to this request, which will override any defaults 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 41452b4947..97556e430a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/search/SearchApplicationsSearchResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/search_application/search/SearchApplicationsSearchResponse.ts#L22-L24 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` @@ -504,6 +504,13 @@ func (s *Response) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := types.NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := types.NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 e24150a591..c28e6d7dec 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,9 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 - -// Perform a search against a search application. +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Run a search application search. +// Generate and run an Elasticsearch query that uses the specified query +// parameteter and the search template associated with the search application or +// default template. +// Unspecified template parameters are assigned their default values if +// applicable. package search import ( @@ -81,7 +86,12 @@ func NewSearchFunc(tp elastictransport.Interface) NewSearch { } } -// Perform a search against a search application. +// Run a search application search. +// Generate and run an Elasticsearch query that uses the specified query +// parameteter and the search template associated with the search application or +// default template. +// Unspecified template parameters are assigned their default values if +// applicable. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-application-search.html func New(tp elastictransport.Interface) *Search { 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 fafc4cea1a..f2e85a484b 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates or updates a user profile on behalf of another user. +// Activate a user profile. +// +// Create or update a user profile on behalf of another user. package activateuserprofile import ( @@ -74,7 +76,9 @@ func NewActivateUserProfileFunc(tp elastictransport.Interface) NewActivateUserPr } } -// Creates or updates a user profile on behalf of another user. +// Activate a user profile. +// +// Create or update a user profile on behalf of another user. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-activate-user-profile.html func New(tp elastictransport.Interface) *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 7bab060e80..93683a0a46 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package activateuserprofile @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/activate_user_profile/Request.ts#L23-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/activate_user_profile/Request.ts#L23-L39 type Request struct { AccessToken *string `json:"access_token,omitempty"` GrantType granttype.GrantType `json:"grant_type"` 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 e409b334e6..d009699dbe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package activateuserprofile @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/activate_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b8eacc6231..f505251d31 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,10 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Enables you to submit a request with a basic auth header to authenticate a -// user and retrieve information about the authenticated user. +// Authenticate a user. +// +// Authenticates a user and returns information about the authenticated user. +// Include the user information in a [basic auth +// header](https://en.wikipedia.org/wiki/Basic_access_authentication). // A successful call returns a JSON structure that shows user information such // as their username, the roles that are assigned to the user, any assigned // metadata, and information about the realms that authenticated and authorized @@ -74,8 +77,11 @@ func NewAuthenticateFunc(tp elastictransport.Interface) NewAuthenticate { } } -// Enables you to submit a request with a basic auth header to authenticate a -// user and retrieve information about the authenticated user. +// Authenticate a user. +// +// Authenticates a user and returns information about the authenticated user. +// Include the user information in a [basic auth +// header](https://en.wikipedia.org/wiki/Basic_access_authentication). // A successful call returns a JSON structure that shows user information such // as their username, the roles that are assigned to the user, any assigned // metadata, and information about the realms that authenticated and authorized 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 3e07214622..8ec45b1343 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package authenticate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package authenticate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/authenticate/SecurityAuthenticateResponse.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/bulkdeleterole/bulk_delete_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/bulk_delete_role.go index 07a624805b..1d27c70268 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/bulk_delete_role.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/bulk_delete_role.go @@ -16,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Bulk delete roles. +// // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The bulk delete roles API cannot delete roles that are defined in roles @@ -77,6 +79,8 @@ func NewBulkDeleteRoleFunc(tp elastictransport.Interface) NewBulkDeleteRole { } } +// Bulk delete roles. +// // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The bulk delete roles API cannot delete roles that are defined in roles diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/request.go index 9e66e82ac2..ca1a539d41 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package bulkdeleterole @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package bulkdeleterole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L43 type Request struct { // Names An array of role names to delete diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/response.go index 511e1ebcd2..7a2003fe34 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package bulkdeleterole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulkdeleterole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/bulk_delete_role/SecurityBulkDeleteRoleResponse.ts#L25-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/bulk_delete_role/SecurityBulkDeleteRoleResponse.ts#L22-L37 type Response struct { // Deleted Array of deleted roles diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/bulk_put_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/bulk_put_role.go index 56df2edd58..896f3a3a5e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/bulk_put_role.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/bulk_put_role.go @@ -16,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Bulk create or update roles. +// // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The bulk create or update roles API cannot update roles that are defined in @@ -77,6 +79,8 @@ func NewBulkPutRoleFunc(tp elastictransport.Interface) NewBulkPutRole { } } +// Bulk create or update roles. +// // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The bulk create or update roles API cannot update roles that are defined in diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/request.go index 0e5c96e417..637efce2ef 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package bulkputrole @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package bulkputrole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L45 type Request struct { // Roles A dictionary of role name to RoleDescriptor objects to add or update diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/response.go index 2af9ce7553..ad3a2d8b55 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package bulkputrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulkputrole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/bulk_put_role/SecurityBulkPutRoleResponse.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/bulk_put_role/SecurityBulkPutRoleResponse.ts#L22-L41 type Response struct { // Created Array of created roles 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 a8dd1c65ed..9947ff344b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Updates the attributes of multiple existing API keys. package bulkupdateapikeys 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 7668d7f69f..efda168e78 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Changes the passwords of users in the native realm and built-in users. +// Change passwords. +// +// Change the passwords of users in the native realm and built-in users. package changepassword import ( @@ -80,7 +82,9 @@ func NewChangePasswordFunc(tp elastictransport.Interface) NewChangePassword { } } -// Changes the passwords of users in the native realm and built-in users. +// Change passwords. +// +// Change the passwords of users in the native realm and built-in users. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html func New(tp elastictransport.Interface) *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 7c08da1640..048aef14a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package changepassword @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L54 type Request struct { // Password The new password value. Passwords must be at least 6 characters long. 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 c78fa4abb4..6f2c415bc1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package changepassword // Response holds the response body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/change_password/SecurityChangePasswordResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 04e880998e..e7217dda92 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Evicts a subset of all entries from the API key cache. +// Clear the API key cache. +// +// Evict a subset of all entries from the API key cache. // The cache is also automatically cleared on state changes of the security // index. package clearapikeycache @@ -78,7 +80,9 @@ func NewClearApiKeyCacheFunc(tp elastictransport.Interface) NewClearApiKeyCache } } -// Evicts a subset of all entries from the API key cache. +// Clear the API key cache. +// +// Evict a subset of all entries from the API key cache. // The cache is also automatically cleared on state changes of the security // index. // 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 35dc14cb61..8f0ac7c8da 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearapikeycache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearapikeycache // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 74d4246c95..d6a84b7efd 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,9 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Evicts application privileges from the native application privileges cache. +// Clear the privileges cache. +// +// Evict privileges from the native application privilege cache. +// The cache is also automatically cleared for applications that have their +// privileges updated. package clearcachedprivileges import ( @@ -76,7 +80,11 @@ func NewClearCachedPrivilegesFunc(tp elastictransport.Interface) NewClearCachedP } } -// Evicts application privileges from the native application privileges cache. +// Clear the privileges cache. +// +// Evict privileges from the native application privilege cache. +// The cache is also automatically cleared for applications that have their +// privileges updated. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html func New(tp elastictransport.Interface) *ClearCachedPrivileges { 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 4f6beb04b9..4876e8cb2f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearcachedprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c7c1d339f6..d068da1f1d 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Evicts users from the user cache. Can completely clear the cache or evict +// Clear the user cache. +// +// Evict users from the user cache. You can completely clear the cache or evict // specific users. package clearcachedrealms @@ -77,7 +79,9 @@ func NewClearCachedRealmsFunc(tp elastictransport.Interface) NewClearCachedRealm } } -// Evicts users from the user cache. Can completely clear the cache or evict +// Clear the user cache. +// +// Evict users from the user cache. You can completely clear the cache or evict // specific users. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html 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 7d42e2b267..4117d3a3e2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearcachedrealms @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedrealms // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5bfc66897c..e12a6d06bd 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Evicts roles from the native role cache. +// Clear the roles cache. +// +// Evict roles from the native role cache. package clearcachedroles import ( @@ -76,7 +78,9 @@ func NewClearCachedRolesFunc(tp elastictransport.Interface) NewClearCachedRoles } } -// Evicts roles from the native role cache. +// Clear the roles cache. +// +// Evict roles from the native role cache. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html func New(tp elastictransport.Interface) *ClearCachedRoles { 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 a92f2d72da..f33cae4936 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearcachedroles @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedroles // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 51e81c5339..be500b6499 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Evicts tokens from the service account token caches. +// Clear service account token caches. +// +// Evict a subset of all entries from the service account token caches. package clearcachedservicetokens import ( @@ -86,7 +88,9 @@ func NewClearCachedServiceTokensFunc(tp elastictransport.Interface) NewClearCach } } -// Evicts tokens from the service account token caches. +// Clear service account token caches. +// +// Evict a subset of all entries from the service account token caches. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html func New(tp elastictransport.Interface) *ClearCachedServiceTokens { 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 1f68381b45..ac6db35c2a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearcachedservicetokens @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedservicetokens // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6a7d2bc935..870801e951 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates an API key for access without requiring basic authentication. +// Create an API key. +// +// Create an API key for access without requiring basic authentication. // A successful request returns a JSON structure that contains the API key, its // unique id, and its name. // If applicable, it also returns expiration information for the API key in @@ -80,7 +82,9 @@ func NewCreateApiKeyFunc(tp elastictransport.Interface) NewCreateApiKey { } } -// Creates an API key for access without requiring basic authentication. +// Create an API key. +// +// Create an API key for access without requiring basic authentication. // A successful request returns a JSON structure that contains the API key, its // unique id, and its name. // If applicable, it also returns expiration information for the API key in 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 4e6b7fc05f..62fe986b58 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package createapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L60 type Request struct { // Expiration Expiration time for the API key. By default, API keys never expire. 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 03cf63ce8f..9a32478156 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package createapikey // Response holds the response body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f93356927e..4703f25915 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a cross-cluster API key for API key based remote cluster access. package createcrossclusterapikey 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 2cacde0065..60c1bdf9c9 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a service accounts token for access without requiring basic +// Create a service account token. +// +// Create a service accounts token for access without requiring basic // authentication. package createservicetoken @@ -86,7 +88,9 @@ func NewCreateServiceTokenFunc(tp elastictransport.Interface) NewCreateServiceTo } } -// Creates a service accounts token for access without requiring basic +// Create a service account token. +// +// Create a service accounts token for access without requiring basic // authentication. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html 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 a666c84fd8..1f889d8dcb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package createservicetoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package createservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/create_service_token/CreateServiceTokenResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5a43843ee5..e1d72f6804 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Removes application privileges. +// Delete application privileges. package deleteprivileges import ( @@ -82,7 +82,7 @@ func NewDeletePrivilegesFunc(tp elastictransport.Interface) NewDeletePrivileges } } -// Removes application privileges. +// Delete application privileges. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html func New(tp elastictransport.Interface) *DeletePrivileges { 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 0040805044..b7d40ee299 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deleteprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 69182378d7..6c36f535d6 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Removes roles in the native realm. +// Delete roles. +// +// Delete roles in the native realm. package deleterole import ( @@ -77,7 +79,9 @@ func NewDeleteRoleFunc(tp elastictransport.Interface) NewDeleteRole { } } -// Removes roles in the native realm. +// Delete roles. +// +// Delete roles in the native realm. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html func New(tp elastictransport.Interface) *DeleteRole { 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 de3bbb0c75..f025ad5f1e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleterole // Response holds the response body struct for the package deleterole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/delete_role/SecurityDeleteRoleResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e363b5571c..66ecef7223 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Removes role mappings. +// Delete role mappings. package deleterolemapping import ( @@ -77,7 +77,7 @@ func NewDeleteRoleMappingFunc(tp elastictransport.Interface) NewDeleteRoleMappin } } -// Removes role mappings. +// Delete role mappings. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html func New(tp elastictransport.Interface) *DeleteRoleMapping { 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 c785c0c53e..8850aef82b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleterolemapping // Response holds the response body struct for the package deleterolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 76c0a3ec36..4de665e231 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes a service account token. +// Delete service account tokens. +// +// Delete service account tokens for a service in a specified namespace. package deleteservicetoken import ( @@ -87,7 +89,9 @@ func NewDeleteServiceTokenFunc(tp elastictransport.Interface) NewDeleteServiceTo } } -// Deletes a service account token. +// Delete service account tokens. +// +// Delete service account tokens for a service in a specified namespace. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html func New(tp elastictransport.Interface) *DeleteServiceToken { 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 bc0f539eea..f3f06725e7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteservicetoken // Response holds the response body struct for the package deleteservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dd82fc73d6..74fca1d9e4 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Deletes users from the native realm. +// Delete users. +// +// Delete users from the native realm. package deleteuser import ( @@ -77,7 +79,9 @@ func NewDeleteUserFunc(tp elastictransport.Interface) NewDeleteUser { } } -// Deletes users from the native realm. +// Delete users. +// +// Delete users from the native realm. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html func New(tp elastictransport.Interface) *DeleteUser { 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 664e5da07d..44afd65853 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteuser // Response holds the response body struct for the package deleteuser // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/delete_user/SecurityDeleteUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 965e94d6fc..f64aa072ab 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Disables users in the native realm. +// Disable users. +// +// Disable users in the native realm. package disableuser import ( @@ -77,7 +79,9 @@ func NewDisableUserFunc(tp elastictransport.Interface) NewDisableUser { } } -// Disables users in the native realm. +// Disable users. +// +// Disable users in the native realm. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html func New(tp elastictransport.Interface) *DisableUser { 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 73ab246654..f7a067fa91 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package disableuser // Response holds the response body struct for the package disableuser // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/disable_user/SecurityDisableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9273568fca..2b1f6da0a2 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Disables a user profile so it's not visible in user profile searches. +// Disable a user profile. +// +// Disable user profiles so that they are not visible in user profile searches. package disableuserprofile import ( @@ -77,7 +79,9 @@ func NewDisableUserProfileFunc(tp elastictransport.Interface) NewDisableUserProf } } -// Disables a user profile so it's not visible in user profile searches. +// Disable a user profile. +// +// Disable user profiles so that they are not visible in user profile searches. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user-profile.html func New(tp elastictransport.Interface) *DisableUserProfile { 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 1b599fcdbb..585c402989 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package disableuserprofile // Response holds the response body struct for the package disableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/disable_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 aaf5c1bc2f..2e0df27e85 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Enables users in the native realm. +// Enable users. +// +// Enable users in the native realm. package enableuser import ( @@ -77,7 +79,9 @@ func NewEnableUserFunc(tp elastictransport.Interface) NewEnableUser { } } -// Enables users in the native realm. +// Enable users. +// +// Enable users in the native realm. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html func New(tp elastictransport.Interface) *EnableUser { 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 d3dcb644de..3f40050139 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package enableuser // Response holds the response body struct for the package enableuser // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/enable_user/SecurityEnableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 52b78c49a4..9d7283e141 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Enables a user profile so it's visible in user profile searches. +// Enable a user profile. +// +// Enable user profiles to make them visible in user profile searches. package enableuserprofile import ( @@ -77,7 +79,9 @@ func NewEnableUserProfileFunc(tp elastictransport.Interface) NewEnableUserProfil } } -// Enables a user profile so it's visible in user profile searches. +// Enable a user profile. +// +// Enable user profiles to make them visible in user profile searches. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user-profile.html func New(tp elastictransport.Interface) *EnableUserProfile { 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 da0aecbf7a..7007f6b487 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package enableuserprofile // Response holds the response body struct for the package enableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/enable_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8e9fc83bf3..ccf0bf46f7 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Enables a Kibana instance to configure itself for communication with a -// secured Elasticsearch cluster. +// Enroll Kibana. +// +// Enable a Kibana instance to configure itself for communication with a secured +// Elasticsearch cluster. package enrollkibana import ( @@ -69,8 +71,10 @@ func NewEnrollKibanaFunc(tp elastictransport.Interface) NewEnrollKibana { } } -// Enables a Kibana instance to configure itself for communication with a -// secured Elasticsearch cluster. +// Enroll Kibana. +// +// Enable a Kibana instance to configure itself for communication with a secured +// Elasticsearch cluster. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-kibana-enrollment.html func New(tp elastictransport.Interface) *EnrollKibana { 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 e318c45d5a..f69fe5cd84 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package enrollkibana @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package enrollkibana // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/enroll_kibana/Response.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cb14ef28cf..02bb10319c 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Allows a new node to join an existing cluster with security features enabled. +// Enroll a node. +// +// Enroll a new node to allow it to join an existing cluster with security +// features enabled. package enrollnode import ( @@ -68,7 +71,10 @@ func NewEnrollNodeFunc(tp elastictransport.Interface) NewEnrollNode { } } -// Allows a new node to join an existing cluster with security features enabled. +// Enroll a node. +// +// Enroll a new node to allow it to join an existing cluster with security +// features enabled. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-node-enrollment.html func New(tp elastictransport.Interface) *EnrollNode { 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 85092ce5a1..f2cd1042ef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package enrollnode // Response holds the response body struct for the package enrollnode // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/enroll_node/Response.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8023c2bd06..f7562cea31 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,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get API key information. +// // Retrieves information for one or more API keys. // NOTE: If you have only the `manage_own_api_key` privilege, this API returns // only the API keys that you own. @@ -73,6 +75,8 @@ func NewGetApiKeyFunc(tp elastictransport.Interface) NewGetApiKey { } } +// Get API key information. +// // Retrieves information for one or more API keys. // NOTE: If you have only the `manage_own_api_key` privilege, this API returns // only the API keys that you own. 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 00468993fd..97ab611a22 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getapikey @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c917e3c9cb..1d6585b5fa 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves the list of cluster privileges and index privileges that are -// available in this version of Elasticsearch. +// Get builtin privileges. +// +// Get the list of cluster privileges and index privileges that are available in +// this version of Elasticsearch. package getbuiltinprivileges import ( @@ -69,8 +71,10 @@ func NewGetBuiltinPrivilegesFunc(tp elastictransport.Interface) NewGetBuiltinPri } } -// Retrieves the list of cluster privileges and index privileges that are -// available in this version of Elasticsearch. +// Get builtin privileges. +// +// Get the list of cluster privileges and index privileges that are available in +// this version of Elasticsearch. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-builtin-privileges.html func New(tp elastictransport.Interface) *GetBuiltinPrivileges { 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 b66f7ffa6c..aa443cffc9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getbuiltinprivileges @@ -30,7 +30,7 @@ import ( // Response holds the response body struct for the package getbuiltinprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 645c555f6e..315d14e9d7 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves application privileges. +// Get application privileges. package getprivileges import ( @@ -77,7 +77,7 @@ func NewGetPrivilegesFunc(tp elastictransport.Interface) NewGetPrivileges { } } -// Retrieves application privileges. +// Get application privileges. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html func New(tp elastictransport.Interface) *GetPrivileges { 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 6b2be88a2a..2f03052fe6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0de07e4a5a..4658e2ada4 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,8 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get roles. +// +// Get roles in the native realm. // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The get roles API cannot retrieve roles that are defined in roles files. @@ -76,6 +79,9 @@ func NewGetRoleFunc(tp elastictransport.Interface) NewGetRole { } } +// Get roles. +// +// Get roles in the native realm. // The role management APIs are generally the preferred way to manage roles, // rather than using file-based role management. // The get roles API cannot retrieve roles that are defined in roles files. 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 4656e63a51..cdfb2569c0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_role/SecurityGetRoleResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f1b1f4e884..102faca397 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves role mappings. +// Get role mappings. +// +// Role mappings define which roles are assigned to each user. +// The role mapping APIs are generally the preferred way to manage role mappings +// rather than using role mapping files. +// The get role mappings API cannot retrieve role mappings that are defined in +// role mapping files. package getrolemapping import ( @@ -74,7 +80,13 @@ func NewGetRoleMappingFunc(tp elastictransport.Interface) NewGetRoleMapping { } } -// Retrieves role mappings. +// Get role mappings. +// +// Role mappings define which roles are assigned to each user. +// The role mapping APIs are generally the preferred way to manage role mappings +// rather than using role mapping files. +// The get role mappings API cannot retrieve role mappings that are defined in +// role mapping files. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html func New(tp elastictransport.Interface) *GetRoleMapping { 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 61667cbf1d..f1d8f82da0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrolemapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 64d9e9130f..90a4fdff73 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// This API returns a list of service accounts that match the provided path -// parameter(s). +// Get service accounts. +// +// Get a list of service accounts that match the provided path parameters. package getserviceaccounts import ( @@ -78,8 +79,9 @@ func NewGetServiceAccountsFunc(tp elastictransport.Interface) NewGetServiceAccou } } -// This API returns a list of service accounts that match the provided path -// parameter(s). +// Get service accounts. +// +// Get a list of service accounts that match the provided path parameters. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html func New(tp elastictransport.Interface) *GetServiceAccounts { 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 6932a74242..ece6745768 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getserviceaccounts @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getserviceaccounts // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 137970531b..d405cc9fad 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information of all service credentials for a service account. +// Get service account credentials. package getservicecredentials import ( @@ -81,7 +81,7 @@ func NewGetServiceCredentialsFunc(tp elastictransport.Interface) NewGetServiceCr } } -// Retrieves information of all service credentials for a service account. +// Get service account credentials. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html func New(tp elastictransport.Interface) *GetServiceCredentials { 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 1c9908b601..b0e141d2be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getservicecredentials @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getservicecredentials // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a5412a2cc6..4c2d7e09c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieve settings for the security system indices package getsettings 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 af28669596..9da34ff23c 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a bearer token for access without requiring basic authentication. +// Get a token. +// +// Create a bearer token for access without requiring basic authentication. package gettoken import ( @@ -74,7 +76,9 @@ func NewGetTokenFunc(tp elastictransport.Interface) NewGetToken { } } -// Creates a bearer token for access without requiring basic authentication. +// Get a token. +// +// Create a bearer token for access without requiring basic authentication. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html func New(tp elastictransport.Interface) *GetToken { 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 8c080b8a3d..001efd694d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package gettoken @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L42 type Request struct { GrantType *accesstokengranttype.AccessTokenGrantType `json:"grant_type,omitempty"` KerberosTicket *string `json:"kerberos_ticket,omitempty"` 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 c92885e1af..1deed00675 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package gettoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_token/GetUserAccessTokenResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1078f2114a..cd0645cf12 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information about users in the native realm and built-in users. +// Get users. +// +// Get information about users in the native realm and built-in users. package getuser import ( @@ -74,7 +76,9 @@ func NewGetUserFunc(tp elastictransport.Interface) NewGetUser { } } -// Retrieves information about users in the native realm and built-in users. +// Get users. +// +// Get information about users in the native realm and built-in users. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html func New(tp elastictransport.Interface) *GetUser { 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 5ff6d477ad..cd69446df3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getuser @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuser // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_user/SecurityGetUserResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9897a34cf2..9ba1357008 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves security privileges for the logged in user. +// Get user privileges. package getuserprivileges import ( @@ -68,7 +68,7 @@ func NewGetUserPrivilegesFunc(tp elastictransport.Interface) NewGetUserPrivilege } } -// Retrieves security privileges for the logged in user. +// Get user privileges. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html func New(tp elastictransport.Interface) *GetUserPrivileges { 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 58bec5d2bd..32b1a11358 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getuserprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuserprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L27-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L26-L34 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 8150a68e0e..5c9ded160c 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves a user's profile using the unique profile ID. +// Get a user profile. +// +// Get a user's profile using the unique profile ID. package getuserprofile import ( @@ -76,7 +78,9 @@ func NewGetUserProfileFunc(tp elastictransport.Interface) NewGetUserProfile { } } -// Retrieves a user's profile using the unique profile ID. +// Get a user profile. +// +// Get a user's profile using the unique profile ID. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-profile.html func New(tp elastictransport.Interface) *GetUserProfile { 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 008cf57646..5bbf3c0941 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getuserprofile @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_user_profile/Response.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c7596da1d6..eed3ded3e8 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,11 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates an API key on behalf of another user. -// This API is similar to Create API keys, however it creates the API key for a -// user that is different than the user that runs the API. +// Grant an API key. +// +// Create an API key on behalf of another user. +// This API is similar to the create API keys API, however it creates the API +// key for a user that is different than the user that runs the API. // The caller must have authentication credentials (either an access token, or a // username and password) for the user on whose behalf the API key will be // created. @@ -96,9 +98,11 @@ func NewGrantApiKeyFunc(tp elastictransport.Interface) NewGrantApiKey { } } -// Creates an API key on behalf of another user. -// This API is similar to Create API keys, however it creates the API key for a -// user that is different than the user that runs the API. +// Grant an API key. +// +// Create an API key on behalf of another user. +// This API is similar to the create API keys API, however it creates the API +// key for a user that is different than the user that runs the API. // The caller must have authentication credentials (either an access token, or a // username and password) for the user on whose behalf the API key will be // created. 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 38d3d64de5..8cc2f3b687 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package grantapikey @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L77 type Request struct { // AccessToken The user’s access token. 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 c7419ba05f..313b69dbc2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package grantapikey // Response holds the response body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 275e3d60b8..569747467c 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Determines whether the specified user has a specified list of privileges. +// Check user privileges. +// +// Determine whether the specified user has a specified list of privileges. package hasprivileges import ( @@ -80,7 +82,9 @@ func NewHasPrivilegesFunc(tp elastictransport.Interface) NewHasPrivileges { } } -// Determines whether the specified user has a specified list of privileges. +// Check user privileges. +// +// Determine whether the specified user has a specified list of privileges. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html func New(tp elastictransport.Interface) *HasPrivileges { 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 648a27640a..38a556b545 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package hasprivileges @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L46 type Request struct { Application []types.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/security/hasprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/response.go index b0adbc430c..74ba468c4e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package hasprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9acc4192a3..4797cbc07d 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Determines whether the users associated with the specified profile IDs have -// all the requested privileges. +// Check user profile privileges. +// +// Determine whether the users associated with the specified user profile IDs +// have all the requested privileges. package hasprivilegesuserprofile import ( @@ -74,8 +76,10 @@ func NewHasPrivilegesUserProfileFunc(tp elastictransport.Interface) NewHasPrivil } } -// Determines whether the users associated with the specified profile IDs have -// all the requested privileges. +// Check user profile privileges. +// +// Determine whether the users associated with the specified user profile IDs +// have all the requested privileges. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges-user-profile.html func New(tp elastictransport.Interface) *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 a2b5c89d88..f48703772d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package hasprivilegesuserprofile @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges_user_profile/Request.ts#L24-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/has_privileges_user_profile/Request.ts#L24-L42 type Request struct { Privileges types.PrivilegesCheck `json:"privileges"` // Uids A list of profile IDs. The privileges are checked for associated users of the 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 d8738fdd18..7ec12606f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package hasprivilegesuserprofile @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges_user_profile/Response.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cd0bc7cfd7..54cf74b86a 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Invalidates one or more API keys. +// Invalidate API keys. +// +// This API invalidates API keys created by the create API key or grant API key +// APIs. +// Invalidated API keys fail authentication, but they can still be viewed using +// the get API key information and query API key information APIs, for at least +// the configured retention period, until they are automatically deleted. // The `manage_api_key` privilege allows deleting any API keys. // The `manage_own_api_key` only allows deleting API keys that are owned by the // user. @@ -26,8 +32,8 @@ // must be issued in one of the three formats: // - Set the parameter `owner=true`. // - Or, set both `username` and `realm_name` to match the user’s identity. -// - Or, if the request is issued by an API key, i.e. an API key invalidates -// itself, specify its ID in the `ids` field. +// - Or, if the request is issued by an API key, that is to say an API key +// invalidates itself, specify its ID in the `ids` field. package invalidateapikey import ( @@ -82,7 +88,13 @@ func NewInvalidateApiKeyFunc(tp elastictransport.Interface) NewInvalidateApiKey } } -// Invalidates one or more API keys. +// Invalidate API keys. +// +// This API invalidates API keys created by the create API key or grant API key +// APIs. +// Invalidated API keys fail authentication, but they can still be viewed using +// the get API key information and query API key information APIs, for at least +// the configured retention period, until they are automatically deleted. // The `manage_api_key` privilege allows deleting any API keys. // The `manage_own_api_key` only allows deleting API keys that are owned by the // user. @@ -90,8 +102,8 @@ func NewInvalidateApiKeyFunc(tp elastictransport.Interface) NewInvalidateApiKey // must be issued in one of the three formats: // - Set the parameter `owner=true`. // - Or, set both `username` and `realm_name` to match the user’s identity. -// - Or, if the request is issued by an API key, i.e. an API key invalidates -// itself, specify its ID in the `ids` field. +// - Or, if the request is issued by an API key, that is to say an API key +// invalidates itself, specify its ID in the `ids` field. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html func New(tp elastictransport.Interface) *InvalidateApiKey { 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 e9fb0fd080..ccb896f229 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package invalidateapikey @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L69 type Request struct { Id *string `json:"id,omitempty"` // Ids A list of API key ids. 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 f338955163..22bcb7cb6e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package invalidateapikey @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b65ccc1dc6..2ab36301bd 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,9 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Invalidates one or more access tokens or refresh tokens. +// Invalidate a token. +// +// The access tokens returned by the get token API have a finite period of time +// for which they are valid. +// After that time period, they can no longer be used. +// The time period is defined by the `xpack.security.authc.token.timeout` +// setting. +// +// The refresh tokens returned by the get token API are only valid for 24 hours. +// They can also be used exactly once. +// If you want to invalidate one or more access or refresh tokens immediately, +// use this invalidate token API. package invalidatetoken import ( @@ -73,7 +84,18 @@ func NewInvalidateTokenFunc(tp elastictransport.Interface) NewInvalidateToken { } } -// Invalidates one or more access tokens or refresh tokens. +// Invalidate a token. +// +// The access tokens returned by the get token API have a finite period of time +// for which they are valid. +// After that time period, they can no longer be used. +// The time period is defined by the `xpack.security.authc.token.timeout` +// setting. +// +// The refresh tokens returned by the get token API are only valid for 24 hours. +// They can also be used exactly once. +// If you want to invalidate one or more access or refresh tokens immediately, +// use this invalidate token API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html func New(tp elastictransport.Interface) *InvalidateToken { 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 3e3c8c6d84..6295299202 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package invalidatetoken @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L43 type Request struct { RealmName *string `json:"realm_name,omitempty"` RefreshToken *string `json:"refresh_token,omitempty"` 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 00f43c9410..46393fd581 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package invalidatetoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5baf9e6d07..b35be8fe64 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Exchanges an OpenID Connection authentication response message for an // Elasticsearch access token and refresh token pair 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 2164a05fad..3f20f89828 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Invalidates a refresh token and access token that was generated from the // OpenID Connect Authenticate API 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 614d56928a..e7c42b2eeb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates an OAuth 2.0 authentication request as a URL string package oidcprepareauthentication 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 7b3c21c260..856597a6c8 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Adds or updates application privileges. +// Create or update application privileges. package putprivileges import ( @@ -74,7 +74,7 @@ func NewPutPrivilegesFunc(tp elastictransport.Interface) NewPutPrivileges { } } -// Adds or updates application privileges. +// Create or update application privileges. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html func New(tp elastictransport.Interface) *PutPrivileges { 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 ad6e281688..4f09f8c91b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putprivileges @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L38 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 02f358a24c..4b40d88b99 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 715471a877..12e818abf6 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,12 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// The role management APIs are generally the preferred way to manage roles, -// rather than using file-based role management. +// Create or update roles. +// +// The role management APIs are generally the preferred way to manage roles in +// the native realm, rather than using file-based role management. // The create or update roles API cannot update roles that are defined in roles // files. +// File-based role management is not available in Elastic Serverless. package putrole import ( @@ -86,10 +89,13 @@ func NewPutRoleFunc(tp elastictransport.Interface) NewPutRole { } } -// The role management APIs are generally the preferred way to manage roles, -// rather than using file-based role management. +// Create or update roles. +// +// The role management APIs are generally the preferred way to manage roles in +// the native realm, rather than using file-based role management. // The create or update roles API cannot update roles that are defined in roles // files. +// File-based role management is not available in Elastic Serverless. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html func New(tp elastictransport.Interface) *PutRole { @@ -431,6 +437,14 @@ func (r *PutRole) Metadata(metadata types.Metadata) *PutRole { return r } +// RemoteIndices A list of remote indices permissions entries. +// API name: remote_indices +func (r *PutRole) RemoteIndices(remoteindices ...types.RemoteIndicesPrivileges) *PutRole { + r.req.RemoteIndices = remoteindices + + return r +} + // RunAs A list of users that the owners of this role can impersonate. *Note*: in // Serverless, the run-as feature is disabled. For API compatibility, you can // still specify an empty `run_as` field, but a non-empty list will be rejected. 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 4008c40143..007d2576af 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putrole @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_role/SecurityPutRoleRequest.ts#L30-L84 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/put_role/SecurityPutRoleRequest.ts#L31-L95 type Request struct { // Applications A list of application privilege entries. @@ -53,6 +53,8 @@ type Request struct { // Metadata Optional metadata. Within the metadata object, keys that begin with an // underscore (`_`) are reserved for system use. Metadata types.Metadata `json:"metadata,omitempty"` + // RemoteIndices A list of remote indices permissions entries. + RemoteIndices []types.RemoteIndicesPrivileges `json:"remote_indices,omitempty"` // RunAs A list of users that the owners of this role can impersonate. *Note*: in // Serverless, the run-as feature is disabled. For API compatibility, you can // still specify an empty `run_as` field, but a non-empty list will be rejected. @@ -142,6 +144,11 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Metadata", err) } + case "remote_indices": + if err := dec.Decode(&s.RemoteIndices); err != nil { + return fmt.Errorf("%s | %w", "RemoteIndices", err) + } + case "run_as": if err := dec.Decode(&s.RunAs); err != nil { return fmt.Errorf("%s | %w", "RunAs", err) 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 4903571a98..49cdb01c78 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_role/SecurityPutRoleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 94130ad689..6cdd80e711 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,9 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates and updates role mappings. +// Create or update role mappings. +// +// Role mappings define which roles are assigned to each user. +// Each mapping has rules that identify users and a list of roles that are +// granted to those users. +// The role mapping APIs are generally the preferred way to manage role mappings +// rather than using role mapping files. The create or update role mappings API +// cannot update role mappings that are defined in role mapping files. +// +// This API does not create roles. Rather, it maps users to existing roles. +// Roles can be created by using the create or update roles API or roles files. package putrolemapping import ( @@ -82,7 +92,17 @@ func NewPutRoleMappingFunc(tp elastictransport.Interface) NewPutRoleMapping { } } -// Creates and updates role mappings. +// Create or update role mappings. +// +// Role mappings define which roles are assigned to each user. +// Each mapping has rules that identify users and a list of roles that are +// granted to those users. +// The role mapping APIs are generally the preferred way to manage role mappings +// rather than using role mapping files. The create or update role mappings API +// cannot update role mappings that are defined in role mapping files. +// +// This API does not create roles. Rather, it maps users to existing roles. +// Roles can be created by using the create or update roles API or roles files. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html func New(tp elastictransport.Interface) *PutRoleMapping { 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 2608f9cef4..98b6c901f8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putrolemapping @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L56 type Request struct { Enabled *bool `json:"enabled,omitempty"` Metadata types.Metadata `json:"metadata,omitempty"` 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 43b37e6b25..3d38e17755 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putrolemapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1dbf56abd9..0548e2ed8c 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,10 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Adds and updates users in the native realm. These users are commonly referred -// to as native users. +// Create or update users. +// +// A password is required for adding a new user but is optional when updating an +// existing user. +// To change a user’s password without updating any other fields, use the change +// password API. package putuser import ( @@ -83,8 +87,12 @@ func NewPutUserFunc(tp elastictransport.Interface) NewPutUser { } } -// Adds and updates users in the native realm. These users are commonly referred -// to as native users. +// Create or update users. +// +// A password is required for adding a new user but is optional when updating an +// existing user. +// To change a user’s password without updating any other fields, use the change +// password API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html func New(tp elastictransport.Interface) *PutUser { 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 37b1c3b984..3409833a9c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putuser @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_user/SecurityPutUserRequest.ts#L23-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/put_user/SecurityPutUserRequest.ts#L23-L48 type Request struct { Email *string `json:"email,omitempty"` Enabled *bool `json:"enabled,omitempty"` 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 d32db134b8..56860b9b82 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putuser // Response holds the response body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_user/SecurityPutUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 37e22bcc66..31940615d6 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information for API keys in a paginated manner. You can optionally +// Find API keys with a query. +// +// Get a paginated list of API keys and their information. You can optionally // filter the results with a query. package queryapikeys @@ -74,7 +76,9 @@ func NewQueryApiKeysFunc(tp elastictransport.Interface) NewQueryApiKeys { } } -// Retrieves information for API keys in a paginated manner. You can optionally +// Find API keys with a query. +// +// Get a paginated list of API keys and their information. You can optionally // filter the results with a query. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-api-key.html 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 afbbe276f7..6d34c14773 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package queryapikeys @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L101 type Request struct { // Aggregations Any aggregations to run over the corpus of returned API keys. 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 ebb2e135ae..f03f5d4a86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package queryapikeys @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45 type Response struct { // Aggregations The aggregations result, if requested. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/query_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/query_role.go index d35b20ab8c..caefd6025d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/query_role.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/query_role.go @@ -16,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves roles in a paginated manner. You can optionally filter the results -// with a query. +// Find roles with a query. +// +// Get roles in a paginated manner. You can optionally filter the results with a +// query. package queryrole import ( @@ -74,8 +76,10 @@ func NewQueryRoleFunc(tp elastictransport.Interface) NewQueryRole { } } -// Retrieves roles in a paginated manner. You can optionally filter the results -// with a query. +// Find roles with a query. +// +// Get roles in a paginated manner. You can optionally filter the results with a +// query. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-role.html func New(tp elastictransport.Interface) *QueryRole { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/request.go index e257e4c842..a1b1521138 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package queryrole @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryrole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_role/QueryRolesRequest.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_role/QueryRolesRequest.ts#L25-L69 type Request struct { // From Starting document offset. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/response.go index beb398be32..b403201b2b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package queryrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package queryrole // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_role/QueryRolesResponse.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_role/QueryRolesResponse.ts#L23-L38 type Response struct { // Count The number of roles returned in the response. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/query_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/query_user.go index 81b39cff94..64652ec6c5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/query_user.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/query_user.go @@ -16,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information for Users in a paginated manner. You can optionally -// filter the results with a query. +// Find users with a query. +// +// Get information for users in a paginated manner. +// You can optionally filter the results with a query. package queryuser import ( @@ -74,8 +76,10 @@ func NewQueryUserFunc(tp elastictransport.Interface) NewQueryUser { } } -// Retrieves information for Users in a paginated manner. You can optionally -// filter the results with a query. +// Find users with a query. +// +// Get information for users in a paginated manner. +// You can optionally filter the results with a query. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-user.html func New(tp elastictransport.Interface) *QueryUser { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/request.go index 1ba09e1a96..b9a4a850ca 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package queryuser @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryuser // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_user/SecurityQueryUserRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_user/SecurityQueryUserRequest.ts#L25-L75 type Request struct { // From Starting document offset. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/response.go index f5539f0adb..650103e347 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package queryuser @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package queryuser // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_user/SecurityQueryUserResponse.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_user/SecurityQueryUserResponse.ts#L23-L38 type Response struct { // Count The number of users returned in the response. 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 2197426676..8050354d72 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samlauthenticate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_authenticate/Request.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/saml_authenticate/Request.ts#L23-L40 type Request struct { // Content The SAML response as it was sent by the user’s browser, usually a Base64 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 eabda00db5..5f6b29280a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samlauthenticate // Response holds the response body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_authenticate/Response.ts#L22-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e85a6c59d4..a2fd39daf8 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Submits a SAML Response message to Elasticsearch for consumption. +// Authenticate SAML. +// +// Submits a SAML response message to Elasticsearch for consumption. package samlauthenticate import ( @@ -73,7 +75,9 @@ func NewSamlAuthenticateFunc(tp elastictransport.Interface) NewSamlAuthenticate } } -// Submits a SAML Response message to Elasticsearch for consumption. +// Authenticate SAML. +// +// Submits a SAML response message to Elasticsearch for consumption. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-authenticate.html func New(tp elastictransport.Interface) *SamlAuthenticate { 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 21e5d9b797..8dbfb682a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samlcompletelogout @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlcompletelogout // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_complete_logout/Request.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/saml_complete_logout/Request.ts#L23-L42 type Request struct { // Content If the SAML IdP sends the logout response with the HTTP-Post binding, this 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 c07ccb4673..2199f98a7c 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,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Logout of SAML completely. +// // Verifies the logout response sent from the SAML IdP. package samlcompletelogout @@ -72,6 +74,8 @@ func NewSamlCompleteLogoutFunc(tp elastictransport.Interface) NewSamlCompleteLog } } +// Logout of SAML completely. +// // Verifies the logout response sent from the SAML IdP. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-complete-logout.html 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 ec9f00c75e..daa954ae23 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samlinvalidate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_invalidate/Request.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/saml_invalidate/Request.ts#L22-L45 type Request struct { // Acs The Assertion Consumer Service URL that matches the one of the SAML realm in 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 1ab3020c75..52c0db2ae0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samlinvalidate // Response holds the response body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_invalidate/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2abd559acd..8226499435 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,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Invalidate SAML. +// // Submits a SAML LogoutRequest message to Elasticsearch for consumption. package samlinvalidate @@ -73,6 +75,8 @@ func NewSamlInvalidateFunc(tp elastictransport.Interface) NewSamlInvalidate { } } +// Invalidate SAML. +// // Submits a SAML LogoutRequest message to Elasticsearch for consumption. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-invalidate.html 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 cb10f778fa..940153e561 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samllogout @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_logout/Request.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/saml_logout/Request.ts#L22-L43 type Request struct { // RefreshToken The refresh token that was returned as a response to calling the SAML 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 4a4aea83f1..207aeb0008 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samllogout // Response holds the response body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_logout/Response.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 eb1e9ffdc7..c01073a126 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,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Logout of SAML. +// // Submits a request to invalidate an access token and refresh token. package samllogout @@ -73,6 +75,8 @@ func NewSamlLogoutFunc(tp elastictransport.Interface) NewSamlLogout { } } +// Logout of SAML. +// // Submits a request to invalidate an access token and refresh token. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-logout.html 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 95b3f20444..69a8ee082a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samlprepareauthentication @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_prepare_authentication/Request.ts#L22-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/saml_prepare_authentication/Request.ts#L22-L48 type Request struct { // Acs The Assertion Consumer Service URL that matches the one of the SAML realms in 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 a91dba98d1..262151102b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samlprepareauthentication // Response holds the response body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_prepare_authentication/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0ed61a6cf7..40181f92da 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Creates a SAML authentication request () as a URL string, based -// on the configuration of the respective SAML realm in Elasticsearch. +// Prepare SAML authentication. +// +// Creates a SAML authentication request (``) as a URL string, +// based on the configuration of the respective SAML realm in Elasticsearch. package samlprepareauthentication import ( @@ -74,8 +76,10 @@ func NewSamlPrepareAuthenticationFunc(tp elastictransport.Interface) NewSamlPrep } } -// Creates a SAML authentication request () as a URL string, based -// on the configuration of the respective SAML realm in Elasticsearch. +// Prepare SAML authentication. +// +// Creates a SAML authentication request (``) as a URL string, +// based on the configuration of the respective SAML realm in Elasticsearch. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-prepare-authentication.html func New(tp elastictransport.Interface) *SamlPrepareAuthentication { 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 4b091b2af0..ab1b6084a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package samlserviceprovidermetadata // Response holds the response body struct for the package samlserviceprovidermetadata // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_service_provider_metadata/Response.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 91b15e62c1..099bce88cd 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,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create SAML service provider metadata. +// // Generate SAML metadata for a SAML 2.0 Service Provider. package samlserviceprovidermetadata @@ -76,6 +78,8 @@ func NewSamlServiceProviderMetadataFunc(tp elastictransport.Interface) NewSamlSe } } +// Create SAML service provider metadata. +// // Generate SAML metadata for a SAML 2.0 Service Provider. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-sp-metadata.html 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 754699f5b2..1d834b9a4a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package suggestuserprofiles @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/suggest_user_profiles/Request.ts#L24-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/suggest_user_profiles/Request.ts#L24-L68 type Request struct { // Data List of filters for the `data` field of the profile document. 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 df9e9bf307..c9a5b7b613 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package suggestuserprofiles @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/suggest_user_profiles/Response.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2dc0a4e858..6fe0e71b8f 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,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Suggest a user profile. +// // Get suggestions for user profiles that match specified search criteria. package suggestuserprofiles @@ -73,6 +75,8 @@ func NewSuggestUserProfilesFunc(tp elastictransport.Interface) NewSuggestUserPro } } +// Suggest a user profile. +// // Get suggestions for user profiles that match specified search criteria. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-suggest-user-profile.html 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 6ff9acefab..13d698741c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/update_api_key/Request.ts#L26-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/update_api_key/Request.ts#L26-L67 type Request struct { // Expiration Expiration time for the API key. 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 a259710678..cc0195cd0d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateapikey // Response holds the response body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/update_api_key/Response.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d8c18b413d..64e77fd565 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,8 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Update an API key. +// // Updates attributes of an existing API key. // Users can only update API keys that they created or that were granted to // them. @@ -104,6 +106,8 @@ func NewUpdateApiKeyFunc(tp elastictransport.Interface) NewUpdateApiKey { } } +// Update an API key. +// // Updates attributes of an existing API key. // Users can only update API keys that they created or that were granted to // them. 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 b2745c0436..de2c8093b9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Update settings for the security system index package updatesettings 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 04f41a4be9..7e48e13eea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateuserprofiledata @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/update_user_profile_data/Request.ts#L27-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/update_user_profile_data/Request.ts#L27-L72 type Request struct { // Data Non-searchable data that you want to associate with the user profile. 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 225e089478..df748240c5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updateuserprofiledata // Response holds the response body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/update_user_profile_data/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 357ddabc47..def828945b 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Updates specific data for the user profile that's associated with the -// specified unique ID. +// Update user profile data. +// +// Update specific data for the user profile that is associated with a unique +// ID. package updateuserprofiledata import ( @@ -83,8 +85,10 @@ func NewUpdateUserProfileDataFunc(tp elastictransport.Interface) NewUpdateUserPr } } -// Updates specific data for the user profile that's associated with the -// specified unique ID. +// Update user profile data. +// +// Update specific data for the user profile that is associated with a unique +// ID. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-user-profile-data.html func New(tp elastictransport.Interface) *UpdateUserProfileData { 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 2a9b5c2cc2..e406b996db 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Removes a node from the shutdown list. Designed for indirect use by ECE/ESS // and ECK. Direct use is not supported. 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 d4838c21a8..aa834d0b05 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletenode // Response holds the response body struct for the package deletenode // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d29e0053d8..5d073669f2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // 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 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 fa6efb7a1a..b4745cf0f4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getnode @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getnode // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d1972bfa14..78ccd671df 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Adds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. // Direct use is not supported. 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 cfcaa03dd1..cbf7ea18f4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putnode @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L76 type Request struct { // AllocationDelay Only valid if type is restart. 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 82edb515cc..ae0e98b430 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putnode // Response holds the response body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1445fa4898..b02902a648 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes an existing snapshot lifecycle policy. package deletelifecycle 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 027ab550b7..d6c4fa79fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 89965faeef..4de41b8dc0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Immediately creates a snapshot according to the lifecycle policy, without // waiting for the scheduled time. 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 25558ededd..cee2d8b7c1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package executelifecycle // Response holds the response body struct for the package executelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b282d2d3a2..181df1629d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes any snapshots that are expired according to the policy's retention // rules. 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 4e8bc6c6a8..46b97d0166 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package executeretention // Response holds the response body struct for the package executeretention // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/execute_retention/ExecuteRetentionResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4cab46ddac..10b57a6792 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves one or more snapshot lifecycle policy definitions and information // about the latest snapshot attempts. 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 720d539702..23f11d7d4a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getlifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 17b3fab713..3f0fe19b68 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns global and policy-level statistics about actions taken by snapshot // lifecycle management. 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 cf07ab3a3a..ab19827f14 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6bc8b01ab7..b4d31d7084 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves the status of snapshot lifecycle management (SLM). package getstatus 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 b27e662b54..f3f0a01da4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getstatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c2461e2bbf..de55481e0f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates or updates a snapshot lifecycle policy. package 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 046377dcd0..6adb5ba79d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putlifecycle @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L72 type Request struct { // Config Configuration for each snapshot created by the policy. 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 c4ae90bc22..177d830172 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c2dc7acf46..10d52d989f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 677b91f73b..454a2a1302 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Turns on snapshot lifecycle management (SLM). package start 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 3ed31afbee..6ccbd6ebfe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 53de9fe100..acd14b483f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Turns off snapshot lifecycle management (SLM). package stop 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 cbba3d7e60..5fd077a5c2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Triggers the review of a snapshot repository’s contents and deletes any stale // data not referenced by existing snapshots. 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 7a7cd3f819..d3fd4eecbf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package cleanuprepository @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package cleanuprepository // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5c304ad78f..531b33a3f3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Clones indices from one snapshot into another snapshot in the same // repository. 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 9d40b99fd0..8d8ac1fc94 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clone @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L42 type Request struct { Indices string `json:"indices"` } 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 d1aea6f01e..425bf16fb6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/clone/SnapshotCloneResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c43e7f5b24..f3c96c6bde 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a snapshot in a repository. package create 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 ca71dcef8f..0ae9ae21b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package create @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L81 type Request struct { // FeatureStates Feature states to include in the snapshot. Each feature state includes one or 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 4520594db4..471d2054b6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package create @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/create/SnapshotCreateResponse.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e6ce30e399..d8f5603cb8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a repository. package createrepository 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 c72d260ad0..d54d81547c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package createrepository @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d7fc4a5467..156d407e7c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package createrepository // Response holds the response body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ab5e8ef3bc..2c8cfd5c2b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes one or more snapshots. package delete 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 2020e5d02e..844ea00f77 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/delete/SnapshotDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 108a0e08b9..86edc93de0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes a repository. package deleterepository 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 84da015f8b..3e78a91165 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleterepository // Response holds the response body struct for the package deleterepository // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 da41dcaa5a..cda2f441a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about a snapshot. package get 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 6f94e24934..ab2233667f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/get/SnapshotGetResponse.ts#L25-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ab31517289..95dbafc9f0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about a repository. package getrepository 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 a79d81014d..d020f75a5d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getrepository @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package getrepository // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25 type Response map[string]types.Repository diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity/repository_verify_integrity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity/repository_verify_integrity.go new file mode 100644 index 0000000000..ee5a62aa4b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity/repository_verify_integrity.go @@ -0,0 +1,408 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Verifies the integrity of the contents of a snapshot repository +package repositoryverifyintegrity + +import ( + "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 ( + repositoryMask = 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 RepositoryVerifyIntegrity struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + repository string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewRepositoryVerifyIntegrity type alias for index. +type NewRepositoryVerifyIntegrity func(repository string) *RepositoryVerifyIntegrity + +// NewRepositoryVerifyIntegrityFunc returns a new instance of RepositoryVerifyIntegrity with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewRepositoryVerifyIntegrityFunc(tp elastictransport.Interface) NewRepositoryVerifyIntegrity { + return func(repository string) *RepositoryVerifyIntegrity { + n := New(tp) + + n._repository(repository) + + return n + } +} + +// Verifies the integrity of the contents of a snapshot repository +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html +func New(tp elastictransport.Interface) *RepositoryVerifyIntegrity { + r := &RepositoryVerifyIntegrity{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *RepositoryVerifyIntegrity) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + r.path.Scheme = "http" + + switch { + case r.paramSet == repositoryMask: + path.WriteString("/") + path.WriteString("_snapshot") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "repository", r.repository) + } + path.WriteString(r.repository) + path.WriteString("/") + path.WriteString("_verify_integrity") + + 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("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 RepositoryVerifyIntegrity) 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, "snapshot.repository_verify_integrity") + 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, "snapshot.repository_verify_integrity") + if reader := instrument.RecordRequestBody(ctx, "snapshot.repository_verify_integrity", 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", "snapshot.repository_verify_integrity") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the RepositoryVerifyIntegrity 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 repositoryverifyintegrity.Response +func (r RepositoryVerifyIntegrity) 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, "snapshot.repository_verify_integrity") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := new(Response) + + 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 +} + +// 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 RepositoryVerifyIntegrity) 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, "snapshot.repository_verify_integrity") + 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 RepositoryVerifyIntegrity 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 RepositoryVerifyIntegrity headers map. +func (r *RepositoryVerifyIntegrity) Header(key, value string) *RepositoryVerifyIntegrity { + r.headers.Set(key, value) + + return r +} + +// Repository A repository name +// API Name: repository +func (r *RepositoryVerifyIntegrity) _repository(repository string) *RepositoryVerifyIntegrity { + r.paramSet |= repositoryMask + r.repository = repository + + return r +} + +// MetaThreadPoolConcurrency Number of threads to use for reading metadata +// API name: meta_thread_pool_concurrency +func (r *RepositoryVerifyIntegrity) MetaThreadPoolConcurrency(metathreadpoolconcurrency int) *RepositoryVerifyIntegrity { + r.values.Set("meta_thread_pool_concurrency", strconv.Itoa(metathreadpoolconcurrency)) + + return r +} + +// BlobThreadPoolConcurrency Number of threads to use for reading blob contents +// API name: blob_thread_pool_concurrency +func (r *RepositoryVerifyIntegrity) BlobThreadPoolConcurrency(blobthreadpoolconcurrency int) *RepositoryVerifyIntegrity { + r.values.Set("blob_thread_pool_concurrency", strconv.Itoa(blobthreadpoolconcurrency)) + + return r +} + +// SnapshotVerificationConcurrency Number of snapshots to verify concurrently +// API name: snapshot_verification_concurrency +func (r *RepositoryVerifyIntegrity) SnapshotVerificationConcurrency(snapshotverificationconcurrency int) *RepositoryVerifyIntegrity { + r.values.Set("snapshot_verification_concurrency", strconv.Itoa(snapshotverificationconcurrency)) + + return r +} + +// IndexVerificationConcurrency Number of indices to verify concurrently +// API name: index_verification_concurrency +func (r *RepositoryVerifyIntegrity) IndexVerificationConcurrency(indexverificationconcurrency int) *RepositoryVerifyIntegrity { + r.values.Set("index_verification_concurrency", strconv.Itoa(indexverificationconcurrency)) + + return r +} + +// IndexSnapshotVerificationConcurrency Number of snapshots to verify concurrently within each index +// API name: index_snapshot_verification_concurrency +func (r *RepositoryVerifyIntegrity) IndexSnapshotVerificationConcurrency(indexsnapshotverificationconcurrency int) *RepositoryVerifyIntegrity { + r.values.Set("index_snapshot_verification_concurrency", strconv.Itoa(indexsnapshotverificationconcurrency)) + + return r +} + +// MaxFailedShardSnapshots Maximum permitted number of failed shard snapshots +// API name: max_failed_shard_snapshots +func (r *RepositoryVerifyIntegrity) MaxFailedShardSnapshots(maxfailedshardsnapshots int) *RepositoryVerifyIntegrity { + r.values.Set("max_failed_shard_snapshots", strconv.Itoa(maxfailedshardsnapshots)) + + return r +} + +// VerifyBlobContents Whether to verify the contents of individual blobs +// API name: verify_blob_contents +func (r *RepositoryVerifyIntegrity) VerifyBlobContents(verifyblobcontents bool) *RepositoryVerifyIntegrity { + r.values.Set("verify_blob_contents", strconv.FormatBool(verifyblobcontents)) + + return r +} + +// MaxBytesPerSec Rate limit for individual blob verification +// API name: max_bytes_per_sec +func (r *RepositoryVerifyIntegrity) MaxBytesPerSec(maxbytespersec string) *RepositoryVerifyIntegrity { + r.values.Set("max_bytes_per_sec", maxbytespersec) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *RepositoryVerifyIntegrity) ErrorTrace(errortrace bool) *RepositoryVerifyIntegrity { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *RepositoryVerifyIntegrity) FilterPath(filterpaths ...string) *RepositoryVerifyIntegrity { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *RepositoryVerifyIntegrity) Human(human bool) *RepositoryVerifyIntegrity { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *RepositoryVerifyIntegrity) Pretty(pretty bool) *RepositoryVerifyIntegrity { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity/response.go new file mode 100644 index 0000000000..10968e3bd1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity/response.go @@ -0,0 +1,35 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package repositoryverifyintegrity + +import ( + "encoding/json" +) + +// Response holds the response body struct for the package repositoryverifyintegrity +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L24 + +type Response = json.RawMessage + +func NewResponse() *Response { + return new(Response) +} 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 8dae11fb12..2ea6863af4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package restore @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L51 type Request struct { FeatureStates []string `json:"feature_states,omitempty"` IgnoreIndexSettings []string `json:"ignore_index_settings,omitempty"` 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 18a3a01854..811389507e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package restore @@ -26,9 +26,10 @@ import ( // Response holds the response body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L28 type Response struct { - Snapshot types.SnapshotRestore `json:"snapshot"` + Accepted *bool `json:"accepted,omitempty"` + Snapshot *types.SnapshotRestore `json:"snapshot,omitempty"` } // NewResponse returns a Response 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 e8bff75239..a678c970bb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Restores a snapshot. package restore 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 905d9be78b..88cbccbf35 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package status @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/status/SnapshotStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bd3a1bdcd2..cd81b02921 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns information about the status of a snapshot. package status 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 b468f6b9df..d55f830f56 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package verifyrepository @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package verifyrepository // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 698a74fefb..e0917e1d42 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Verifies a repository. package verifyrepository 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 e21447cfd4..318c5e4aec 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Clears the SQL cursor package 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 0bfd2c556e..f0746e2610 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearcursor @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L34 type Request struct { // Cursor Cursor to clear. 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 87111afb00..4b84007162 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package clearcursor // Response holds the response body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 395da47f5f..9bb59d2c61 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes an async SQL search or a stored synchronous SQL search. If the search // is still running, the API cancels it. 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 f83b52197a..8e6c396501 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deleteasync // Response holds the response body struct for the package deleteasync // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fd2f9bcdcf..77a294207e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the current status and available results for an async SQL search or // stored synchronous SQL search 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 8543d0c006..e81c0390b4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getasync @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package getasync // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/get_async/SqlGetAsyncResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dcb44311ca..fd8b46a9fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Returns the current status of an async SQL search or a stored synchronous SQL // search 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 954b9c2146..b84db87f53 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getasyncstatus // Response holds the response body struct for the package getasyncstatus // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2629ac0054..2e8156d2e4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Executes a SQL request package query @@ -35,6 +35,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sqlformat" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -292,8 +293,8 @@ func (r *Query) Header(key, value string) *Query { // Format Format for the response. // API name: format -func (r *Query) Format(format string) *Query { - r.values.Set("format", format) +func (r *Query) Format(format sqlformat.SqlFormat) *Query { + r.values.Set("format", format.String()) return r } 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 979f7e6695..c954d7c2d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package query @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/query/QuerySqlRequest.ts#L28-L122 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/sql/query/QuerySqlRequest.ts#L28-L122 type Request struct { // Catalog Default catalog (cluster) for queries. If unspecified, the queries execute on 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 8ef4031dff..4418a7a6ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package query @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/query/QuerySqlResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8ae2d1c579..f671d8cbaa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package translate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/translate/TranslateSqlRequest.ts#L25-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/sql/translate/TranslateSqlRequest.ts#L25-L54 type Request struct { // FetchSize The maximum number of rows (or entries) to return in one response. 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 b6a6bf7f5a..794b2ab6a4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package translate @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/translate/TranslateSqlResponse.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/sql/translate/TranslateSqlResponse.ts#L27-L37 type Response struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Fields []types.FieldAndFormat `json:"fields,omitempty"` 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 194d209f07..66e1a18b0a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Translates SQL into Elasticsearch queries package 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 b297742d63..a06abf3427 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,10 +16,38 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Retrieves information about the X.509 certificates used to encrypt +// Get SSL certificates. +// +// Get information about the X.509 certificates that are used to encrypt // communications in the cluster. +// The API returns a list that includes certificates from all TLS contexts +// including: +// +// - Settings for transport and HTTP interfaces +// - TLS settings that are used within authentication realms +// - TLS settings for remote monitoring exporters +// +// The list includes certificates that are used for configuring trust, such as +// those configured in the `xpack.security.transport.ssl.truststore` and +// `xpack.security.transport.ssl.certificate_authorities` settings. +// It also includes certificates that are used for configuring server identity, +// such as `xpack.security.http.ssl.keystore` and +// `xpack.security.http.ssl.certificate settings`. +// +// The list does not include certificates that are sourced from the default SSL +// context of the Java Runtime Environment (JRE), even if those certificates are +// in use within Elasticsearch. +// +// NOTE: When a PKCS#11 token is configured as the truststore of the JRE, the +// API returns all the certificates that are included in the PKCS#11 token +// irrespective of whether these are used in the Elasticsearch TLS +// configuration. +// +// If Elasticsearch is configured to use a keystore or truststore, the API +// output includes all certificates in that store, even though some of the +// certificates might not be in active use within the cluster. package certificates import ( @@ -69,8 +97,36 @@ func NewCertificatesFunc(tp elastictransport.Interface) NewCertificates { } } -// Retrieves information about the X.509 certificates used to encrypt +// Get SSL certificates. +// +// Get information about the X.509 certificates that are used to encrypt // communications in the cluster. +// The API returns a list that includes certificates from all TLS contexts +// including: +// +// - Settings for transport and HTTP interfaces +// - TLS settings that are used within authentication realms +// - TLS settings for remote monitoring exporters +// +// The list includes certificates that are used for configuring trust, such as +// those configured in the `xpack.security.transport.ssl.truststore` and +// `xpack.security.transport.ssl.certificate_authorities` settings. +// It also includes certificates that are used for configuring server identity, +// such as `xpack.security.http.ssl.keystore` and +// `xpack.security.http.ssl.certificate settings`. +// +// The list does not include certificates that are sourced from the default SSL +// context of the Java Runtime Environment (JRE), even if those certificates are +// in use within Elasticsearch. +// +// NOTE: When a PKCS#11 token is configured as the truststore of the JRE, the +// API returns all the certificates that are included in the PKCS#11 token +// irrespective of whether these are used in the Elasticsearch TLS +// configuration. +// +// If Elasticsearch is configured to use a keystore or truststore, the API +// output includes all certificates in that store, even though some of the +// certificates might not be in active use within the cluster. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html func New(tp elastictransport.Interface) *Certificates { 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 4bb13b45fa..4ceec1bed0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package certificates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package certificates // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0e79c8e9a1..c1ec88fbeb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes a synonym set package deletesynonym 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 74576d9eff..f571f689c1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletesynonym // Response holds the response body struct for the package deletesynonym // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4f0882c889..55528066b2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deletes a synonym rule in a synonym set package deletesynonymrule 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 af6e4cbc45..4c2ddd5ed2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletesynonymrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package deletesynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 51690335dd..1e6e826d72 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves a synonym set package getsynonym 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 96606cec2d..48099b74c2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getsynonym @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/get_synonym/SynonymsGetResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 94e8a22226..1e95a600ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves a synonym rule from a synonym set package getsynonymrule 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 a0a47a5cb4..3cf30232ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getsynonymrule // Response holds the response body struct for the package getsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 197d1ff28a..1cbb5779c5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves a summary of all defined synonym sets package getsynonymssets 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 bfc25b2121..4b6e36d76d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getsynonymssets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsynonymssets // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 56822e6bde..cd5cd45b41 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates or updates a synonym set. package 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 424d984fe6..33d72b2719 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,20 +16,23 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putsynonym import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) // Request holds the request body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L42 type Request struct { // SynonymsSet The synonym set information to update @@ -54,3 +57,38 @@ func (r *Request) FromJSON(data string) (*Request, error) { 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 "synonyms_set": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := types.NewSynonymRule() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "SynonymsSet", err) + } + + s.SynonymsSet = append(s.SynonymsSet, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.SynonymsSet); err != nil { + return fmt.Errorf("%s | %w", "SynonymsSet", err) + } + } + + } + } + return nil +} 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 2b2f5e5e01..11e410ccb1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putsynonym @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28 type Response struct { ReloadAnalyzersDetails types.ReloadResult `json:"reload_analyzers_details"` Result result.Result `json:"result"` 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 1ef7db3513..bc4794eb0c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates or updates a synonym rule in a synonym set package putsynonymrule 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 10d091cc55..d154c6fe3f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putsynonymrule @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L47 type Request struct { Synonyms string `json:"synonyms"` } 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 5dd9bcc468..2f501bf7c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putsynonymrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 aa4da0f90f..1e95f943df 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Cancels a task, if it can be cancelled through an API. package cancel 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 86e9058525..0c56898dcf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package cancel @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package cancel // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/tasks/cancel/CancelTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3a0877ed75..7a52bae5c9 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Returns information about a task. +// Get task information. +// Returns information about the tasks currently executing in the cluster. package get import ( @@ -76,7 +77,8 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Returns information about a task. +// Get task information. +// Returns information about the tasks currently executing in the cluster. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html func New(tp elastictransport.Interface) *Get { 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 139b6dc8df..b00f2a23b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package get @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/tasks/get/GetTaskResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 39ab753d0b..699b813070 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // The task management API returns information about tasks currently executing // on one or more nodes in the cluster. 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 25e5e9a9ff..356df3b1a0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package list @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/tasks/list/ListTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/findfieldstructure/find_field_structure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findfieldstructure/find_field_structure.go index 5a3b658457..b74927d97b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findfieldstructure/find_field_structure.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findfieldstructure/find_field_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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Finds the structure of a text field in an index. package findfieldstructure diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure/find_message_structure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure/find_message_structure.go index 47bb9cb4f2..17c8568b00 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure/find_message_structure.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure/find_message_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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Finds the structure of a list of messages. The messages must contain data // that is suitable to be ingested into Elasticsearch. 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 75cfdb8108..40e568a85f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // 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 2c40258987..595a813eae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package findstructure @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 46228fc5ff..4eb97f2ae2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package findstructure @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/find_structure/FindStructureResponse.ts#L27-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b0727007ea..10f7d0d2c5 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,18 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package testgrokpattern import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" ) // Request holds the request body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L44 type Request struct { // GrokPattern Grok pattern to run on the text. @@ -54,3 +57,32 @@ func (r *Request) FromJSON(data string) (*Request, error) { 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 "grok_pattern": + if err := dec.Decode(&s.GrokPattern); err != nil { + return fmt.Errorf("%s | %w", "GrokPattern", err) + } + + case "text": + if err := dec.Decode(&s.Text); err != nil { + return fmt.Errorf("%s | %w", "Text", err) + } + + } + } + return nil +} 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 61b464f82f..3f7578f72f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package testgrokpattern @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 85febe049b..afdf6995f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Tests a Grok pattern on some text. package testgrokpattern @@ -348,7 +348,6 @@ func (r *TestGrokPattern) Pretty(pretty bool) *TestGrokPattern { // GrokPattern Grok pattern to run on the text. // API name: grok_pattern func (r *TestGrokPattern) GrokPattern(grokpattern string) *TestGrokPattern { - r.req.GrokPattern = grokpattern return r 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 8b86afd72a..9d9941d5a0 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Delete a transform. // Deletes a transform. package deletetransform @@ -76,6 +77,7 @@ func NewDeleteTransformFunc(tp elastictransport.Interface) NewDeleteTransform { } } +// Delete a transform. // Deletes a transform. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html 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 cb680103b2..791d6e6507 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletetransform // Response holds the response body struct for the package deletetransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/delete_transform/DeleteTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/getnodestats/get_node_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/getnodestats/get_node_stats.go index 09e5f414e1..4c1a86f549 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/getnodestats/get_node_stats.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/getnodestats/get_node_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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves transform usage information for transform nodes. package getnodestats 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 58f226a43d..e686114aae 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get transforms. // Retrieves configuration information for transforms. package gettransform @@ -74,6 +75,7 @@ func NewGetTransformFunc(tp elastictransport.Interface) NewGetTransform { } } +// Get transforms. // Retrieves configuration information for transforms. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html 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 ca34792ee2..06089f7c6a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package gettransform @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform/GetTransformResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7a922c8f52..c26916ae03 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Get transform stats. // Retrieves usage information for transforms. package gettransformstats @@ -76,6 +77,7 @@ func NewGetTransformStatsFunc(tp elastictransport.Interface) NewGetTransformStat } } +// Get transform stats. // Retrieves usage information for transforms. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html 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 b103fa4908..ad947b9a9c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package gettransformstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettransformstats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ed9b748be0..3952da6590 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Previews a transform. +// Preview a transform. +// Generates a preview of the results that you will get when you create a +// transform with the same configuration. // // It returns a maximum of 100 results. The calculations are based on all the // current data in the source index. It also @@ -85,7 +87,9 @@ func NewPreviewTransformFunc(tp elastictransport.Interface) NewPreviewTransform } } -// Previews a transform. +// Preview a transform. +// Generates a preview of the results that you will get when you create a +// transform with the same configuration. // // It returns a maximum of 100 results. The calculations are based on all the // current data in the source index. It also 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 4a92b63479..806402a28e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package previewtransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L108 type Request struct { // Description Free text description of the transform. 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 6ceb847443..630fab48b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package previewtransform @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/preview_transform/PreviewTransformResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 30404ec267..98a15ded4f 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Create a transform. // Creates a transform. // // A transform copies data from source indices, transforms it, and persists it @@ -114,6 +115,7 @@ func NewPutTransformFunc(tp elastictransport.Interface) NewPutTransform { } } +// Create a transform. // Creates a transform. // // A transform copies data from source indices, transforms it, and persists it 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 62af6fea33..5fab76be9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/put_transform/PutTransformRequest.ts#L33-L122 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/transform/put_transform/PutTransformRequest.ts#L33-L123 type Request struct { // Description Free text description of the transform. 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 1736e88bef..a28994a9f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package puttransform // Response holds the response body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/put_transform/PutTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b4b0cc9bab..80a3fd04ed 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Reset a transform. // Resets a transform. // Before you can reset it, you must stop it; alternatively, use the `force` // query parameter. @@ -79,6 +80,7 @@ func NewResetTransformFunc(tp elastictransport.Interface) NewResetTransform { } } +// Reset a transform. // Resets a transform. // Before you can reset it, you must stop it; alternatively, use the `force` // query parameter. 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 c45a5e607e..e9fd83d906 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package resettransform // Response holds the response body struct for the package resettransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/reset_transform/ResetTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 65da59a6a3..9c8581ced1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package schedulenowtransform // Response holds the response body struct for the package schedulenowtransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L23 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0c1f3ef1a1..c697262d80 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Schedules now a transform. +// Schedule a transform to start now. +// Instantly runs a transform to process data. // // If you _schedule_now a transform, it will process the new data instantly, // without waiting for the configured frequency interval. After _schedule_now @@ -83,7 +84,8 @@ func NewScheduleNowTransformFunc(tp elastictransport.Interface) NewScheduleNowTr } } -// Schedules now a transform. +// Schedule a transform to start now. +// Instantly runs a transform to process data. // // If you _schedule_now a transform, it will process the new data instantly, // without waiting for the configured frequency interval. After _schedule_now 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 080ab72337..507d2f9dd6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package starttransform // Response holds the response body struct for the package starttransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/start_transform/StartTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5ceb4e5a89..9ab206c88e 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Start a transform. // Starts a transform. // // When you start a transform, it creates the destination index if it does not @@ -103,6 +104,7 @@ func NewStartTransformFunc(tp elastictransport.Interface) NewStartTransform { } } +// Start a transform. // Starts a transform. // // When you start a transform, it creates the destination index if it does not 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 04901e1f2d..6d53f149be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stoptransform // Response holds the response body struct for the package stoptransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/stop_transform/StopTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8420f86f78..c0b6ac0ae1 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Stop transforms. // Stops one or more transforms. package stoptransform @@ -76,6 +77,7 @@ func NewStopTransformFunc(tp elastictransport.Interface) NewStopTransform { } } +// Stop transforms. // Stops one or more transforms. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html 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 e6f84019b0..b265ce7631 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatetransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L105 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L106 type Request struct { // Description Free text description of the transform. 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 7c49a23bb8..229c95f8c3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package updatetransform @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/update_transform/UpdateTransformResponse.ts#L33-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 eb964017db..06b4e78258 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 +// Update a transform. // Updates certain properties of a transform. // // All updated properties except `description` do not take effect until after @@ -91,6 +92,7 @@ func NewUpdateTransformFunc(tp elastictransport.Interface) NewUpdateTransform { } } +// Update a transform. // Updates certain properties of a transform. // // All updated properties except `description` do not take effect until after 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 e54c745418..484f032f60 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package upgradetransforms // Response holds the response body struct for the package upgradetransforms // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c66873b483..8c0f79b594 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Upgrades all transforms. // This API identifies transforms that have a legacy configuration format and 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 767c7b1d72..c4d8fb5f01 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Acknowledgement type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/post/types.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fef1d06fe2..fc729aa050 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // AcknowledgeState type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L109-L112 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 6a770a58f4..018561064e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ActionStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L131-L136 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L125-L130 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 1b05d567e7..2b84d49713 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ActivationState type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Activation.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Activation.ts#L24-L27 type ActivationState struct { Active bool `json:"active"` Timestamp DateTime `json:"timestamp"` 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 24042a87dc..1140fde9a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ActivationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Activation.ts#L29-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 396e3e5ea0..41f6be3b7e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AdaptiveSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L403-L432 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L439-L468 type AdaptiveSelection struct { // AvgQueueSize The exponentially weighted moving average queue size of search requests on // the keyed node. 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 9bafa05483..06e511989f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AddAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/update_aliases/types.ts#L41-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/update_aliases/types.ts#L41-L95 type AddAction struct { // Alias Alias for the action. // Index alias names support date math. 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 e601af3984..0aa6e17755 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // AdjacencyMatrixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L577-L579 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L647-L652 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 fedf7dea5d..69a7f0dff6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AdjacencyMatrixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L55-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L60-L70 type AdjacencyMatrixAggregation struct { // Filters Filters used to create buckets. // At least one filter is required. 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 beb21b4a01..f6be6ce712 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // AdjacencyMatrixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L581-L583 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L654-L656 type AdjacencyMatrixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -498,6 +498,13 @@ func (s *AdjacencyMatrixBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 224ceedc1e..4ef5414fa9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -80,6 +80,7 @@ package types // UnmappedSignificantTermsAggregate // CompositeAggregate // FrequentItemSetsAggregate +// TimeSeriesAggregate // ScriptedMetricAggregate // TopHitsAggregate // InferenceAggregate @@ -92,5 +93,5 @@ package types // MatrixStatsAggregate // GeoLineAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L38-L123 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L38-L125 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 c87f3e4647..3d0df32278 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // AggregateMetricDoubleProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L61-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/complex.ts#L61-L66 type AggregateMetricDoubleProperty struct { DefaultMetric string `json:"default_metric"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` 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 1eec385b03..bef15f50f8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]sortorder.SortOrder // []map[string]sortorder.SortOrder // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L983-L985 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1052-L1054 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 405f51172c..c7f6b14e57 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // AggregateOutput type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4e584a3470..e30927ec42 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,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Aggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregation.ts#L20-L20 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregation.ts#L20-L20 type Aggregation struct { } 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 ce364d983b..81d5e34c7b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AggregationBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L26-L39 type AggregationBreakdown struct { BuildAggregation int64 `json:"build_aggregation"` BuildAggregationCount int64 `json:"build_aggregation_count"` 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 b6ed41e41b..8e19a87b99 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AggregationProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L77-L84 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L85-L92 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 c917b10dd8..f0cd2fefb0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,8 +31,9 @@ import ( // AggregationProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L39-L68 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L42-L76 type AggregationProfileDebug struct { + BruteForceUsed *int `json:"brute_force_used,omitempty"` BuiltBuckets *int `json:"built_buckets,omitempty"` CharsFetched *int `json:"chars_fetched,omitempty"` CollectAnalyzedCount *int `json:"collect_analyzed_count,omitempty"` @@ -41,6 +42,8 @@ type AggregationProfileDebug struct { DeferredAggregators []string `json:"deferred_aggregators,omitempty"` Delegate *string `json:"delegate,omitempty"` DelegateDebug *AggregationProfileDebug `json:"delegate_debug,omitempty"` + DynamicPruningAttempted *int `json:"dynamic_pruning_attempted,omitempty"` + DynamicPruningUsed *int `json:"dynamic_pruning_used,omitempty"` EmptyCollectorsUsed *int `json:"empty_collectors_used,omitempty"` ExtractCount *int `json:"extract_count,omitempty"` ExtractNs *int `json:"extract_ns,omitempty"` @@ -57,6 +60,7 @@ type AggregationProfileDebug struct { SegmentsWithDocCountField *int `json:"segments_with_doc_count_field,omitempty"` SegmentsWithMultiValuedOrds *int `json:"segments_with_multi_valued_ords,omitempty"` SegmentsWithSingleValuedOrds *int `json:"segments_with_single_valued_ords,omitempty"` + SkippedDueToNoData *int `json:"skipped_due_to_no_data,omitempty"` StringHashingCollectorsUsed *int `json:"string_hashing_collectors_used,omitempty"` SurvivingBuckets *int `json:"surviving_buckets,omitempty"` TotalBuckets *int `json:"total_buckets,omitempty"` @@ -78,6 +82,22 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error { switch t { + case "brute_force_used": + + 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", "BruteForceUsed", err) + } + s.BruteForceUsed = &value + case float64: + f := int(v) + s.BruteForceUsed = &f + } + case "built_buckets": var tmp any @@ -176,6 +196,38 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "DelegateDebug", err) } + case "dynamic_pruning_attempted": + + 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", "DynamicPruningAttempted", err) + } + s.DynamicPruningAttempted = &value + case float64: + f := int(v) + s.DynamicPruningAttempted = &f + } + + case "dynamic_pruning_used": + + 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", "DynamicPruningUsed", err) + } + s.DynamicPruningUsed = &value + case float64: + f := int(v) + s.DynamicPruningUsed = &f + } + case "empty_collectors_used": var tmp any @@ -411,6 +463,22 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error { s.SegmentsWithSingleValuedOrds = &f } + case "skipped_due_to_no_data": + + 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", "SkippedDueToNoData", err) + } + s.SkippedDueToNoData = &value + case float64: + f := int(v) + s.SkippedDueToNoData = &f + } + case "string_hashing_collectors_used": var tmp any 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 f3093f61bd..8f39940500 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDelegateDebugFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L70-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L78-L83 type AggregationProfileDelegateDebugFilter struct { Query *string `json:"query,omitempty"` ResultsFromMetadata *int `json:"results_from_metadata,omitempty"` 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 09f4a50513..4611ee4271 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L674-L687 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L691-L704 type AggregationRange struct { // From Start of the range (inclusive). From *Float64 `json:"from,omitempty"` @@ -57,19 +57,8 @@ func (s *AggregationRange) UnmarshalJSON(data []byte) error { switch t { case "from": - 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 + if err := dec.Decode(&s.From); err != nil { + return fmt.Errorf("%s | %w", "From", err) } case "key": @@ -85,19 +74,8 @@ func (s *AggregationRange) UnmarshalJSON(data []byte) error { s.Key = &o case "to": - 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 + if err := dec.Decode(&s.To); err != nil { + return fmt.Errorf("%s | %w", "To", err) } } 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 9e6a087ebc..a67c2fb831 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Aggregations type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/AggregationContainer.ts#L105-L514 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/AggregationContainer.ts#L107-L533 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 @@ -223,6 +223,10 @@ type Aggregations struct { // PercentilesBucket A sibling pipeline aggregation which calculates percentiles across all bucket // of a specified metric in a sibling aggregation. PercentilesBucket *PercentilesBucketAggregation `json:"percentiles_bucket,omitempty"` + // RandomSampler A single bucket aggregation that randomly includes documents in the + // aggregated results. + // Sampling provides significant speed improvement at the cost of accuracy. + RandomSampler *RandomSamplerAggregation `json:"random_sampler,omitempty"` // Range A multi-bucket value source based aggregation that enables the user to define // a set of ranges - each representing a bucket. Range *RangeAggregation `json:"range,omitempty"` @@ -270,6 +274,10 @@ type Aggregations struct { // Terms A multi-bucket value source based aggregation where buckets are dynamically // built - one per unique value. Terms *TermsAggregation `json:"terms,omitempty"` + // TimeSeries The time series aggregation queries data created using a time series index. + // This is typically data such as metrics or other data streams with a time + // component, and requires creating an index using the time series mode. + TimeSeries *TimeSeriesAggregation `json:"time_series,omitempty"` // TopHits A metric aggregation that returns the top matching documents per bucket. TopHits *TopHitsAggregation `json:"top_hits,omitempty"` // TopMetrics A metric aggregation that selects metrics from the document with the largest @@ -633,6 +641,11 @@ func (s *Aggregations) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "PercentilesBucket", err) } + case "random_sampler": + if err := dec.Decode(&s.RandomSampler); err != nil { + return fmt.Errorf("%s | %w", "RandomSampler", err) + } + case "range": if err := dec.Decode(&s.Range); err != nil { return fmt.Errorf("%s | %w", "Range", err) @@ -713,6 +726,11 @@ func (s *Aggregations) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Terms", err) } + case "time_series": + if err := dec.Decode(&s.TimeSeries); err != nil { + return fmt.Errorf("%s | %w", "TimeSeries", err) + } + case "top_hits": if err := dec.Decode(&s.TopHits); err != nil { return fmt.Errorf("%s | %w", "TopHits", err) 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 7e5e4349b0..0f722f28cd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Alias type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/Alias.ts#L23-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 6b46bb4753..9df4a329b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AliasDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/AliasDefinition.ts#L22-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 ae2b5a30b3..17a1d87a58 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AliasesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/aliases/types.ts#L22-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 372b978c28..e405df6dd5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AllField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L29-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/meta-fields.ts#L29-L40 type AllField struct { Analyzer string `json:"analyzer"` Enabled bool `json:"enabled"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocateaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocateaction.go index 6d52b94e67..2fe46bd86d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocateaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocateaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AllocateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L136-L142 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L136-L142 type AllocateAction struct { Exclude map[string]string `json:"exclude,omitempty"` Include map[string]string `json:"include,omitempty"` 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 b31e17af7f..b8ea5c393c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // AllocationDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L27-L31 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 09e81a1629..7b5c39535a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AllocationRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/allocation/types.ts#L24-L98 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cat/allocation/types.ts#L25-L99 type AllocationRecord struct { // DiskAvail Free disk space available to Elasticsearch. // Elasticsearch retrieves this metric from the node’s operating system. @@ -63,16 +63,16 @@ type AllocationRecord struct { // Ip IP address and port for the node. Ip *string `json:"ip,omitempty"` // Node Name for the node. Set using the `node.name` setting. - Node string `json:"node"` + Node *string `json:"node,omitempty"` // NodeRole Node roles NodeRole *string `json:"node.role,omitempty"` // Shards Number of primary and replica shards assigned to the node. - Shards string `json:"shards"` + Shards *string `json:"shards,omitempty"` // ShardsUndesired Amount of shards that are scheduled to be moved elsewhere in the cluster or // -1 other than desired balance allocator is used ShardsUndesired *string `json:"shards.undesired,omitempty"` // WriteLoadForecast Sum of index write load forecasts - WriteLoadForecast *Float64 `json:"write_load.forecast,omitempty"` + WriteLoadForecast *Stringifieddouble `json:"write_load.forecast,omitempty"` } func (s *AllocationRecord) UnmarshalJSON(data []byte) error { @@ -140,7 +140,7 @@ func (s *AllocationRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Node = o + s.Node = &o case "node.role", "r", "role", "nodeRole": var tmp json.RawMessage @@ -164,7 +164,7 @@ func (s *AllocationRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Shards = o + s.Shards = &o case "shards.undesired": var tmp json.RawMessage 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 de712c1171..8d85819224 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AllocationStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L39-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L40-L47 type AllocationStore struct { AllocationId string `json:"allocation_id"` Found bool `json:"found"` 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 464fa270d3..5b0349deb0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // AlwaysCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L25-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2113767dd4..d907ee0857 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Analysis.ts#L29-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 dc3a201762..fedaf5117b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfigRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Analysis.ts#L79-L148 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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`. 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 56bcfbc783..0a9e17a938 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnalysisLimits type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Analysis.ts#L161-L172 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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, 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 e745be5112..ad6a8cb7c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnalysisMemoryLimit type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Analysis.ts#L174-L179 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4e7f075298..c120430882 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Analytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L330-L332 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L328-L330 type Analytics struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 770a1ade36..a893b0d108 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // AnalyticsCollection type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b8eb03ae5a..9b254e6c59 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnalyticsStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L61-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L59-L69 type AnalyticsStatistics struct { BoxplotUsage int64 `json:"boxplot_usage"` CumulativeCardinalityUsage int64 `json:"cumulative_cardinality_usage"` 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 2cf45c6765..bb5dccd975 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnalyzeDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/types.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/analyze/types.ts#L24-L30 type AnalyzeDetail struct { Analyzer *AnalyzerDetail `json:"analyzer,omitempty"` Charfilters []CharFilterDetail `json:"charfilters,omitempty"` 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 9aac5502ff..1dfe928367 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,43 @@ package types // IcuAnalyzer // KuromojiAnalyzer // SnowballAnalyzer +// ArabicAnalyzer +// ArmenianAnalyzer +// BasqueAnalyzer +// BengaliAnalyzer +// BrazilianAnalyzer +// BulgarianAnalyzer +// CatalanAnalyzer +// ChineseAnalyzer +// CjkAnalyzer +// CzechAnalyzer +// DanishAnalyzer // DutchAnalyzer +// EnglishAnalyzer +// EstonianAnalyzer +// FinnishAnalyzer +// FrenchAnalyzer +// GalicianAnalyzer +// GermanAnalyzer +// GreekAnalyzer +// HindiAnalyzer +// HungarianAnalyzer +// IndonesianAnalyzer +// IrishAnalyzer +// ItalianAnalyzer +// LatvianAnalyzer +// LithuanianAnalyzer +// NorwegianAnalyzer +// PersianAnalyzer +// PortugueseAnalyzer +// RomanianAnalyzer +// RussianAnalyzer +// SerbianAnalyzer +// SoraniAnalyzer +// SpanishAnalyzer +// SwedishAnalyzer +// TurkishAnalyzer +// ThaiAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L113-L131 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L359-L413 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 fb8a16578c..fd7a3fbae5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnalyzerDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/types.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c077c65c16..74c04a567e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/types.ts#L37-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/analyze/types.ts#L37-L44 type AnalyzeToken struct { EndOffset int64 `json:"end_offset"` Position int64 `json:"position"` 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 ad6e266480..c247ee091a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Anomaly type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Anomaly.ts#L24-L121 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Anomaly.ts#L24-L121 type Anomaly struct { // Actual The actual value for the bucket. Actual []Float64 `json:"actual,omitempty"` 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 689792422f..9b07e091a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnomalyCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Anomaly.ts#L123-L138 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Anomaly.ts#L123-L138 type AnomalyCause struct { Actual []Float64 `json:"actual"` ByFieldName string `json:"by_field_name"` 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 7cb1227c72..e64effb42f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnomalyDetectors type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/info/types.ts#L44-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/info/types.ts#L44-L50 type AnomalyDetectors struct { CategorizationAnalyzer CategorizationAnalyzer `json:"categorization_analyzer"` CategorizationExamplesLimit int `json:"categorization_examples_limit"` 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 0ecbf17ece..3890f85e8e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AnomalyExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Anomaly.ts#L156-L197 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 7a8951ebad..4f1b721e1e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/ApiKey.ts#L27-L89 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/ApiKey.ts#L26-L88 type ApiKey struct { // Creation Creation time for the API key in milliseconds. Creation *int64 `json:"creation,omitempty"` 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 d5b8d04d4a..a52744f115 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -36,5 +36,5 @@ package types // DateRangeAggregate // CompositeAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/types.ts#L123-L140 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_api_keys/types.ts#L122-L139 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 10ee60c47e..a6810d0cb4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ApiKeyAggregationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/types.ts#L64-L121 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_api_keys/types.ts#L63-L120 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 73dceacb9c..1811e7bb51 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ApiKeyAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Authorization.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 996e3bd5ba..dee557c0f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ApiKeyFiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/types.ts#L208-L228 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_api_keys/types.ts#L207-L227 type ApiKeyFiltersAggregation struct { // Filters Collection of queries from which to build buckets. Filters BucketsApiKeyQueryContainer `json:"filters,omitempty"` 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 cbcf7906f3..8acfd05290 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,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ApiKeyQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/types.ts#L142-L206 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_api_keys/types.ts#L141-L205 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 3a29eed325..d226bfa324 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AppendProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L279-L294 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L324-L339 type AppendProcessor struct { // AllowDuplicates If `false`, the processor does not append values already present in the // field. @@ -145,8 +145,19 @@ func (s *AppendProcessor) UnmarshalJSON(data []byte) error { s.Tag = &o case "value": - if err := dec.Decode(&s.Value); err != nil { - return fmt.Errorf("%s | %w", "Value", err) + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(json.RawMessage) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Value", err) + } + + s.Value = append(s.Value, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Value); err != nil { + return fmt.Errorf("%s | %w", "Value", err) + } } } 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 6566b85167..67a3e8c238 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ApplicationGlobalUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L344-L346 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L372-L374 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 83343b3fcc..e72548c3ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L27-L40 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 dcc499cbbd..a6929752a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/types.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 44cb083382..3a12825c6d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ApplicationsPrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/types.ts#L46-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/arabicanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arabicanalyzer.go new file mode 100644 index 0000000000..09ca218a6c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arabicanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ArabicAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L61-L66 +type ArabicAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *ArabicAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ArabicAnalyzer) MarshalJSON() ([]byte, error) { + type innerArabicAnalyzer ArabicAnalyzer + tmp := innerArabicAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "arabic" + + return json.Marshal(tmp) +} + +// NewArabicAnalyzer returns a ArabicAnalyzer. +func NewArabicAnalyzer() *ArabicAnalyzer { + r := &ArabicAnalyzer{} + + return r +} 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 8dc4a49bcd..3fdf865714 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Archive type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L48-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L46-L48 type Archive struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/armeniananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/armeniananalyzer.go new file mode 100644 index 0000000000..b2c6ddc191 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/armeniananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ArmenianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L68-L73 +type ArmenianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *ArmenianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ArmenianAnalyzer) MarshalJSON() ([]byte, error) { + type innerArmenianAnalyzer ArmenianAnalyzer + tmp := innerArmenianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "armenian" + + return json.Marshal(tmp) +} + +// NewArmenianAnalyzer returns a ArmenianAnalyzer. +func NewArmenianAnalyzer() *ArmenianAnalyzer { + r := &ArmenianAnalyzer{} + + return r +} 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 f1bc560cce..95628185d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ArrayCompareCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L32-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Conditions.ts#L32-L39 type ArrayCompareCondition struct { ArrayCompareCondition map[conditionop.ConditionOp]ArrayCompareOpParams `json:"-"` Path string `json:"path"` 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 08a16d2f8a..139499f5aa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ArrayCompareOpParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 92dd5a11ea..71e5dd89f5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ArrayPercentilesItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L160-L164 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L162-L166 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 12c2f43d88..d20d71e108 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // AsciiFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L170-L173 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L169-L172 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 311e820a5c..49c7fed903 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // AsyncSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/_types/AsyncSearch.ts#L30-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. @@ -502,6 +502,13 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 591095e897..dc7a55d90d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AttachmentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L296-L337 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L341-L382 type AttachmentProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 72a83ca486..573dad5f3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Audit type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L73-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L71-L73 type Audit struct { Enabled bool `json:"enabled"` Outputs []string `json:"outputs,omitempty"` 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 66b3c2cb2f..928e4f1e3f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AuthenticatedUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_token/types.ts#L40-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/get_token/types.ts#L40-L45 type AuthenticatedUser struct { AuthenticationProvider *AuthenticationProvider `json:"authentication_provider,omitempty"` AuthenticationRealm UserRealm `json:"authentication_realm"` 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 07bb217d9b..62f2bac58d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AuthenticateToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/authenticate/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0798408e39..385e5c208e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AuthenticationProvider type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_token/types.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b255f8e0fa..01d051b98b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // AutoDateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L358-L362 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L393-L400 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 be2187c94e..1f3dcc13dc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // AutoDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L67-L102 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L72-L110 type AutoDateHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` 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 9dcb88434d..1b3b775c61 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // AutoFollowedCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/stats/types.ts.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/stats/types.ts.ts#L26-L30 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 2949416143..d7e8f7c5e1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // AutoFollowPattern type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3c519cf95e..6cd2904e0f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AutoFollowPatternSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52 type AutoFollowPatternSummary struct { Active bool `json:"active"` // FollowIndexPattern The name of follower index. 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 80643929d1..fcc64b2ed7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AutoFollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/stats/types.ts.ts#L33-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/stats/types.ts.ts#L32-L38 type AutoFollowStats struct { AutoFollowedClusters []AutoFollowedCluster `json:"auto_followed_clusters"` NumberOfFailedFollowIndices int64 `json:"number_of_failed_follow_indices"` 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 cbef4a27f9..239c993dce 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // AutoscalingCapacity type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ec93de1655..eaa929a5c6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AutoscalingDecider type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 09c80a49f0..19a4553b90 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // AutoscalingDeciders type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6621606ed1..9a9f2ab2e5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // AutoscalingNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e15b2a75b6..fea65e9606 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,9 +26,9 @@ import ( // AutoscalingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L30 type AutoscalingPolicy struct { - // Deciders Decider settings + // Deciders Decider settings. Deciders map[string]json.RawMessage `json:"deciders"` Roles []string `json:"roles"` } 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 002aec9ff1..d7d75cf83f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AutoscalingResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 type AutoscalingResources struct { Memory int `json:"memory"` Storage int `json:"storage"` 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 c1da3e0bd7..4cb584cf62 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L55-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f7ad5bea59..10a35a23bb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // AverageBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L78-L78 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L78-L81 type AverageBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 c33b85e11e..989263a0ad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L209-L210 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L218-L222 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 821876250b..0867b7b586 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // AzureRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bd635f035f..042e906fb7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // AzureRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L77-L83 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotRepository.ts#L77-L83 type AzureRepositorySettings struct { BasePath *string `json:"base_path,omitempty"` ChunkSize ByteSize `json:"chunk_size,omitempty"` 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 cfe9da2661..90419ec327 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Base type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L28-L31 type Base struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 5db0a2e03a..ec8a338853 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // BaseIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L42-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L43-L48 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 2b0ff7e77f..36c91b6da6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // BaseNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/BaseNode.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/basqueanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basqueanalyzer.go new file mode 100644 index 0000000000..4bda1d656e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basqueanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// BasqueAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L75-L80 +type BasqueAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *BasqueAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s BasqueAnalyzer) MarshalJSON() ([]byte, error) { + type innerBasqueAnalyzer BasqueAnalyzer + tmp := innerBasqueAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "basque" + + return json.Marshal(tmp) +} + +// NewBasqueAnalyzer returns a BasqueAnalyzer. +func NewBasqueAnalyzer() *BasqueAnalyzer { + r := &BasqueAnalyzer{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bengalianalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bengalianalyzer.go new file mode 100644 index 0000000000..5be261db95 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bengalianalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// BengaliAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L82-L87 +type BengaliAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *BengaliAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s BengaliAnalyzer) MarshalJSON() ([]byte, error) { + type innerBengaliAnalyzer BengaliAnalyzer + tmp := innerBengaliAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "bengali" + + return json.Marshal(tmp) +} + +// NewBengaliAnalyzer returns a BengaliAnalyzer. +func NewBengaliAnalyzer() *BengaliAnalyzer { + r := &BengaliAnalyzer{} + + return r +} 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 c36f38cdf8..6d28c3775e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // BinaryProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L55-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L54-L56 type BinaryProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -43,7 +43,6 @@ type BinaryProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -760,18 +759,6 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -807,7 +794,6 @@ func (s BinaryProperty) MarshalJSON() ([]byte, error) { IgnoreAbove: s.IgnoreAbove, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 2aa9035490..d26e69b2b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // BooleanProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L59-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L58-L64 type BooleanProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -47,7 +47,6 @@ type BooleanProperty struct { Meta map[string]string `json:"meta,omitempty"` NullValue *bool `json:"null_value,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -813,18 +812,6 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -864,7 +851,6 @@ func (s BooleanProperty) MarshalJSON() ([]byte, error) { Meta: s.Meta, NullValue: s.NullValue, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 d24a5975f8..5a381f256f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BoolQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L29-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L29-L56 type BoolQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 1331c1ffaf..c4bf68e14a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BoostingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L55-L68 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L58-L74 type BoostingQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 4737df7370..7e0da42ad2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BoxPlotAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L713-L729 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L806-L825 type BoxPlotAggregate struct { Lower Float64 `json:"lower"` LowerAsString *string `json:"lower_as_string,omitempty"` 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 f104338025..5b4c2c7784 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BoxplotAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/braziliananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/braziliananalyzer.go new file mode 100644 index 0000000000..f2ba6aa26d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/braziliananalyzer.go @@ -0,0 +1,113 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// BrazilianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L89-L93 +type BrazilianAnalyzer struct { + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *BrazilianAnalyzer) 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 "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s BrazilianAnalyzer) MarshalJSON() ([]byte, error) { + type innerBrazilianAnalyzer BrazilianAnalyzer + tmp := innerBrazilianAnalyzer{ + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "brazilian" + + return json.Marshal(tmp) +} + +// NewBrazilianAnalyzer returns a BrazilianAnalyzer. +func NewBrazilianAnalyzer() *BrazilianAnalyzer { + r := &BrazilianAnalyzer{} + + return r +} 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 801286ef59..90f01e42e5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Breaker type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L434-L459 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L470-L495 type Breaker struct { // EstimatedSize Estimated memory used for the operation. EstimatedSize *string `json:"estimated_size,omitempty"` 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 308c6e68e8..d538fd190c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // BucketCorrelationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L129-L135 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L139-L146 type BucketCorrelationAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 0836821675..12ee9cd5c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // BucketCorrelationFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L137-L142 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L148-L153 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 59e0a253f2..65d339ed41 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // BucketCorrelationFunctionCountCorrelation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L144-L147 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L155-L158 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 002cb1f28b..76def1392a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BucketCorrelationFunctionCountCorrelationIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L149-L167 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L160-L178 type BucketCorrelationFunctionCountCorrelationIndicator struct { // DocCount The total number of documents that initially created the expectations. It’s // required to be greater 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 82ebabe7fd..368b2662bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BucketInfluencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Bucket.ts#L80-L128 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Bucket.ts#L79-L127 type BucketInfluencer struct { // AnomalyScore A normalized score between 0-100, which is calculated for each bucket // influencer. This score might be updated as 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 a25505b886..e6f7150805 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BucketKsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L94-L127 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L103-L137 type BucketKsAggregation struct { // Alternative A list of string values indicating which K-S test alternative to calculate. // The valid values 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 1482eacb59..8bab174119 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BucketMetricValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L233-L236 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L250-L253 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 ac1faa5685..3f9fc60f76 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // BucketPathAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L31-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 8dda2e0edc..526781eaeb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]AdjacencyMatrixBucket // []AdjacencyMatrixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 031005ed6e..acf0b1915d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]ApiKeyQueryContainer // []ApiKeyQueryContainer // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 49c7558beb..28b408c5a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]CompositeBucket // []CompositeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 66593d83ff..110b2d8a35 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // BucketScriptAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L80-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L83-L91 type BucketScriptAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 fe3f15ad92..8c7542541c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]DateHistogramBucket // []DateHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 be70d63119..ff96d19e65 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]DoubleTermsBucket // []DoubleTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 e046c224e0..1b363beff8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // BucketSelectorAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L87-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L93-L101 type BucketSelectorAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 d496c2d176..d9680d0e36 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]FiltersBucket // []FiltersBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 4f347f9634..217b2c0874 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]FrequentItemSetsBucket // []FrequentItemSetsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 42cf867194..3bf6fdfde6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHashGridBucket // []GeoHashGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 88f7771717..bbadaa25fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHexGridBucket // []GeoHexGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 b6785002a9..43c6a79790 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]GeoTileGridBucket // []GeoTileGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 980cd813f9..163b53ffcd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]HistogramBucket // []HistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 0657ee2b8a..d97dee62dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]IpPrefixBucket // []IpPrefixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 deeb019336..16a441eb9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]IpRangeBucket // []IpRangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 6a32f5b771..38cabc5884 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]LongRareTermsBucket // []LongRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 15f745abe3..122c05febd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]LongTermsBucket // []LongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 72d01bab03..30145aa3b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]MultiTermsBucket // []MultiTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 b4b3f88a99..1076ff30b9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // BucketSortAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L169-L190 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L180-L204 type BucketSortAggregation struct { // From Buckets in positions prior to `from` will be truncated. From *int `json:"from,omitempty"` 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 48bd0d57ea..c273201418 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ package types // []string // map[string]string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L53-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 db12e1bd2e..8a23f80116 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]Query // []Query // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 be1fae736a..5527ccf622 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]RangeBucket // []RangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 b287ba4517..6d3c3d63cb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantLongTermsBucket // []SignificantLongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 86f6702148..007235a801 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantStringTermsBucket // []SignificantStringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 7cfdcadf71..edc953be76 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]StringRareTermsBucket // []StringRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 495ad71abb..2845f58ba2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]StringTermsBucket // []StringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsStringTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketstimeseriesbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketstimeseriesbucket.go new file mode 100644 index 0000000000..c4a908c11a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketstimeseriesbucket.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. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// BucketsTimeSeriesBucket holds the union for the following types: +// +// map[string]TimeSeriesBucket +// []TimeSeriesBucket +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 +type BucketsTimeSeriesBucket 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 f332f9dd19..5396cf956f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BucketSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Bucket.ts#L31-L78 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Bucket.ts#L30-L77 type BucketSummary struct { // AnomalyScore The maximum anomaly score, between 0-100, for any of the bucket influencers. // This is an overall, rate-limited 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 5c77760c8e..2b9828c842 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]VariableWidthHistogramBucket // []VariableWidthHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 79dbda35b5..bb3f9656c9 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,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // map[string]any // []any // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L346-L355 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 feae9c8342..02fad65251 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BuildInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/bulgariananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulgariananalyzer.go new file mode 100644 index 0000000000..822559db6d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulgariananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// BulgarianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L95-L100 +type BulgarianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *BulgarianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s BulgarianAnalyzer) MarshalJSON() ([]byte, error) { + type innerBulgarianAnalyzer BulgarianAnalyzer + tmp := innerBulgarianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "bulgarian" + + return json.Marshal(tmp) +} + +// NewBulgarianAnalyzer returns a BulgarianAnalyzer. +func NewBulgarianAnalyzer() *BulgarianAnalyzer { + r := &BulgarianAnalyzer{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkerror.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkerror.go index fb5d3eb284..e8c2e08704 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkerror.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkerror.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BulkError type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Bulk.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Bulk.ts#L24-L33 type BulkError struct { // Count The number of errors Count int `json:"count"` 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 9c9f5a248a..ee68c048e9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BulkIndexByScrollFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Errors.ts#L60-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Errors.ts#L60-L66 type BulkIndexByScrollFailure struct { Cause ErrorCause `json:"cause"` Id string `json:"id"` 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 70c779b450..6008f3b139 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BulkStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L68-L78 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L68-L78 type BulkStats struct { AvgSize ByteSize `json:"avg_size,omitempty"` AvgSizeInBytes int64 `json:"avg_size_in_bytes"` 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 f06c0d3ef4..15a7ee34f8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // ByteNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L172-L175 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L172-L175 type ByteNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,6 @@ type ByteNumberProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -848,18 +847,6 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -921,7 +908,6 @@ func (s ByteNumberProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, 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 3472412021..dcc485d1be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L96-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L97-L98 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 4421a06e82..c4028850d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // BytesProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L392-L408 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L515-L531 type BytesProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 ef40868425..55262574bd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CacheQueries type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L407-L409 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L407-L409 type CacheQueries struct { Enabled bool `json:"enabled"` } 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 bcbdd44f9e..4c2cb895ea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,13 +31,16 @@ import ( // CacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/stats/types.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/enrich/stats/types.ts#L38-L50 type CacheStats struct { - Count int `json:"count"` - Evictions int `json:"evictions"` - Hits int `json:"hits"` - Misses int `json:"misses"` - NodeId string `json:"node_id"` + Count int `json:"count"` + Evictions int `json:"evictions"` + Hits int `json:"hits"` + HitsTimeInMillis int64 `json:"hits_time_in_millis"` + Misses int `json:"misses"` + MissesTimeInMillis int64 `json:"misses_time_in_millis"` + NodeId string `json:"node_id"` + SizeInBytes int64 `json:"size_in_bytes"` } func (s *CacheStats) UnmarshalJSON(data []byte) error { @@ -103,6 +106,11 @@ func (s *CacheStats) UnmarshalJSON(data []byte) error { s.Hits = f } + case "hits_time_in_millis": + if err := dec.Decode(&s.HitsTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "HitsTimeInMillis", err) + } + case "misses": var tmp any @@ -119,11 +127,31 @@ func (s *CacheStats) UnmarshalJSON(data []byte) error { s.Misses = f } + case "misses_time_in_millis": + if err := dec.Decode(&s.MissesTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "MissesTimeInMillis", err) + } + case "node_id": if err := dec.Decode(&s.NodeId); err != nil { return fmt.Errorf("%s | %w", "NodeId", err) } + case "size_in_bytes": + 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", "SizeInBytes", err) + } + s.SizeInBytes = value + case float64: + f := int64(v) + s.SizeInBytes = f + } + } } return nil 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 c01fbcf338..9b5a9bf6ea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Calendar type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_calendars/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c767bca145..703c227587 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CalendarEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/CalendarEvent.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cb47b24aa9..52fdc78c1f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L138-L141 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L140-L143 type CardinalityAggregate struct { Meta Metadata `json:"meta,omitempty"` Value int64 `json:"value"` 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 c279cacd06..2f108d919e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // CardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L87-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catalananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catalananalyzer.go new file mode 100644 index 0000000000..95fee988c9 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catalananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// CatalanAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L102-L107 +type CatalanAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *CatalanAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s CatalanAnalyzer) MarshalJSON() ([]byte, error) { + type innerCatalanAnalyzer CatalanAnalyzer + tmp := innerCatalanAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "catalan" + + return json.Marshal(tmp) +} + +// NewCatalanAnalyzer returns a CatalanAnalyzer. +func NewCatalanAnalyzer() *CatalanAnalyzer { + r := &CatalanAnalyzer{} + + return r +} 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 f5a51729bf..475640b1a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // CatAnonalyDetectorColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3181a46ebb..dfd89f13c3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CatComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/component_templates/types.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3579ea701a..4c043abb9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // CatDatafeedColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L559-L559 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 17d54f5321..65c6220a94 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // CatDfaColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L558-L558 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 904b3c6803..f86c4a6c86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // CategorizationAnalyzerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Analysis.ts#L181-L182 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6d79aa1708..d072bcc077 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // CategorizationAnalyzerDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Analysis.ts#L184-L197 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Analysis.ts#L184-L198 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 @@ -450,6 +450,12 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return err } s.Tokenizer = *o + case "classic": + o := NewClassicTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o case "edge_ngram": o := NewEdgeNGramTokenizer() if err := localDec.Decode(&o); err != nil { @@ -480,14 +486,26 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return err } s.Tokenizer = *o - case "nori_tokenizer": - o := NewNoriTokenizer() + case "path_hierarchy": + o := NewPathHierarchyTokenizer() if err := localDec.Decode(&o); err != nil { return err } s.Tokenizer = *o - case "path_hierarchy": - o := NewPathHierarchyTokenizer() + case "pattern": + o := NewPatternTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "simple_pattern": + o := NewSimplePatternTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "simple_pattern_split": + o := NewSimplePatternSplitTokenizer() if err := localDec.Decode(&o); err != nil { return err } @@ -498,6 +516,12 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return err } s.Tokenizer = *o + case "thai": + o := NewThaiTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o case "uax_url_email": o := NewUaxEmailUrlTokenizer() if err := localDec.Decode(&o); err != nil { @@ -510,20 +534,20 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return err } s.Tokenizer = *o - case "kuromoji_tokenizer": - o := NewKuromojiTokenizer() + case "icu_tokenizer": + o := NewIcuTokenizer() if err := localDec.Decode(&o); err != nil { return err } s.Tokenizer = *o - case "pattern": - o := NewPatternTokenizer() + case "kuromoji_tokenizer": + o := NewKuromojiTokenizer() if err := localDec.Decode(&o); err != nil { return err } s.Tokenizer = *o - case "icu_tokenizer": - o := NewIcuTokenizer() + case "nori_tokenizer": + o := NewNoriTokenizer() if err := localDec.Decode(&o); err != nil { return 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 7a402c829a..d315722b03 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CategorizeTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1045-L1109 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1117-L1182 type CategorizeTextAggregation struct { // CategorizationAnalyzer The categorization analyzer specifies how the text is analyzed and tokenized // before being categorized. 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 ac374f491e..9058b67c83 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // CustomCategorizeTextAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1111-L1114 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1184-L1187 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 ea63a15da9..95ea59a054 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Category type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Category.ts#L23-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. @@ -103,16 +103,9 @@ func (s *Category) UnmarshalJSON(data []byte) error { } case "grok_pattern": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + if err := dec.Decode(&s.GrokPattern); err != nil { return fmt.Errorf("%s | %w", "GrokPattern", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.GrokPattern = &o case "job_id": if err := dec.Decode(&s.JobId); err != nil { 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 2925099b48..519bb58c35 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // CatTrainedModelsColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L636-L638 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1310cc3b2d..b2e4ecebcc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // CatTransformColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L845-L845 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5883262a6a..d19b002b84 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Ccr type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L334-L337 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L332-L335 type Ccr struct { AutoFollowPatternsCount int `json:"auto_follow_patterns_count"` Available bool `json:"available"` 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 22deb1a356..31a34b6d6a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CcrShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/_types/FollowIndexStats.ts#L35-L69 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/_types/FollowIndexStats.ts#L35-L69 type CcrShardStats struct { BytesRead int64 `json:"bytes_read"` FailedReadRequests int64 `json:"failed_read_requests"` 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 05afec3e3f..4af84a62ee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CertificateInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ssl/certificates/types.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ssl/certificates/types.ts#L22-L31 type CertificateInformation struct { Alias *string `json:"alias,omitempty"` Expiry DateTime `json:"expiry"` 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 700dfc3b74..7a4c2b47c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Cgroup type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L461-L474 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L497-L510 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 27d576cd28..e365b1a477 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CgroupCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L487-L504 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L523-L540 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 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 f63de4a7d3..71e4172843 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CgroupCpuStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L506-L519 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L542-L555 type CgroupCpuStat struct { // NumberOfElapsedPeriods The number of reporting periods (as specified by `cfs_period_micros`) that // have elapsed. 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 be1ef2372a..711b6a7c7f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CgroupMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L521-L537 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L557-L573 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 1dcfa32f20..c37ebc875a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ChainInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L35-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 421451d6e5..05ab171788 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // CharFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L28-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/char_filters.ts#L28-L33 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 f0b3b31f02..3f6bf149a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -28,5 +28,5 @@ package types // IcuNormalizationCharFilter // KuromojiIterationMarkCharFilter // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L32-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/char_filters.ts#L35-L44 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 87954cea1a..e7792d9b93 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CharFilterDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/types.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 357fbc0174..2b83f510a5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // CharFilterTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L228-L261 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 214faff938..01219e80ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CharGroupTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L56-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L31-L38 type CharGroupTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` TokenizeOnChars []string `json:"tokenize_on_chars"` 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 03f7baabd9..8583887cc3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Checkpointing type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform_stats/types.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 b40414de0f..c7727dd940 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CheckpointStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform_stats/types.ts#L76-L83 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/transform/get_transform_stats/types.ts#L76-L83 type CheckpointStats struct { Checkpoint int64 `json:"checkpoint"` CheckpointProgress *TransformProgress `json:"checkpoint_progress,omitempty"` 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 1a1993ed52..85311a1dcf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ChildrenAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L783-L784 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L888-L892 type ChildrenAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *ChildrenAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 1a63a759f8..bbcf3bedc1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ChildrenAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L113-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L121-L126 type ChildrenAggregation struct { // Type The child type that should be selected. Type *string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chineseanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chineseanalyzer.go new file mode 100644 index 0000000000..b42046458f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chineseanalyzer.go @@ -0,0 +1,113 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ChineseAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L109-L113 +type ChineseAnalyzer struct { + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *ChineseAnalyzer) 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 "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ChineseAnalyzer) MarshalJSON() ([]byte, error) { + type innerChineseAnalyzer ChineseAnalyzer + tmp := innerChineseAnalyzer{ + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "chinese" + + return json.Marshal(tmp) +} + +// NewChineseAnalyzer returns a ChineseAnalyzer. +func NewChineseAnalyzer() *ChineseAnalyzer { + r := &ChineseAnalyzer{} + + return r +} 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 41f653629a..d9a94426b2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ChiSquareHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L737-L746 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L782-L791 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. 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 07e81dea81..a781b87e3b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ChunkingConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L238-L251 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L241-L254 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 6e4e13c842..647ae70646 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // CircleProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L410-L433 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L533-L556 type CircleProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cjkanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cjkanalyzer.go new file mode 100644 index 0000000000..6c87680183 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cjkanalyzer.go @@ -0,0 +1,113 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// CjkAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L115-L119 +type CjkAnalyzer struct { + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *CjkAnalyzer) 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 "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s CjkAnalyzer) MarshalJSON() ([]byte, error) { + type innerCjkAnalyzer CjkAnalyzer + tmp := innerCjkAnalyzer{ + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "cjk" + + return json.Marshal(tmp) +} + +// NewCjkAnalyzer returns a CjkAnalyzer. +func NewCjkAnalyzer() *CjkAnalyzer { + r := &CjkAnalyzer{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/classictokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/classictokenizer.go new file mode 100644 index 0000000000..b1e246ba96 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/classictokenizer.go @@ -0,0 +1,106 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ClassicTokenizer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L40-L46 +type ClassicTokenizer struct { + MaxTokenLength *int `json:"max_token_length,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *ClassicTokenizer) 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 "max_token_length": + + 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", "MaxTokenLength", err) + } + s.MaxTokenLength = &value + case float64: + f := int(v) + s.MaxTokenLength = &f + } + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ClassicTokenizer) MarshalJSON() ([]byte, error) { + type innerClassicTokenizer ClassicTokenizer + tmp := innerClassicTokenizer{ + MaxTokenLength: s.MaxTokenLength, + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "classic" + + return json.Marshal(tmp) +} + +// NewClassicTokenizer returns a ClassicTokenizer. +func NewClassicTokenizer() *ClassicTokenizer { + r := &ClassicTokenizer{} + + return r +} 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 091939b77a..8a065643af 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L93-L108 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 38088a770e..99217e330b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CleanupRepositoryResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 0697bd4173..863577b821 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Client type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L649-L696 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L720-L767 type Client struct { // Agent Reported agent for the HTTP client. // If unavailable, this property is not included in the response. 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 9dbe05367a..afd83a9451 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CloseIndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/close/CloseIndexResponse.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/close/CloseIndexResponse.ts#L32-L35 type CloseIndexResult struct { Closed bool `json:"closed"` Shards map[string]CloseShardResult `json:"shards,omitempty"` 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 4c935162c0..77a5b1617c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // CloseShardResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/close/CloseIndexResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ed243b2d0c..7246327871 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ClusterAppliedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L221-L223 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5cb17c3612..0334494826 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ClusterComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/_types/ComponentTemplate.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/_types/ComponentTemplate.ts#L27-L30 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 7930b6b528..d42bce59c0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ClusterDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L45-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L45-L52 type ClusterDetails struct { Failures []ShardFailure `json:"failures,omitempty"` Indices string `json:"indices"` 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 b85151f1a1..7c443e7136 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterFileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L34-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 a0996d07df..d52008bddb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ClusterIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L570-L572 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dc2c5dc25f..7a7e30aada 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L74-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L74-L107 type ClusterIndices struct { // Analysis Contains statistics about analyzers and analyzer components used in selected // nodes. 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 6e9286cf4a..9a9b3c077a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterIndicesShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L60-L72 type ClusterIndicesShards struct { // Index Contains statistics about shards assigned to selected nodes. Index *ClusterIndicesShardsIndex `json:"index,omitempty"` 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 eac2e3b87c..83fec92297 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ClusterIndicesShardsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L51-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2fc9aec30c..376888c78e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L48-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L49-L55 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 94085f2bd8..78d672aca4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // ClusterInfoTargets type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L389-L389 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L390-L390 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 804ad0dad4..c22114914b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L270-L273 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L270-L273 type ClusterIngest struct { NumberOfPipelines int `json:"number_of_pipelines"` ProcessorStats map[string]ClusterProcessor `json:"processor_stats"` 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 2a3616261f..a73e9ae796 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterJvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L275-L292 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 066734287c..59409f7fc1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L294-L303 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 91101e4f13..b30012794c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmVersion type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L305-L335 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L305-L335 type ClusterJvmVersion struct { // BundledJdk Always `true`. All distributions come with a bundled Java Development Kit // (JDK). 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 7fc4af372a..20cea760fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ClusterNetworkTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L337-L346 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8deda099a5..b3d5b4708b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ClusterNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/ClusterNode.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 26d593f567..b6033f4ea0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterNodeCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L348-L367 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L348-L367 type ClusterNodeCount struct { CoordinatingOnly int `json:"coordinating_only"` Data int `json:"data"` 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 9f1c1dd180..793659a510 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ClusterNodes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L369-L402 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7b482bf15f..c0c6284cd3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L415-L442 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L415-L442 type ClusterOperatingSystem struct { // AllocatedProcessors Number of processors used to calculate thread pool size across all selected // nodes. 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 0c6602a823..fbac0699d0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemArchitecture type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L404-L413 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 a7a264a880..df37aa8933 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemName type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L444-L453 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L444-L453 type ClusterOperatingSystemName struct { // Count Number of selected nodes using the operating system. Count int `json:"count"` 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 6df5329adc..7d06b87e2b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemPrettyName type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L455-L464 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L455-L464 type ClusterOperatingSystemPrettyName struct { // Count Number of selected nodes using the operating system. Count int `json:"count"` 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 d1715c985a..b5226d7ead 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L574-L578 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L574-L578 type ClusterPressureMemory struct { Current IndexingPressureMemorySummary `json:"current"` LimitInBytes int64 `json:"limit_in_bytes"` 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 3a34ccfd36..17202ef19a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ClusterProcess type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L466-L475 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0b2376260e..82920b40f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L477-L483 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L477-L483 type ClusterProcessCpu struct { // Percent Percentage of CPU used across all selected nodes. // Returns `-1` if not supported. 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 0149632fc3..80551af69a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessOpenFileDescriptors type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L485-L501 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L485-L501 type ClusterProcessOpenFileDescriptors struct { // Avg Average number of concurrently open file descriptors. // Returns `-1` if not supported. 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 553693dbfb..65099fb4a0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L503-L509 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L503-L509 type ClusterProcessor struct { Count int64 `json:"count"` Current int64 `json:"current"` 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 ecd5e50b1f..2d2ba15407 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // ClusterRemoteSniffInfo // ClusterRemoteProxyInfo // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f572e2f683..fc3c64b3d0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteProxyInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L42-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L42-L51 type ClusterRemoteProxyInfo struct { Connected bool `json:"connected"` InitialConnectTimeout Duration `json:"initial_connect_timeout"` 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 ca8cdb2cde..d18eb8ca99 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteSniffInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L40 type ClusterRemoteSniffInfo struct { Connected bool `json:"connected"` InitialConnectTimeout Duration `json:"initial_connect_timeout"` 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 54ebe07b42..39a025bbdb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L169-L226 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 1c1693d795..42cec2dd75 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterShardMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L511-L524 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 1f4bda15aa..1f1894b7f5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterStateQueue type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L248-L261 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L248-L261 type ClusterStateQueue struct { // Committed Number of committed cluster states in queue. Committed *int64 `json:"committed,omitempty"` 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 501ef77f66..a22715751b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterStateUpdate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L278-L343 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 54b567e686..f6a333f68f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ClusterStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L27-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L27-L35 type ClusterStatistics struct { Details map[string]ClusterDetails `json:"details,omitempty"` Failed int `json:"failed"` 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 f34a1aea59..ec3e306578 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Collector type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L94-L99 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 d6fb03ca3e..ad6c2c01d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Column type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a841af67e3..98b11ebdef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // CombinedFieldsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L465-L499 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/abstractions.ts#L465-L499 type CombinedFieldsQuery struct { // AutoGenerateSynonymsPhraseQuery If true, match phrase queries are automatically created for multi-term // synonyms. 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 24f0e113d1..739e9e6421 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Command type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/types.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 894aed2e38..660936b210 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CommandAllocatePrimaryAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/types.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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, 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 3dec16a506..d7cad7af5b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CommandAllocateReplicaAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/types.ts#L69-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/reroute/types.ts#L69-L76 type CommandAllocateReplicaAction struct { Index string `json:"index"` Node string `json:"node"` 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 b69717d119..7d52790c3d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CommandCancelAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/types.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/reroute/types.ts#L45-L50 type CommandCancelAction struct { AllowPrimary *bool `json:"allow_primary,omitempty"` Index string `json:"index"` 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 f6bd7cd0eb..b133d111a4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CommandMoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/types.ts#L60-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/reroute/types.ts#L60-L67 type CommandMoveAction struct { // FromNode The node to move the shard from FromNode string `json:"from_node"` 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 index e04e8cd1c9..ed041ee78d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commoncatqueryparameters.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commoncatqueryparameters.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CommonCatQueryParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/behaviors.ts#L86-L132 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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`. 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 ee61b6e13e..0547e6c22f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CommonGramsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L175-L181 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L174-L180 type CommonGramsTokenFilter struct { CommonWords []string `json:"common_words,omitempty"` CommonWordsPath *string `json:"common_words_path,omitempty"` 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 index f68b7ac916..e80177c19a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commonqueryparameters.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commonqueryparameters.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CommonQueryParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/behaviors.ts#L50-L84 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 d12c5f9edc..9ed2a1fb5d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // CommonTermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L34-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/communityidprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/communityidprocessor.go new file mode 100644 index 0000000000..274e20094c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/communityidprocessor.go @@ -0,0 +1,233 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// CommunityIDProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L558-L619 +type CommunityIDProcessor struct { + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // DestinationIp Field containing the destination IP address. + DestinationIp *string `json:"destination_ip,omitempty"` + // DestinationPort Field containing the destination port. + DestinationPort *string `json:"destination_port,omitempty"` + // IanaNumber Field containing the IANA number. + IanaNumber *string `json:"iana_number,omitempty"` + // IcmpCode Field containing the ICMP code. + IcmpCode *string `json:"icmp_code,omitempty"` + // IcmpType Field containing the ICMP type. + IcmpType *string `json:"icmp_type,omitempty"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // IgnoreMissing If true and any required fields are missing, the processor quietly exits + // without modifying the document. + IgnoreMissing *bool `json:"ignore_missing,omitempty"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // Seed Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The + // seed can prevent hash collisions between network domains, such as a staging + // and production network that use the same addressing scheme. + Seed *int `json:"seed,omitempty"` + // SourceIp Field containing the source IP address. + SourceIp *string `json:"source_ip,omitempty"` + // SourcePort Field containing the source port. + SourcePort *string `json:"source_port,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` + // TargetField Output field for the community ID. + TargetField *string `json:"target_field,omitempty"` + // Transport Field containing the transport protocol name or number. Used only when the + // iana_number field is not present. The following protocol names are currently + // supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, + // udp + Transport *string `json:"transport,omitempty"` +} + +func (s *CommunityIDProcessor) 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 "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + case "destination_ip": + if err := dec.Decode(&s.DestinationIp); err != nil { + return fmt.Errorf("%s | %w", "DestinationIp", err) + } + + case "destination_port": + if err := dec.Decode(&s.DestinationPort); err != nil { + return fmt.Errorf("%s | %w", "DestinationPort", err) + } + + case "iana_number": + if err := dec.Decode(&s.IanaNumber); err != nil { + return fmt.Errorf("%s | %w", "IanaNumber", err) + } + + case "icmp_code": + if err := dec.Decode(&s.IcmpCode); err != nil { + return fmt.Errorf("%s | %w", "IcmpCode", err) + } + + case "icmp_type": + if err := dec.Decode(&s.IcmpType); err != nil { + return fmt.Errorf("%s | %w", "IcmpType", err) + } + + case "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "ignore_missing": + 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", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "seed": + + 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", "Seed", err) + } + s.Seed = &value + case float64: + f := int(v) + s.Seed = &f + } + + case "source_ip": + if err := dec.Decode(&s.SourceIp); err != nil { + return fmt.Errorf("%s | %w", "SourceIp", err) + } + + case "source_port": + if err := dec.Decode(&s.SourcePort); err != nil { + return fmt.Errorf("%s | %w", "SourcePort", err) + } + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + case "target_field": + if err := dec.Decode(&s.TargetField); err != nil { + return fmt.Errorf("%s | %w", "TargetField", err) + } + + case "transport": + if err := dec.Decode(&s.Transport); err != nil { + return fmt.Errorf("%s | %w", "Transport", err) + } + + } + } + return nil +} + +// NewCommunityIDProcessor returns a CommunityIDProcessor. +func NewCommunityIDProcessor() *CommunityIDProcessor { + r := &CommunityIDProcessor{} + + return r +} 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 de477094e9..7ab93d1c94 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // CompactNodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bf2f54a9b2..12a024a3c0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CompletionContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L235-L264 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L235-L264 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. 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 5189b44fc3..449c431eac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // CompletionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L33-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/specialized.ts#L33-L41 type CompletionProperty struct { Analyzer *string `json:"analyzer,omitempty"` Contexts []SuggestContext `json:"contexts,omitempty"` @@ -49,7 +49,6 @@ type CompletionProperty struct { PreserveSeparators *bool `json:"preserve_separators,omitempty"` Properties map[string]Property `json:"properties,omitempty"` SearchAnalyzer *string `json:"search_analyzer,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -839,18 +838,6 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error { } s.SearchAnalyzer = &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) @@ -892,7 +879,6 @@ func (s CompletionProperty) MarshalJSON() ([]byte, error) { PreserveSeparators: s.PreserveSeparators, Properties: s.Properties, SearchAnalyzer: s.SearchAnalyzer, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 index 55316051a1..bd2f75e3ef 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionresult.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionresult.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CompletionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Results.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Results.ts#L60-L65 type CompletionResult struct { Result string `json:"result"` } 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 7f97226223..efb53d207f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CompletionStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L80-L90 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 72e049d4cb..2abcd59b26 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L48-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L48-L55 type CompletionSuggest struct { Length int `json:"length"` Offset int `json:"offset"` 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 c61236914e..26b311b47a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L163-L181 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L163-L181 type CompletionSuggester struct { // Analyzer The analyzer to analyze the suggest text with. // Defaults to the search analyzer of the suggest field. 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 952f061a42..ad2ac21e41 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L73-L84 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L73-L84 type CompletionSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Contexts map[string][]Context `json:"contexts,omitempty"` 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 0c8e03a791..7eb0865cb4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ComponentTemplateNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/_types/ComponentTemplate.ts#L35-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/_types/ComponentTemplate.ts#L32-L37 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 4caf2820c7..d712f59c3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ComponentTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/_types/ComponentTemplate.ts#L42-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/_types/ComponentTemplate.ts#L39-L51 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 5f23e6d2d3..33378e8125 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // CompositeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L622-L627 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L698-L703 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 02885dcd53..43fab5a365 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // CompositeAggregateKey type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L120-L120 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L128-L128 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 e1f5e52228..1808b25905 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CompositeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L122-L138 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L130-L149 type CompositeAggregation struct { // After When paginating, use the `after_key` value returned in the previous response // to retrieve the next page. 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 71347df2f8..d465742219 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // CompositeAggregationSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L140-L157 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L151-L168 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 e14c0b92e0..a8447a4935 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // CompositeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L629-L631 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L705-L707 type CompositeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *CompositeBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 267e0457ae..3bda20b1de 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // CompositeDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L176-L184 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L187-L195 type CompositeDateHistogramAggregation struct { // CalendarInterval Either `calendar_interval` or `fixed_interval` must be present CalendarInterval *string `json:"calendar_interval,omitempty"` 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 00d177927d..5b49da932a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // CompositeGeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L186-L189 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L197-L200 type CompositeGeoTileGridAggregation struct { Bounds GeoBounds `json:"bounds,omitempty"` // Field Either `field` or `script` must be present 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 4a2fa97c28..6ffaa95273 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // CompositeHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L172-L174 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L183-L185 type CompositeHistogramAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositesubfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositesubfield.go new file mode 100644 index 0000000000..391d6bee4e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositesubfield.go @@ -0,0 +1,39 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype" +) + +// CompositeSubField type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/RuntimeFields.ts#L52-L54 +type CompositeSubField struct { + Type runtimefieldtype.RuntimeFieldType `json:"type"` +} + +// NewCompositeSubField returns a CompositeSubField. +func NewCompositeSubField() *CompositeSubField { + r := &CompositeSubField{} + + return r +} 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 9195714346..7d2e2d67a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // CompositeTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L170-L170 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L181-L181 type CompositeTermsAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` 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 975085e110..95c66faddd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ConditionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L183-L187 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L182-L186 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 f2e8f18922..5a853a34b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Configuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/_types/SnapshotLifecycle.ts#L99-L129 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 b50a3a8937..56c1099801 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L125-L130 type ConfusionMatrixItem struct { ActualClass string `json:"actual_class"` ActualClassDocCount int `json:"actual_class_doc_count"` 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 d481e5dbb7..5701a9c2d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixPrediction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L132-L135 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L132-L135 type ConfusionMatrixPrediction struct { Count int `json:"count"` PredictedClass string `json:"predicted_class"` 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 869ef7d68b..66744546e1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixThreshold type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L137-L158 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L137-L158 type ConfusionMatrixThreshold struct { // FalseNegative False Negative FalseNegative int `json:"fn"` 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 1316a1d791..61d38f2e43 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Connection type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/_types/Connection.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/graph/_types/Connection.ts#L22-L27 type Connection struct { DocCount int64 `json:"doc_count"` Source int64 `json:"source"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connector.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connector.go index ef95ada7aa..a69095a390 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connector.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connector.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // Connector type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L237-L268 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L237-L268 type Connector struct { ApiKeyId *string `json:"api_key_id,omitempty"` ApiKeySecretId *string `json:"api_key_secret_id,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfigproperties.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfigproperties.go index 834e879177..7ea8a71c60 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfigproperties.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfigproperties.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // ConnectorConfigProperties type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L83-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L83-L99 type ConnectorConfigProperties struct { Category *string `json:"category,omitempty"` DefaultValue ScalarValue `json:"default_value"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfiguration.go index 521b85e99a..9d12706d2b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfiguration.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfiguration.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ConnectorConfiguration type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L101-L104 type ConnectorConfiguration map[string]ConnectorConfigProperties diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorcustomscheduling.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorcustomscheduling.go index b82dec8a61..7f20f36f34 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorcustomscheduling.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorcustomscheduling.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ConnectorCustomScheduling type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L128-L128 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L128-L128 type ConnectorCustomScheduling map[string]CustomScheduling diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorfeatures.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorfeatures.go index c3dcd9e8d8..7028c241a0 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorfeatures.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorfeatures.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ConnectorFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L224-L229 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L224-L229 type ConnectorFeatures struct { DocumentLevelSecurity *FeatureEnabled `json:"document_level_security,omitempty"` IncrementalSync *FeatureEnabled `json:"incremental_sync,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorscheduling.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorscheduling.go index d9b287cb47..80a6cf93b6 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorscheduling.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorscheduling.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ConnectorScheduling type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L106-L110 type ConnectorScheduling struct { Enabled bool `json:"enabled"` // Interval The interval is expressed using the crontab syntax diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorsyncjob.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorsyncjob.go index 36e2f96530..5d1581073b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorsyncjob.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorsyncjob.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // ConnectorSyncJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/SyncJob.ts#L53-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/SyncJob.ts#L53-L72 type ConnectorSyncJob struct { CancelationRequestedAt DateTime `json:"cancelation_requested_at,omitempty"` CanceledAt DateTime `json:"canceled_at,omitempty"` 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 c65546c419..23d78c28c2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ConstantKeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/specialized.ts#L50-L53 type ConstantKeywordProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` 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 2c89c2412a..7fb30d6efa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ConstantScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L70-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L76-L86 type ConstantScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 1897e3df46..d36fb7cdd9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // GeoLocation // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L228-L233 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L228-L233 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 2be7e3ef8a..9f0768aa78 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ContextMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get_script_context/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a122838b10..f3cfe303b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ContextMethodParam type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get_script_context/types.ts#L33-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1e5e5f4851..fe620b3b55 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ConvertProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L445-L465 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L632-L652 type ConvertProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 d6200221c9..91e95de04c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CoordinatorStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/stats/types.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/enrich/stats/types.ts#L30-L36 type CoordinatorStats struct { ExecutedSearchesTotal int64 `json:"executed_searches_total"` NodeId string `json:"node_id"` 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 c5bd012e67..184dc64de5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CoordsGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L154-L159 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Geo.ts#L154-L159 type CoordsGeoBounds struct { Bottom Float64 `json:"bottom"` Left Float64 `json:"left"` 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 d58570733f..12eaaddd62 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CoreKnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/knn_search/_types/Knn.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 ea5ecb1d51..db6a6ada24 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Counter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L33-L36 type Counter struct { Active int64 `json:"active"` Total int64 `json:"total"` 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 25253736f2..733523cc8e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CountRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/count/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bb1eaed98e..0498344660 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Cpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L539-L548 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L575-L584 type Cpu struct { LoadAverage map[string]Float64 `json:"load_average,omitempty"` Percent *int `json:"percent,omitempty"` 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 192083d401..695a9be942 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CpuAcct type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L476-L485 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L512-L521 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 e1a6797312..7ed151be8c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CreatedStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/CreatedStatus.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/CreatedStatus.ts#L20-L22 type CreatedStatus struct { Created bool `json:"created"` } 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 c322b2a38a..146f9a9cbb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // CreateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L130-L130 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 0b1a28fd02..0c2dca2366 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CsvProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L467-L500 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L654-L687 type CsvProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 93ecfd35d7..d17b1aef90 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CumulativeCardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L754-L762 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L856-L864 type CumulativeCardinalityAggregate struct { Meta Metadata `json:"meta,omitempty"` Value int64 `json:"value"` 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 9947c1664c..a767eb5931 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // CumulativeCardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L192-L192 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L206-L209 type CumulativeCardinalityAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 a1f6fb8d2d..ba4c48a7a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // CumulativeSumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L194-L194 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L211-L214 type CumulativeSumAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 a32a2220ca..4daf0681b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -27,17 +27,20 @@ import ( "fmt" "io" "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" ) // CurrentNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L79-L90 type CurrentNode struct { - Attributes map[string]string `json:"attributes"` - Id string `json:"id"` - Name string `json:"name"` - TransportAddress string `json:"transport_address"` - WeightRanking int `json:"weight_ranking"` + Attributes map[string]string `json:"attributes"` + Id string `json:"id"` + Name string `json:"name"` + Roles []noderole.NodeRole `json:"roles"` + TransportAddress string `json:"transport_address"` + WeightRanking int `json:"weight_ranking"` } func (s *CurrentNode) UnmarshalJSON(data []byte) error { @@ -73,6 +76,11 @@ func (s *CurrentNode) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Name", err) } + case "roles": + if err := dec.Decode(&s.Roles); err != nil { + return fmt.Errorf("%s | %w", "Roles", err) + } + case "transport_address": if err := dec.Decode(&s.TransportAddress); err != nil { return fmt.Errorf("%s | %w", "TransportAddress", err) 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 fbd54ccb51..d9b56f72fd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CustomAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L28-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L28-L35 type CustomAnalyzer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` @@ -57,13 +57,35 @@ func (s *CustomAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "char_filter": - if err := dec.Decode(&s.CharFilter); err != nil { - return fmt.Errorf("%s | %w", "CharFilter", 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", "CharFilter", err) + } + + s.CharFilter = append(s.CharFilter, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.CharFilter); err != nil { + return fmt.Errorf("%s | %w", "CharFilter", err) + } } case "filter": - if err := dec.Decode(&s.Filter); err != nil { - return fmt.Errorf("%s | %w", "Filter", 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", "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 "position_increment_gap": 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 13954784c6..c4fe2c6f17 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CustomCategorizeTextAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1116-L1120 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1189-L1193 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 446c6fcc3d..88300264e9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // CustomNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/normalizers.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/customscheduling.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customscheduling.go index 76d783b927..30836461e4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customscheduling.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customscheduling.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CustomScheduling type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L120-L126 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L120-L126 type CustomScheduling struct { ConfigurationOverrides CustomSchedulingConfigurationOverrides `json:"configuration_overrides"` Enabled bool `json:"enabled"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customschedulingconfigurationoverrides.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customschedulingconfigurationoverrides.go index e45ea1f5e0..efddb50a8f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customschedulingconfigurationoverrides.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customschedulingconfigurationoverrides.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // CustomSchedulingConfigurationOverrides type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L112-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L112-L118 type CustomSchedulingConfigurationOverrides struct { DomainAllowlist []string `json:"domain_allowlist,omitempty"` MaxCrawlDepth *int `json:"max_crawl_depth,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/czechanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/czechanalyzer.go new file mode 100644 index 0000000000..f0a3f72181 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/czechanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// CzechAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L121-L126 +type CzechAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *CzechAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s CzechAnalyzer) MarshalJSON() ([]byte, error) { + type innerCzechAnalyzer CzechAnalyzer + tmp := innerCzechAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "czech" + + return json.Marshal(tmp) +} + +// NewCzechAnalyzer returns a CzechAnalyzer. +func NewCzechAnalyzer() *CzechAnalyzer { + r := &CzechAnalyzer{} + + return r +} 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 e1fa953ed3..d555298ced 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DailySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e6dd5db2c4..990c3e0e23 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DanglingIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/danishanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/danishanalyzer.go new file mode 100644 index 0000000000..ad69493636 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/danishanalyzer.go @@ -0,0 +1,113 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DanishAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L128-L132 +type DanishAnalyzer struct { + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *DanishAnalyzer) 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 "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s DanishAnalyzer) MarshalJSON() ([]byte, error) { + type innerDanishAnalyzer DanishAnalyzer + tmp := innerDanishAnalyzer{ + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "danish" + + return json.Marshal(tmp) +} + +// NewDanishAnalyzer returns a DanishAnalyzer. +func NewDanishAnalyzer() *DanishAnalyzer { + r := &DanishAnalyzer{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/databaseconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/databaseconfiguration.go new file mode 100644 index 0000000000..2b36ff5f98 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/databaseconfiguration.go @@ -0,0 +1,80 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// DatabaseConfiguration type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Database.ts#L22-L29 +type DatabaseConfiguration struct { + // Maxmind The configuration necessary to identify which IP geolocation provider to use + // to download the database, as well as any provider-specific configuration + // necessary for such downloading. + // At present, the only supported provider is maxmind, and the maxmind provider + // requires that an account_id (string) is configured. + Maxmind Maxmind `json:"maxmind"` + // Name The provider-assigned name of the IP geolocation database to download. + Name string `json:"name"` +} + +func (s *DatabaseConfiguration) 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 "maxmind": + if err := dec.Decode(&s.Maxmind); err != nil { + return fmt.Errorf("%s | %w", "Maxmind", err) + } + + case "name": + if err := dec.Decode(&s.Name); err != nil { + return fmt.Errorf("%s | %w", "Name", err) + } + + } + } + return nil +} + +// NewDatabaseConfiguration returns a DatabaseConfiguration. +func NewDatabaseConfiguration() *DatabaseConfiguration { + r := &DatabaseConfiguration{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/databaseconfigurationmetadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/databaseconfigurationmetadata.go new file mode 100644 index 0000000000..adc6695c1f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/databaseconfigurationmetadata.go @@ -0,0 +1,97 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DatabaseConfigurationMetadata type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34 +type DatabaseConfigurationMetadata struct { + Database DatabaseConfiguration `json:"database"` + Id string `json:"id"` + ModifiedDateMillis int64 `json:"modified_date_millis"` + Version int64 `json:"version"` +} + +func (s *DatabaseConfigurationMetadata) 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 "database": + if err := dec.Decode(&s.Database); err != nil { + return fmt.Errorf("%s | %w", "Database", err) + } + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "modified_date_millis": + if err := dec.Decode(&s.ModifiedDateMillis); err != nil { + return fmt.Errorf("%s | %w", "ModifiedDateMillis", err) + } + + case "version": + 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", "Version", err) + } + s.Version = value + case float64: + f := int64(v) + s.Version = f + } + + } + } + return nil +} + +// NewDatabaseConfigurationMetadata returns a DatabaseConfigurationMetadata. +func NewDatabaseConfigurationMetadata() *DatabaseConfigurationMetadata { + r := &DatabaseConfigurationMetadata{} + + return r +} 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 1fe94e75a7..3769c58fb2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L352-L372 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Job.ts#L352-L372 type DataCounts struct { BucketCount int64 `json:"bucket_count"` EarliestRecordTimestamp *int64 `json:"earliest_record_timestamp,omitempty"` 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 9156a84401..13087e9505 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataDescription type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L374-L390 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7394702770..027fd2284f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // DataEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L234-L236 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4413d8d6d8..f662efc722 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DatafeedAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Authorization.ts#L31-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0855de6d27..dd13f98f31 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DatafeedConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L59-L116 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L62-L119 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. 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 05f10a33f6..1e9880a1e7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DatafeedRunningState type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L197-L211 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L200-L214 type DatafeedRunningState struct { // RealTimeConfigured Indicates if the datafeed is "real-time"; meaning that the datafeed has no // configured `end` time. 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 a6436d3f8b..d3400a81c3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Datafeeds type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/info/types.ts#L40-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/info/types.ts#L40-L42 type Datafeeds struct { ScrollSize int `json:"scroll_size"` } 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 86ddd6d88f..ab43b17da3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DatafeedsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/ml_datafeeds/types.ts#L22-L87 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 48ef1622ae..1ea0590770 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DatafeedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L139-L168 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L142-L171 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 aef367c9db..c19a5fdb99 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DatafeedTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L170-L195 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L173-L198 type DatafeedTimingStats struct { // AverageSearchTimePerBucketMs The average search time per bucket, in milliseconds. AverageSearchTimePerBucketMs Float64 `json:"average_search_time_per_bucket_ms,omitempty"` 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 842cd5beed..cf3afe257e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L134-L213 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L133-L212 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 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 85fd12c42e..4595674432 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisAnalyzedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L238-L244 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L237-L243 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 3b20276cf6..c1b1e6f687 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L227-L236 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L226-L235 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 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 00fff9aa48..8b8742c58d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataframeAnalysisContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L84-L101 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L83-L100 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 e93f4711da..81096b8f6b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataframeAnalysisFeatureProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L246-L258 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L245-L257 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 3b5c30c5ec..0221eef693 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisFeatureProcessorFrequencyEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L260-L267 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L259-L266 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 98dd73afb6..e045a1090b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataframeAnalysisFeatureProcessorMultiEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L269-L272 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L268-L271 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 ec18686e1c..37ce1d05e1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorNGramEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L274-L286 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L273-L285 type DataframeAnalysisFeatureProcessorNGramEncoding struct { Custom *bool `json:"custom,omitempty"` // FeaturePrefix The feature name prefix. Defaults to ngram__. 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 39079b0de5..afada0ef49 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorOneHotEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L288-L293 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L287-L292 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 e5f1b4c613..79bf4fdc47 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorTargetMeanEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L295-L304 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L294-L303 type DataframeAnalysisFeatureProcessorTargetMeanEncoding struct { // DefaultValue The default value if field value is not found in the target_map. DefaultValue int `json:"default_value"` 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 b820330e53..e159e12973 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L103-L132 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L102-L131 type DataframeAnalysisOutlierDetection struct { // ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled. ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"` 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 cf855770ea..46e420401a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L215-L225 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L214-L224 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 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 46746ede9c..88b44231e1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DataframeAnalytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L324-L344 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L323-L343 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 74468aa6b2..9353f8f4c9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Authorization.ts#L45-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 aa86447278..36438bd073 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L76-L81 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 9a9dea6829..595a4c4874 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsFieldSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L55-L68 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L54-L67 type DataframeAnalyticsFieldSelection struct { // FeatureType The feature type of this field for the analysis. May be categorical or // numerical. 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 39be89a41e..1b957c96de 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsMemoryEstimation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L70-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L69-L74 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 6d579c3368..8e095f50f0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataFrameAnalyticsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/ml_data_frame_analytics/types.ts#L22-L102 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d639e42332..036e636627 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L39-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L38-L52 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 ad8b265fef..f121870aeb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataframeAnalyticsStatsContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L373-L381 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L372-L380 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 6ed80bcc79..15161f3297 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsDataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L364-L371 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L363-L370 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 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 723dc8582d..ed121f7af3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsHyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L383-L402 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L382-L401 type DataframeAnalyticsStatsHyperparameters struct { // Hyperparameters An object containing the parameters of the classification analysis job. Hyperparameters Hyperparameters `json:"hyperparameters"` 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 840a19f7ff..9127eaaae7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L353-L362 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L352-L361 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. 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 4d23bf9357..983225a46e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsStatsOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L404-L417 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L403-L416 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 3c49be38ac..07f10b9c84 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L346-L351 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L345-L350 type DataframeAnalyticsStatsProgress struct { // Phase Defines the phase of the data frame analytics job. Phase string `json:"phase"` 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 30d638487d..794f6c7eae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L306-L322 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L305-L321 type DataframeAnalyticsSummary struct { AllowLazyStart *bool `json:"allow_lazy_start,omitempty"` Analysis DataframeAnalysisContainer `json:"analysis"` 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 abb722db55..74b4224d8c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataframeClassificationSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L44-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3daed327a2..096c08d777 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryAccuracy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L111-L114 type DataframeClassificationSummaryAccuracy struct { Classes []DataframeEvaluationClass `json:"classes"` OverallAccuracy Float64 `json:"overall_accuracy"` 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 17d00c8adf..8a580cfa88 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryMulticlassConfusionMatrix type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L120-L123 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L120-L123 type DataframeClassificationSummaryMulticlassConfusionMatrix struct { ConfusionMatrix []ConfusionMatrixItem `json:"confusion_matrix"` OtherActualClassCount int `json:"other_actual_class_count"` 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 25c87b1071..5f938d0bc6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L101-L104 type DataframeClassificationSummaryPrecision struct { AvgPrecision Float64 `json:"avg_precision"` Classes []DataframeEvaluationClass `json:"classes"` 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 1b21fc0718..081024e08b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L106-L109 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L106-L109 type DataframeClassificationSummaryRecall struct { AvgRecall Float64 `json:"avg_recall"` Classes []DataframeEvaluationClass `json:"classes"` 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 9ab7461615..eb59be03cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L116-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L116-L118 type DataframeEvaluationClass struct { ClassName string `json:"class_name"` Value Float64 `json:"value"` 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 699dbe9c28..2f2d97bcba 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L35-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e9d9232a38..d9d6562c91 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationClassificationMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L73-L78 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 579f372a12..4c4a509c90 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClassificationMetricsAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L85-L90 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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). 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 13f29cc2a9..a5a25898a4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataframeEvaluationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2b2db74cc4..a191dbf1f3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L64-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ec00a789c2..b33b0aec7c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L46-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bc18c08d60..df5290ee47 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationOutlierDetectionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L80-L83 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 af8099668e..8f0a9788e1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L55-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2e505e2178..bf64934a5b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationRegressionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L92-L110 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 143891ca04..3f86141143 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsHuber type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L117-L120 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 1ecef3981e..44ff73df99 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsMsle type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeEvaluation.ts#L112-L115 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 899c0880d6..4b6a0baea3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L91-L93 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L91-L93 type DataframeEvaluationSummaryAucRoc struct { Curve []DataframeEvaluationSummaryAucRocCurveItem `json:"curve,omitempty"` Value Float64 `json:"value"` 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 6dc416008d..f5b0b3fe9c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRocCurveItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L95-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L95-L99 type DataframeEvaluationSummaryAucRocCurveItem struct { Fpr Float64 `json:"fpr"` Threshold Float64 `json:"threshold"` 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 dd645d4b6a..793787dec1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L87-L89 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/evaluate_data_frame/types.ts#L87-L89 type DataframeEvaluationValue struct { Value Float64 `json:"value"` } 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 200b803c2d..7a4c10239e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataframeOutlierDetectionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 75a88c9761..a2476b868e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataframePreviewConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/preview_data_frame_analytics/types.ts#L27-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/preview_data_frame_analytics/types.ts#L27-L33 type DataframePreviewConfig struct { Analysis DataframeAnalysisContainer `json:"analysis"` AnalyzedFields *DataframeAnalysisAnalyzedFields `json:"analyzed_fields,omitempty"` 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 75f41b5e7c..6d7f740749 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataframeRegressionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/types.ts#L68-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bfdf4c6216..22ee4d6dc2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataPathStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L550-L594 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L586-L630 type DataPathStats struct { // Available Total amount of disk space available to this Java virtual machine on this // file store. 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 ed46e64cf9..3bb6c6f20e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,10 +34,12 @@ import ( // DataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L39-L112 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/DataStream.ts#L45-L127 type DataStream struct { // AllowCustomRouting If `true`, the data stream allows custom routing on write request. AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` + // FailureStore Information about failure store backing indices + FailureStore *FailureStore `json:"failure_store,omitempty"` // Generation Current generation for the data stream. This number acts as a cumulative // count of the stream’s rollovers, starting at 1. Generation int `json:"generation"` @@ -57,8 +59,7 @@ type DataStream struct { // The last item in this array contains information about the stream’s current // write index. Indices []DataStreamIndex `json:"indices"` - // Lifecycle Contains the configuration for the data lifecycle management of this data - // stream. + // Lifecycle Contains the configuration for the data stream lifecycle of this data stream. Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"` // Meta_ Custom metadata for the stream, copied from the `_meta` object of the // stream’s matching index template. @@ -76,6 +77,10 @@ type DataStream struct { // replication and the local cluster can not write into this data stream or // change its mappings. Replicated *bool `json:"replicated,omitempty"` + // RolloverOnWrite If `true`, the next write to this data stream will trigger a rollover first + // and the document will be indexed in the new backing index. If the rollover + // fails the indexing request will fail too. + RolloverOnWrite bool `json:"rollover_on_write"` // Status Health status of the data stream. // This health status is based on the state of the primary and replica shards of // the stream’s backing indices. @@ -119,6 +124,11 @@ func (s *DataStream) UnmarshalJSON(data []byte) error { s.AllowCustomRouting = &v } + case "failure_store": + if err := dec.Decode(&s.FailureStore); err != nil { + return fmt.Errorf("%s | %w", "FailureStore", err) + } + case "generation": var tmp any @@ -207,6 +217,20 @@ func (s *DataStream) UnmarshalJSON(data []byte) error { s.Replicated = &v } + case "rollover_on_write": + 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", "RolloverOnWrite", err) + } + s.RolloverOnWrite = value + case bool: + s.RolloverOnWrite = v + } + case "status": if err := dec.Decode(&s.Status); err != nil { return fmt.Errorf("%s | %w", "Status", err) 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 da56f3a462..07575b9321 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DataStreamIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L121-L142 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/DataStream.ts#L136-L157 type DataStreamIndex struct { // IlmPolicy Name of the current ILM lifecycle policy configured for this backing index. IlmPolicy *string `json:"ilm_policy,omitempty"` @@ -42,10 +42,10 @@ type DataStreamIndex struct { // IndexUuid Universally unique identifier (UUID) for the index. IndexUuid string `json:"index_uuid"` // ManagedBy Name of the lifecycle system that's currently managing this backing index. - ManagedBy managedby.ManagedBy `json:"managed_by"` + ManagedBy *managedby.ManagedBy `json:"managed_by,omitempty"` // PreferIlm Indicates if ILM should take precedence over DSL in case both are configured // to manage this index. - PreferIlm bool `json:"prefer_ilm"` + PreferIlm *bool `json:"prefer_ilm,omitempty"` } func (s *DataStreamIndex) UnmarshalJSON(data []byte) error { @@ -92,9 +92,9 @@ func (s *DataStreamIndex) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "PreferIlm", err) } - s.PreferIlm = value + s.PreferIlm = &value case bool: - s.PreferIlm = v + s.PreferIlm = &v } } 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 99097194ca..574796e14c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataStreamLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStreamLifecycle.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/datastreamlifecycledetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledetails.go new file mode 100644 index 0000000000..a2de2eeb78 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledetails.go @@ -0,0 +1,103 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DataStreamLifecycleDetails type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L152-L156 +type DataStreamLifecycleDetails struct { + StagnatingBackingIndices []StagnatingBackingIndices `json:"stagnating_backing_indices,omitempty"` + StagnatingBackingIndicesCount int `json:"stagnating_backing_indices_count"` + TotalBackingIndicesInError int `json:"total_backing_indices_in_error"` +} + +func (s *DataStreamLifecycleDetails) 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 "stagnating_backing_indices": + if err := dec.Decode(&s.StagnatingBackingIndices); err != nil { + return fmt.Errorf("%s | %w", "StagnatingBackingIndices", err) + } + + case "stagnating_backing_indices_count": + + 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", "StagnatingBackingIndicesCount", err) + } + s.StagnatingBackingIndicesCount = value + case float64: + f := int(v) + s.StagnatingBackingIndicesCount = f + } + + case "total_backing_indices_in_error": + + 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", "TotalBackingIndicesInError", err) + } + s.TotalBackingIndicesInError = value + case float64: + f := int(v) + s.TotalBackingIndicesInError = f + } + + } + } + return nil +} + +// NewDataStreamLifecycleDetails returns a DataStreamLifecycleDetails. +func NewDataStreamLifecycleDetails() *DataStreamLifecycleDetails { + r := &DataStreamLifecycleDetails{} + + return r +} 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 9b8cd6264d..a82f9f5654 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataStreamLifecycleDownsampling type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e1438d58f8..bb47b3d487 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleExplain type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41 type DataStreamLifecycleExplain struct { Error *string `json:"error,omitempty"` GenerationTime Duration `json:"generation_time,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycleindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycleindicator.go new file mode 100644 index 0000000000..ef27167586 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycleindicator.go @@ -0,0 +1,102 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" +) + +// DataStreamLifecycleIndicator type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L147-L151 +type DataStreamLifecycleIndicator struct { + Details *DataStreamLifecycleDetails `json:"details,omitempty"` + Diagnosis []Diagnosis `json:"diagnosis,omitempty"` + Impacts []Impact `json:"impacts,omitempty"` + Status indicatorhealthstatus.IndicatorHealthStatus `json:"status"` + Symptom string `json:"symptom"` +} + +func (s *DataStreamLifecycleIndicator) 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 "details": + if err := dec.Decode(&s.Details); err != nil { + return fmt.Errorf("%s | %w", "Details", err) + } + + case "diagnosis": + if err := dec.Decode(&s.Diagnosis); err != nil { + return fmt.Errorf("%s | %w", "Diagnosis", err) + } + + case "impacts": + if err := dec.Decode(&s.Impacts); err != nil { + return fmt.Errorf("%s | %w", "Impacts", err) + } + + case "status": + if err := dec.Decode(&s.Status); err != nil { + return fmt.Errorf("%s | %w", "Status", err) + } + + case "symptom": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Symptom", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Symptom = o + + } + } + return nil +} + +// NewDataStreamLifecycleIndicator returns a DataStreamLifecycleIndicator. +func NewDataStreamLifecycleIndicator() *DataStreamLifecycleIndicator { + r := &DataStreamLifecycleIndicator{} + + return r +} 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 ce38cbe886..b438f2c4cd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleRolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStreamLifecycle.ts#L57-L69 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/DataStreamLifecycle.ts#L57-L69 type DataStreamLifecycleRolloverConditions struct { MaxAge *string `json:"max_age,omitempty"` MaxDocs *int64 `json:"max_docs,omitempty"` 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 34a42e7d81..803c10616f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataStreamLifecycleWithRollover type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStreamLifecycle.ts#L33-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 852ed40e0d..efcaad07a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DataStreamNames type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L94-L94 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L95-L95 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 717c9713d8..1cf32ec63d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataStreams type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L81-L84 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L79-L82 type DataStreams struct { Available bool `json:"available"` DataStreams int64 `json:"data_streams"` 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 8846b0703a..64832d6730 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataStreamsStatsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 f15fc17809..3e45bf9481 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataStreamTimestamp type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/TypeMapping.ts#L59-L61 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/TypeMapping.ts#L59-L61 type DataStreamTimestamp struct { Enabled bool `json:"enabled"` } 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 8091508784..4b0d4951a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataStreamTimestampField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L114-L119 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/DataStream.ts#L129-L134 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 5978aca366..81fce5682d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,9 +31,10 @@ import ( // DataStreamVisibility type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L144-L146 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/DataStream.ts#L159-L162 type DataStreamVisibility struct { - Hidden *bool `json:"hidden,omitempty"` + AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` + Hidden *bool `json:"hidden,omitempty"` } func (s *DataStreamVisibility) UnmarshalJSON(data []byte) error { @@ -51,6 +52,20 @@ func (s *DataStreamVisibility) UnmarshalJSON(data []byte) error { switch t { + case "allow_custom_routing": + 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", "AllowCustomRouting", err) + } + s.AllowCustomRouting = &value + case bool: + s.AllowCustomRouting = &v + } + case "hidden": var tmp any dec.Decode(&tmp) 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 56873baa93..7bdb64c0dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DataStreamWithLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 26c9c43dc9..81a44028a7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataTierPhaseStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L86-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L84-L95 type DataTierPhaseStatistics struct { DocCount int64 `json:"doc_count"` IndexCount int64 `json:"index_count"` 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 ef41ab9e2e..b30ec3eb90 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DataTiers type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L339-L349 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L337-L347 type DataTiers struct { Available bool `json:"available"` DataCold DataTierPhaseStatistics `json:"data_cold"` 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 f42fe610b4..2aef13ce60 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // DateDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L193-L193 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L209-L209 type DateDecayFunction struct { DecayFunctionBaseDateMathDuration map[string]DecayPlacementDateMathDuration `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the 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 baaed5c0c8..b7ccb039e0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DateDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L72-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L71-L74 type DateDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 1b726ce778..96080f290e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L350-L351 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L383-L386 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 78a0a2324d..da0d8b0138 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // DateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L191-L249 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L202-L260 type DateHistogramAggregation struct { // CalendarInterval Calendar-aware interval. // Can be specified using the unit name, such as `month`, or as a single unit 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 c62d3e0fea..d1b4bf6ec8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // DateHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L353-L356 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L388-L391 type DateHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -504,6 +504,13 @@ func (s *DateHistogramBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 717c17d77b..4a92cbf052 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DateHistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/_types/Groupings.ts#L42-L73 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 38d2fc75c4..cc9d59d6e8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DateIndexNameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L502-L540 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L689-L727 type DateIndexNameProcessor struct { // DateFormats An array of the expected date formats for parsing dates / timestamps in the // document being preprocessed. 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 b591b3c3ba..86f7b50e91 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DateNanosProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L79-L87 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L78-L86 type DateNanosProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -49,7 +49,6 @@ type DateNanosProperty struct { NullValue DateTime `json:"null_value,omitempty"` PrecisionStep *int `json:"precision_step,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -843,18 +842,6 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -896,7 +883,6 @@ func (s DateNanosProperty) MarshalJSON() ([]byte, error) { NullValue: s.NullValue, PrecisionStep: s.PrecisionStep, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 3cb17aaf31..cad45f65b9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DateProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L542-L569 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L729-L762 type DateProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -52,6 +52,9 @@ type DateProcessor struct { Locale *string `json:"locale,omitempty"` // OnFailure Handle failures for the processor. OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // OutputFormat The format to use when writing the date to target_field. Must be a valid + // java time pattern. + OutputFormat *string `json:"output_format,omitempty"` // Tag Identifier for the processor. // Useful for debugging and metrics. Tag *string `json:"tag,omitempty"` @@ -142,6 +145,18 @@ func (s *DateProcessor) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "OnFailure", err) } + case "output_format": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "OutputFormat", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.OutputFormat = &o + case "tag": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { 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 5c5bf0df98..b19838f59f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DateProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L67-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L66-L76 type DateProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -51,7 +51,6 @@ type DateProperty struct { NullValue DateTime `json:"null_value,omitempty"` PrecisionStep *int `json:"precision_step,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -862,18 +861,6 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -917,7 +904,6 @@ func (s DateProperty) MarshalJSON() ([]byte, error) { NullValue: s.NullValue, PrecisionStep: s.PrecisionStep, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 b875d8ab50..bd0fecc81f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DateRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L547-L552 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L609-L615 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 c9f71789ab..45adcbbb44 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DateRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L270-L296 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L281-L307 type DateRangeAggregation struct { // Field The date field whose values are use to build ranges. Field *string `json:"field,omitempty"` 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 c4856d1ec3..c47b02cf2b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DateRangeExpression type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L307-L320 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L318-L331 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 d004b59b01..ab63cefcd5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DateRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/range.ts#L29-L32 type DateRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -47,7 +47,6 @@ type DateRangeProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -820,18 +819,6 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -871,7 +858,6 @@ func (s DateRangeProperty) MarshalJSON() ([]byte, error) { Index: s.Index, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 b8e2bc49a7..c81e6b2717 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DateRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L146-L155 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L161-L170 type DateRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 3be65e3643..40b5c5c0e1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // int64 // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 261cf19986..e4e37189f8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -27,5 +27,5 @@ package types // NumericDecayFunction // GeoDecayFunction // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L199-L208 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L215-L224 type DecayFunction any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedatemathduration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedatemathduration.go index fdf67253a8..fb128b2119 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedatemathduration.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedatemathduration.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // DecayFunctionBaseDateMathDuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L175-L186 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L191-L202 type DecayFunctionBaseDateMathDuration struct { DecayFunctionBaseDateMathDuration map[string]DecayPlacementDateMathDuration `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedoubledouble.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedoubledouble.go index a28ca5b610..4bd5cae454 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedoubledouble.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedoubledouble.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // DecayFunctionBasedoubledouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L175-L186 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L191-L202 type DecayFunctionBasedoubledouble struct { DecayFunctionBasedoubledouble map[string]DecayPlacementdoubledouble `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasegeolocationdistance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasegeolocationdistance.go index 5fe4563cc9..c37cc10f42 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasegeolocationdistance.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasegeolocationdistance.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // DecayFunctionBaseGeoLocationDistance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L175-L186 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L191-L202 type DecayFunctionBaseGeoLocationDistance struct { DecayFunctionBaseGeoLocationDistance map[string]DecayPlacementGeoLocationDistance `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacement.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacement.go index e122f54575..0b038557b2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacement.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacement.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DecayPlacement type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L154-L173 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacement struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` 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 df9662db6a..761c1f4f25 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementDateMathDuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L154-L173 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementDateMathDuration struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` 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 1db26a1982..6e874dae52 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementdoubledouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L154-L173 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementdoubledouble struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` 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 2861d5bfff..c5c1b4d1be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementGeoLocationDistance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L154-L173 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementGeoLocationDistance struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` 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 8ed1ddc8d7..fae748ab13 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Defaults type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 62e0a25f91..989727b43a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Definition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 75568918ff..6983d1bb63 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DelayedDataCheckConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L118-L129 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L121-L132 type DelayedDataCheckConfig struct { // CheckWindow The window of time that is searched for late data. This window of time ends // with the latest finalized bucket. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteaction.go index e6bcc0cfc4..83ac81d9b0 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DeleteAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L152-L154 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L152-L154 type DeleteAction struct { DeleteSearchableSnapshot *bool `json:"delete_searchable_snapshot,omitempty"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteinferenceendpointresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteinferenceendpointresult.go index 0d5a0873b2..5f08d91fa8 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteinferenceendpointresult.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteinferenceendpointresult.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DeleteInferenceEndpointResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Results.ts#L91-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Results.ts#L91-L96 type DeleteInferenceEndpointResult struct { // Acknowledged For a successful response, this value is always true. On failure, an // exception is returned instead. 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 00fad064d5..da4dc67745 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DeleteOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L134-L134 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/bulk/types.ts#L134-L134 type DeleteOperation struct { // Id_ The document ID. Id_ *string `json:"_id,omitempty"` 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 8ace75ab16..08425f3232 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DelimitedPayloadTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L68-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L67-L71 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 a13c03302d..9e7f08adf0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DenseVectorIndexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/DenseVectorIndexOptions.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/DenseVectorIndexOptions.ts#L22-L27 type DenseVectorIndexOptions struct { ConfidenceInterval *float32 `json:"confidence_interval,omitempty"` EfConstruction *int `json:"ef_construction,omitempty"` 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 ad896471ab..d11009958c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DenseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L52-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/complex.ts#L52-L59 type DenseVectorProperty struct { Dims *int `json:"dims,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dependency.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dependency.go index f4a37cab9d..c4fadabdab 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dependency.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dependency.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Dependency type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L30-L33 type Dependency struct { Field string `json:"field"` Value ScalarValue `json:"value"` 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 221196cf3d..518ae9bfe3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // Deprecation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/deprecations/types.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6f62c4a0c3..e5e8e127e2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DeprecationIndexing type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L144-L146 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 48a1284fca..66b4acf02d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DerivativeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L227-L231 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L241-L248 type DerivativeAggregate struct { Meta Metadata `json:"meta,omitempty"` NormalizedValue *Float64 `json:"normalized_value,omitempty"` 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 46c7b3f92e..4d86c12552 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DerivativeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L196-L196 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L216-L216 type DerivativeAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 064f570adb..b290b7f109 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // DetectionRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Rule.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 171c47cdd3..961d1a3c55 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // Detector type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Detector.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 c9351ac482..a39eade8d4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DetectorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Detector.ts#L69-L125 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsknnprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsknnprofile.go new file mode 100644 index 0000000000..1879468e9c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsknnprofile.go @@ -0,0 +1,107 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DfsKnnProfile type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L181-L186 +type DfsKnnProfile struct { + Collector []KnnCollectorResult `json:"collector"` + Query []KnnQueryProfileResult `json:"query"` + RewriteTime int64 `json:"rewrite_time"` + VectorOperationsCount *int64 `json:"vector_operations_count,omitempty"` +} + +func (s *DfsKnnProfile) 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 "collector": + if err := dec.Decode(&s.Collector); err != nil { + return fmt.Errorf("%s | %w", "Collector", err) + } + + case "query": + if err := dec.Decode(&s.Query); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + + case "rewrite_time": + 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", "RewriteTime", err) + } + s.RewriteTime = value + case float64: + f := int64(v) + s.RewriteTime = f + } + + case "vector_operations_count": + 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", "VectorOperationsCount", err) + } + s.VectorOperationsCount = &value + case float64: + f := int64(v) + s.VectorOperationsCount = &f + } + + } + } + return nil +} + +// NewDfsKnnProfile returns a DfsKnnProfile. +func NewDfsKnnProfile() *DfsKnnProfile { + r := &DfsKnnProfile{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsprofile.go new file mode 100644 index 0000000000..f8e2f9da50 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsprofile.go @@ -0,0 +1,36 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// DfsProfile type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L154-L157 +type DfsProfile struct { + Knn []DfsKnnProfile `json:"knn,omitempty"` + Statistics *DfsStatisticsProfile `json:"statistics,omitempty"` +} + +// NewDfsProfile returns a DfsProfile. +func NewDfsProfile() *DfsProfile { + r := &DfsProfile{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsstatisticsbreakdown.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsstatisticsbreakdown.go new file mode 100644 index 0000000000..4b9f7e3634 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsstatisticsbreakdown.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. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DfsStatisticsBreakdown type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L170-L179 +type DfsStatisticsBreakdown struct { + CollectionStatistics int64 `json:"collection_statistics"` + CollectionStatisticsCount int64 `json:"collection_statistics_count"` + CreateWeight int64 `json:"create_weight"` + CreateWeightCount int64 `json:"create_weight_count"` + Rewrite int64 `json:"rewrite"` + RewriteCount int64 `json:"rewrite_count"` + TermStatistics int64 `json:"term_statistics"` + TermStatisticsCount int64 `json:"term_statistics_count"` +} + +func (s *DfsStatisticsBreakdown) 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 "collection_statistics": + 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", "CollectionStatistics", err) + } + s.CollectionStatistics = value + case float64: + f := int64(v) + s.CollectionStatistics = f + } + + case "collection_statistics_count": + 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", "CollectionStatisticsCount", err) + } + s.CollectionStatisticsCount = value + case float64: + f := int64(v) + s.CollectionStatisticsCount = f + } + + case "create_weight": + 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", "CreateWeight", err) + } + s.CreateWeight = value + case float64: + f := int64(v) + s.CreateWeight = f + } + + case "create_weight_count": + 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", "CreateWeightCount", err) + } + s.CreateWeightCount = value + case float64: + f := int64(v) + s.CreateWeightCount = f + } + + case "rewrite": + 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", "Rewrite", err) + } + s.Rewrite = value + case float64: + f := int64(v) + s.Rewrite = f + } + + case "rewrite_count": + 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", "RewriteCount", err) + } + s.RewriteCount = value + case float64: + f := int64(v) + s.RewriteCount = f + } + + case "term_statistics": + 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", "TermStatistics", err) + } + s.TermStatistics = value + case float64: + f := int64(v) + s.TermStatistics = f + } + + case "term_statistics_count": + 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", "TermStatisticsCount", err) + } + s.TermStatisticsCount = value + case float64: + f := int64(v) + s.TermStatisticsCount = f + } + + } + } + return nil +} + +// NewDfsStatisticsBreakdown returns a DfsStatisticsBreakdown. +func NewDfsStatisticsBreakdown() *DfsStatisticsBreakdown { + r := &DfsStatisticsBreakdown{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsstatisticsprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsstatisticsprofile.go new file mode 100644 index 0000000000..7900c60229 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dfsstatisticsprofile.go @@ -0,0 +1,124 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DfsStatisticsProfile type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L159-L167 +type DfsStatisticsProfile struct { + Breakdown DfsStatisticsBreakdown `json:"breakdown"` + Children []DfsStatisticsProfile `json:"children,omitempty"` + Debug map[string]json.RawMessage `json:"debug,omitempty"` + Description string `json:"description"` + Time Duration `json:"time,omitempty"` + TimeInNanos int64 `json:"time_in_nanos"` + Type string `json:"type"` +} + +func (s *DfsStatisticsProfile) 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 "breakdown": + if err := dec.Decode(&s.Breakdown); err != nil { + return fmt.Errorf("%s | %w", "Breakdown", err) + } + + case "children": + if err := dec.Decode(&s.Children); err != nil { + return fmt.Errorf("%s | %w", "Children", err) + } + + case "debug": + if s.Debug == nil { + s.Debug = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.Debug); err != nil { + return fmt.Errorf("%s | %w", "Debug", err) + } + + case "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = o + + case "time": + if err := dec.Decode(&s.Time); err != nil { + return fmt.Errorf("%s | %w", "Time", err) + } + + case "time_in_nanos": + if err := dec.Decode(&s.TimeInNanos); err != nil { + return fmt.Errorf("%s | %w", "TimeInNanos", err) + } + + case "type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Type = o + + } + } + return nil +} + +// NewDfsStatisticsProfile returns a DfsStatisticsProfile. +func NewDfsStatisticsProfile() *DfsStatisticsProfile { + r := &DfsStatisticsProfile{ + Debug: make(map[string]json.RawMessage, 0), + } + + return r +} 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 b2638cffe7..0e9bc9c677 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Diagnosis type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L49-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L50-L56 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 73f06a9a34..c579864c07 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DiagnosisAffectedResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L57-L63 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L58-L64 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 8b871418a1..29cb7137a5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DictionaryDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L53-L55 type DictionaryDecompounderTokenFilter struct { HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` MaxSubwordSize *int `json:"max_subword_size,omitempty"` 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 34fda2708a..0d991ef6f7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DirectGenerator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L268-L331 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L268-L331 type DirectGenerator struct { // Field The field to fetch the candidate suggestions from. // Needs to be set globally or per suggestion. 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 590e253d9c..04ff36c6a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Discovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L201-L219 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cad29e0a0d..e01155caf3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DiscoveryNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DiscoveryNode.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 51c4b7f3a4..42d1392963 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DiskIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L122-L126 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L123-L127 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 97a539f660..166fe79075 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DiskIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L127-L133 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L128-L134 type DiskIndicatorDetails struct { IndicesWithReadonlyBlock int64 `json:"indices_with_readonly_block"` NodesOverFloodStageWatermark int64 `json:"nodes_over_flood_stage_watermark"` 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 41d7c8db98..a2626032f0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L62-L69 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L63-L70 type DiskUsage struct { FreeBytes int64 `json:"free_bytes"` FreeDiskPercent Float64 `json:"free_disk_percent"` 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 aa7dc4ac30..6a47fefd50 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DisMaxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L79-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L88-L103 type DisMaxQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 085d3b373a..e0229be7f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DissectProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L571-L590 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L764-L783 type DissectProcessor struct { // AppendSeparator The character(s) that separate the appended fields. AppendSeparator *string `json:"append_separator,omitempty"` 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 667c302def..bd276c4607 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ package types // GeoDistanceFeatureQuery // DateDistanceFeatureQuery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L77-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L76-L85 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 aee1d6d548..ed465e5195 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DistanceFeatureQueryBaseDateMathDuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L40-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L39-L59 type DistanceFeatureQueryBaseDateMathDuration struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 dfd34ca20b..8069a0f239 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DistanceFeatureQueryBaseGeoLocationDistance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L40-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L39-L59 type DistanceFeatureQueryBaseGeoLocationDistance struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 4817772789..15ea4ebbda 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DiversifiedSamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L322-L343 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L333-L357 type DiversifiedSamplerAggregation struct { // ExecutionHint The type of value used for de-duplication. ExecutionHint *sampleraggregationexecutionhint.SamplerAggregationExecutionHint `json:"execution_hint,omitempty"` 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 c1190ad7b7..8cb2ef7af7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DocStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L97-L109 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L97-L109 type DocStats struct { // Count Total number of non-deleted documents across all primary shards assigned to // selected nodes. 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 5d580736cf..2172941b30 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Document type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/types.ts#L41-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/simulate/types.ts#L62-L76 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 97c550a868..c7acba920a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DocumentRating type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L116-L123 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/rank_eval/types.ts#L119-L126 type DocumentRating struct { // Id_ The document ID. Id_ string `json:"_id"` 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 f0760234b5..e16f17c827 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DocumentSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/types.ts#L57-L87 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/simulate/types.ts#L78-L108 type DocumentSimulation struct { DocumentSimulation map[string]string `json:"-"` // Id_ Unique identifier for the document. This ID must be unique within the 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 458e28d34e..6e37015410 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DotExpanderProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L592-L603 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L785-L803 type DotExpanderProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -45,6 +45,13 @@ type DotExpanderProcessor struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` // OnFailure Handle failures for the processor. OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // Override Controls the behavior when there is already an existing nested object that + // conflicts with the expanded field. + // When `false`, the processor will merge conflicts by combining the old and the + // new values into an array. + // When `true`, the value from the expanded field will overwrite the existing + // value. + Override *bool `json:"override,omitempty"` // Path The field that contains the field to expand. // Only required if the field to expand is part another object field, because // the `field` option can only understand leaf fields. @@ -117,6 +124,20 @@ func (s *DotExpanderProcessor) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "OnFailure", err) } + case "override": + 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", "Override", err) + } + s.Override = &value + case bool: + s.Override = &v + } + case "path": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { 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 068644245a..8720facd44 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // DoubleNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L152-L155 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L152-L155 type DoubleNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,6 @@ type DoubleNumberProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -859,18 +858,6 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -932,7 +919,6 @@ func (s DoubleNumberProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, 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 f1fbe4cff8..7e9caa27e2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // DoubleRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/range.ts#L34-L36 type DoubleRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -46,7 +46,6 @@ type DoubleRangeProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -807,18 +806,6 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -857,7 +844,6 @@ func (s DoubleRangeProperty) MarshalJSON() ([]byte, error) { Index: s.Index, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 b3c3237aec..5ed9c7202b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DoubleTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L413-L418 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L451-L456 type DoubleTermsAggregate struct { Buckets BucketsDoubleTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 4915572197..b3b635140e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // DoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L420-L423 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L458-L461 type DoubleTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -531,6 +531,13 @@ func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleaction.go index 65c5bcac79..78000d7d13 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DownsampleAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L115-L118 type DownsampleAction struct { FixedInterval string `json:"fixed_interval"` WaitTimeout Duration `json:"wait_timeout,omitempty"` 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 ef4842e0bf..4d00c97813 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DownsampleConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/Downsample.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dfb9b44f45..3633db4cd1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // DownsamplingRound type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DownsamplingRound.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fca2a9c1af..ea2ca94623 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // DropProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L605-L605 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L805-L805 type DropProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 0860ed5c09..28369e845c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -24,5 +24,5 @@ package types // // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7a8d4bf459..5521841bf4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DurationValueUnitFloatMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fc36492cd4..864c496337 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DurationValueUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7f1ba421b3..effe8587f5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DurationValueUnitNanos type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9037cdc4c9..9b3307af52 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // DurationValueUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 481ca51973..41023fa5b4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,14 +26,17 @@ import ( "errors" "fmt" "io" + "strconv" ) // DutchAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L61-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L134-L139 type DutchAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *DutchAnalyzer) UnmarshalJSON(data []byte) error { @@ -51,6 +54,11 @@ func (s *DutchAnalyzer) UnmarshalJSON(data []byte) error { switch t { + case "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + case "stopwords": rawMsg := json.RawMessage{} dec.Decode(&rawMsg) @@ -67,6 +75,18 @@ func (s *DutchAnalyzer) UnmarshalJSON(data []byte) error { } } + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + case "type": if err := dec.Decode(&s.Type); err != nil { return fmt.Errorf("%s | %w", "Type", err) @@ -81,8 +101,10 @@ func (s *DutchAnalyzer) UnmarshalJSON(data []byte) error { func (s DutchAnalyzer) MarshalJSON() ([]byte, error) { type innerDutchAnalyzer DutchAnalyzer tmp := innerDutchAnalyzer{ - Stopwords: s.Stopwords, - Type: s.Type, + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, } tmp.Type = "dutch" 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 77960536b2..05d2780a21 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -37,7 +37,7 @@ import ( // DynamicProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L300-L331 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L302-L333 type DynamicProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` @@ -67,7 +67,6 @@ type DynamicProperty struct { Script *Script `json:"script,omitempty"` SearchAnalyzer *string `json:"search_analyzer,omitempty"` SearchQuoteAnalyzer *string `json:"search_quote_analyzer,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` TermVector *termvectoroption.TermVectorOption `json:"term_vector,omitempty"` TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"` @@ -1017,18 +1016,6 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error { } s.SearchQuoteAnalyzer = &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) @@ -1094,7 +1081,6 @@ func (s DynamicProperty) MarshalJSON() ([]byte, error) { Script: s.Script, SearchAnalyzer: s.SearchAnalyzer, SearchQuoteAnalyzer: s.SearchQuoteAnalyzer, - Similarity: s.Similarity, Store: s.Store, TermVector: s.TermVector, TimeSeriesMetric: s.TimeSeriesMetric, 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 6fbb0f6043..9dfab7d782 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // DynamicTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/dynamic-template.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/dynamic-template.ts#L22-L42 type DynamicTemplate struct { Mapping Property `json:"mapping,omitempty"` Match []string `json:"match,omitempty"` 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 dfb0e7894f..1ee76802b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // EdgeNGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L79-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L78-L84 type EdgeNGramTokenFilter struct { MaxGram *int `json:"max_gram,omitempty"` MinGram *int `json:"min_gram,omitempty"` 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 35e9ea0dcf..8390e7dfa6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,12 +33,12 @@ import ( // EdgeNGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L31-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L48-L57 type EdgeNGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` - MaxGram int `json:"max_gram"` - MinGram int `json:"min_gram"` - TokenChars []tokenchar.TokenChar `json:"token_chars"` + MaxGram *int `json:"max_gram,omitempty"` + MinGram *int `json:"min_gram,omitempty"` + TokenChars []tokenchar.TokenChar `json:"token_chars,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` } @@ -80,10 +80,10 @@ func (s *EdgeNGramTokenizer) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "MaxGram", err) } - s.MaxGram = value + s.MaxGram = &value case float64: f := int(v) - s.MaxGram = f + s.MaxGram = &f } case "min_gram": @@ -96,10 +96,10 @@ func (s *EdgeNGramTokenizer) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "MinGram", err) } - s.MinGram = value + s.MinGram = &value case float64: f := int(v) - s.MinGram = f + s.MinGram = &f } case "token_chars": 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 1165d9869e..17a11d951e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Base.ts#L54-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Base.ts#L54-L64 type ElasticsearchVersionInfo struct { BuildDate DateTime `json:"build_date"` BuildFlavor string `json:"build_flavor"` 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 489d64207f..42e04cf430 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionMinInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Base.ts#L66-L74 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7b4538611b..6cc603560c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ElisionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L189-L194 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L188-L193 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 9a7990ee67..ae79a3d986 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // Email type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L238-L250 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b0aef7d189..b20d828a46 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // EmailAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L252-L252 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bf6f4b0f4d..625666a780 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EmailAttachmentContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L211-L216 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8d09f3a635..9ce54ae3d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // EmailBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c1dfff79b3..e07f2227f7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // EmailResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a1a90055b2..11ac4eb817 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EmptyObject type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L160-L161 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L161-L162 type EmptyObject struct { } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/englishanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/englishanalyzer.go new file mode 100644 index 0000000000..73736a39c3 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/englishanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// EnglishAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L141-L146 +type EnglishAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *EnglishAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s EnglishAnalyzer) MarshalJSON() ([]byte, error) { + type innerEnglishAnalyzer EnglishAnalyzer + tmp := innerEnglishAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "english" + + return json.Marshal(tmp) +} + +// NewEnglishAnalyzer returns a EnglishAnalyzer. +func NewEnglishAnalyzer() *EnglishAnalyzer { + r := &EnglishAnalyzer{} + + return r +} 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 67c7dc3cdf..9d8f29be43 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // EnrichPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/_types/Policy.ts#L34-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8933ba05ee..2c0073038b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // EnrichProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L607-L646 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L807-L846 type EnrichProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 7c8decb3e8..ee497977f8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Ensemble type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e3081ea19c..938fcf574a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package accesstokengranttype package accesstokengranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_token/types.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c30c100714..59ffee2b5f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package acknowledgementoptions package acknowledgementoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L109-L113 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L103-L107 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 6cc85cbc7e..a1e97ee9a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package actionexecutionmode package actionexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L73-L94 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L67-L88 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 2c4b8ae492..26d4252e74 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package actionstatusoptions package actionstatusoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L102-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L96-L101 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 76a62711b7..fd8780ef56 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package actiontype package actiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L64-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L58-L65 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 17a89d93bf..f61896e2ed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package allocationexplaindecision package allocationexplaindecision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L33-L38 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 d48f09e829..7ac5ae31d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package apikeygranttype package apikeygranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/grant_api_key/types.ts#L48-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 15ad3288a5..548bf89f9c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package appliesto package appliesto import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Rule.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3533c917f2..027c85a0a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package boundaryscanner package boundaryscanner import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L27-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/highlighting.ts#L26-L45 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 cc8660c132..a421d8ff20 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package bytes package bytes import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L169-L181 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L170-L182 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 22a996738c..bd2564963f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package calendarinterval package calendarinterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L251-L268 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L262-L279 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 cd9743818e..5ecb4245b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package cardinalityexecutionmode package cardinalityexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L64-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 eb3c263f84..6af800fb0f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package catanomalydetectorcolumn package catanomalydetectorcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L32-L401 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 424c38b448..23f471b64c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package catdatafeedcolumn package catdatafeedcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L405-L471 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a01a071928..2c27d915f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package catdfacolumn package catdfacolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L472-L557 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bc5cf2f115..9f5576d63d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package categorizationstatus package categorizationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Model.ts#L83-L86 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a101bf4454..e9165bff8c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package cattrainedmodelscolumn package cattrainedmodelscolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L561-L635 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f2db7d2070..362b0b67a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package cattransformcolumn package cattransformcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/_types/CatBase.ts#L640-L844 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0d8eb5bb8f..96b9b8261b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package childscoremode package childscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d108a3400f..e456e14717 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package chunkingmode package chunkingmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L232-L236 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L235-L239 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 d221cd52f6..336026c998 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package clusterinfotarget package clusterinfotarget import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L381-L387 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L382-L388 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 8a5a1909d4..3ceab1b16e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package clusterprivilege package clusterprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L42-L199 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L42-L195 type ClusterPrivilege struct { Name string } @@ -129,8 +129,6 @@ var ( Readccr = ClusterPrivilege{"read_ccr"} - Readconnectorsecrets = ClusterPrivilege{"read_connector_secrets"} - Readfleetsecrets = ClusterPrivilege{"read_fleet_secrets"} Readilm = ClusterPrivilege{"read_ilm"} @@ -255,8 +253,6 @@ func (c *ClusterPrivilege) UnmarshalText(text []byte) error { *c = Postbehavioralanalyticsevent case "read_ccr": *c = Readccr - case "read_connector_secrets": - *c = Readconnectorsecrets case "read_fleet_secrets": *c = Readfleetsecrets case "read_ilm": 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 48bf28e599..931a07cbcb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package clustersearchstatus package clustersearchstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cbd2de4489..ac1ba55e7e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package combinedfieldsoperator package combinedfieldsoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L509-L512 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/abstractions.ts#L512-L515 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 e64b7f8ad8..ecb570e36b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package combinedfieldszeroterms package combinedfieldszeroterms import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L514-L523 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/abstractions.ts#L517-L526 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 6c72584207..8a280b2bb0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package conditionop package conditionop import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L41-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Conditions.ts#L41-L48 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 c87d4f6635..fc2ef7f5a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package conditionoperator package conditionoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Rule.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ed70d15f34..1f2356ecb3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package conditiontype package conditiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L64-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Conditions.ts#L64-L70 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 6e13473862..6b84da45ca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package conflicts package conflicts import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L183-L192 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L184-L193 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 bd9b097321..349327bf99 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package connectionscheme package connectionscheme import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/connectorfieldtype/connectorfieldtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go index 06eb95209d..36e24402ee 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package connectorfieldtype package connectorfieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L43-L48 type ConnectorFieldType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus/connectorstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus/connectorstatus.go index 2c5c3363ca..e0519b2956 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus/connectorstatus.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus/connectorstatus.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package connectorstatus package connectorstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L130-L136 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L130-L136 type ConnectorStatus 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 26fe1b9414..0522f96d9f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package converttype package converttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L435-L443 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L621-L630 type ConvertType struct { Name string } @@ -33,14 +33,16 @@ var ( Long = ConvertType{"long"} - Float = ConvertType{"float"} - Double = ConvertType{"double"} - String = ConvertType{"string"} + Float = ConvertType{"float"} Boolean = ConvertType{"boolean"} + Ip = ConvertType{"ip"} + + String = ConvertType{"string"} + Auto = ConvertType{"auto"} ) @@ -55,14 +57,16 @@ func (c *ConvertType) UnmarshalText(text []byte) error { *c = Integer case "long": *c = Long - case "float": - *c = Float case "double": *c = Double - case "string": - *c = String + case "float": + *c = Float case "boolean": *c = Boolean + case "ip": + *c = Ip + case "string": + *c = String case "auto": *c = Auto default: 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 0159e7bbd1..7b4f86f8da 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package dataattachmentformat package dataattachmentformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L187-L190 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 41318a6dc9..5c19e40b17 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package datafeedstate package datafeedstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L132-L137 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L135-L140 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 c2d557b0aa..e50518bdf2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package dataframestate package dataframestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Dataframe.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3db1cc1dfd..16c67b7222 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package day package day import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0216018e3a..a2a5253244 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package decision package decision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L86-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L92-L101 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 a783c052f2..0b02aec267 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package delimitedpayloadencoding package delimitedpayloadencoding import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L62-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L61-L65 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 d8d93ff3d7..02d5dbf49a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package deploymentallocationstate package deploymentallocationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L289-L302 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L273-L286 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 d327e2edaf..352ba7302c 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,23 +16,23 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package deploymentassignmentstate package deploymentassignmentstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L304-L309 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L288-L305 type DeploymentAssignmentState struct { Name string } var ( - Starting = DeploymentAssignmentState{"starting"} - Started = DeploymentAssignmentState{"started"} + Starting = DeploymentAssignmentState{"starting"} + Stopping = DeploymentAssignmentState{"stopping"} Failed = DeploymentAssignmentState{"failed"} @@ -45,10 +45,10 @@ func (d DeploymentAssignmentState) MarshalText() (text []byte, err error) { func (d *DeploymentAssignmentState) UnmarshalText(text []byte) error { switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { - case "starting": - *d = Starting case "started": *d = Started + case "starting": + *d = Starting case "stopping": *d = Stopping case "failed": 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 bd920ea50e..0c3b5ba608 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package deprecationlevel package deprecationlevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/deprecations/types.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fd011996e8..f47df1fb8d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package dfiindependencemeasure package dfiindependencemeasure import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Similarity.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e3f5d2c479..b63136f7f4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package dfraftereffect package dfraftereffect import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Similarity.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fe877f0368..cf05ffe2d7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package dfrbasicmodel package dfrbasicmodel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Similarity.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Similarity.ts#L32-L40 type DFRBasicModel struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype/displaytype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype/displaytype.go index 23368f359d..92162e8cd2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype/displaytype.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype/displaytype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package displaytype package displaytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L35-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L35-L41 type DisplayType 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 f481534466..b067e0822c 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,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package distanceunit package distanceunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L30-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Geo.ts#L30-L40 type DistanceUnit struct { Name string } 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 0c8f942aad..4e8ceba457 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package dynamicmapping package dynamicmapping import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/dynamic-template.ts#L49-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1caa91f659..582804e640 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package edgengramside package edgengramside import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L74-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L73-L76 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 4563c3e52f..61660c1f0d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package emailpriority package emailpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L197-L203 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a0fd86fdd7..504dea2890 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package enrichpolicyphase package enrichpolicyphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/execute_policy/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/esqlformat/esqlformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat/esqlformat.go new file mode 100644 index 0000000000..d3d3b926e3 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat/esqlformat.go @@ -0,0 +1,81 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Package esqlformat +package esqlformat + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/esql/query/QueryRequest.ts#L91-L100 +type EsqlFormat struct { + Name string +} + +var ( + Csv = EsqlFormat{"csv"} + + Json = EsqlFormat{"json"} + + Tsv = EsqlFormat{"tsv"} + + Txt = EsqlFormat{"txt"} + + Yaml = EsqlFormat{"yaml"} + + Cbor = EsqlFormat{"cbor"} + + Smile = EsqlFormat{"smile"} + + Arrow = EsqlFormat{"arrow"} +) + +func (e EsqlFormat) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil +} + +func (e *EsqlFormat) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "csv": + *e = Csv + case "json": + *e = Json + case "tsv": + *e = Tsv + case "txt": + *e = Txt + case "yaml": + *e = Yaml + case "cbor": + *e = Cbor + case "smile": + *e = Smile + case "arrow": + *e = Arrow + default: + *e = EsqlFormat{string(text)} + } + + return nil +} + +func (e EsqlFormat) String() string { + return e.Name +} 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 97527a3fd0..7412bef5a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package excludefrequent package excludefrequent import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Detector.ts#L127-L132 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 55bf1792a4..dce62b368e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package executionphase package executionphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Execution.ts#L49-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 38630d4f5a..94b6310330 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package executionstatus package executionstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Execution.ts#L38-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 798556ec1d..9d779ba2bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package expandwildcard package expandwildcard import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L201-L215 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L202-L216 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 5f50cd8942..f33fd4dffe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package feature package feature import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get/IndicesGetRequest.ts#L90-L94 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/get/IndicesGetRequest.ts#L91-L95 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 ec637041d2..958c5c9ffa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package fieldsortnumerictype package fieldsortnumerictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L36-L41 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 9b4a0d6f82..9edd8ed4c8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package fieldtype package fieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/Property.ts#L166-L213 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/Property.ts#L166-L213 type FieldType struct { Name string } 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 4d8a65848f..d1fa70f58b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package fieldvaluefactormodifier package fieldvaluefactormodifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L307-L350 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L323-L366 type FieldValueFactorModifier struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy/filteringpolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy/filteringpolicy.go index b1df37700d..973158d93b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy/filteringpolicy.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy/filteringpolicy.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package filteringpolicy package filteringpolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L155-L158 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L155-L158 type FilteringPolicy struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule/filteringrulerule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule/filteringrulerule.go index fc1b0feb3c..d465787f53 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule/filteringrulerule.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule/filteringrulerule.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package filteringrulerule package filteringrulerule import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L160-L168 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L160-L168 type FilteringRuleRule struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go index cd689df59a..648aa26173 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package filteringvalidationstate package filteringvalidationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L186-L190 type FilteringValidationState 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 0cedd79225..986a056020 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package filtertype package filtertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Filter.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/fingerprintdigest/fingerprintdigest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fingerprintdigest/fingerprintdigest.go new file mode 100644 index 0000000000..617847ab2c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fingerprintdigest/fingerprintdigest.go @@ -0,0 +1,69 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Package fingerprintdigest +package fingerprintdigest + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L856-L862 +type FingerprintDigest struct { + Name string +} + +var ( + Md5 = FingerprintDigest{"MD5"} + + Sha1 = FingerprintDigest{"SHA-1"} + + Sha256 = FingerprintDigest{"SHA-256"} + + Sha512 = FingerprintDigest{"SHA-512"} + + MurmurHash3 = FingerprintDigest{"MurmurHash3"} +) + +func (f FingerprintDigest) MarshalText() (text []byte, err error) { + return []byte(f.String()), nil +} + +func (f *FingerprintDigest) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "MD5": + *f = Md5 + case "SHA-1": + *f = Sha1 + case "SHA-256": + *f = Sha256 + case "SHA-512": + *f = Sha512 + case "MurmurHash3": + *f = MurmurHash3 + default: + *f = FingerprintDigest{string(text)} + } + + return nil +} + +func (f FingerprintDigest) String() string { + return f.Name +} 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 7764d93b9b..cecf23ce84 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package followerindexstatus package followerindexstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow_info/types.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/follow_info/types.ts#L32-L35 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 b942ce7182..71adfe1be2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package functionboostmode package functionboostmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L279-L305 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L295-L321 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 710eade334..1c7337457e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package functionscoremode package functionscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L252-L277 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L268-L293 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 bc5fb157e7..2f34772d1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package gappolicy package gappolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L61-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c5c0d43583..fcda11d705 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package geodistancetype package geodistancetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L42-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4ab1605a4d..9245b4af8b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package geoexecution package geoexecution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/geo.ts#L56-L59 type GeoExecution struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtargetformat/geogridtargetformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtargetformat/geogridtargetformat.go new file mode 100644 index 0000000000..43b274f627 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtargetformat/geogridtargetformat.go @@ -0,0 +1,57 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Package geogridtargetformat +package geogridtargetformat + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L433-L436 +type GeoGridTargetFormat struct { + Name string +} + +var ( + Geojson = GeoGridTargetFormat{"geojson"} + + Wkt = GeoGridTargetFormat{"wkt"} +) + +func (g GeoGridTargetFormat) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GeoGridTargetFormat) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "geojson": + *g = Geojson + case "wkt": + *g = Wkt + default: + *g = GeoGridTargetFormat{string(text)} + } + + return nil +} + +func (g GeoGridTargetFormat) String() string { + return g.Name +} 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/geogridtiletype/geogridtiletype.go similarity index 55% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtiletype/geogridtiletype.go index 36c1865ee3..8aee2e4bae 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/geogridtiletype/geogridtiletype.go @@ -16,46 +16,46 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 -// Package deploymentstate -package deploymentstate +// Package geogridtiletype +package geogridtiletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L274-L287 -type DeploymentState struct { +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L427-L431 +type GeoGridTileType struct { Name string } var ( - Started = DeploymentState{"started"} + Geotile = GeoGridTileType{"geotile"} - Starting = DeploymentState{"starting"} + Geohex = GeoGridTileType{"geohex"} - Stopping = DeploymentState{"stopping"} + Geohash = GeoGridTileType{"geohash"} ) -func (d DeploymentState) MarshalText() (text []byte, err error) { - return []byte(d.String()), nil +func (g GeoGridTileType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil } -func (d *DeploymentState) UnmarshalText(text []byte) error { +func (g *GeoGridTileType) UnmarshalText(text []byte) error { switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { - case "started": - *d = Started - case "starting": - *d = Starting - case "stopping": - *d = Stopping + case "geotile": + *g = Geotile + case "geohex": + *g = Geohex + case "geohash": + *g = Geohash default: - *d = DeploymentState{string(text)} + *g = GeoGridTileType{string(text)} } return nil } -func (d DeploymentState) String() string { - return d.Name +func (g GeoGridTileType) String() string { + return g.Name } 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 20b5a40cb5..435d7127fb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package geoorientation package geoorientation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L34-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 31f227790a..30d8fe52e2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package geoshaperelation package geoshaperelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L64-L82 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b521af96ff..f08c76ad33 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package geostrategy package geostrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L56-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0fc58230cd..e1a63a5f69 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package geovalidationmethod package geovalidationmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L159-L169 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/geo.ts#L163-L173 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 df4a8f923d..283a9fb226 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package granttype package granttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/GrantType.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6ae811f8fa..07800f38ba 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package gridaggregationtype package gridaggregationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_mvt/_types/GridType.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a26ef0e523..f896adc005 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package gridtype package gridtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_mvt/_types/GridType.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d90ff741df..9fcbd93300 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package groupby package groupby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/tasks/_types/GroupBy.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0d65e6ee39..5693ae35d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package healthstatus package healthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L219-L239 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L220-L240 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 8d7d5cd5fe..eabc526eb4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package highlighterencoder package highlighterencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L158-L161 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/highlighting.ts#L157-L160 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 a5fd6f43c0..d7e16c4b91 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package highlighterfragmenter package highlighterfragmenter import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L163-L166 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/highlighting.ts#L162-L165 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 bd95945f4e..7fb2893e64 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package highlighterorder package highlighterorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L168-L170 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/highlighting.ts#L167-L169 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 63573b5b6a..1b796f1ee7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package highlightertagsschema package highlightertagsschema import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L172-L174 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/highlighting.ts#L171-L173 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 396fe3253e..afd9158057 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package highlightertype package highlightertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L176-L191 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/highlighting.ts#L175-L190 type HighlighterType struct { Name string } 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 7c8aa04b89..f8bd0eba5e 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,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package holtwinterstype package holtwinterstype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L283-L286 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L309-L312 type HoltWintersType struct { Name string } 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 0ab3fc65b3..b69a8ac6d3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package httpinputmethod package httpinputmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L59-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 578644aa30..a3113caa77 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package ibdistribution package ibdistribution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Similarity.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8b9b22303b..1306e13678 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package iblambda package iblambda import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Similarity.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a562377660..f54a2c57d8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package icucollationalternate package icucollationalternate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 265850627e..f2644becee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package icucollationcasefirst package icucollationcasefirst import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0ece9201b0..29f10a34fa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package icucollationdecomposition package icucollationdecomposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L99-L102 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 10308d1585..8ca44aecfd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package icucollationstrength package icucollationstrength import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L104-L110 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5a53169096..ffff1fe349 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package icunormalizationmode package icunormalizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cd1e7bb5be..71e1ef0902 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package icunormalizationtype package icunormalizationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L83-L87 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4069b872af..ca44b53096 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package icutransformdirection package icutransformdirection import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5c41fefc04..8788492afb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package impactarea package impactarea import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L72-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L73-L78 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 e66275c348..e0ae2196d1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package include package include import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Include.ts#L20-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5cdd7c7b11..61ce26274b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package indexcheckonstartup package indexcheckonstartup import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L262-L269 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L262-L269 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 fffabd9c80..900c62a471 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package indexingjobstate package indexingjobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_jobs/types.ts#L66-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6200b089db..8a33bb576b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package indexmetadatastate package indexmetadatastate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L225-L232 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8344162f6e..b82fbfb504 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package indexoptions package indexoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L257-L262 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L258-L263 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 47a897dff1..a9d642ff24 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,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package indexprivilege package indexprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L296-L338 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L324-L366 type IndexPrivilege struct { Name string } 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 d894bc1350..cf91cc7f95 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package indexroutingallocationoptions package indexroutingallocationoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexRouting.ts#L38-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 898345e6c0..d4b560e3ee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package indexroutingrebalanceoptions package indexroutingrebalanceoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexRouting.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c07e2d7694..7d022ce120 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package indicatorhealthstatus package indicatorhealthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f1f382b7dd..50bb5fdb81 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package inputtype package inputtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cf1bfb0001..c1bd4daadf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package jobblockedreason package jobblockedreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L397-L401 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 262b940e76..a2e96a1f16 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package jobstate package jobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L36-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3024f2a104..93858a6b0f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package jsonprocessorconflictstrategy package jsonprocessorconflictstrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L849-L854 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1111-L1116 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 c62c557a3e..1864f8535e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package keeptypesmode package keeptypesmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L215-L218 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L214-L217 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 39ef20ae2e..0c64f02f68 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package kuromojitokenizationmode package kuromojitokenizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/kuromoji-plugin.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4761b21845..ea3cf629ff 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package language package language import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/languages.ts#L20-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d368539b5d..c774bb86ed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package level package level import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L249-L253 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L250-L254 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 e9f6d36620..3562531911 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package licensestatus package licensestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/_types/License.ts#L35-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 70b4467347..2e344728e9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package licensetype package licensetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/_types/License.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f6e2009258..0f3ee3e289 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package lifecycleoperationmode package lifecycleoperationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Lifecycle.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 beba1cfade..88298aea6d 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,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package managedby package managedby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/DataStream.ts#L32-L37 type ManagedBy struct { Name string } 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 8bddbd7d6b..792b3ff0f8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package matchtype package matchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/dynamic-template.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ee30e27ea7..b17f172ae7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package memorystatus package memorystatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Model.ts#L88-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e1d2c751a0..61a11fbef9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package metric package metric import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/_types/Metric.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 657d3bce1f..b6522318ab 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package migrationstatus package migrationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 64b709a500..9740775de3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package minimuminterval package minimuminterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L104-L111 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L112-L119 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 faf301a4bc..dd8a1d15f5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package missingorder package missingorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/AggregationContainer.ts#L517-L521 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/AggregationContainer.ts#L536-L540 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 a9077a4549..23a15565f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package month package month import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L65-L78 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 654264dff6..2bfbdb4950 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package multivaluemode package multivaluemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L352-L369 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L368-L385 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 e21e286127..5bc49090c1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package noderole package noderole import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L77-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Node.ts#L71-L89 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 1e8e0eb668..6cc9500fea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package noridecompoundmode package noridecompoundmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L75-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/nori-plugin.ts#L22-L26 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 8bc8fe1def..884afb1a8e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package normalization package normalization import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Similarity.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3053185b61..3c470ae42a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package normalizemethod package normalizemethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L326-L352 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L361-L387 type NormalizeMethod struct { Name string } 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 1e3e021d15..324b6591cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package numericfielddataformat package numericfielddataformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/NumericFielddataFormat.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6f7075d476..95d8ff282c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package onscripterror package onscripterror import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L137-L140 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L137-L140 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 55e827f3fa..632db50262 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package operationtype package operationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L83-L88 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 60da590b18..4de2a3cd64 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package operator package operator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/Operator.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3d796012c5..1d9851c32b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package optype package optype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L255-L264 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L256-L265 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 8949315c6e..48e6b20a64 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package pagerdutycontexttype package pagerdutycontexttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a8e38de384..e55a7f21a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package pagerdutyeventtype package pagerdutyeventtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L72-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 462c00be53..c9bd438897 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package phoneticencoder package phoneticencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/phonetic-plugin.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8d0f72ddbe..3b25665bf5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package phoneticlanguage package phoneticlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/phonetic-plugin.ts#L38-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ddd780d646..5478780868 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package phoneticnametype package phoneticnametype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/phonetic-plugin.ts#L53-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 85abc11953..b9025a07f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package phoneticruletype package phoneticruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/phonetic-plugin.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ac926897d7..5329bc4e25 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package policytype package policytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/_types/Policy.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dbe869b363..beb4b2aeab 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package quantifier package quantifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L74-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Conditions.ts#L74-L77 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 098c60cc00..f05121daf4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package queryrulecriteriatype package queryrulecriteriatype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L54-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/_types/QueryRuleset.ts#L55-L68 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 525e16d79a..be49b5495c 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,20 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package queryruletype package queryruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L44-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/_types/QueryRuleset.ts#L44-L47 type QueryRuleType struct { Name string } var ( Pinned = QueryRuleType{"pinned"} + + Exclude = QueryRuleType{"exclude"} ) func (q QueryRuleType) MarshalText() (text []byte, err error) { @@ -41,6 +43,8 @@ func (q *QueryRuleType) UnmarshalText(text []byte) error { case "pinned": *q = Pinned + case "exclude": + *q = Exclude default: *q = QueryRuleType{string(text)} } 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 d084f299a8..5c2120fc4b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package rangerelation package rangerelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L172-L185 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L188-L201 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 a8efdff45b..5f1d7144b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package ratemode package ratemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L243-L252 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L252-L261 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 7b51b8b9f8..cb5e18c200 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package refresh package refresh import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L266-L273 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L267-L274 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 4afd8b0453..5dbf9b8163 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package responsecontenttype package responsecontenttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2527abc945..56fd1ee625 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package result package result import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Result.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1a1b8caff3..b94468c5cd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package resultposition package resultposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/search/types.ts#L20-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7592e22bb3..8c18efcbe7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package routingstate package routingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L351-L372 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L347-L368 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 59fa940196..2b6223e439 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package ruleaction package ruleaction import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Rule.ts#L41-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5797178590..4974961c80 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package runtimefieldtype package runtimefieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/RuntimeFields.ts#L56-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/RuntimeFields.ts#L62-L72 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 532e7785a3..2cc5de2534 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package sampleraggregationexecutionhint package sampleraggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L345-L358 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L359-L372 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 e2bb037d55..1da0cd6871 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package scoremode package scoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/rescoring.ts#L64-L86 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2efebbb804..0c146eb6dc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package scriptlanguage package scriptlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Scripting.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f4fceef5a6..e4afaefcd7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package scriptsorttype package scriptsorttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L81-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L80-L84 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 9e785a748f..3894e0dd76 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package searchtype package searchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L275-L280 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L276-L281 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 856beb854f..d560fe1459 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package segmentsortmissing package segmentsortmissing import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSegmentSort.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 769c857736..abff57d2fa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package segmentsortmode package segmentsortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSegmentSort.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0c0b609591..0af1a1ff5f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package segmentsortorder package segmentsortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSegmentSort.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2f36413bcb..ecb82dafc2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package shapetype package shapetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1074-L1077 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1433-L1436 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 f8903e4049..d3238a47ef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package shardroutingstate package shardroutingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L169-L174 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ae30b2d97b..a4515a64b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package shardsstatsstage package shardsstatsstage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 919860cf0c..35815291b8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package shardstoreallocation package shardstoreallocation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L48-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/shard_stores/types.ts#L47-L51 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 8c6edb8843..b7a21fb74a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package shardstorestatus package shardstorestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L63-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/shard_stores/types.ts#L62-L71 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 69f65d4be0..f36e906f01 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package shutdownstatus package shutdownstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d4e713918f..75bbc8cfb2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package shutdowntype package shutdowntype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fee41421fd..2d9ccbe63a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package snapshotsort package snapshotsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotInfo.ts#L73-L93 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a2b50d0aca..ff672dbb08 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package snapshotupgradestate package snapshotupgradestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Model.ts#L94-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e455a1435f..f5351fc299 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package snowballlanguage package snowballlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/languages.ts#L57-L80 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 033f694a20..57c2553c77 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package sortmode package sortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L109-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L108-L117 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 24f680952e..8ceee4c499 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package sortorder package sortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L120-L129 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L119-L128 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 7c6e47f41f..90d627bfed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package sourcefieldmode package sourcefieldmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L67-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/sqlformat/sqlformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sqlformat/sqlformat.go new file mode 100644 index 0000000000..119ce2c99f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sqlformat/sqlformat.go @@ -0,0 +1,77 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Package sqlformat +package sqlformat + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/sql/query/QuerySqlRequest.ts#L124-L132 +type SqlFormat struct { + Name string +} + +var ( + Csv = SqlFormat{"csv"} + + Json = SqlFormat{"json"} + + Tsv = SqlFormat{"tsv"} + + Txt = SqlFormat{"txt"} + + Yaml = SqlFormat{"yaml"} + + Cbor = SqlFormat{"cbor"} + + Smile = SqlFormat{"smile"} +) + +func (s SqlFormat) MarshalText() (text []byte, err error) { + return []byte(s.String()), nil +} + +func (s *SqlFormat) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "csv": + *s = Csv + case "json": + *s = Json + case "tsv": + *s = Tsv + case "txt": + *s = Txt + case "yaml": + *s = Yaml + case "cbor": + *s = Cbor + case "smile": + *s = Smile + default: + *s = SqlFormat{string(text)} + } + + return nil +} + +func (s SqlFormat) String() string { + return s.Name +} 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 23cea0caf8..1153080e23 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package statslevel package statslevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/_types/stats.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ee48e074a9..3f76a30a46 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package storagetype package storagetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L520-L548 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L520-L548 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 4fa7c709be..7e260b1a6c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package stringdistance package stringdistance import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L472-L493 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L472-L493 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 a595471a2d..4f2007d7d0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package suggestmode package suggestmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L282-L295 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L283-L296 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 3ee85185f6..9e6291ad41 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package suggestsort package suggestsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L495-L504 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L495-L504 type SuggestSort struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go index 1a301aa237..e55119fc64 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package syncjobtriggermethod package syncjobtriggermethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/SyncJob.ts#L48-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/SyncJob.ts#L48-L51 type SyncJobTriggerMethod struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype/syncjobtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype/syncjobtype.go index e21fcca25a..63dd42cc47 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype/syncjobtype.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype/syncjobtype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package syncjobtype package syncjobtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/SyncJob.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/SyncJob.ts#L42-L46 type SyncJobType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus/syncstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus/syncstatus.go index 0bc77fa16b..f2da09fd0f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus/syncstatus.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus/syncstatus.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package syncstatus package syncstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L138-L146 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L138-L146 type SyncStatus 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 3f7df4530e..c4bc30c79c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package synonymformat package synonymformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L105-L108 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L104-L107 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 c65287cc42..41704447b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package tasktype package tasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/TaskType.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/TaskType.ts#L20-L28 type TaskType struct { Name string } 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 fb09911752..997b24d108 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package templateformat package templateformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleTemplate.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4da58f1bf7..c99abb7def 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package termsaggregationcollectmode package termsaggregationcollectmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L987-L996 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1056-L1065 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 bb3b36c9b1..15be47e2cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package termsaggregationexecutionhint package termsaggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L998-L1003 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1067-L1072 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 7d3ff297c0..017198f6eb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package termvectoroption package termvectoroption import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/TermVectorOption.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6423c710c2..1a5db4f8f3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package textquerytype package textquerytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L541-L567 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L559-L585 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 5e65712faf..44a5737da6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package threadtype package threadtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L297-L303 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L298-L304 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 d22a1ed3af..783aee0ac5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package timeseriesmetrictype package timeseriesmetrictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/TimeSeriesMetricType.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 34ab57ff65..6ab5f9577e 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,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package timeunit package timeunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L69-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Time.ts#L69-L77 type TimeUnit struct { Name string } 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 9f9cb8b7cd..5bb850ce4f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package tokenchar package tokenchar import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L47-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L59-L66 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 40c43ebd9c..6bc2722a8e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package tokenizationtruncate package tokenizationtruncate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L350-L354 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4326050050..6096ed7681 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package totalhitsrelation package totalhitsrelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L100-L105 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/hits.ts#L101-L106 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 dc2459e877..b42205996a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package trainedmodeltype package trainedmodeltype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L258-L272 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L257-L271 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 b78cfa2a02..a6501f68f5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package trainingpriority package trainingpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L311-L314 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L307-L310 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 48f3bbf96a..2e3cb93289 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package translogdurability package translogdurability import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L365-L380 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L365-L380 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 f69b1a8c0c..d224006a83 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package ttesttype package ttesttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L322-L335 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L331-L344 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 9a26d5c116..091ec3cc9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package type_ package type_ import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/_types/types.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 52f22ea2e2..77dcf6e127 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package unassignedinformationreason package unassignedinformationreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L127-L146 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L138-L157 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 4b65f71d92..c3e78b642c 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,38 +16,28 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package useragentproperty package useragentproperty import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L266-L277 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L507-L513 type UserAgentProperty struct { Name string } var ( - NAME = UserAgentProperty{"NAME"} + Name = UserAgentProperty{"name"} - MAJOR = UserAgentProperty{"MAJOR"} + Os = UserAgentProperty{"os"} - MINOR = UserAgentProperty{"MINOR"} + Device = UserAgentProperty{"device"} - PATCH = UserAgentProperty{"PATCH"} + Original = UserAgentProperty{"original"} - OS = UserAgentProperty{"OS"} - - OSNAME = UserAgentProperty{"OS_NAME"} - - OSMAJOR = UserAgentProperty{"OS_MAJOR"} - - OSMINOR = UserAgentProperty{"OS_MINOR"} - - DEVICE = UserAgentProperty{"DEVICE"} - - BUILD = UserAgentProperty{"BUILD"} + Version = UserAgentProperty{"version"} ) func (u UserAgentProperty) MarshalText() (text []byte, err error) { @@ -57,26 +47,16 @@ func (u UserAgentProperty) MarshalText() (text []byte, err error) { func (u *UserAgentProperty) UnmarshalText(text []byte) error { switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { - case "NAME": - *u = NAME - case "MAJOR": - *u = MAJOR - case "MINOR": - *u = MINOR - case "PATCH": - *u = PATCH - case "OS": - *u = OS - case "OS_NAME": - *u = OSNAME - case "OS_MAJOR": - *u = OSMAJOR - case "OS_MINOR": - *u = OSMINOR - case "DEVICE": - *u = DEVICE - case "BUILD": - *u = BUILD + case "name": + *u = Name + case "os": + *u = Os + case "device": + *u = Device + case "original": + *u = Original + case "version": + *u = Version default: *u = UserAgentProperty{string(text)} } 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 0477305066..3df32a758a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package valuetype package valuetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L424-L435 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L436-L447 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 c0777dec80..8514a575e0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package versiontype package versiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L106-L122 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L107-L123 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 a4511ca90e..b970dcba6f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package waitforevents package waitforevents import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L311-L318 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L312-L319 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 c0a453b29d..9083c78d11 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package watcherstate package watcherstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/stats/types.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/xpackcategory/xpackcategory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/xpackcategory/xpackcategory.go new file mode 100644 index 0000000000..6046046e49 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/xpackcategory/xpackcategory.go @@ -0,0 +1,61 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +// Package xpackcategory +package xpackcategory + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/info/XPackInfoRequest.ts#L44-L48 +type XPackCategory struct { + Name string +} + +var ( + Build = XPackCategory{"build"} + + Features = XPackCategory{"features"} + + License = XPackCategory{"license"} +) + +func (x XPackCategory) MarshalText() (text []byte, err error) { + return []byte(x.String()), nil +} + +func (x *XPackCategory) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "build": + *x = Build + case "features": + *x = Features + case "license": + *x = License + default: + *x = XPackCategory{string(text)} + } + + return nil +} + +func (x XPackCategory) String() string { + return x.Name +} 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 31fd9e1f29..794ef3c72c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Package zerotermsquery package zerotermsquery import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L569-L578 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L587-L596 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 697c8dc588..06495fa089 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EpochTimeUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 299a429cdd..ef74f65818 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EpochTimeUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ec79f9fced..f512b09097 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Eql type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L351-L354 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L349-L352 type Eql struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 cbe45956d4..650f388a90 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EqlFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L99-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L97-L105 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 76b37b96e4..afcef0e14b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EqlFeaturesJoin type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L109-L115 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L107-L113 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 47c3c67a49..6161b1be67 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EqlFeaturesKeys type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L117-L123 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L115-L121 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 c0747203e6..2247598b36 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EqlFeaturesPipes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L125-L128 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L123-L126 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 718bdb894d..737d5d9570 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EqlFeaturesSequences type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L130-L137 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L128-L135 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 b9b8608d52..ee0c18bc1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EqlHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/_types/EqlHits.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 75118b36a5..12e95d4132 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ErrorCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Errors.ts#L25-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Errors.ts#L25-L50 type ErrorCause struct { CausedBy *ErrorCause `json:"caused_by,omitempty"` Metadata map[string]json.RawMessage `json:"-"` 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 196917829c..31a6dfe76b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ErrorResponseBase type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Base.ts#L76-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Base.ts#L76-L85 type ErrorResponseBase struct { Error ErrorCause `json:"error"` Status int `json:"status"` 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 371f7529ba..488c7a5d49 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // EsqlColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Binary.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Binary.ts#L24-L24 type EsqlColumns []byte diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/estoniananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/estoniananalyzer.go new file mode 100644 index 0000000000..c27d29d953 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/estoniananalyzer.go @@ -0,0 +1,113 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// EstonianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L148-L152 +type EstonianAnalyzer struct { + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *EstonianAnalyzer) 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 "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s EstonianAnalyzer) MarshalJSON() ([]byte, error) { + type innerEstonianAnalyzer EstonianAnalyzer + tmp := innerEstonianAnalyzer{ + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "estonian" + + return json.Marshal(tmp) +} + +// NewEstonianAnalyzer returns a EstonianAnalyzer. +func NewEstonianAnalyzer() *EstonianAnalyzer { + r := &EstonianAnalyzer{} + + return r +} 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 936f0cd66d..52058ba6cc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // EventDataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 85fdd8512f..f7e5a03729 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // EwmaModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L267-L269 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L293-L295 type EwmaModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` } 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 7ab9ab95e4..4a938a25ea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // EwmaMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L252-L255 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L278-L281 type EwmaMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 e5cc2e2bb9..4969dbe5f7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // ExecuteEnrichPolicyStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/execute_policy/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 957f9cf9bf..b0fde9fdef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ExecutingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/stats/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/enrich/stats/types.ts#L25-L28 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 c759c7b16d..dc0866a0b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ExecutionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Execution.ts#L60-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bdad18391f..3c3082dfdb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // ExecutionResultAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Execution.ts#L74-L86 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 42f61df195..91b4d9bd69 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // ExecutionResultCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Execution.ts#L68-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Execution.ts#L68-L72 type ExecutionResultCondition struct { Met bool `json:"met"` Status actionstatusoptions.ActionStatusOptions `json:"status"` 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 1bb68e44a6..14cc27c14b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // ExecutionResultInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Execution.ts#L88-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a42a79b721..8a80ee2612 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExecutionState type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L120-L124 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L114-L118 type ExecutionState struct { Reason *string `json:"reason,omitempty"` Successful bool `json:"successful"` 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 4160e8bca9..d571e56616 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExecutionThreadPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Execution.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Execution.ts#L94-L97 type ExecutionThreadPool struct { MaxSize int64 `json:"max_size"` QueueSize int64 `json:"queue_size"` 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 039abdd9ed..ff4be2ff9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExistsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L38-L46 type ExistsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 7a712469d3..11a5f2e223 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // ExpandWildcards type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L217-L217 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L218-L218 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 2cd3195008..f49a6d0b0c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExplainAnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/types.ts#L52-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/analyze/types.ts#L52-L67 type ExplainAnalyzeToken struct { Bytes string `json:"bytes"` EndOffset int64 `json:"end_offset"` 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 a9be26dddb..6bbeabe7ed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Explanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/explain/types.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/explain/types.ts#L22-L26 type Explanation struct { Description string `json:"description"` Details []ExplanationDetail `json:"details"` 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 265d452dbf..2d75cc6fa1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExplanationDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/explain/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/explain/types.ts#L28-L32 type ExplanationDetail struct { Description string `json:"description"` Details []ExplanationDetail `json:"details,omitempty"` 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 83fe98bbb7..b1ed77bc53 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExploreControls type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/_types/ExploreControls.ts#L24-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 aee744af04..cf1c42eb39 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExtendedBoundsdouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L491-L500 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L508-L517 type ExtendedBoundsdouble struct { // Max Maximum value for the bound. Max *Float64 `json:"max,omitempty"` 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 c55689caa6..aa00feb1ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ExtendedBoundsFieldDateMath type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L491-L500 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L508-L517 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 0e57da41e2..b1cbc55939 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExtendedMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L622-L631 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L658-L667 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 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 4b7b760785..ffacb63d9a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L278-L296 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L299-L320 type ExtendedStatsAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` 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 82006e0756..cc14598d66 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L101-L106 type ExtendedStatsAggregation 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/extendedstatsbucketaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregate.go index f18371fa4b..3b03bcd3ff 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L298-L299 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L322-L323 type ExtendedStatsBucketAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` 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 99c292f5e1..3fb05ab7f3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ExtendedStatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L198-L203 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L218-L223 type ExtendedStatsBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 978ff52b04..15e53009f0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FailProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L648-L654 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L848-L854 type FailProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/failurestore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/failurestore.go new file mode 100644 index 0000000000..4ad543cde1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/failurestore.go @@ -0,0 +1,99 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// FailureStore type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/DataStream.ts#L39-L43 +type FailureStore struct { + Enabled bool `json:"enabled"` + Indices []DataStreamIndex `json:"indices"` + RolloverOnWrite bool `json:"rollover_on_write"` +} + +func (s *FailureStore) 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 "enabled": + 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", "Enabled", err) + } + s.Enabled = value + case bool: + s.Enabled = v + } + + case "indices": + if err := dec.Decode(&s.Indices); err != nil { + return fmt.Errorf("%s | %w", "Indices", err) + } + + case "rollover_on_write": + 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", "RolloverOnWrite", err) + } + s.RolloverOnWrite = value + case bool: + s.RolloverOnWrite = v + } + + } + } + return nil +} + +// NewFailureStore returns a FailureStore. +func NewFailureStore() *FailureStore { + r := &FailureStore{} + + return r +} 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 eff7685f0b..05493add9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Feature type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/features/_types/Feature.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/featureenabled.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featureenabled.go index 13ba1d522d..d41dce41d2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featureenabled.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featureenabled.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FeatureEnabled type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L215-L217 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L215-L217 type FeatureEnabled struct { Enabled bool `json:"enabled"` } 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 4ea3fa1799..8a78c6895f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // Features type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get/IndicesGetRequest.ts#L95-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/get/IndicesGetRequest.ts#L96-L96 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 1a8445c3e1..4e2cf83144 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FeatureToggle type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L40-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L38-L40 type FeatureToggle struct { Enabled bool `json:"enabled"` } 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 47879a4590..3c02e98496 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FetchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L139-L146 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L230-L237 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 41b316a6e6..c2e3f0b463 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FetchProfileBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L148-L157 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L239-L248 type FetchProfileBreakdown struct { LoadSource *int `json:"load_source,omitempty"` LoadSourceCount *int `json:"load_source_count,omitempty"` 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 f1cd741b5a..a8d452bf5b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FetchProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L159-L162 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L250-L253 type FetchProfileDebug struct { FastPath *int `json:"fast_path,omitempty"` StoredFields []string `json:"stored_fields,omitempty"` 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 75b88c5805..939057d0a4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // FieldAliasProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/specialized.ts#L55-L58 type FieldAliasProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` 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 6f0444c474..d4910985d1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldAndFormat type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L525-L539 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/abstractions.ts#L528-L542 type FieldAndFormat struct { // Field Wildcard pattern. The request returns values for field names matching this // pattern. 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 80567c506c..1f55a10ef5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // FieldCapability type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/field_caps/types.ts#L23-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 6f350bd00c..90e5e26af6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldCollapse type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/FieldCollapse.ts#L24-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/FieldCollapse.ts#L24-L41 type FieldCollapse struct { Collapse *FieldCollapse `json:"collapse,omitempty"` // Field The field to collapse the result set on 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 fc819ae8c6..8013115749 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FielddataFrequencyFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 type FielddataFrequencyFilter struct { Max Float64 `json:"max"` Min Float64 `json:"min"` 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 849722e1bb..2eac884118 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FielddataRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/fielddata/types.ts#L20-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e63274b3cc..cb9a3a6f37 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FielddataStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L111-L116 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L111-L116 type FielddataStats struct { Evictions *int64 `json:"evictions,omitempty"` Fields map[string]FieldMemoryUsage `json:"fields,omitempty"` 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 1f07cc3de5..4fe4ed3249 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // Float64 // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L298-L305 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L309-L316 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 29ee1055e4..33a754ac7a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // FieldLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L429-L446 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/abstractions.ts#L429-L446 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 cb733e84e2..a60eccc556 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/meta-fields.ts#L24-L27 type FieldMapping struct { FullName string `json:"full_name"` Mapping map[string]Property `json:"mapping"` 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 4a71e909eb..5220654c30 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L118-L121 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L118-L121 type FieldMemoryUsage struct { MemorySize ByteSize `json:"memory_size,omitempty"` MemorySizeInBytes int64 `json:"memory_size_in_bytes"` 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 05da629eb2..3627ce08ad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // FieldMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/_types/Metric.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 315198cb9e..7880bcbc80 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldNamesField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/meta-fields.ts#L42-L44 type FieldNamesField struct { Enabled bool `json:"enabled"` } 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 b7997e6294..b9b0251b55 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // FieldRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleMappingRule.ts#L36-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/RoleMappingRule.ts#L35-L43 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 706dc21fbf..cefcf777c9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Fields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L140-L140 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L141-L141 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 15d1ca5037..b395eeb140 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // FieldSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/FieldSecurity.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e763295808..0b5c95cd5e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldSizeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L92-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L92-L95 type FieldSizeUsage struct { Size ByteSize `json:"size,omitempty"` SizeInBytes int64 `json:"size_in_bytes"` 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 858a5b4fbc..0e1054bf29 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -36,7 +36,7 @@ import ( // FieldSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L44-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L43-L52 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 832e1a91c9..3be3918a8b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/find_structure/types.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/text_structure/find_structure/types.ts#L23-L33 type FieldStat struct { Cardinality int `json:"cardinality"` Count int `json:"count"` 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 5b4553d519..8b27c6adc7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/termvectors/types.ts#L28-L32 type FieldStatistics struct { DocCount int `json:"doc_count"` SumDocFreq int64 `json:"sum_doc_freq"` 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 8e6e4391cf..926d2af423 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L109-L142 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L109-L142 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 5c3d6b5d35..eafa1cf9e2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // FieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L57-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L57-L66 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 0f0f105f8f..b3b1684afa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -27,7 +27,7 @@ import ( // FieldsUsageBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L32-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L32-L39 type FieldsUsageBody struct { FieldsUsageBody map[string]UsageStatsIndex `json:"-"` Shards_ ShardStatistics `json:"_shards"` 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 7e35331c31..10bb39e3e4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L136-L167 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 90d4e2c98c..d838a8bb8a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FieldTypesMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L109-L134 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 924653aec9..5552df3122 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,5 +29,5 @@ package types // nil // json.RawMessage // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L25-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 377f8b55df..8559706f49 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // FieldValueFactorScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L133-L152 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L149-L168 type FieldValueFactorScoreFunction struct { // Factor Optional factor to multiply the field value with. Factor *Float64 `json:"factor,omitempty"` 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 a0a06ee936..555a0c2322 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FileCountSnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 type FileCountSnapshotStats struct { FileCount int `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` 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 538c531fe2..b3f832b2d3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FileDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L50-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/recovery/types.ts#L50-L54 type FileDetails struct { Length int64 `json:"length"` Name string `json:"name"` 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 a9da967827..e32f033d06 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L698-L716 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L769-L787 type FileSystem struct { // Data List of all file stores. Data []DataPathStats `json:"data,omitempty"` 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 eef4a0aa25..fc2dfdf153 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FileSystemTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L757-L786 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L828-L857 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 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 5b76463c9a..289984f5bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L266-L280 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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). 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 e15b176a5a..0971781191 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L411-L418 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 a1acabe479..7b8839bd77 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // FilterAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L499-L500 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L552-L556 type FilterAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *FilterAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringadvancedsnippet.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringadvancedsnippet.go index 9ff2b624c2..3fb37e15c8 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringadvancedsnippet.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringadvancedsnippet.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,11 +30,11 @@ import ( // FilteringAdvancedSnippet type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L192-L196 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L192-L196 type FilteringAdvancedSnippet struct { - CreatedAt DateTime `json:"created_at,omitempty"` - UpdatedAt DateTime `json:"updated_at,omitempty"` - Value map[string]json.RawMessage `json:"value"` + CreatedAt DateTime `json:"created_at,omitempty"` + UpdatedAt DateTime `json:"updated_at,omitempty"` + Value json.RawMessage `json:"value,omitempty"` } func (s *FilteringAdvancedSnippet) UnmarshalJSON(data []byte) error { @@ -63,9 +63,6 @@ func (s *FilteringAdvancedSnippet) UnmarshalJSON(data []byte) error { } case "value": - if s.Value == nil { - s.Value = make(map[string]json.RawMessage, 0) - } if err := dec.Decode(&s.Value); err != nil { return fmt.Errorf("%s | %w", "Value", err) } @@ -77,9 +74,7 @@ func (s *FilteringAdvancedSnippet) UnmarshalJSON(data []byte) error { // NewFilteringAdvancedSnippet returns a FilteringAdvancedSnippet. func NewFilteringAdvancedSnippet() *FilteringAdvancedSnippet { - r := &FilteringAdvancedSnippet{ - Value: make(map[string]json.RawMessage, 0), - } + r := &FilteringAdvancedSnippet{} return r } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringconfig.go index 86091f2ba1..8690197805 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringconfig.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FilteringConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L209-L213 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L209-L213 type FilteringConfig struct { Active FilteringRules `json:"active"` Domain *string `json:"domain,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrule.go index ad87429af4..83c45a364c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrule.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // FilteringRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L170-L179 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L170-L179 type FilteringRule struct { CreatedAt DateTime `json:"created_at,omitempty"` Field string `json:"field"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrules.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrules.go index d2f19187c1..53343cd1ea 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrules.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrules.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // FilteringRules type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L203-L207 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L203-L207 type FilteringRules struct { AdvancedSnippet FilteringAdvancedSnippet `json:"advanced_snippet"` Rules []FilteringRule `json:"rules"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrulesvalidation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrulesvalidation.go index 5d8edd830a..53f403f1cd 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrulesvalidation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrulesvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // FilteringRulesValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L198-L201 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L198-L201 type FilteringRulesValidation struct { Errors []FilteringValidation `json:"errors"` State filteringvalidationstate.FilteringValidationState `json:"state"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringvalidation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringvalidation.go index 79cb8134f3..aee1fe2633 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringvalidation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringvalidation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // FilteringValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L181-L184 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L181-L184 type FilteringValidation struct { Ids []string `json:"ids"` Messages []string `json:"messages"` 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 46f215d35b..d8f480c3dc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // FilterRef type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Filter.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b4f54316cf..e68406c280 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // FiltersAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L572-L573 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L639-L643 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 2602b81611..24d4eba4d1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L360-L380 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L374-L394 type FiltersAggregation struct { // Filters Collection of queries from which to build buckets. Filters BucketsQuery `json:"filters,omitempty"` 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 6f97bdb2f8..7c07ad730c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // FiltersBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L575-L575 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L645-L645 type FiltersBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -485,6 +485,13 @@ func (s *FiltersBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 6834794489..af880610ef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FingerprintAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L37-L45 type FingerprintAnalyzer struct { MaxOutputSize int `json:"max_output_size"` PreserveOriginal bool `json:"preserve_original"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprintprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprintprocessor.go new file mode 100644 index 0000000000..a1739a6a3d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprintprocessor.go @@ -0,0 +1,198 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fingerprintdigest" +) + +// FingerprintProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L864-L892 +type FingerprintProcessor struct { + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // Fields Array of fields to include in the fingerprint. For objects, the processor + // hashes both the field key and value. For other fields, the processor hashes + // only the field value. + Fields []string `json:"fields"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // IgnoreMissing If true, the processor ignores any missing fields. If all fields are + // missing, the processor silently exits without modifying the document. + IgnoreMissing *bool `json:"ignore_missing,omitempty"` + // Method The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, + // SHA-256, SHA-512, or MurmurHash3. + Method *fingerprintdigest.FingerprintDigest `json:"method,omitempty"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // Salt Salt value for the hash function. + Salt *string `json:"salt,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` + // TargetField Output field for the fingerprint. + TargetField *string `json:"target_field,omitempty"` +} + +func (s *FingerprintProcessor) 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 "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + case "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", "Fields", err) + } + + s.Fields = append(s.Fields, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Fields); err != nil { + return fmt.Errorf("%s | %w", "Fields", err) + } + } + + case "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "ignore_missing": + 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", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + + case "method": + if err := dec.Decode(&s.Method); err != nil { + return fmt.Errorf("%s | %w", "Method", err) + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "salt": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Salt", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Salt = &o + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + case "target_field": + if err := dec.Decode(&s.TargetField); err != nil { + return fmt.Errorf("%s | %w", "TargetField", err) + } + + } + } + return nil +} + +// NewFingerprintProcessor returns a FingerprintProcessor. +func NewFingerprintProcessor() *FingerprintProcessor { + r := &FingerprintProcessor{} + + return r +} 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 9a7ef4504b..076d4e2a05 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FingerprintTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L196-L200 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L195-L199 type FingerprintTokenFilter struct { MaxOutputSize *int `json:"max_output_size,omitempty"` Separator *string `json:"separator,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/finnishanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/finnishanalyzer.go new file mode 100644 index 0000000000..f561181f2f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/finnishanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// FinnishAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L154-L159 +type FinnishAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *FinnishAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s FinnishAnalyzer) MarshalJSON() ([]byte, error) { + type innerFinnishAnalyzer FinnishAnalyzer + tmp := innerFinnishAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "finnish" + + return json.Marshal(tmp) +} + +// NewFinnishAnalyzer returns a FinnishAnalyzer. +func NewFinnishAnalyzer() *FinnishAnalyzer { + r := &FinnishAnalyzer{} + + return r +} 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 7afc86de7d..d7d9d4ed9f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Flattened type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L356-L358 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L354-L356 type Flattened struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 2bde7f587a..c072e0e3a7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // FlattenedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/complex.ts#L26-L37 type FlattenedProperty struct { Boost *Float64 `json:"boost,omitempty"` DepthLimit *int `json:"depth_limit,omitempty"` 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 528c530994..2266bdd0f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // FloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L142-L145 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L142-L145 type FloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,6 @@ type FloatNumberProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -859,18 +858,6 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -932,7 +919,6 @@ func (s FloatNumberProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, 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 48c08053d0..b66ff22e9f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // FloatRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L38-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/range.ts#L38-L40 type FloatRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -46,7 +46,6 @@ type FloatRangeProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -807,18 +806,6 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -857,7 +844,6 @@ func (s FloatRangeProperty) MarshalJSON() ([]byte, error) { Index: s.Index, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 21aa78d72a..f1eea64245 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FlushStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L123-L128 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L123-L128 type FlushStats struct { Periodic int64 `json:"periodic"` Total int64 `json:"total"` 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 baf313fab3..79d244a77e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // FollowerIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow_info/types.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/follow_info/types.ts#L24-L30 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 101a6e635c..1ca3ed6bfd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FollowerIndexParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow_info/types.ts#L38-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/follow_info/types.ts#L37-L48 type FollowerIndexParameters struct { MaxOutstandingReadRequests int `json:"max_outstanding_read_requests"` MaxOutstandingWriteRequests int `json:"max_outstanding_write_requests"` 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 43df386d6c..a61922e5bb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // FollowIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/_types/FollowIndexStats.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fd11a2504d..2835ac64e3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // FollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/stats/types.ts.ts#L41-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/stats/types.ts.ts#L40-L42 type FollowStats struct { Indices []FollowIndexStats `json:"indices"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeaction.go index df48dedf37..3e1c3674b5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ForceMergeAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L126-L129 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L126-L129 type ForceMergeAction struct { IndexCodec *string `json:"index_codec,omitempty"` MaxNumSegments int `json:"max_num_segments"` 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 425719eea1..c4250e9ad1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,9 +31,9 @@ import ( // ForceMergeResponseBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/forcemerge/_types/response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/forcemerge/_types/response.ts#L22-L28 type ForceMergeResponseBody struct { - Shards_ ShardStatistics `json:"_shards"` + Shards_ *ShardStatistics `json:"_shards,omitempty"` // Task task contains a task id returned when wait_for_completion=false, // you can use the task_id to get the status of the task at _tasks/ Task *string `json:"task,omitempty"` 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 44e0a9d342..81a891758c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ForeachProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L656-L670 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L894-L908 type ForeachProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 a7bd59392f..69af3eee96 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FormattableMetricAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L51-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fb43106142..3e36c6ffa8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FoundStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/delete_privileges/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/delete_privileges/types.ts#L20-L22 type FoundStatus struct { Found bool `json:"found"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frenchanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frenchanalyzer.go new file mode 100644 index 0000000000..2400bc24ba --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frenchanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// FrenchAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L161-L166 +type FrenchAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *FrenchAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s FrenchAnalyzer) MarshalJSON() ([]byte, error) { + type innerFrenchAnalyzer FrenchAnalyzer + tmp := innerFrenchAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "french" + + return json.Marshal(tmp) +} + +// NewFrenchAnalyzer returns a FrenchAnalyzer. +func NewFrenchAnalyzer() *FrenchAnalyzer { + r := &FrenchAnalyzer{} + + return r +} 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 29279b3f22..2fb6dd2878 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FrequencyEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d77d1b2164..1c079fb315 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L643-L644 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L722-L723 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 225dd2178f..98da2dc9fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FrequentItemSetsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1167-L1191 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1240-L1267 type FrequentItemSetsAggregation struct { // Fields Fields to analyze. Fields []FrequentItemSetsField `json:"fields"` 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 916a13a072..fc94cc1b82 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // FrequentItemSetsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L646-L649 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L725-L728 type FrequentItemSetsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -511,6 +511,13 @@ func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 5a9fa07616..403f3a0d61 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1153-L1165 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1226-L1238 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 9fed608d79..b059552951 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FrozenIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L360-L362 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L358-L360 type FrozenIndices struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 1245defd44..5f12bd3f16 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FunctionScore type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L210-L250 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L226-L266 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. 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 1fda18bd5e..742fe7bf52 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // FunctionScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L93-L119 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L105-L135 type FunctionScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -60,6 +60,11 @@ type FunctionScoreQuery struct { func (s *FunctionScoreQuery) UnmarshalJSON(data []byte) error { + if !bytes.HasPrefix(data, []byte(`{`)) { + err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Functions) + return err + } + dec := json.NewDecoder(bytes.NewReader(data)) for { 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 eca3e5a623..bb16d0665c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L133-L134 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L134-L135 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 d40f69306f..731bbc0115 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // FuzzyQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L44-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L48-L86 type FuzzyQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/galiciananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/galiciananalyzer.go new file mode 100644 index 0000000000..04fc3dc41d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/galiciananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GalicianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L168-L173 +type GalicianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *GalicianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s GalicianAnalyzer) MarshalJSON() ([]byte, error) { + type innerGalicianAnalyzer GalicianAnalyzer + tmp := innerGalicianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "galician" + + return json.Marshal(tmp) +} + +// NewGalicianAnalyzer returns a GalicianAnalyzer. +func NewGalicianAnalyzer() *GalicianAnalyzer { + r := &GalicianAnalyzer{} + + return r +} 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 ba1a46cf3c..ad30beed00 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // GarbageCollector type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L923-L928 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L994-L999 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 6cd1625989..a5ec707d42 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GarbageCollectorTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L930-L943 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1001-L1014 type GarbageCollectorTotal struct { // CollectionCount Total number of JVM garbage collectors that collect objects. CollectionCount *int64 `json:"collection_count,omitempty"` 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 080ab4fafa..08a10c83cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GcsRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L45-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5fc31a0d4f..e09e817c9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GcsRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L85-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotRepository.ts#L85-L91 type GcsRepositorySettings struct { ApplicationName *string `json:"application_name,omitempty"` BasePath *string `json:"base_path,omitempty"` 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 c54cf83c60..7ea15e0f8e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // GeoBoundingBoxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L32-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/geo.ts#L32-L54 type GeoBoundingBoxQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 9dfef3db2c..d5e9446c3b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -27,5 +27,5 @@ package types // TopRightBottomLeftGeoBounds // WktGeoBounds // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L135-L148 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 08c3e4cd94..21bfa22489 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoBoundsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L303-L306 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L327-L333 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 16e5ff6e83..654776ae89 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoBoundsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L108-L114 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L108-L117 type GeoBoundsAggregation 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/geocentroidaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregate.go index d61aaae842..d5d069319f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L308-L312 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L335-L342 type GeoCentroidAggregate struct { Count int64 `json:"count"` Location GeoLocation `json:"location,omitempty"` 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 170df14799..eb6c8b4967 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L116-L119 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L119-L122 type GeoCentroidAggregation struct { Count *int64 `json:"count,omitempty"` // Field The field on which to run the aggregation. 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 2c746076c0..b3a0414503 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // GeoDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L194-L197 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L210-L213 type GeoDecayFunction struct { DecayFunctionBaseGeoLocationDistance map[string]DecayPlacementGeoLocationDistance `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the 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 bb25e25399..6eb2067b2b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoDistanceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L554-L558 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L617-L622 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 f13427bf07..a1fb3b9f1d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // GeoDistanceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L382-L405 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L396-L419 type GeoDistanceAggregation struct { // DistanceType The distance calculation type. DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` 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 b67e32df71..3d82c8bb2d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L66-L69 type GeoDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 a87cf725ac..e1444682a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // GeoDistanceQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L60-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/geo.ts#L61-L93 type GeoDistanceQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 d749989710..bc96b1e53e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -36,7 +36,7 @@ import ( // GeoDistanceSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L59-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L58-L70 type GeoDistanceSort struct { DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` GeoDistanceSort map[string][]GeoLocation `json:"-"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geogridprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geogridprocessor.go new file mode 100644 index 0000000000..a27fbbedb9 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geogridprocessor.go @@ -0,0 +1,217 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtargetformat" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtiletype" +) + +// GeoGridProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L384-L425 +type GeoGridProcessor struct { + // ChildrenField If specified and children tiles exist, save those tile addresses to this + // field as an array of strings. + ChildrenField *string `json:"children_field,omitempty"` + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // Field The field to interpret as a geo-tile.= + // The field format is determined by the `tile_type`. + Field string `json:"field"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without + // modifying the document. + IgnoreMissing *bool `json:"ignore_missing,omitempty"` + // NonChildrenField If specified and intersecting non-child tiles exist, save their addresses to + // this field as an array of strings. + NonChildrenField *string `json:"non_children_field,omitempty"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // ParentField If specified and a parent tile exists, save that tile address to this field. + ParentField *string `json:"parent_field,omitempty"` + // PrecisionField If specified, save the tile precision (zoom) as an integer to this field. + PrecisionField *string `json:"precision_field,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` + // TargetField The field to assign the polygon shape to, by default, the `field` is updated + // in-place. + TargetField *string `json:"target_field,omitempty"` + // TargetFormat Which format to save the generated polygon in. + TargetFormat *geogridtargetformat.GeoGridTargetFormat `json:"target_format,omitempty"` + // TileType Three tile formats are understood: geohash, geotile and geohex. + TileType geogridtiletype.GeoGridTileType `json:"tile_type"` +} + +func (s *GeoGridProcessor) 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 "children_field": + if err := dec.Decode(&s.ChildrenField); err != nil { + return fmt.Errorf("%s | %w", "ChildrenField", err) + } + + case "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + 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 "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "ignore_missing": + 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", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + + case "non_children_field": + if err := dec.Decode(&s.NonChildrenField); err != nil { + return fmt.Errorf("%s | %w", "NonChildrenField", err) + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "parent_field": + if err := dec.Decode(&s.ParentField); err != nil { + return fmt.Errorf("%s | %w", "ParentField", err) + } + + case "precision_field": + if err := dec.Decode(&s.PrecisionField); err != nil { + return fmt.Errorf("%s | %w", "PrecisionField", err) + } + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + case "target_field": + if err := dec.Decode(&s.TargetField); err != nil { + return fmt.Errorf("%s | %w", "TargetField", err) + } + + case "target_format": + if err := dec.Decode(&s.TargetFormat); err != nil { + return fmt.Errorf("%s | %w", "TargetFormat", err) + } + + case "tile_type": + if err := dec.Decode(&s.TileType); err != nil { + return fmt.Errorf("%s | %w", "TileType", err) + } + + } + } + return nil +} + +// NewGeoGridProcessor returns a GeoGridProcessor. +func NewGeoGridProcessor() *GeoGridProcessor { + r := &GeoGridProcessor{} + + return r +} 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 3401f093f6..d2fcb723cd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoHashGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L510-L512 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L566-L568 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 eb3956348c..be2a13e58a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoHashGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L407-L432 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L421-L449 type GeoHashGridAggregation struct { // Bounds The bounding box to filter the points in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` 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 b73c4389a7..ec1119c615 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // GeoHashGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L514-L516 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L570-L572 type GeoHashGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *GeoHashGridBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 aa19cec4a1..4201954dd5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoHashLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L131-L133 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7c7f52f5ba..d4693bb5d7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c1b3db8799..f444a029df 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoHexGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L526-L527 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L585-L586 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 4f3a87d11d..a593f79f8b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeohexGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L462-L487 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L479-L504 type GeohexGridAggregation struct { // Bounds Bounding box used to filter the geo-points in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` 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 3fbbebd47f..c87c5d46d7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // GeoHexGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L529-L531 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L588-L590 type GeoHexGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *GeoHexGridBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 1bfe0761c3..99602eeef0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,10 +31,12 @@ import ( // GeoIpDownloadStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/geo_ip_stats/types.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/geo_ip_stats/types.ts#L24-L37 type GeoIpDownloadStatistics struct { - // DatabaseCount Current number of databases available for use. - DatabaseCount int `json:"database_count"` + // DatabasesCount Current number of databases available for use. + DatabasesCount int `json:"databases_count"` + // ExpiredDatabases Total number of databases not updated after 30 days + ExpiredDatabases int `json:"expired_databases"` // FailedDownloads Total number of failed database downloads. FailedDownloads int `json:"failed_downloads"` // SkippedUpdates Total number of database updates skipped. @@ -60,7 +62,7 @@ func (s *GeoIpDownloadStatistics) UnmarshalJSON(data []byte) error { switch t { - case "database_count": + case "databases_count": var tmp any dec.Decode(&tmp) @@ -68,12 +70,28 @@ func (s *GeoIpDownloadStatistics) UnmarshalJSON(data []byte) error { case string: value, err := strconv.Atoi(v) if err != nil { - return fmt.Errorf("%s | %w", "DatabaseCount", err) + return fmt.Errorf("%s | %w", "DatabasesCount", err) } - s.DatabaseCount = value + s.DatabasesCount = value case float64: f := int(v) - s.DatabaseCount = f + s.DatabasesCount = f + } + + case "expired_databases": + + 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", "ExpiredDatabases", err) + } + s.ExpiredDatabases = value + case float64: + f := int(v) + s.ExpiredDatabases = f } case "failed_downloads": 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 41cded8a92..ed0c43ca80 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoIpNodeDatabaseName type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/geo_ip_stats/types.ts#L45-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/geo_ip_stats/types.ts#L47-L50 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 b9615202df..58f0840bad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // GeoIpNodeDatabases type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/geo_ip_stats/types.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/geo_ip_stats/types.ts#L39-L45 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 38d480288b..ecb125416d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoIpProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L339-L368 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L438-L472 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 @@ -40,6 +40,11 @@ type GeoIpProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. Description *string `json:"description,omitempty"` + // DownloadDatabaseOnPipelineCreation If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the + // missing database is downloaded when the pipeline is created. + // Else, the download is triggered by when the pipeline is used as the + // `default_pipeline` or `final_pipeline` in an index. + DownloadDatabaseOnPipelineCreation *bool `json:"download_database_on_pipeline_creation,omitempty"` // Field The field to get the ip address from for the geographical lookup. Field string `json:"field"` // FirstOnly If `true`, only the first found geoip data will be returned, even if the @@ -104,6 +109,20 @@ func (s *GeoIpProcessor) UnmarshalJSON(data []byte) error { } s.Description = &o + case "download_database_on_pipeline_creation": + 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", "DownloadDatabaseOnPipelineCreation", err) + } + s.DownloadDatabaseOnPipelineCreation = &value + case bool: + s.DownloadDatabaseOnPipelineCreation = &v + } + case "field": if err := dec.Decode(&s.Field); err != nil { return fmt.Errorf("%s | %w", "Field", err) 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 898f78eaae..3a0ab59d41 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoLine type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f5bd64118f..ab5d610820 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoLineAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L791-L798 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L902-L912 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 19d4662a23..e13e241d03 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // GeoLineAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L121-L146 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L124-L149 type GeoLineAggregation struct { // IncludeSort When `true`, returns an additional array of the sort values in the feature // properties. 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 98160cceb6..3d848a0c5e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoLinePoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L155-L160 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L158-L163 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 1ac029dbc7..55110f1ac3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoLineSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L151-L156 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 4a5c3e5fe1..380dd15bfc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -27,5 +27,5 @@ package types // []Float64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L104-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 80dc831bbc..50c83554c4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // GeoPointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/geo.ts#L24-L32 type GeoPointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -50,7 +50,6 @@ type GeoPointProperty struct { 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"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -864,18 +863,6 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -917,7 +904,6 @@ func (s GeoPointProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 c2479a2268..72e3bbb4dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // GeoPolygonPoints type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L93-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/geo.ts#L95-L97 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 23bca89976..d88ed17f1c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // GeoPolygonQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L97-L108 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/geo.ts#L99-L111 type GeoPolygonQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 dd21ed68c1..acc70855b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Anomaly.ts#L145-L154 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 af5a9de23f..6079f7137f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // GeoShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L115-L126 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/geo.ts#L118-L129 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 2743f1a4d0..8ab2c472fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // GeoShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L41-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/geo.ts#L41-L54 type GeoShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -49,7 +49,6 @@ type GeoShapeProperty struct { Meta map[string]string `json:"meta,omitempty"` Orientation *geoorientation.GeoOrientation `json:"orientation,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Strategy *geostrategy.GeoStrategy `json:"strategy,omitempty"` Type string `json:"type,omitempty"` @@ -814,18 +813,6 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -870,7 +857,6 @@ func (s GeoShapeProperty) MarshalJSON() ([]byte, error) { Meta: s.Meta, Orientation: s.Orientation, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Strategy: s.Strategy, Type: s.Type, 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 67d41ef6ad..3a468add82 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L128-L143 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/geo.ts#L131-L147 type GeoShapeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 be0257f744..b16fe3a1f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GeoTileGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L518-L520 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L574-L579 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 9ecc37a550..b12619416f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L434-L460 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L451-L477 type GeoTileGridAggregation struct { // Bounds A bounding box to filter the geo-points or geo-shapes in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` 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 09ad00992d..b619eaf06a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // GeoTileGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L522-L524 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L581-L583 type GeoTileGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *GeoTileGridBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/germananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/germananalyzer.go new file mode 100644 index 0000000000..dcac93bdd4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/germananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GermanAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L175-L180 +type GermanAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *GermanAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s GermanAnalyzer) MarshalJSON() ([]byte, error) { + type innerGermanAnalyzer GermanAnalyzer + tmp := innerGermanAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "german" + + return json.Marshal(tmp) +} + +// NewGermanAnalyzer returns a GermanAnalyzer. +func NewGermanAnalyzer() *GermanAnalyzer { + r := &GermanAnalyzer{} + + return r +} 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 74d60e7cee..68d8c3b03b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // GetMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c19e460212..d0a32075b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,11 +31,12 @@ import ( // GetResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get/types.ts#L25-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/get/types.ts#L25-L36 type GetResult struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` Id_ string `json:"_id"` + Ignored_ []string `json:"_ignored,omitempty"` Index_ string `json:"_index"` PrimaryTerm_ *int64 `json:"_primary_term,omitempty"` Routing_ *string `json:"_routing,omitempty"` @@ -86,6 +87,11 @@ func (s *GetResult) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Id_", err) } + case "_ignored": + if err := dec.Decode(&s.Ignored_); err != nil { + return fmt.Errorf("%s | %w", "Ignored_", err) + } + case "_index": if err := dec.Decode(&s.Index_); err != nil { return fmt.Errorf("%s | %w", "Index_", err) 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 22ee34855c..31ce90c96f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GetScriptContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get_script_context/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2cbbb555ef..07877563a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GetStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L130-L141 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L130-L141 type GetStats struct { Current int64 `json:"current"` ExistsTime Duration `json:"exists_time,omitempty"` 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 1d83763d23..7d1f3a3cb3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GetUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_user_profile/types.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/get_user_profile/types.ts#L25-L28 type GetUserProfileErrors struct { Count int64 `json:"count"` Details map[string]ErrorCause `json:"details"` 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 5d0f1eb270..f4d3f830b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // GlobalAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L496-L497 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L546-L550 type GlobalAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *GlobalAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 5bc3d23fce..36c22c7271 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,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // GlobalAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L489-L489 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L506-L506 type GlobalAggregation struct { } 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 8eb2f9eb37..64189c073a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // GlobalPrivilege type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L340-L342 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L368-L370 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 2048cf2340..8ddeee15b5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GoogleNormalizedDistanceHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L748-L753 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L793-L798 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. 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 805e121e4f..ee3dcf1efb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // GrantApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/grant_api_key/types.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/greaterthanvalidation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greaterthanvalidation.go index aca3774a52..60d7f0bc39 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greaterthanvalidation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greaterthanvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GreaterThanValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L63-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L63-L66 type GreaterThanValidation struct { Constraint Float64 `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greekanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greekanalyzer.go new file mode 100644 index 0000000000..81bbb68282 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greekanalyzer.go @@ -0,0 +1,113 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GreekAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L182-L186 +type GreekAnalyzer struct { + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *GreekAnalyzer) 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 "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s GreekAnalyzer) MarshalJSON() ([]byte, error) { + type innerGreekAnalyzer GreekAnalyzer + tmp := innerGreekAnalyzer{ + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "greek" + + return json.Marshal(tmp) +} + +// NewGreekAnalyzer returns a GreekAnalyzer. +func NewGreekAnalyzer() *GreekAnalyzer { + r := &GreekAnalyzer{} + + return r +} 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 b63b6ee40a..38fbec7a63 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,11 +31,14 @@ import ( // GrokProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L672-L697 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L910-L941 type GrokProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. Description *string `json:"description,omitempty"` + // EcsCompatibility Must be disabled or v1. If v1, the processor uses patterns with Elastic + // Common Schema (ECS) field names. + EcsCompatibility *string `json:"ecs_compatibility,omitempty"` // Field The field to use for grok expression parsing. Field string `json:"field"` // If Conditionally execute the processor. @@ -90,6 +93,18 @@ func (s *GrokProcessor) UnmarshalJSON(data []byte) error { } s.Description = &o + case "ecs_compatibility": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "EcsCompatibility", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.EcsCompatibility = &o + case "field": if err := dec.Decode(&s.Field); err != nil { return fmt.Errorf("%s | %w", "Field", err) 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 6b20a285fa..423f53ee7a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Groupings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/_types/Groupings.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c5335e5c67..346bff707e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // GsubProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L699-L723 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L943-L967 type GsubProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 acaec4ebee..493395d277 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // HalfFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L147-L150 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L147-L150 type HalfFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,6 @@ type HalfFloatNumberProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -859,18 +858,6 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -932,7 +919,6 @@ func (s HalfFloatNumberProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, 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 d1f1460dd3..4a115dc8cb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // HasChildQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L41-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/joining.ts#L41-L79 type HasChildQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 25faffa560..d4ed96fab4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HasParentQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L78-L104 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/joining.ts#L81-L110 type HasParentQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 c01157ada5..7fa8936184 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HasPrivilegesUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges_user_profile/types.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/has_privileges_user_profile/types.ts#L39-L42 type HasPrivilegesUserProfileErrors struct { Count int64 `json:"count"` Details map[string]ErrorCause `json:"details"` 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 70e35b57dd..c8c09d8619 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HdrMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L216-L221 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L225-L230 type HdrMethod struct { // NumberOfSignificantValueDigits Specifies the resolution of values for the histogram in number of significant // digits. 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 f0a9513919..bec7fe60ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // HdrPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L169-L170 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L171-L172 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 d88c350db9..3954609272 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // HdrPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L166-L167 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L168-L169 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 b9d1eb6940..6915a72b7b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HealthRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/health/types.ts#L23-L94 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cat/health/types.ts#L23-L99 type HealthRecord struct { // ActiveShardsPercent active number of shards in percent ActiveShardsPercent *string `json:"active_shards_percent,omitempty"` @@ -61,6 +61,8 @@ type HealthRecord struct { Timestamp *string `json:"timestamp,omitempty"` // Unassign number of unassigned shards Unassign *string `json:"unassign,omitempty"` + // UnassignPri number of unassigned primary shards + UnassignPri *string `json:"unassign.pri,omitempty"` } func (s *HealthRecord) UnmarshalJSON(data []byte) error { @@ -232,6 +234,18 @@ func (s *HealthRecord) UnmarshalJSON(data []byte) error { } s.Unassign = &o + case "unassign.pri", "up", "shards.unassigned.primary", "shardsUnassignedPrimary": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "UnassignPri", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.UnassignPri = &o + } } return nil 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 313f3494be..4350d645c4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // HealthResponseBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/health/ClusterHealthResponse.ts#L39-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/health/ClusterHealthResponse.ts#L39-L74 type HealthResponseBody struct { // ActivePrimaryShards The number of active primary shards. ActivePrimaryShards int `json:"active_primary_shards"` @@ -68,6 +68,8 @@ type HealthResponseBody struct { // TimedOut If false the response returned within the period of time that is specified by // the timeout parameter (30s by default) TimedOut bool `json:"timed_out"` + // UnassignedPrimaryShards The number of primary shards that are not allocated. + UnassignedPrimaryShards int `json:"unassigned_primary_shards"` // UnassignedShards The number of shards that are not allocated. UnassignedShards int `json:"unassigned_shards"` } @@ -278,6 +280,22 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error { s.TimedOut = v } + case "unassigned_primary_shards": + + 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", "UnassignedPrimaryShards", err) + } + s.UnassignedPrimaryShards = value + case float64: + f := int(v) + s.UnassignedPrimaryShards = f + } + case "unassigned_shards": var tmp any 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 6623b484ba..7a62526d06 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HealthStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L153-L155 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L151-L153 type HealthStatistics struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 fab5531592..4349edd9ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HelpRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/help/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 980c55de27..615b0357c5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -38,7 +38,7 @@ import ( // Highlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L153-L156 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/highlighting.ts#L152-L155 type Highlight struct { // BoundaryChars A string that contains each boundary character. BoundaryChars *string `json:"boundary_chars,omitempty"` 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 ecac6a740d..0e86927525 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -37,9 +37,8 @@ import ( // HighlightField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L193-L197 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/highlighting.ts#L192-L195 type HighlightField struct { - Analyzer Analyzer `json:"analyzer,omitempty"` // BoundaryChars A string that contains each boundary character. BoundaryChars *string `json:"boundary_chars,omitempty"` // BoundaryMaxScan How far to scan for boundary characters. @@ -131,110 +130,6 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error { switch t { - case "analyzer": - - 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"] = "custom" - } - switch kind["type"] { - - case "custom": - o := NewCustomAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "fingerprint": - o := NewFingerprintAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "keyword": - o := NewKeywordAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "language": - o := NewLanguageAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "nori": - o := NewNoriAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "pattern": - o := NewPatternAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "simple": - o := NewSimpleAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "standard": - o := NewStandardAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "stop": - o := NewStopAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "whitespace": - o := NewWhitespaceAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "icu_analyzer": - o := NewIcuAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "kuromoji": - o := NewKuromojiAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "snowball": - o := NewSnowballAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - case "dutch": - o := NewDutchAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Analyzer = *o - default: - if err := localDec.Decode(&s.Analyzer); err != nil { - return err - } - } - case "boundary_chars": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hindianalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hindianalyzer.go new file mode 100644 index 0000000000..a39baee9c0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hindianalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// HindiAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L188-L193 +type HindiAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *HindiAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s HindiAnalyzer) MarshalJSON() ([]byte, error) { + type innerHindiAnalyzer HindiAnalyzer + tmp := innerHindiAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "hindi" + + return json.Marshal(tmp) +} + +// NewHindiAnalyzer returns a HindiAnalyzer. +func NewHindiAnalyzer() *HindiAnalyzer { + r := &HindiAnalyzer{} + + return r +} 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 1a4906142e..2ddd8b99dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Hint type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/suggest_user_profiles/types.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9c6ec53463..aca82587d8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // HistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L342-L343 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L372-L376 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 0368009daa..9635724bf3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // HistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L502-L548 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L519-L565 type HistogramAggregation struct { // ExtendedBounds Enables extending the bounds of the histogram beyond the data itself. ExtendedBounds *ExtendedBoundsdouble `json:"extended_bounds,omitempty"` 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 5851ed482a..b0d100825b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // HistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L345-L348 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L378-L381 type HistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -515,6 +515,13 @@ func (s *HistogramBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 dd0be17512..b9eddfcd64 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/_types/Groupings.ts#L84-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 35549bd873..68d3df772c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // HistogramProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L60-L63 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/specialized.ts#L60-L63 type HistogramProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` 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 c851874167..8da10b16e2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,13 +31,13 @@ import ( // Hit type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L40-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/hits.ts#L41-L66 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,omitempty"` - IgnoredFieldValues map[string][]string `json:"ignored_field_values,omitempty"` + IgnoredFieldValues map[string][]FieldValue `json:"ignored_field_values,omitempty"` Ignored_ []string `json:"_ignored,omitempty"` Index_ string `json:"_index"` InnerHits map[string]InnerHitsResult `json:"inner_hits,omitempty"` @@ -98,7 +98,7 @@ func (s *Hit) UnmarshalJSON(data []byte) error { case "ignored_field_values": if s.IgnoredFieldValues == nil { - s.IgnoredFieldValues = make(map[string][]string, 0) + s.IgnoredFieldValues = make(map[string][]FieldValue, 0) } if err := dec.Decode(&s.IgnoredFieldValues); err != nil { return fmt.Errorf("%s | %w", "IgnoredFieldValues", err) @@ -130,7 +130,7 @@ func (s *Hit) UnmarshalJSON(data []byte) error { localDec := json.NewDecoder(source) switch rawMsg[0] { case '{': - o := make(map[string][]Float64, 0) + o := make(map[string]Float64, 0) if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "MatchedQueries", err) } @@ -250,7 +250,7 @@ func NewHit() *Hit { r := &Hit{ Fields: make(map[string]json.RawMessage, 0), Highlight: make(map[string][]string, 0), - IgnoredFieldValues: make(map[string][]string, 0), + IgnoredFieldValues: make(map[string][]FieldValue, 0), InnerHits: make(map[string]InnerHitsResult, 0), } 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 6a6cb92b00..8b6b1e65cc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HitsEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/_types/EqlHits.ts#L41-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/eql/_types/EqlHits.ts#L41-L54 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 92d3359797..15d22bc5a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // HitsMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L67-L73 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/hits.ts#L68-L74 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 03cc8cf9dc..f1c4fbe111 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // HitsSequence type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/eql/_types/EqlHits.ts#L56-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/eql/_types/EqlHits.ts#L56-L64 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 a8d1951c91..3a61a552a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HoltLinearModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L271-L274 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L297-L300 type HoltLinearModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` Beta *float32 `json:"beta,omitempty"` 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 988bce211d..8b5e198b53 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // HoltMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L257-L260 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L283-L286 type HoltMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 e56e522f2f..dbbb709a46 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // HoltWintersModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L275-L282 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L301-L308 type HoltWintersModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` Beta *float32 `json:"beta,omitempty"` 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 ff659ba4ad..51d1bd62fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // HoltWintersMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L262-L265 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L288-L291 type HoltWintersMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 bf56180f0d..34b2a6c528 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Hop type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/_types/Hop.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/hourandminute.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourandminute.go index 116642085f..42eb4ef226 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // HourAndMinute type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L105-L108 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 47dfc13683..1627b14ca3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // HourlySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L47-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 446f83b7b9..86ee9f8300 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // HtmlStripCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/char_filters.ts#L46-L49 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/htmlstripprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/htmlstripprocessor.go new file mode 100644 index 0000000000..870a2c9051 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/htmlstripprocessor.go @@ -0,0 +1,162 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// HtmlStripProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L969-L985 +type HtmlStripProcessor struct { + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // Field The string-valued field to remove HTML tags from. + Field string `json:"field"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // 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"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` + // TargetField The field to assign the converted value to + // By default, the `field` is updated in-place. + TargetField *string `json:"target_field,omitempty"` +} + +func (s *HtmlStripProcessor) 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 "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + case "field": + if err := dec.Decode(&s.Field); err != nil { + return fmt.Errorf("%s | %w", "Field", err) + } + + case "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "ignore_missing": + 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", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + case "target_field": + if err := dec.Decode(&s.TargetField); err != nil { + return fmt.Errorf("%s | %w", "TargetField", err) + } + + } + } + return nil +} + +// NewHtmlStripProcessor returns a HtmlStripProcessor. +func NewHtmlStripProcessor() *HtmlStripProcessor { + r := &HtmlStripProcessor{} + + return r +} 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 e469704c86..d999c029fa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Http type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L633-L647 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L669-L688 type Http struct { // Clients Information on current and recently-closed HTTP client connections. // Clients that have been closed longer than the @@ -40,6 +40,8 @@ type Http struct { Clients []Client `json:"clients,omitempty"` // CurrentOpen Current number of open HTTP connections for the node. CurrentOpen *int `json:"current_open,omitempty"` + // Routes Detailed HTTP stats broken down by route + Routes map[string]HttpRoute `json:"routes"` // TotalOpened Total number of HTTP connections opened for the node. TotalOpened *int64 `json:"total_opened,omitempty"` } @@ -80,6 +82,14 @@ func (s *Http) UnmarshalJSON(data []byte) error { s.CurrentOpen = &f } + case "routes": + if s.Routes == nil { + s.Routes = make(map[string]HttpRoute, 0) + } + if err := dec.Decode(&s.Routes); err != nil { + return fmt.Errorf("%s | %w", "Routes", err) + } + case "total_opened": var tmp any dec.Decode(&tmp) @@ -102,7 +112,9 @@ func (s *Http) UnmarshalJSON(data []byte) error { // NewHttp returns a Http. func NewHttp() *Http { - r := &Http{} + r := &Http{ + Routes: make(map[string]HttpRoute, 0), + } return r } 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 e96cdc6ba8..019da9b99c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HttpEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Actions.ts#L218-L222 type HttpEmailAttachment struct { ContentType *string `json:"content_type,omitempty"` Inline *bool `json:"inline,omitempty"` 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 c95cc4ffea..07598066fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // HttpHeaders type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L158-L158 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L159-L159 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 0c37b19044..c1d93909d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // HttpInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 610f7a423f..4ffa273a43 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // HttpInputAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b55bfecea7..9eed348082 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // HttpInputBasicAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L54-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7cf616ac6c..25d777b068 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // HttpInputProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f81b5f9565..056019e239 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // HttpInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L72-L86 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 eda0b388e0..ec069cdbc7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // HttpInputRequestResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L300-L300 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a98e00cd54..c26a8c6003 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HttpInputResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Actions.ts#L302-L306 type HttpInputResponseResult struct { Body string `json:"body"` Headers HttpHeaders `json:"headers"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httproute.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httproute.go new file mode 100644 index 0000000000..24957b4a19 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httproute.go @@ -0,0 +1,36 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// HttpRoute type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L690-L693 +type HttpRoute struct { + Requests HttpRouteRequests `json:"requests"` + Responses HttpRouteResponses `json:"responses"` +} + +// NewHttpRoute returns a HttpRoute. +func NewHttpRoute() *HttpRoute { + r := &HttpRoute{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httprouterequests.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httprouterequests.go new file mode 100644 index 0000000000..bb1992b0e0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httprouterequests.go @@ -0,0 +1,101 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// HttpRouteRequests type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L695-L699 +type HttpRouteRequests struct { + Count int64 `json:"count"` + SizeHistogram []SizeHttpHistogram `json:"size_histogram"` + TotalSizeInBytes int64 `json:"total_size_in_bytes"` +} + +func (s *HttpRouteRequests) 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 "count": + 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", "Count", err) + } + s.Count = value + case float64: + f := int64(v) + s.Count = f + } + + case "size_histogram": + if err := dec.Decode(&s.SizeHistogram); err != nil { + return fmt.Errorf("%s | %w", "SizeHistogram", err) + } + + case "total_size_in_bytes": + 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", "TotalSizeInBytes", err) + } + s.TotalSizeInBytes = value + case float64: + f := int64(v) + s.TotalSizeInBytes = f + } + + } + } + return nil +} + +// NewHttpRouteRequests returns a HttpRouteRequests. +func NewHttpRouteRequests() *HttpRouteRequests { + r := &HttpRouteRequests{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httprouteresponses.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httprouteresponses.go new file mode 100644 index 0000000000..e9ad54b41a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httprouteresponses.go @@ -0,0 +1,107 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// HttpRouteResponses type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L701-L706 +type HttpRouteResponses struct { + Count int64 `json:"count"` + HandlingTimeHistogram []TimeHttpHistogram `json:"handling_time_histogram"` + SizeHistogram []SizeHttpHistogram `json:"size_histogram"` + TotalSizeInBytes int64 `json:"total_size_in_bytes"` +} + +func (s *HttpRouteResponses) 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 "count": + 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", "Count", err) + } + s.Count = value + case float64: + f := int64(v) + s.Count = f + } + + case "handling_time_histogram": + if err := dec.Decode(&s.HandlingTimeHistogram); err != nil { + return fmt.Errorf("%s | %w", "HandlingTimeHistogram", err) + } + + case "size_histogram": + if err := dec.Decode(&s.SizeHistogram); err != nil { + return fmt.Errorf("%s | %w", "SizeHistogram", err) + } + + case "total_size_in_bytes": + 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", "TotalSizeInBytes", err) + } + s.TotalSizeInBytes = value + case float64: + f := int64(v) + s.TotalSizeInBytes = f + } + + } + } + return nil +} + +// NewHttpRouteResponses returns a HttpRouteResponses. +func NewHttpRouteResponses() *HttpRouteResponses { + r := &HttpRouteResponses{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hungariananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hungariananalyzer.go new file mode 100644 index 0000000000..810adc4231 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hungariananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// HungarianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L195-L200 +type HungarianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *HungarianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s HungarianAnalyzer) MarshalJSON() ([]byte, error) { + type innerHungarianAnalyzer HungarianAnalyzer + tmp := innerHungarianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "hungarian" + + return json.Marshal(tmp) +} + +// NewHungarianAnalyzer returns a HungarianAnalyzer. +func NewHungarianAnalyzer() *HungarianAnalyzer { + r := &HungarianAnalyzer{} + + return r +} 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 1aacce240a..fffb981ddb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HunspellTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L202-L208 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L201-L207 type HunspellTokenFilter struct { Dedup *bool `json:"dedup,omitempty"` Dictionary *string `json:"dictionary,omitempty"` 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 5433967781..ed29cdbffe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Hyperparameter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L217-L231 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L216-L230 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 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 f706140798..11f7b27741 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Hyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L419-L525 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L418-L524 type Hyperparameters struct { // Alpha Advanced configuration option. // Machine learning uses loss guided tree growing, which means that the decision 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 67b63d3bfd..5843471397 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // HyphenationDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L58-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L57-L59 type HyphenationDecompounderTokenFilter struct { HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` MaxSubwordSize *int `json:"max_subword_size,omitempty"` 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 353afbafe8..ffe1ea5eee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // IcuAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L67-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 index 48179e3a7a..b809c600e1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationproperty.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationproperty.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -38,7 +38,7 @@ import ( // IcuCollationProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L94-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/specialized.ts#L94-L118 type IcuCollationProperty struct { Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"` CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"` @@ -64,7 +64,6 @@ type IcuCollationProperty struct { Numeric *bool `json:"numeric,omitempty"` Properties map[string]Property `json:"properties,omitempty"` Rules *string `json:"rules,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Strength *icucollationstrength.IcuCollationStrength `json:"strength,omitempty"` Type string `json:"type,omitempty"` @@ -922,18 +921,6 @@ func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error { } 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) @@ -1011,7 +998,6 @@ func (s IcuCollationProperty) MarshalJSON() ([]byte, error) { Numeric: s.Numeric, Properties: s.Properties, Rules: s.Rules, - Similarity: s.Similarity, Store: s.Store, Strength: s.Strength, Type: s.Type, 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 e8349a723b..e866233bdd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -36,7 +36,7 @@ import ( // IcuCollationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L51-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/icu-plugin.ts#L51-L65 type IcuCollationTokenFilter struct { Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"` CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"` 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 4c9068b6ec..5746b9371d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IcuFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a2ffa10f89..39ba91b74f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IcuNormalizationCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 62fc9a7a2e..baee2fda3a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // IcuNormalizationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 74c0c21881..a38beaec66 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IcuTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 41691878a7..505fbb651f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IcuTransformTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/icu-plugin.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 05b1e69580..f072d73f3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Ids type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L62-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d68e1a479a..bd597e9355 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IdsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L81-L86 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L88-L96 type IdsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 ea37064ebf..c531903098 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Ilm type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L162-L165 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L160-L163 type Ilm struct { PolicyCount int `json:"policy_count"` PolicyStats []IlmPolicyStatistics `json:"policy_stats"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmactions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmactions.go index 04376fb6ed..92ed4b9ab4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmactions.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmactions.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IlmActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L42-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L42-L96 type IlmActions struct { // Allocate Phases allowed: warm, cold. Allocate *AllocateAction `json:"allocate,omitempty"` 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 63f34703c0..4e562abe62 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L146-L150 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L163-L167 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 7a06e7f8fb..44de8caac9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L151-L155 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L168-L172 type IlmIndicatorDetails struct { IlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"` Policies int64 `json:"policies"` 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 6639221254..2ca74330ca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IlmPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Policy.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 45a20a0328..c83cc34927 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IlmPolicyStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L157-L160 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L155-L158 type IlmPolicyStatistics struct { IndicesManaged int `json:"indices_managed"` Phases Phases `json:"phases"` 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 a149703f71..3e1df3cb64 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // Impact type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L65-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L66-L71 type Impact struct { Description string `json:"description"` Id string `json:"id"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/includedinvalidation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/includedinvalidation.go index 5598aad605..c2f0b1ee53 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/includedinvalidation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/includedinvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // IncludedInValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L73-L76 type IncludedInValidation struct { Constraint []ScalarValue `json:"constraint"` Type string `json:"type,omitempty"` 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 ff16a2922a..94640543b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L256-L265 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 17b82a62a5..7075d5cb12 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexAliases type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_alias/IndicesGetAliasResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6eb5a8a7f2..73ab9cbac4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IndexAndDataStreamAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/modify_data_stream/types.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1329a96503..d87eb6cf54 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_index_caps/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ba3651d7a0..f05105e0d4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28 type IndexDetails struct { MaxSegmentsPerShard int64 `json:"max_segments_per_shard"` ShardCount int `json:"shard_count"` 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 7e0c19646e..683d83911f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/meta-fields.ts#L46-L48 type IndexField struct { Enabled bool `json:"enabled"` } 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 dc94a0d69f..a25c713d44 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,17 +33,18 @@ import ( // IndexHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/health/types.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/health/types.ts#L24-L35 type IndexHealthStats struct { - ActivePrimaryShards int `json:"active_primary_shards"` - ActiveShards int `json:"active_shards"` - InitializingShards int `json:"initializing_shards"` - NumberOfReplicas int `json:"number_of_replicas"` - NumberOfShards int `json:"number_of_shards"` - RelocatingShards int `json:"relocating_shards"` - Shards map[string]ShardHealthStats `json:"shards,omitempty"` - Status healthstatus.HealthStatus `json:"status"` - UnassignedShards int `json:"unassigned_shards"` + ActivePrimaryShards int `json:"active_primary_shards"` + ActiveShards int `json:"active_shards"` + InitializingShards int `json:"initializing_shards"` + NumberOfReplicas int `json:"number_of_replicas"` + NumberOfShards int `json:"number_of_shards"` + RelocatingShards int `json:"relocating_shards"` + Shards map[string]ShardHealthStats `json:"shards,omitempty"` + Status healthstatus.HealthStatus `json:"status"` + UnassignedPrimaryShards int `json:"unassigned_primary_shards"` + UnassignedShards int `json:"unassigned_shards"` } func (s *IndexHealthStats) UnmarshalJSON(data []byte) error { @@ -170,6 +171,22 @@ func (s *IndexHealthStats) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Status", err) } + case "unassigned_primary_shards": + + 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", "UnassignedPrimaryShards", err) + } + s.UnassignedPrimaryShards = value + case float64: + f := int(v) + s.UnassignedPrimaryShards = f + } + case "unassigned_shards": var tmp any 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 75cea7f932..11fc2d4a17 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexingPressureMemorySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L580-L589 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 224d8a4bd8..60b6172cf9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexingSlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L563-L568 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L563-L568 type IndexingSlowlogSettings struct { Level *string `json:"level,omitempty"` Reformat *bool `json:"reformat,omitempty"` 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 a49592243e..6af2fbf285 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexingSlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L570-L577 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L570-L577 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 3b59f35869..6af06f1265 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L143-L159 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L143-L159 type IndexingStats struct { DeleteCurrent int64 `json:"delete_current"` DeleteTime Duration `json:"delete_time,omitempty"` 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 51d06747f7..56994ebfc0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexMappingRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3f7f168704..079af0166b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IndexOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L132-L132 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 886774f7f5..0a485c54fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IndexPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/types.ts#L33-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 355ed3abd7..8ed91c0295 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L267-L269 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2ccb1c4eeb..9e9b221854 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IndexResultSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L271-L277 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Actions.ts#L271-L277 type IndexResultSummary struct { Created bool `json:"created"` Id string `json:"id"` 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 9c863cb598..5ca87b96e0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexRouting.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6ff118a899..2ecdb86dd6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // IndexRoutingAllocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexRouting.ts#L27-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 64e2baf210..a341754b11 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationDisk type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexRouting.ts#L62-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2b93386d50..93299d4615 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexRouting.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 75759c3d07..48363e5725 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IndexRoutingAllocationInitialRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexRouting.ts#L57-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4d48c41f73..4c2f92e78c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // IndexRoutingRebalance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexRouting.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b5c3e12410..22e3e4be1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/segments/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9d7df5dee6..28d13e2351 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // IndexSegmentSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSegmentSort.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e09b98504c..62e6eea96e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IndexSettingBlocks type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L254-L260 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L254-L260 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 dd025eb22c..d2f599ff9a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IndexSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L69-L169 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L69-L169 type IndexSettings struct { Analysis *IndexSettingsAnalysis `json:"analysis,omitempty"` // Analyze Settings to define analyzers, tokenizers, token filters and character 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 2418c73ac8..e976468f84 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // IndexSettingsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L319-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L319-L325 type IndexSettingsAnalysis struct { Analyzer map[string]Analyzer `json:"analyzer,omitempty"` CharFilter map[string]CharFilter `json:"char_filter,omitempty"` @@ -147,12 +147,228 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return err } s.Analyzer[key] = oo + case "arabic": + oo := NewArabicAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "armenian": + oo := NewArmenianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "basque": + oo := NewBasqueAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "bengali": + oo := NewBengaliAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "brazilian": + oo := NewBrazilianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "bulgarian": + oo := NewBulgarianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "catalan": + oo := NewCatalanAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "chinese": + oo := NewChineseAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "cjk": + oo := NewCjkAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "czech": + oo := NewCzechAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "danish": + oo := NewDanishAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo case "dutch": oo := NewDutchAnalyzer() if err := localDec.Decode(&oo); err != nil { return err } s.Analyzer[key] = oo + case "english": + oo := NewEnglishAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "estonian": + oo := NewEstonianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "finnish": + oo := NewFinnishAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "french": + oo := NewFrenchAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "galician": + oo := NewGalicianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "german": + oo := NewGermanAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "greek": + oo := NewGreekAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "hindi": + oo := NewHindiAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "hungarian": + oo := NewHungarianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "indonesian": + oo := NewIndonesianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "irish": + oo := NewIrishAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "italian": + oo := NewItalianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "latvian": + oo := NewLatvianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "lithuanian": + oo := NewLithuanianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "norwegian": + oo := NewNorwegianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "persian": + oo := NewPersianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "portuguese": + oo := NewPortugueseAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "romanian": + oo := NewRomanianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "russian": + oo := NewRussianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "serbian": + oo := NewSerbianAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "sorani": + oo := NewSoraniAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "spanish": + oo := NewSpanishAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "swedish": + oo := NewSwedishAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "turkish": + oo := NewTurkishAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo + case "thai": + oo := NewThaiAnalyzer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Analyzer[key] = oo default: oo := new(Analyzer) if err := localDec.Decode(&oo); err != nil { @@ -577,6 +793,12 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return err } s.Tokenizer[key] = oo + case "classic": + oo := NewClassicTokenizer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Tokenizer[key] = oo case "edge_ngram": oo := NewEdgeNGramTokenizer() if err := localDec.Decode(&oo); err != nil { @@ -607,14 +829,26 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return err } s.Tokenizer[key] = oo - case "nori_tokenizer": - oo := NewNoriTokenizer() + case "path_hierarchy": + oo := NewPathHierarchyTokenizer() if err := localDec.Decode(&oo); err != nil { return err } s.Tokenizer[key] = oo - case "path_hierarchy": - oo := NewPathHierarchyTokenizer() + case "pattern": + oo := NewPatternTokenizer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Tokenizer[key] = oo + case "simple_pattern": + oo := NewSimplePatternTokenizer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Tokenizer[key] = oo + case "simple_pattern_split": + oo := NewSimplePatternSplitTokenizer() if err := localDec.Decode(&oo); err != nil { return err } @@ -625,6 +859,12 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return err } s.Tokenizer[key] = oo + case "thai": + oo := NewThaiTokenizer() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Tokenizer[key] = oo case "uax_url_email": oo := NewUaxEmailUrlTokenizer() if err := localDec.Decode(&oo); err != nil { @@ -637,20 +877,20 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return err } s.Tokenizer[key] = oo - case "kuromoji_tokenizer": - oo := NewKuromojiTokenizer() + case "icu_tokenizer": + oo := NewIcuTokenizer() if err := localDec.Decode(&oo); err != nil { return err } s.Tokenizer[key] = oo - case "pattern": - oo := NewPatternTokenizer() + case "kuromoji_tokenizer": + oo := NewKuromojiTokenizer() if err := localDec.Decode(&oo); err != nil { return err } s.Tokenizer[key] = oo - case "icu_tokenizer": - oo := NewIcuTokenizer() + case "nori_tokenizer": + oo := NewNoriTokenizer() if err := localDec.Decode(&oo); err != nil { return err } 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 c4153e482e..0f9082a084 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexSettingsLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L276-L309 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L276-L309 type IndexSettingsLifecycle struct { // IndexingComplete Indicates whether or not the index has been rolled over. Automatically set to // true when ILM completes the rollover action. 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 f58e6dd285..23a019b866 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsLifecycleStep type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L311-L317 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L311-L317 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 79cd3f8a95..2516ff16f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsTimeSeries type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L327-L330 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L327-L330 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 e221039480..1bff7551c6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,13 +30,13 @@ import ( // IndexState type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexState.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexState.ts#L27-L40 type IndexState struct { Aliases map[string]Alias `json:"aliases,omitempty"` DataStream *string `json:"data_stream,omitempty"` // Defaults Default settings, included when the request's `include_default` is `true`. Defaults *IndexSettings `json:"defaults,omitempty"` - // Lifecycle Data lifecycle applicable if this is a data stream. + // Lifecycle Data stream lifecycle applicable if this is a data stream. Lifecycle *DataStreamLifecycle `json:"lifecycle,omitempty"` Mappings *TypeMapping `json:"mappings,omitempty"` Settings *IndexSettings `json:"settings,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 780757b5f6..2a029008b6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L52-L93 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6550e9b556..609fae129e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexTemplate.ts#L31-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexTemplate.ts#L28-L67 type IndexTemplate struct { AllowAutoCreate *bool `json:"allow_auto_create,omitempty"` // ComposedOf An ordered list of component template names. 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 a5393ee9cb..ad1a051812 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexTemplateDataStreamConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexTemplate.ts#L72-L83 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexTemplate.ts#L69-L80 type IndexTemplateDataStreamConfiguration struct { // AllowCustomRouting If true, the data stream supports custom routing. AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` 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 04441628c2..07ed2aadf8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IndexTemplateItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 eeed729744..15d71ee419 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexTemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L121-L143 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 942a660549..3b0fd7c3f0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndexTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexTemplate.ts#L85-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexTemplate.ts#L82-L104 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 4d2f6172d5..4e7bfddb29 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndexVersioning type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L271-L274 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L271-L274 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 a2992ad333..24fe8852b4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndicatorNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L90-L93 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L91-L94 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 04e5c70434..4033eda8bb 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,14 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Indicators type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L32-L41 type Indicators struct { + DataStreamLifecycle *DataStreamLifecycleIndicator `json:"data_stream_lifecycle,omitempty"` Disk *DiskIndicator `json:"disk,omitempty"` Ilm *IlmIndicator `json:"ilm,omitempty"` MasterIsStable *MasterIsStableIndicator `json:"master_is_stable,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 15a2e0933a..10757aa135 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Indices type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8338470c72..9a9adfb6b8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndicesAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/update_aliases/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2d4677f802..7aa972e605 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndicesBlockStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 type IndicesBlockStatus struct { Blocked bool `json:"blocked"` Name string `json:"name"` 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 2529f105cd..5fce9d8449 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndicesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L550-L552 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L550-L552 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 be15d0848a..2359d53d3a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndicesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L554-L561 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L554-L561 type IndicesIndexingPressureMemory struct { // Limit Number of outstanding bytes that may be consumed by indexing requests. When // this limit is reached or exceeded, 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 611a828616..1a4a2cdfb0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndicesModifyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/modify_data_stream/types.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9118ce41d6..f769c7257b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IndicesOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L335-L362 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L336-L363 type IndicesOptions struct { // AllowNoIndices If false, the request returns an error if any wildcard expression, index // alias, or `_all` value targets only 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 60524f628c..aac673ee65 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L201-L225 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L198-L222 type IndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited 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 6c93229d5b..0f885626a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ package types // Query // RoleTemplateQuery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L251-L259 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L279-L287 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 ca183134ee..94835dfa7b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndicesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/indices/types.ts#L20-L801 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cat/indices/types.ts#L20-L808 type IndicesRecord struct { // BulkAvgSizeInBytes average size in bytes of shard bulk BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"` @@ -49,6 +49,8 @@ type IndicesRecord struct { CreationDate *string `json:"creation.date,omitempty"` // CreationDateString index creation date (as string) CreationDateString *string `json:"creation.date.string,omitempty"` + // DatasetSize total size of dataset (including the cache for partially mounted indices) + DatasetSize *string `json:"dataset.size,omitempty"` // DocsCount available docs DocsCount *string `json:"docs.count,omitempty"` // DocsDeleted deleted docs @@ -430,6 +432,18 @@ func (s *IndicesRecord) UnmarshalJSON(data []byte) error { } s.CreationDateString = &o + case "dataset.size": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "DatasetSize", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.DatasetSize = &o + case "docs.count", "dc", "docsCount": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { 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 2f5832b531..a6a953a780 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndicesShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L52-L55 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 4e7ab2724d..a6a73d03a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // IndicesShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L192-L223 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8a09c667ce..3877e23bb9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IndicesShardStores type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L26-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/shard_stores/types.ts#L25-L27 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 25f52d981e..f5633fc525 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IndicesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L95-L110 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b3227dbb82..87aa6c9748 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndicesValidationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 type IndicesValidationExplanation struct { Error *string `json:"error,omitempty"` Explanation *string `json:"explanation,omitempty"` 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 ced816224f..eccc6eeb5a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IndicesVersions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L263-L268 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/stats/types.ts#L263-L268 type IndicesVersions struct { IndexCount int `json:"index_count"` PrimaryShardCount int `json:"primary_shard_count"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indonesiananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indonesiananalyzer.go new file mode 100644 index 0000000000..4e859c304e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indonesiananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// IndonesianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L202-L207 +type IndonesianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *IndonesianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s IndonesianAnalyzer) MarshalJSON() ([]byte, error) { + type innerIndonesianAnalyzer IndonesianAnalyzer + tmp := innerIndonesianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "indonesian" + + return json.Marshal(tmp) +} + +// NewIndonesianAnalyzer returns a IndonesianAnalyzer. +func NewIndonesianAnalyzer() *IndonesianAnalyzer { + r := &IndonesianAnalyzer{} + + return r +} 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 d2ec9000f5..7d94ba999d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InferenceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L663-L677 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L755-L770 type InferenceAggregate struct { Data map[string]json.RawMessage `json:"-"` FeatureImportance []InferenceFeatureImportance `json:"feature_importance,omitempty"` 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 7e516e1ed3..921b12b73e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // InferenceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L205-L214 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L225-L234 type InferenceAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 18b6ebdbb0..3e325656af 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L691-L694 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L784-L787 type InferenceClassImportance struct { ClassName string `json:"class_name"` Importance Float64 `json:"importance"` 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 9c4e1d118a..7fa2cda9d8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // InferenceConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L746-L758 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1008-L1020 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 25417947b3..e4f14cea0e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L773-L799 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1035-L1061 type InferenceConfigClassification struct { // NumTopClasses Specifies the number of top class predictions to return. NumTopClasses *int `json:"num_top_classes,omitempty"` 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 534fe6da09..94073d7aa6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // InferenceConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L216-L222 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L236-L242 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 2238f46d53..51f5eab0d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // InferenceConfigCreateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L23-L80 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e0ffe70e3e..c72c930f53 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L760-L771 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1022-L1033 type InferenceConfigRegression struct { // NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document. NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"` 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 26086662f0..3e967a26d3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // InferenceConfigUpdateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L296-L318 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/inferenceendpoint.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpoint.go index c3b964b11a..9b16d46196 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpoint.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpoint.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,14 +31,14 @@ import ( // InferenceEndpoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Services.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Services.ts#L23-L39 type InferenceEndpoint struct { // Service The service type Service string `json:"service"` // ServiceSettings Settings specific to the service ServiceSettings json.RawMessage `json:"service_settings"` // TaskSettings Task settings specific to the service and task type - TaskSettings json.RawMessage `json:"task_settings"` + TaskSettings json.RawMessage `json:"task_settings,omitempty"` } func (s *InferenceEndpoint) UnmarshalJSON(data []byte) error { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpointinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpointinfo.go index 740c20bc00..dc3525795c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpointinfo.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpointinfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // InferenceEndpointInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Services.ts#L41-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Services.ts#L41-L53 type InferenceEndpointInfo struct { // InferenceId The inference Id InferenceId string `json:"inference_id"` @@ -42,7 +42,7 @@ type InferenceEndpointInfo struct { // ServiceSettings Settings specific to the service ServiceSettings json.RawMessage `json:"service_settings"` // TaskSettings Task settings specific to the service and task type - TaskSettings json.RawMessage `json:"task_settings"` + TaskSettings json.RawMessage `json:"task_settings,omitempty"` // TaskType The task type TaskType tasktype.TaskType `json:"task_type"` } 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 1ce94a2275..2be099e9d5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L685-L689 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L778-L782 type InferenceFeatureImportance struct { Classes []InferenceClassImportance `json:"classes,omitempty"` FeatureName string `json:"feature_name"` 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 7c7051d303..597aba4e10 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InferenceProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L725-L744 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L987-L1006 type InferenceProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 9dd5d9514e..f11a4cc90a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InferenceResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L459-L506 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L459-L507 type InferenceResponseResult struct { // Entities If the model is trained for named entity recognition (NER) tasks, the // response contains the recognized entities. @@ -55,7 +55,7 @@ type InferenceResponseResult struct { // For regression models, its a numerical value // For classification models, it may be an integer, double, boolean or string // depending on prediction type - PredictedValue []PredictedValue `json:"predicted_value,omitempty"` + PredictedValue [][]ScalarValue `json:"predicted_value,omitempty"` // PredictedValueSequence For fill mask tasks, the response contains the input text sequence with the // mask token replaced by the predicted // value. @@ -116,7 +116,7 @@ func (s *InferenceResponseResult) UnmarshalJSON(data []byte) error { rawMsg := json.RawMessage{} dec.Decode(&rawMsg) if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(PredictedValue) + o := new([]ScalarValue) if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { return fmt.Errorf("%s | %w", "PredictedValue", err) } 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 9c25f110cb..226c1c6321 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,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // InferenceResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Results.ts#L79-L89 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Results.ts#L79-L89 type InferenceResult struct { Completion []CompletionResult `json:"completion,omitempty"` Rerank []RankedDocument `json:"rerank,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 32e4582e4d..e5b56281c9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InferenceTopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L679-L683 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L772-L776 type InferenceTopClassEntry struct { ClassName FieldValue `json:"class_name"` ClassProbability Float64 `json:"class_probability"` 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 6f5e036dc3..40dae5beb5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Influence type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Anomaly.ts#L140-L143 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1557120cb7..69a93570fd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Influencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Influencer.ts#L31-L83 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Influencer.ts#L24-L76 type Influencer struct { // BucketSpan The length of the bucket in seconds. This value matches the bucket span that // is specified in the job. 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 5022fca69f..fef6e8f9a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InfoFeatureState type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5953256b21..19ba71f5a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,8 +31,13 @@ import ( // IngestPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Pipeline.ts#L23-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Pipeline.ts#L23-L51 type IngestPipeline struct { + // Deprecated Marks this ingest pipeline as deprecated. + // When a deprecated ingest pipeline is referenced as the default or final + // pipeline when creating or updating a non-deprecated index template, + // Elasticsearch will emit a deprecation warning. + Deprecated *bool `json:"deprecated,omitempty"` // Description Description of the ingest pipeline. Description *string `json:"description,omitempty"` // Meta_ Arbitrary metadata about the ingest pipeline. This map is not automatically @@ -62,6 +67,20 @@ func (s *IngestPipeline) UnmarshalJSON(data []byte) error { switch t { + 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 "description": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipelineparams.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipelineparams.go index 74bf7c3c9a..60d3f9e07d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipelineparams.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipelineparams.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IngestPipelineParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L148-L153 type IngestPipelineParams struct { ExtractBinaryContent bool `json:"extract_binary_content"` Name string `json:"name"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingeststats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingeststats.go new file mode 100644 index 0000000000..a41d3cf290 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingeststats.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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// IngestStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L356-L394 +type IngestStats struct { + // Count Total number of documents ingested during the lifetime of this node. + Count int64 `json:"count"` + // Current Total number of documents currently being ingested. + Current int64 `json:"current"` + // Failed Total number of failed ingest operations during the lifetime of this node. + Failed int64 `json:"failed"` + // IngestedAsFirstPipelineInBytes Total number of bytes of all documents ingested by the pipeline. + // This field is only present on pipelines which are the first to process a + // document. + // Thus, it is not present on pipelines which only serve as a final pipeline + // after a default pipeline, a pipeline run after a reroute processor, or + // pipelines in pipeline processors. + IngestedAsFirstPipelineInBytes int64 `json:"ingested_as_first_pipeline_in_bytes"` + // Processors Total number of ingest processors. + Processors []map[string]KeyedProcessor `json:"processors"` + // ProducedAsFirstPipelineInBytes Total number of bytes of all documents produced by the pipeline. + // This field is only present on pipelines which are the first to process a + // document. + // Thus, it is not present on pipelines which only serve as a final pipeline + // after a default pipeline, a pipeline run after a reroute processor, or + // pipelines in pipeline processors. + // In situations where there are subsequent pipelines, the value represents the + // size of the document after all pipelines have run. + ProducedAsFirstPipelineInBytes int64 `json:"produced_as_first_pipeline_in_bytes"` + // TimeInMillis Total time, in milliseconds, spent preprocessing ingest documents during the + // lifetime of this node. + TimeInMillis int64 `json:"time_in_millis"` +} + +func (s *IngestStats) 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 "count": + 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", "Count", err) + } + s.Count = value + case float64: + f := int64(v) + s.Count = f + } + + case "current": + 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", "Current", err) + } + s.Current = value + case float64: + f := int64(v) + s.Current = f + } + + case "failed": + 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", "Failed", err) + } + s.Failed = value + case float64: + f := int64(v) + s.Failed = f + } + + case "ingested_as_first_pipeline_in_bytes": + 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", "IngestedAsFirstPipelineInBytes", err) + } + s.IngestedAsFirstPipelineInBytes = value + case float64: + f := int64(v) + s.IngestedAsFirstPipelineInBytes = f + } + + case "processors": + if err := dec.Decode(&s.Processors); err != nil { + return fmt.Errorf("%s | %w", "Processors", err) + } + + case "produced_as_first_pipeline_in_bytes": + 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", "ProducedAsFirstPipelineInBytes", err) + } + s.ProducedAsFirstPipelineInBytes = value + case float64: + f := int64(v) + s.ProducedAsFirstPipelineInBytes = f + } + + case "time_in_millis": + if err := dec.Decode(&s.TimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "TimeInMillis", err) + } + + } + } + return nil +} + +// NewIngestStats returns a IngestStats. +func NewIngestStats() *IngestStats { + r := &IngestStats{} + + return r +} 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 d30207542e..596466a152 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,19 +31,17 @@ import ( // IngestTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L356-L377 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L396-L413 type IngestTotal struct { // Count Total number of documents ingested during the lifetime of this node. - Count *int64 `json:"count,omitempty"` + Count int64 `json:"count"` // Current Total number of documents currently being ingested. - Current *int64 `json:"current,omitempty"` + Current int64 `json:"current"` // Failed Total number of failed ingest operations during the lifetime of this node. - Failed *int64 `json:"failed,omitempty"` - // Processors Total number of ingest processors. - Processors []map[string]KeyedProcessor `json:"processors,omitempty"` + Failed int64 `json:"failed"` // TimeInMillis Total time, in milliseconds, spent preprocessing ingest documents during the // lifetime of this node. - TimeInMillis *int64 `json:"time_in_millis,omitempty"` + TimeInMillis int64 `json:"time_in_millis"` } func (s *IngestTotal) UnmarshalJSON(data []byte) error { @@ -70,10 +68,10 @@ func (s *IngestTotal) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "Count", err) } - s.Count = &value + s.Count = value case float64: f := int64(v) - s.Count = &f + s.Count = f } case "current": @@ -85,10 +83,10 @@ func (s *IngestTotal) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "Current", err) } - s.Current = &value + s.Current = value case float64: f := int64(v) - s.Current = &f + s.Current = f } case "failed": @@ -100,15 +98,10 @@ func (s *IngestTotal) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "Failed", err) } - s.Failed = &value + s.Failed = value case float64: f := int64(v) - s.Failed = &f - } - - case "processors": - if err := dec.Decode(&s.Processors); err != nil { - return fmt.Errorf("%s | %w", "Processors", err) + s.Failed = f } case "time_in_millis": 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 81f5f89fd5..807f8217f2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InlineGet type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L320-L333 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L321-L334 type InlineGet struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` 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 b891d24bd7..d193993015 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InlineGetDictUserDefined type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L320-L333 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L321-L334 type InlineGetDictUserDefined struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` 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 0f4a787778..31dd55143b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InnerHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L107-L141 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/hits.ts#L108-L142 type InnerHits struct { Collapse *FieldCollapse `json:"collapse,omitempty"` DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` 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 679e7e1d74..b14d4f5bf7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // InnerHitsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L85-L87 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/hits.ts#L86-L88 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 98ae9b1a73..2e947e3862 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // InProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/_types/SnapshotLifecycle.ts#L131-L136 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ae851cdc67..94d98d714f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Input type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7436ea4189..4a13fbd1d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // IntegerNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L157-L160 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L157-L160 type IntegerNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,6 @@ type IntegerNumberProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -859,18 +858,6 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -932,7 +919,6 @@ func (s IntegerNumberProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, 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 855e5d4b7d..704c8ff84e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IntegerRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/range.ts#L42-L44 type IntegerRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -46,7 +46,6 @@ type IntegerRangeProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -807,18 +806,6 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -857,7 +844,6 @@ func (s IntegerRangeProperty) MarshalJSON() ([]byte, error) { Index: s.Index, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 697db778c3..3054e90edf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Intervals type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L83-L110 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 10809be4d2..261b3ec422 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IntervalsAllOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L50-L70 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L50-L70 type IntervalsAllOf 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/intervalsanyof.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsanyof.go index 785945df3d..93370bb3ad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IntervalsAnyOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L72-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b60cc38539..7ef861cf8c 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,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IntervalsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L112-L152 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 18fb5c34e3..3d21f3cf26 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IntervalsFuzzy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L154-L184 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L154-L184 type IntervalsFuzzy struct { // Analyzer Analyzer used to normalize the term. Analyzer *string `json:"analyzer,omitempty"` 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 2ab802a289..9358283215 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IntervalsMatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L186-L216 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 f09d6b7986..78d11b2ca1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IntervalsPrefix type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L218-L233 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a12815a209..55b5671ddb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IntervalsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L235-L263 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L235-L266 type IntervalsQuery 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/intervalswildcard.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalswildcard.go index a948396257..6f97262098 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IntervalsWildcard type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L265-L280 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L268-L283 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 cbab704317..e379aeeba1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // InvertedIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L68-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L68-L76 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 f6d164f7c0..d53758e203 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Invocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/_types/SnapshotLifecycle.ts#L138-L141 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3de139d59e..1bc8a812aa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Invocations type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L44-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L42-L44 type Invocations struct { Total int64 `json:"total"` } 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 4daccd9845..af9d6ae67f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IoStatDevice type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L730-L755 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L801-L826 type IoStatDevice struct { // DeviceName The Linux device name. DeviceName *string `json:"device_name,omitempty"` 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 c5e0ddfb34..4148166062 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // IoStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L718-L728 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L789-L799 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 5cc0addb88..47183341a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IpFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L167-L170 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L165-L168 type IpFilter struct { Http bool `json:"http"` Transport bool `json:"transport"` 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 609aa5f5f8..928aa5a947 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IpPrefixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L633-L634 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L709-L713 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 bb410450db..f75eb9e559 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IpPrefixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1122-L1151 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1195-L1224 type IpPrefixAggregation struct { // AppendPrefixLength Defines whether the prefix length is appended to IP address keys in the // response. 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 6a46f70d29..55429557e2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // IpPrefixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L636-L641 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L715-L720 type IpPrefixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -543,6 +543,13 @@ func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 404b1d8231..61fb23fd3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // IpProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L65-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/specialized.ts#L65-L79 type IpProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -50,7 +50,6 @@ type IpProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -836,18 +835,6 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -903,7 +890,6 @@ func (s IpProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, Type: s.Type, 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 b5d62bdc40..40b5248393 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L560-L562 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L624-L629 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 f573065bf4..a710455365 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L550-L559 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L567-L576 type IpRangeAggregation struct { // Field The date field whose values are used to build ranges. Field *string `json:"field,omitempty"` 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 5b1de194f8..95c7988f91 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // IpRangeAggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L561-L574 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L578-L591 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 ac0e4fe246..0ca6ebdb3a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // IpRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L564-L568 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L631-L635 type IpRangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -524,6 +524,13 @@ func (s *IpRangeBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 5d67c3786a..2297b094fb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // IpRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/range.ts#L46-L48 type IpRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -46,7 +46,6 @@ type IpRangeProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -807,18 +806,6 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -857,7 +844,6 @@ func (s IpRangeProperty) MarshalJSON() ([]byte, error) { Index: s.Index, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/irishanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/irishanalyzer.go new file mode 100644 index 0000000000..2ed8d6efa1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/irishanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// IrishAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L209-L214 +type IrishAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *IrishAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s IrishAnalyzer) MarshalJSON() ([]byte, error) { + type innerIrishAnalyzer IrishAnalyzer + tmp := innerIrishAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "irish" + + return json.Marshal(tmp) +} + +// NewIrishAnalyzer returns a IrishAnalyzer. +func NewIrishAnalyzer() *IrishAnalyzer { + r := &IrishAnalyzer{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/italiananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/italiananalyzer.go new file mode 100644 index 0000000000..cc1765db05 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/italiananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ItalianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L216-L221 +type ItalianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *ItalianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ItalianAnalyzer) MarshalJSON() ([]byte, error) { + type innerItalianAnalyzer ItalianAnalyzer + tmp := innerItalianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "italian" + + return json.Marshal(tmp) +} + +// NewItalianAnalyzer returns a ItalianAnalyzer. +func NewItalianAnalyzer() *ItalianAnalyzer { + r := &ItalianAnalyzer{} + + return r +} 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 80e8385a4e..887ca89b98 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Job type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L61-L180 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 51f1768396..073eb8e285 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // JobBlocked type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L392-L395 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c336ebd34e..425e36e18c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JobConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L182-L283 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 0746ee8f6e..295c93990e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JobForecastStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L343-L350 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Job.ts#L343-L350 type JobForecastStatistics struct { ForecastedJobs int `json:"forecasted_jobs"` MemoryBytes *JobStatistics `json:"memory_bytes,omitempty"` 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 e6bcd7d21b..edb98d2a85 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // JobsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/ml_jobs/types.ts#L24-L347 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f2c82f5a46..8b983a332b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JobStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L54-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Job.ts#L54-L59 type JobStatistics struct { Avg Float64 `json:"avg"` Max Float64 `json:"max"` 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 b57f84c480..022bf574d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // JobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L284-L330 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 a01cd99b88..2e804cf96e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JobTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Job.ts#L332-L341 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Job.ts#L332-L341 type JobTimingStats struct { AverageBucketProcessingTimeMs Float64 `json:"average_bucket_processing_time_ms,omitempty"` BucketCount int64 `json:"bucket_count"` 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 f235f95701..be5c3e2195 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JobUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L364-L370 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L362-L368 type JobUsage struct { Count int `json:"count"` CreatedBy map[string]int64 `json:"created_by"` 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 8240a2f296..64a396556b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JoinProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L801-L816 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1063-L1078 type JoinProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 154e9f7d46..e720afd21d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // JoinProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L89-L93 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L88-L92 type JoinProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"` 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 65f7feb988..36cd59aa85 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // JsonProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L818-L847 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1080-L1109 type JsonProcessor struct { // AddToRoot Flag that forces the parsed JSON to be added at the top level of the // document. 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 880dfc00c5..af7e96be32 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Jvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L811-L845 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L882-L916 type Jvm struct { // BufferPools Contains statistics about JVM buffer pools for the node. BufferPools map[string]NodeBufferPool `json:"buffer_pools,omitempty"` 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 72bcb5a20a..c2dd198fe3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JvmClasses type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L908-L921 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L979-L992 type JvmClasses struct { // CurrentLoadedCount Number of classes currently loaded by JVM. CurrentLoadedCount *int64 `json:"current_loaded_count,omitempty"` 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 af8771298c..484a581b38 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JvmMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L847-L876 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L918-L947 type JvmMemoryStats struct { // HeapCommittedInBytes Amount of memory, in bytes, available for use by the heap. HeapCommittedInBytes *int64 `json:"heap_committed_in_bytes,omitempty"` 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 ba62e2cbe7..6a546550d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JvmStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_memory_stats/types.ts#L50-L63 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 fdeaa1c8a1..c5d9d0dfd8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // JvmThreads type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L897-L906 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L968-L977 type JvmThreads struct { // Count Number of active threads in use by JVM. Count *int64 `json:"count,omitempty"` 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 ee62cb27c3..7df9f18cf5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // KeepTypesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L220-L224 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L219-L223 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 1ff55ada23..71b13184be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KeepWordsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L226-L231 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L225-L230 type KeepWordsTokenFilter struct { KeepWords []string `json:"keep_words,omitempty"` KeepWordsCase *bool `json:"keep_words_case,omitempty"` 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 e1882f1721..a4aed2fea2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // KeyedPercentiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L158-L158 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L160-L160 type KeyedPercentiles map[string]string func (s KeyedPercentiles) UnmarshalJSON(data []byte) error { 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 e9456d7ef2..8b8ffc14b4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KeyedProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L379-L382 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L415-L418 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 7bbf329f48..8140b86009 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KeyValueProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L856-L908 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1118-L1170 type KeyValueProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 0bcebd92ee..16678c6ef6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // KeywordAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 db02015160..7a8ee85391 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KeywordMarkerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L233-L239 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L232-L238 type KeywordMarkerTokenFilter struct { IgnoreCase *bool `json:"ignore_case,omitempty"` Keywords []string `json:"keywords,omitempty"` @@ -71,8 +71,19 @@ func (s *KeywordMarkerTokenFilter) UnmarshalJSON(data []byte) error { } case "keywords": - if err := dec.Decode(&s.Keywords); err != nil { - return fmt.Errorf("%s | %w", "Keywords", 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", "Keywords", err) + } + + s.Keywords = append(s.Keywords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Keywords); err != nil { + return fmt.Errorf("%s | %w", "Keywords", err) + } } case "keywords_path": 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 0dca728a95..afa9973cd5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // KeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L95-L113 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L94-L113 type KeywordProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` 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 f50ea25836..c27cc621b9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,9 +31,9 @@ import ( // KeywordTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L62-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L68-L74 type KeywordTokenizer struct { - BufferSize int `json:"buffer_size"` + BufferSize *int `json:"buffer_size,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` } @@ -63,10 +63,10 @@ func (s *KeywordTokenizer) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "BufferSize", err) } - s.BufferSize = value + s.BufferSize = &value case float64: f := int(v) - s.BufferSize = f + s.BufferSize = &f } case "type": 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 f728d6b3c4..0ee4cb2ccd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KibanaToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/enroll_kibana/Response.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/knncollectorresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knncollectorresult.go new file mode 100644 index 0000000000..aba895aa57 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knncollectorresult.go @@ -0,0 +1,107 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// KnnCollectorResult type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L222-L228 +type KnnCollectorResult struct { + Children []KnnCollectorResult `json:"children,omitempty"` + Name string `json:"name"` + Reason string `json:"reason"` + Time Duration `json:"time,omitempty"` + TimeInNanos int64 `json:"time_in_nanos"` +} + +func (s *KnnCollectorResult) 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 "children": + if err := dec.Decode(&s.Children); err != nil { + return fmt.Errorf("%s | %w", "Children", 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 "reason": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Reason", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Reason = o + + case "time": + if err := dec.Decode(&s.Time); err != nil { + return fmt.Errorf("%s | %w", "Time", err) + } + + case "time_in_nanos": + if err := dec.Decode(&s.TimeInNanos); err != nil { + return fmt.Errorf("%s | %w", "TimeInNanos", err) + } + + } + } + return nil +} + +// NewKnnCollectorResult returns a KnnCollectorResult. +func NewKnnCollectorResult() *KnnCollectorResult { + r := &KnnCollectorResult{} + + return r +} 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 2f65c7500b..0be942c352 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Knn.ts#L54-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Knn.ts#L54-L72 type KnnQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -43,6 +43,8 @@ type KnnQuery struct { Field string `json:"field"` // Filter Filters for the kNN search query Filter []Query `json:"filter,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"` QueryName_ *string `json:"_name,omitempty"` @@ -107,6 +109,22 @@ func (s *KnnQuery) UnmarshalJSON(data []byte) error { } } + 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 diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnqueryprofilebreakdown.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnqueryprofilebreakdown.go new file mode 100644 index 0000000000..1d8ec27f2f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnqueryprofilebreakdown.go @@ -0,0 +1,383 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// KnnQueryProfileBreakdown type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L199-L220 +type KnnQueryProfileBreakdown struct { + Advance int64 `json:"advance"` + AdvanceCount int64 `json:"advance_count"` + BuildScorer int64 `json:"build_scorer"` + BuildScorerCount int64 `json:"build_scorer_count"` + ComputeMaxScore int64 `json:"compute_max_score"` + ComputeMaxScoreCount int64 `json:"compute_max_score_count"` + CountWeight int64 `json:"count_weight"` + CountWeightCount int64 `json:"count_weight_count"` + CreateWeight int64 `json:"create_weight"` + CreateWeightCount int64 `json:"create_weight_count"` + Match int64 `json:"match"` + MatchCount int64 `json:"match_count"` + NextDoc int64 `json:"next_doc"` + NextDocCount int64 `json:"next_doc_count"` + Score int64 `json:"score"` + ScoreCount int64 `json:"score_count"` + SetMinCompetitiveScore int64 `json:"set_min_competitive_score"` + SetMinCompetitiveScoreCount int64 `json:"set_min_competitive_score_count"` + ShallowAdvance int64 `json:"shallow_advance"` + ShallowAdvanceCount int64 `json:"shallow_advance_count"` +} + +func (s *KnnQueryProfileBreakdown) 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 "advance": + 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", "Advance", err) + } + s.Advance = value + case float64: + f := int64(v) + s.Advance = f + } + + case "advance_count": + 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", "AdvanceCount", err) + } + s.AdvanceCount = value + case float64: + f := int64(v) + s.AdvanceCount = f + } + + case "build_scorer": + 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", "BuildScorer", err) + } + s.BuildScorer = value + case float64: + f := int64(v) + s.BuildScorer = f + } + + case "build_scorer_count": + 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", "BuildScorerCount", err) + } + s.BuildScorerCount = value + case float64: + f := int64(v) + s.BuildScorerCount = f + } + + case "compute_max_score": + 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", "ComputeMaxScore", err) + } + s.ComputeMaxScore = value + case float64: + f := int64(v) + s.ComputeMaxScore = f + } + + case "compute_max_score_count": + 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", "ComputeMaxScoreCount", err) + } + s.ComputeMaxScoreCount = value + case float64: + f := int64(v) + s.ComputeMaxScoreCount = f + } + + case "count_weight": + 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", "CountWeight", err) + } + s.CountWeight = value + case float64: + f := int64(v) + s.CountWeight = f + } + + case "count_weight_count": + 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", "CountWeightCount", err) + } + s.CountWeightCount = value + case float64: + f := int64(v) + s.CountWeightCount = f + } + + case "create_weight": + 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", "CreateWeight", err) + } + s.CreateWeight = value + case float64: + f := int64(v) + s.CreateWeight = f + } + + case "create_weight_count": + 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", "CreateWeightCount", err) + } + s.CreateWeightCount = value + case float64: + f := int64(v) + s.CreateWeightCount = f + } + + case "match": + 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", "Match", err) + } + s.Match = value + case float64: + f := int64(v) + s.Match = f + } + + case "match_count": + 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", "MatchCount", err) + } + s.MatchCount = value + case float64: + f := int64(v) + s.MatchCount = f + } + + case "next_doc": + 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", "NextDoc", err) + } + s.NextDoc = value + case float64: + f := int64(v) + s.NextDoc = f + } + + case "next_doc_count": + 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", "NextDocCount", err) + } + s.NextDocCount = value + case float64: + f := int64(v) + s.NextDocCount = f + } + + case "score": + 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", "Score", err) + } + s.Score = value + case float64: + f := int64(v) + s.Score = f + } + + case "score_count": + 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", "ScoreCount", err) + } + s.ScoreCount = value + case float64: + f := int64(v) + s.ScoreCount = f + } + + case "set_min_competitive_score": + 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", "SetMinCompetitiveScore", err) + } + s.SetMinCompetitiveScore = value + case float64: + f := int64(v) + s.SetMinCompetitiveScore = f + } + + case "set_min_competitive_score_count": + 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", "SetMinCompetitiveScoreCount", err) + } + s.SetMinCompetitiveScoreCount = value + case float64: + f := int64(v) + s.SetMinCompetitiveScoreCount = f + } + + case "shallow_advance": + 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", "ShallowAdvance", err) + } + s.ShallowAdvance = value + case float64: + f := int64(v) + s.ShallowAdvance = f + } + + case "shallow_advance_count": + 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", "ShallowAdvanceCount", err) + } + s.ShallowAdvanceCount = value + case float64: + f := int64(v) + s.ShallowAdvanceCount = f + } + + } + } + return nil +} + +// NewKnnQueryProfileBreakdown returns a KnnQueryProfileBreakdown. +func NewKnnQueryProfileBreakdown() *KnnQueryProfileBreakdown { + r := &KnnQueryProfileBreakdown{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnqueryprofileresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnqueryprofileresult.go new file mode 100644 index 0000000000..dbe46b29a1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnqueryprofileresult.go @@ -0,0 +1,124 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// KnnQueryProfileResult type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L188-L196 +type KnnQueryProfileResult struct { + Breakdown KnnQueryProfileBreakdown `json:"breakdown"` + Children []KnnQueryProfileResult `json:"children,omitempty"` + Debug map[string]json.RawMessage `json:"debug,omitempty"` + Description string `json:"description"` + Time Duration `json:"time,omitempty"` + TimeInNanos int64 `json:"time_in_nanos"` + Type string `json:"type"` +} + +func (s *KnnQueryProfileResult) 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 "breakdown": + if err := dec.Decode(&s.Breakdown); err != nil { + return fmt.Errorf("%s | %w", "Breakdown", err) + } + + case "children": + if err := dec.Decode(&s.Children); err != nil { + return fmt.Errorf("%s | %w", "Children", err) + } + + case "debug": + if s.Debug == nil { + s.Debug = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.Debug); err != nil { + return fmt.Errorf("%s | %w", "Debug", err) + } + + case "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = o + + case "time": + if err := dec.Decode(&s.Time); err != nil { + return fmt.Errorf("%s | %w", "Time", err) + } + + case "time_in_nanos": + if err := dec.Decode(&s.TimeInNanos); err != nil { + return fmt.Errorf("%s | %w", "TimeInNanos", err) + } + + case "type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Type = o + + } + } + return nil +} + +// NewKnnQueryProfileResult returns a KnnQueryProfileResult. +func NewKnnQueryProfileResult() *KnnQueryProfileResult { + r := &KnnQueryProfileResult{ + Debug: make(map[string]json.RawMessage, 0), + } + + return r +} 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 index 9697e481c2..b1dc2be562 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnretriever.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnretriever.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KnnRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retriever.ts#L58-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Retriever.ts#L60-L73 type KnnRetriever struct { // Field The name of the vector field to search against. Field string `json:"field"` @@ -39,6 +39,9 @@ type KnnRetriever struct { Filter []Query `json:"filter,omitempty"` // K Number of nearest neighbors to return as top hits. K int `json:"k"` + // MinScore Minimum _score for matching documents. Documents with a lower _score are not + // included in the top documents. + MinScore *float32 `json:"min_score,omitempty"` // 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 @@ -110,6 +113,22 @@ func (s *KnnRetriever) UnmarshalJSON(data []byte) error { s.K = f } + 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 "num_candidates": var tmp any 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 index 5296a37ba6..67c4d385d1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnsearch.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnsearch.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KnnSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Knn.ts#L30-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Knn.ts#L30-L52 type KnnSearch struct { // Boost Boost value to apply to kNN scores Boost *float32 `json:"boost,omitempty"` 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 f8636139d4..9ba9c0fb83 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // KStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L241-L243 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L240-L242 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 a640a9d10f..312010b965 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // KuromojiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/kuromoji-plugin.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5fbc5e1b5e..7dff472c03 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KuromojiIterationMarkCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/kuromoji-plugin.ts#L31-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/kuromoji-plugin.ts#L31-L35 type KuromojiIterationMarkCharFilter struct { NormalizeKana bool `json:"normalize_kana"` NormalizeKanji bool `json:"normalize_kanji"` 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 8fb3f7451c..91333b0fae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // KuromojiPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/kuromoji-plugin.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8f464e0bdf..b9f903df82 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KuromojiReadingFormTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/kuromoji-plugin.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/kuromoji-plugin.ts#L42-L45 type KuromojiReadingFormTokenFilter struct { Type string `json:"type,omitempty"` UseRomaji bool `json:"use_romaji"` 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 db38cf013d..7d49fb9254 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // KuromojiStemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/kuromoji-plugin.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/kuromoji-plugin.ts#L47-L50 type KuromojiStemmerTokenFilter struct { MinimumLength int `json:"minimum_length"` Type string `json:"type,omitempty"` 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 08a3921c5e..72ab89f973 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // KuromojiTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/kuromoji-plugin.ts#L58-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/kuromoji-plugin.ts#L58-L67 type KuromojiTokenizer struct { DiscardCompoundToken *bool `json:"discard_compound_token,omitempty"` DiscardPunctuation *bool `json:"discard_punctuation,omitempty"` 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 4723799272..ebf4ed9336 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // LanguageAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L52-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d60652d7e7..328cf59f8d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // LanguageContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get_script_languages/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4e9429b9a6..0f4c5e22a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LaplaceSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L430-L435 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L430-L435 type LaplaceSmoothingModel struct { // Alpha A constant that is added to all counts to balance weights. Alpha Float64 `json:"alpha"` 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 b263339bef..d329362539 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Latest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L47-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9d03864f45..7f8b6d530a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LatLonGeoLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L120-L129 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Geo.ts#L120-L129 type LatLonGeoLocation struct { // Lat Latitude Lat Float64 `json:"lat"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latviananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latviananalyzer.go new file mode 100644 index 0000000000..e42d3456f8 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latviananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// LatvianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L223-L228 +type LatvianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *LatvianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s LatvianAnalyzer) MarshalJSON() ([]byte, error) { + type innerLatvianAnalyzer LatvianAnalyzer + tmp := innerLatvianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "latvian" + + return json.Marshal(tmp) +} + +// NewLatvianAnalyzer returns a LatvianAnalyzer. +func NewLatvianAnalyzer() *LatvianAnalyzer { + r := &LatvianAnalyzer{} + + return r +} 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 index 3c19b2cd36..f8002e6371 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/learningtorank.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/learningtorank.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LearningToRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/rescoring.ts#L88-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 415ff48b07..0585f97bf3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LengthTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L245-L249 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L244-L248 type LengthTokenFilter struct { Max *int `json:"max,omitempty"` Min *int `json:"min,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lessthanvalidation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lessthanvalidation.go index a6536ce3af..caa6a735e1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lessthanvalidation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lessthanvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LessThanValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L58-L61 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L58-L61 type LessThanValidation struct { Constraint Float64 `json:"constraint"` Type string `json:"type,omitempty"` 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 6a94942cff..e81a96950e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // LetterTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L67-L69 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L76-L78 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 274863a368..1aee07915c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // License type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/_types/License.ts#L42-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/license/_types/License.ts#L42-L53 type License struct { ExpiryDateInMillis int64 `json:"expiry_date_in_millis"` IssueDateInMillis int64 `json:"issue_date_in_millis"` 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 f35039ab2d..87a2c41587 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // LicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/get/types.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 24a1452c0b..bfa350d507 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Lifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/get_lifecycle/types.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 57400eb6c3..40637f0ed2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // LifecycleExplainManaged // LifecycleExplainUnmanaged // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/explain_lifecycle/types.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2dcbcd6745..9bd85a7325 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LifecycleExplainManaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/explain_lifecycle/types.ts#L26-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/explain_lifecycle/types.ts#L26-L52 type LifecycleExplainManaged struct { Action *string `json:"action,omitempty"` ActionTime DateTime `json:"action_time,omitempty"` 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 0d865636e7..936f5d53ee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainPhaseExecution type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/explain_lifecycle/types.ts#L64-L68 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 26dbcebc64..efe6ba1ca5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainUnmanaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/explain_lifecycle/types.ts#L54-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 75a96102be..47e8582c00 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // LikeDocument // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L195-L200 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L198-L203 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 2b1a338ac6..e74ed55cc8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // LikeDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L171-L193 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L174-L196 type LikeDocument struct { // Doc A document not present in the index. Doc json.RawMessage `json:"doc,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 9fa3eadb8b..e441243b8f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Limits type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/info/types.ts#L34-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9ac5d1c87e..dd446665a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LimitTokenCountTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L251-L255 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L250-L254 type LimitTokenCountTokenFilter struct { ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"` MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` 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 482604d6b4..c153330b47 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LinearInterpolationSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L437-L441 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L437-L441 type LinearInterpolationSmoothingModel struct { BigramLambda Float64 `json:"bigram_lambda"` TrigramLambda Float64 `json:"trigram_lambda"` 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 fdb3904bf4..6a340118f8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // LinearMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L242-L245 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L268-L271 type LinearMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/listtypevalidation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/listtypevalidation.go index c1e514350e..2441408df1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/listtypevalidation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/listtypevalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ListTypeValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L68-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L68-L71 type ListTypeValidation struct { Constraint string `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lithuaniananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lithuaniananalyzer.go new file mode 100644 index 0000000000..efad30a94f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lithuaniananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// LithuanianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L230-L235 +type LithuanianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *LithuanianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s LithuanianAnalyzer) MarshalJSON() ([]byte, error) { + type innerLithuanianAnalyzer LithuanianAnalyzer + tmp := innerLithuanianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "lithuanian" + + return json.Marshal(tmp) +} + +// NewLithuanianAnalyzer returns a LithuanianAnalyzer. +func NewLithuanianAnalyzer() *LithuanianAnalyzer { + r := &LithuanianAnalyzer{} + + return r +} 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 60b27e9378..4629b8bc75 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LoggingAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L281-L285 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fa5509eba8..42b41ba87d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LoggingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L287-L289 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2dcdaa3554..aba087b3bd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LogstashPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/logstash/_types/Pipeline.ts#L60-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e62f33b3b0..1634750a0b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // LongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L162-L165 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L162-L165 type LongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,6 @@ type LongNumberProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -858,18 +857,6 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -931,7 +918,6 @@ func (s LongNumberProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, 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 7d64c6b840..ec124ad8d8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // LongRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/range.ts#L50-L52 type LongRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -46,7 +46,6 @@ type LongRangeProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -807,18 +806,6 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -857,7 +844,6 @@ func (s LongRangeProperty) MarshalJSON() ([]byte, error) { Index: s.Index, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 c61722eb0a..896144db03 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // LongRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L433-L438 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L471-L476 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 7814799a6d..7dcf318a92 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // LongRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L440-L443 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L478-L481 type LongRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -514,6 +514,13 @@ func (s *LongRareTermsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 4f8baba223..a629731630 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L401-L406 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L439-L444 type LongTermsAggregate struct { Buckets BucketsLongTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 31575c7e59..9c5a4a1d0f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // LongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L408-L411 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L446-L449 type LongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -530,6 +530,13 @@ func (s *LongTermsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 caf3f447bf..17b3d3b13c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // LowercaseNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/normalizers.ts#L26-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7d7d14d1bf..0ba1cee016 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LowercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L910-L926 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1172-L1188 type LowercaseProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 d378da5591..60e532b466 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // LowercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L257-L260 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L256-L259 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 d7be1fb0cd..bab8a23d32 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // LowercaseTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L71-L73 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L80-L82 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 6f517ab65e..dbf4aaaca6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MachineLearning type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L372-L379 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L370-L377 type MachineLearning struct { Available bool `json:"available"` DataFrameAnalyticsJobs MlDataFrameAnalyticsJobs `json:"data_frame_analytics_jobs"` 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 a39d711db2..3240ca4713 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ManageUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L348-L350 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L376-L378 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 e9d12d0c2e..832a59ad12 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // MapboxVectorTiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Binary.ts#L21-L21 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b39e7f11a5..b9d9b84521 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L48-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/char_filters.ts#L51-L55 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 822a68ec47..c79e49aa5f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L411-L424 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L411-L424 type MappingLimitSettings struct { Coerce *bool `json:"coerce,omitempty"` Depth *MappingLimitSettingsDepth `json:"depth,omitempty"` 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 e60c3b21be..a30c7d4e3d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDepth type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L445-L452 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L445-L452 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 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 28b9192a97..796bf0f17b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDimensionFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L482-L488 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L482-L488 type MappingLimitSettingsDimensionFields struct { // Limit [preview] This functionality is in technical preview and may be changed or // removed in a future release. 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 60665b2087..da435fab5c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsFieldNameLength type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L473-L480 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L473-L480 type MappingLimitSettingsFieldNameLength struct { // Limit Setting for the maximum length of a field name. This setting isn’t really // something that addresses mappings explosion but 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 10598c765a..b2d07494ef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L454-L462 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L454-L462 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 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 a5638e8e54..658bfef125 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedObjects type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L464-L471 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L464-L471 type MappingLimitSettingsNestedObjects struct { // Limit The maximum number of nested JSON objects that a single document can contain // across all nested types. This limit helps 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 4d6f9e0383..b22e0ed70d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsTotalFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L426-L443 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L426-L443 type MappingLimitSettingsTotalFields struct { // IgnoreDynamicBeyondLimit This setting determines what happens when a dynamically mapped field would // exceed the total fields limit. When set 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 1c2a125aa0..ff50eb6feb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MappingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L186-L190 type MappingStats struct { TotalCount int64 `json:"total_count"` TotalEstimatedOverhead ByteSize `json:"total_estimated_overhead,omitempty"` 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 a65e4e1105..cd5ebf5150 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MasterIsStableIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L79-L83 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L80-L84 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 9c037a0a6e..bd80b7a62f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorClusterFormationNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L98-L102 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L99-L103 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 abe5ddf0b7..90d50f7dcd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // MasterIsStableIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L84-L89 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L85-L90 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 42f040c54b..a9ca0c914f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorExceptionFetchingHistory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L95-L98 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 f0a1d7289d..2cf612b719 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MasterRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/master/types.ts#L20-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e79e1a2059..76c7f8a3ef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MatchAllQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/MatchAllQuery.ts#L22-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/MatchAllQuery.ts#L22-L25 type MatchAllQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 781ea3ee24..82bdf0d219 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MatchBoolPrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L349-L403 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L355-L412 type MatchBoolPrefixQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` 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 ef068649b2..a29374a515 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MatchedField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/test_grok_pattern/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/text_structure/test_grok_pattern/types.ts#L23-L27 type MatchedField struct { Length int `json:"length"` Match string `json:"match"` 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 37344a4a8d..d2b9e472bb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MatchedText type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/test_grok_pattern/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/text_structure/test_grok_pattern/types.ts#L29-L32 type MatchedText struct { Fields map[string][]MatchedField `json:"fields,omitempty"` Matched bool `json:"matched"` 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 5764cc082f..6d39b01a77 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MatchNoneQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L22 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L25 type MatchNoneQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 4c1c730f19..6cd0e71053 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MatchOnlyTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L230-L255 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L231-L256 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. 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 55519b4dbb..8e42863148 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MatchPhrasePrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L428-L454 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L440-L469 type MatchPhrasePrefixQuery struct { // Analyzer Analyzer used to convert text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` 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 72df23d09a..b84c014fed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MatchPhraseQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L405-L426 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L414-L438 type MatchPhraseQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` 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 470dbcf44e..aeb48058f5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // MatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L282-L347 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L285-L353 type MatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` 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 f33e1b1657..2debcb7915 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MatrixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/matrix.ts#L26-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/matrix.ts#L26-L36 type MatrixAggregation struct { // Fields An array of fields for computing the statistics. Fields []string `json:"fields,omitempty"` 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 b649b5f29f..887dde641e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L764-L768 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L866-L873 type MatrixStatsAggregate struct { DocCount int64 `json:"doc_count"` Fields []MatrixStatsFields `json:"fields,omitempty"` 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 9c3e6b8cfe..08e58d610c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // MatrixStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/matrix.ts#L38-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/matrix.ts#L38-L44 type MatrixStatsAggregation struct { // Fields An array of fields for computing the statistics. Fields []string `json:"fields,omitempty"` 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 7461925b02..eed9fda894 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L770-L779 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L875-L884 type MatrixStatsFields struct { Correlation map[string]Float64 `json:"correlation"` Count int64 `json:"count"` 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 b0bcfb7d46..0d3b9202b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MaxAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L200-L201 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L205-L209 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 e561a3e53c..d51199c798 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MaxAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L162-L162 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L165-L165 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 41d95a47cf..1423dd932b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MaxBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L224-L224 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L244-L247 type MaxBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxmind.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxmind.go new file mode 100644 index 0000000000..7f57992c02 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxmind.go @@ -0,0 +1,68 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// Maxmind type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Database.ts#L31-L33 +type Maxmind struct { + AccountId string `json:"account_id"` +} + +func (s *Maxmind) 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 "account_id": + if err := dec.Decode(&s.AccountId); err != nil { + return fmt.Errorf("%s | %w", "AccountId", err) + } + + } + } + return nil +} + +// NewMaxmind returns a Maxmind. +func NewMaxmind() *Maxmind { + r := &Maxmind{} + + return r +} 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 ee030aed14..29a9d2ac12 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L194-L195 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L196-L197 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 e6113b17cc..2dea3d6c7c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L164-L170 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L167-L176 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 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 4de69bb109..d1d43276a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MemMlStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_memory_stats/types.ts#L90-L111 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 0a2e423a0e..23e0b0d9ed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Memory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_memory_stats/types.ts#L25-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ab8f7f85c0..6342436a3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L596-L620 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L632-L656 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 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 e682cad25d..6daf836e24 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MemStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_memory_stats/types.ts#L65-L88 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 ace3dffe9f..c6cb3bd7c2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Merge type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L332-L334 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L332-L334 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 3e0b284e56..fc263c2eb9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MergeScheduler type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L336-L339 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L336-L339 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 8539f30713..b552375935 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MergesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L161-L178 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L161-L178 type MergesStats struct { Current int64 `json:"current"` CurrentDocs int64 `json:"current_docs"` 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 855761446a..e3ddb7e0e4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ import ( // Metadata type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L99-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L100-L100 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 e8212e1481..d6e9fd91a4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Metrics type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L76-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 97c3cec3d4..485b6d899c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // MgetOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mget/types.ts#L32-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dd984a4e25..7bbfc7fb7f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // GetResult // MultiGetError // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mget/types.ts#L57-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/mget/types.ts#L57-L60 type MgetResponseItem any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrateaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrateaction.go index ad636d863c..d9ea0ed5c3 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrateaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrateaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MigrateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L144-L146 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L144-L146 type MigrateAction struct { Enabled *bool `json:"enabled,omitempty"` } 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 b79068b780..43d0d86561 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MigrationFeatureIndexInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c33b927221..8cd327d65c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MinAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L197-L198 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L199-L203 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 c0f5246ce9..34de3b8786 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MinAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L172-L172 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L178-L178 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 92ed011338..6945f9475c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MinBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L226-L226 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L249-L252 type MinBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 a21b42e7e5..22b16dee56 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // MinimalLicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/info/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d82dc35ab7..a4b61e4873 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L163-L167 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L164-L168 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 0d243b8d73..098d8b974f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -27,5 +27,5 @@ package types // Float64 // bool // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/AggregationContainer.ts#L516-L516 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/AggregationContainer.ts#L535-L535 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 4f2ee92cc9..fc44bf7a08 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // MissingAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L487-L488 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L528-L532 type MissingAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *MissingAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 4e39346550..fc2b984c33 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MissingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L576-L582 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L593-L599 type MissingAggregation struct { // Field The name of the field. Field *string `json:"field,omitempty"` 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 1edb10e5cc..f4e75ded92 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MlCounter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L255-L257 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L253-L255 type MlCounter struct { Count int64 `json:"count"` } 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 2ee4d549ad..961bf58a57 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MLDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L36-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L36-L60 type MLDatafeed struct { Aggregations map[string]Aggregations `json:"aggregations,omitempty"` // Authorization The security privileges that the datafeed uses to run its queries. If Elastic 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 cd828ee172..7aa499344a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // MlDataFrameAnalyticsJobs type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L177-L182 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L175-L180 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 3108792d31..1f3b406c0a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L184-L188 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L182-L186 type MlDataFrameAnalyticsJobsAnalysis struct { Classification *int `json:"classification,omitempty"` OutlierDetection *int `json:"outlier_detection,omitempty"` 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 09b7ddde51..6419558678 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L194-L196 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L192-L194 type MlDataFrameAnalyticsJobsCount struct { Count int64 `json:"count"` } 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 ff4b580288..465f49fdda 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // MlDataFrameAnalyticsJobsMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L190-L192 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L188-L190 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 e887717a90..5d76089e28 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MLFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Filter.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 81113ff154..a85a2e2638 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // MlInference type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L198-L206 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L196-L204 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 df9f334bcb..cb0db1295e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeployments type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L227-L232 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L225-L230 type MlInferenceDeployments struct { Count int `json:"count"` InferenceCounts JobStatistics `json:"inference_counts"` 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 53aebde141..39129be5cc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeploymentsTimeMs type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L234-L236 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L232-L234 type MlInferenceDeploymentsTimeMs struct { Avg Float64 `json:"avg"` } 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 a84310eebf..43645ac0b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // MlInferenceIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L208-L213 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L206-L211 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 661275ec37..5b1a605d7c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MlInferenceIngestProcessorCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L238-L242 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L236-L240 type MlInferenceIngestProcessorCount struct { Max int64 `json:"max"` Min int64 `json:"min"` 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 fe8408dc53..3e02a4a88b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // MlInferenceTrainedModels type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L215-L225 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L213-L223 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 0ec81b8a89..5c372a0a20 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MlInferenceTrainedModelsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L244-L253 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L242-L251 type MlInferenceTrainedModelsCount struct { Classification *int64 `json:"classification,omitempty"` Ner *int64 `json:"ner,omitempty"` 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 db046eabb7..519755abf0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MlJobForecasts type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L172-L175 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L170-L173 type MlJobForecasts struct { ForecastedJobs int64 `json:"forecasted_jobs"` Total int64 `json:"total"` 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 d8c9cca1cc..a175978541 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ModelPlotConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/ModelPlot.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 1b02f226aa..9f44bc9c9b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // ModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Model.ts#L59-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Model.ts#L59-L81 type ModelSizeStats struct { AssignmentMemoryBasis *string `json:"assignment_memory_basis,omitempty"` BucketAllocationFailuresCount int64 `json:"bucket_allocation_failures_count"` 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 3b05ff0b52..74af55eafd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ModelSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Model.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Model.ts#L25-L46 type ModelSnapshot struct { // Description An optional description of the job. Description *string `json:"description,omitempty"` 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 c6efc00b1f..deb9d8b5ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ModelSnapshotUpgrade type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Model.ts#L48-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 81ebf4c49f..cc374bdfff 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Monitoring type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L381-L384 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L379-L382 type Monitoring struct { Available bool `json:"available"` CollectionEnabled bool `json:"collection_enabled"` 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 d8e9462a82..ae9d4b3df4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MoreLikeThisQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L87-L169 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L87-L172 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. 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 01b70c8904..64077ef058 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MountedSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/mount/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dc2a240577..58346598be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -28,5 +28,5 @@ package types // HoltMovingAverageAggregation // HoltWintersMovingAverageAggregation // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L228-L234 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L254-L260 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 55e89236a3..baf73a191a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MovingFunctionAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L288-L303 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L314-L332 type MovingFunctionAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 e8025e1587..a38e554aae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MovingPercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L305-L317 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L334-L349 type MovingPercentilesAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 df3f0124da..21cba9a38a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // MultisearchHeader // MultisearchBody // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 97a6faa637..469adaff47 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // MultiSearchItem // ErrorResponseBase // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L208-L211 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/msearch/types.ts#L211-L214 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 bcd28c5796..e02e3ba128 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // MTermVectorsOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mtermvectors/types.ts#L35-L94 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 aa03c5c828..2a1aa452be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseAdjacencyMatrixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 b52e605e44..c8a65ad4a7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseCompositeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 bf31a78946..c7daf77deb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseDateHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 8113077f05..8cf73ef78e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseDoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 ec0679f6e1..847b6979f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseFiltersBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 aad254eb99..d9ad4ca7ab 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseFrequentItemSetsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 c3be70158e..90543bf2d8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseGeoHashGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 2dbf83c241..80b11a0afe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseGeoHexGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 644c6c39a8..5b8c2ae31e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseGeoTileGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 c744a2139c..eb5a79311c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 04db6d1bdd..70d5a14c80 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseIpPrefixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 ae1acaa26d..844278eeb1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseIpRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 50a7e81331..f7c0798fad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseLongRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 d30146abfb..4727cb9800 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 6202588105..8560ca6929 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseMultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 73d0f4bd82..4133ad62c4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 1f0599c499..00e613092f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseSignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 a38b01bd21..732f6675e5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseSignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 0fa7205fd8..5739d466ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseStringRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 08fa790338..8627861f20 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 type MultiBucketAggregateBaseStringTermsBucket struct { Buckets BucketsStringTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasetimeseriesbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasetimeseriesbucket.go new file mode 100644 index 0000000000..45d0294c60 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasetimeseriesbucket.go @@ -0,0 +1,90 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// MultiBucketAggregateBaseTimeSeriesBucket type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 +type MultiBucketAggregateBaseTimeSeriesBucket struct { + Buckets BucketsTimeSeriesBucket `json:"buckets"` + Meta Metadata `json:"meta,omitempty"` +} + +func (s *MultiBucketAggregateBaseTimeSeriesBucket) 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 "buckets": + + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + source := bytes.NewReader(rawMsg) + localDec := json.NewDecoder(source) + switch rawMsg[0] { + case '{': + o := make(map[string]TimeSeriesBucket, 0) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Buckets", err) + } + s.Buckets = o + case '[': + o := []TimeSeriesBucket{} + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Buckets", err) + } + s.Buckets = o + } + + case "meta": + if err := dec.Decode(&s.Meta); err != nil { + return fmt.Errorf("%s | %w", "Meta", err) + } + + } + } + return nil +} + +// NewMultiBucketAggregateBaseTimeSeriesBucket returns a MultiBucketAggregateBaseTimeSeriesBucket. +func NewMultiBucketAggregateBaseTimeSeriesBucket() *MultiBucketAggregateBaseTimeSeriesBucket { + r := &MultiBucketAggregateBaseTimeSeriesBucket{} + + return r +} 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 696f571a6c..8e0c7cc389 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseVariableWidthHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 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 3bc5f45ed9..2e03e7f723 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseVoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L357-L359 type MultiBucketAggregateBaseVoid struct { Buckets BucketsVoid `json:"buckets"` Meta Metadata `json:"meta,omitempty"` 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 f00fa9b688..11b9ad29fa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiGetError type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mget/types.ts#L62-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c3d1b32ec3..cc8dbe6d50 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // MultiMatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L456-L539 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L471-L557 type MultiMatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` 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 baf042af8e..3d87f5708f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiplexerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L262-L266 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L261-L265 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 39bc037d1f..5b0ab34959 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MultisearchBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L70-L201 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/msearch/types.ts#L70-L204 type MultisearchBody struct { Aggregations map[string]Aggregations `json:"aggregations,omitempty"` Collapse *FieldCollapse `json:"collapse,omitempty"` 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 30fa43388b..ca5a89efa3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // MultisearchHeader type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L52-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 ed2f69ab4a..ff735740a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // MultiSearchItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L213-L216 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/msearch/types.ts#L216-L219 type MultiSearchItem struct { Aggregations map[string]Aggregate `json:"aggregations,omitempty"` Clusters_ *ClusterStatistics `json:"_clusters,omitempty"` @@ -494,6 +494,13 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 3ae7e4fa21..980161c1ca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MultiSearchResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L203-L206 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/msearch/types.ts#L206-L209 type MultiSearchResult struct { Responses []MsearchResponseItem `json:"responses"` Took int64 `json:"took"` 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 f7820a92a8..7fea23e7ba 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // MultiTermLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L626-L636 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L643-L653 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 4b3520e1aa..30299ca8fb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MultiTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L463-L465 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L501-L506 type MultiTermsAggregate struct { Buckets BucketsMultiTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 7f40475644..cdc500e2dc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // MultiTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L584-L624 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L601-L641 type MultiTermsAggregation struct { // CollectMode Specifies the strategy for data collection. CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"` 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 b09ed8bba1..e9a533826c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // MultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L467-L471 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L508-L512 type MultiTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -520,6 +520,13 @@ func (s *MultiTermsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 da874f51bd..d7812b4dd5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // Murmur3HashProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L81-L83 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/specialized.ts#L81-L83 type Murmur3HashProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -43,7 +43,6 @@ type Murmur3HashProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -760,18 +759,6 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -807,7 +794,6 @@ func (s Murmur3HashProperty) MarshalJSON() ([]byte, error) { IgnoreAbove: s.IgnoreAbove, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 e1abb33fcc..5aaab35c3a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // MutualInformationHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L755-L764 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L800-L809 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. 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 01f134efc4..1092b2b151 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Names type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L81-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0a82a0d0c7..d80293f2f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NativeCode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 29013925fb..24a2c0db7c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NativeCodeInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3946b2bb22..b140419bd1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NerInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L255-L264 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 169189e7d3..c7d31c0ae7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NerInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L404-L409 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 22665759cd..5e441748f2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // NestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L490-L491 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L534-L538 type NestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *NestedAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 561fc14e91..4cabf26ed2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // NestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L638-L643 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L655-L660 type NestedAggregation struct { // Path The path to the field of type `nested`. Path *string `json:"path,omitempty"` 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 3e847990c0..07ba813d61 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NestedIdentity type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L89-L93 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/hits.ts#L90-L94 type NestedIdentity struct { Field string `json:"field"` Nested_ *NestedIdentity `json:"_nested,omitempty"` 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 cc1943a666..b25b4e95f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NestedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/complex.ts#L39-L44 type NestedProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -45,7 +45,6 @@ type NestedProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -790,18 +789,6 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -839,7 +826,6 @@ func (s NestedProperty) MarshalJSON() ([]byte, error) { IncludeInRoot: s.IncludeInRoot, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 428a5c4a05..d1b489f610 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NestedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L106-L130 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/joining.ts#L112-L139 type NestedQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 f88d89814a..bd91cd3e0b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NestedSortValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L29-L34 type NestedSortValue struct { Filter *Query `json:"filter,omitempty"` MaxChildren *int `json:"max_children,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/networkdirectionprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/networkdirectionprocessor.go new file mode 100644 index 0000000000..353d829f2f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/networkdirectionprocessor.go @@ -0,0 +1,186 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// NetworkDirectionProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1190-L1224 +type NetworkDirectionProcessor struct { + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // DestinationIp Field containing the destination IP address. + DestinationIp *string `json:"destination_ip,omitempty"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // IgnoreMissing If true and any required fields are missing, the processor quietly exits + // without modifying the document. + IgnoreMissing *bool `json:"ignore_missing,omitempty"` + // InternalNetworks List of internal networks. Supports IPv4 and IPv6 addresses and ranges in + // CIDR notation. Also supports the named ranges listed below. These may be + // constructed with template snippets. Must specify only one of + // internal_networks or internal_networks_field. + InternalNetworks []string `json:"internal_networks,omitempty"` + // InternalNetworksField A field on the given document to read the internal_networks configuration + // from. + InternalNetworksField *string `json:"internal_networks_field,omitempty"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // SourceIp Field containing the source IP address. + SourceIp *string `json:"source_ip,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` + // TargetField Output field for the network direction. + TargetField *string `json:"target_field,omitempty"` +} + +func (s *NetworkDirectionProcessor) 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 "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + case "destination_ip": + if err := dec.Decode(&s.DestinationIp); err != nil { + return fmt.Errorf("%s | %w", "DestinationIp", err) + } + + case "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "ignore_missing": + 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", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + + case "internal_networks": + if err := dec.Decode(&s.InternalNetworks); err != nil { + return fmt.Errorf("%s | %w", "InternalNetworks", err) + } + + case "internal_networks_field": + if err := dec.Decode(&s.InternalNetworksField); err != nil { + return fmt.Errorf("%s | %w", "InternalNetworksField", err) + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "source_ip": + if err := dec.Decode(&s.SourceIp); err != nil { + return fmt.Errorf("%s | %w", "SourceIp", err) + } + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + case "target_field": + if err := dec.Decode(&s.TargetField); err != nil { + return fmt.Errorf("%s | %w", "TargetField", err) + } + + } + } + return nil +} + +// NewNetworkDirectionProcessor returns a NetworkDirectionProcessor. +func NewNetworkDirectionProcessor() *NetworkDirectionProcessor { + r := &NetworkDirectionProcessor{} + + return r +} 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 b1e16a8a48..b877d0b4dc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NeverCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L72-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Conditions.ts#L72-L72 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 9c8d29019a..45e0dd12ea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L268-L273 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L267-L272 type NGramTokenFilter struct { MaxGram *int `json:"max_gram,omitempty"` MinGram *int `json:"min_gram,omitempty"` 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 b5c11be301..563d3cd74d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,12 +33,12 @@ import ( // NGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L84-L93 type NGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` - MaxGram int `json:"max_gram"` - MinGram int `json:"min_gram"` - TokenChars []tokenchar.TokenChar `json:"token_chars"` + MaxGram *int `json:"max_gram,omitempty"` + MinGram *int `json:"min_gram,omitempty"` + TokenChars []tokenchar.TokenChar `json:"token_chars,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` } @@ -80,10 +80,10 @@ func (s *NGramTokenizer) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "MaxGram", err) } - s.MaxGram = value + s.MaxGram = &value case float64: f := int(v) - s.MaxGram = f + s.MaxGram = &f } case "min_gram": @@ -96,10 +96,10 @@ func (s *NGramTokenizer) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "MinGram", err) } - s.MinGram = value + s.MinGram = &value case float64: f := int(v) - s.MinGram = f + s.MinGram = &f } case "token_chars": 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 ee1f030a97..ad986f1531 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NlpBertTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L131-L158 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 a3a219c08d..0b8eb847fb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NlpRobertaTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L160-L187 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 14bf65a44f..a05dc5f8d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NlpTokenizationUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L356-L361 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L356-L361 type NlpTokenizationUpdateOptions struct { // Span Span options to apply Span *int `json:"span,omitempty"` 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 10f0f731fe..08ab459d11 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Node type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c63d4d72b9..f73af6e7b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,17 +29,19 @@ import ( "strconv" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/decision" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" ) // NodeAllocationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L97-L106 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L103-L117 type NodeAllocationExplanation struct { Deciders []AllocationDecision `json:"deciders"` NodeAttributes map[string]string `json:"node_attributes"` NodeDecision decision.Decision `json:"node_decision"` NodeId string `json:"node_id"` NodeName string `json:"node_name"` + Roles []noderole.NodeRole `json:"roles"` Store *AllocationStore `json:"store,omitempty"` TransportAddress string `json:"transport_address"` WeightRanking int `json:"weight_ranking"` @@ -88,6 +90,11 @@ func (s *NodeAllocationExplanation) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "NodeName", err) } + case "roles": + if err := dec.Decode(&s.Roles); err != nil { + return fmt.Errorf("%s | %w", "Roles", err) + } + case "store": if err := dec.Decode(&s.Store); err != nil { return fmt.Errorf("%s | %w", "Store", err) 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 a984e7fa4f..eb937adf15 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,25 +26,20 @@ import ( "errors" "fmt" "io" - "strconv" - - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" ) // NodeAttributes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L41-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Node.ts#L41-L52 type NodeAttributes struct { // Attributes Lists node attributes. Attributes map[string]string `json:"attributes"` // EphemeralId The ephemeral ID of the node. - EphemeralId string `json:"ephemeral_id"` - ExternalId *string `json:"external_id,omitempty"` + EphemeralId string `json:"ephemeral_id"` // Id The unique identifier of the node. Id *string `json:"id,omitempty"` // Name The unique identifier of the node. - Name string `json:"name"` - Roles []noderole.NodeRole `json:"roles,omitempty"` + Name string `json:"name"` // TransportAddress The host and port where transport HTTP connections are accepted. TransportAddress string `json:"transport_address"` } @@ -77,18 +72,6 @@ func (s *NodeAttributes) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "EphemeralId", err) } - case "external_id": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "ExternalId", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.ExternalId = &o - case "id": if err := dec.Decode(&s.Id); err != nil { return fmt.Errorf("%s | %w", "Id", err) @@ -99,11 +82,6 @@ func (s *NodeAttributes) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Name", err) } - case "roles": - if err := dec.Decode(&s.Roles); err != nil { - return fmt.Errorf("%s | %w", "Roles", err) - } - case "transport_address": if err := dec.Decode(&s.TransportAddress); err != nil { return fmt.Errorf("%s | %w", "TransportAddress", err) 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 3525fdbc8a..20ac6c5175 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeAttributesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/nodeattrs/types.ts#L20-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2dfb5fd08f..a4383c9403 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeBufferPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L788-L809 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L859-L880 type NodeBufferPool struct { // Count Number of buffer pools. Count *int64 `json:"count,omitempty"` 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 f249658894..5b4d11a7b4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // NodeDiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L56-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L57-L61 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 5175ff817c..5c78d02592 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L64-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 663a3253b9..25eafb3356 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L31-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L31-L67 type NodeInfo struct { Aggregations map[string]NodeInfoAggregation `json:"aggregations,omitempty"` Attributes map[string]string `json:"attributes"` 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 8111d1ac83..d16be4c0fd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L184-L186 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L184-L186 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 d6babc18f4..dd02c919f6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L235-L237 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L235-L237 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 3d693ca052..24efda9a38 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoBootstrap type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L204-L206 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L204-L206 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 f055804def..809b61e958 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoClient type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L188-L190 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L188-L190 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 3e243dc7ff..f6a3e2076d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoDiscover type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L173-L182 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L173-L182 type NodeInfoDiscover struct { NodeInfoDiscover map[string]json.RawMessage `json:"-"` SeedHosts []string `json:"seed_hosts,omitempty"` 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 75094cd3fe..444ed01a25 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L306-L311 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L311-L316 type NodeInfoHttp struct { BoundAddress []string `json:"bound_address"` MaxContentLength ByteSize `json:"max_content_length,omitempty"` 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 19b3499caf..d64de51e0d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L227-L229 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L227-L229 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 af51c3ec36..f39a555c01 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestDownloader type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L128-L130 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 88622ac448..732b86660f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoIngestInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L124-L126 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 44a0d8aca8..00120228a2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L231-L233 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L231-L233 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 3e60f06fda..312df96eb2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L313-L324 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L318-L329 type NodeInfoJvmMemory struct { DirectMax ByteSize `json:"direct_max,omitempty"` DirectMaxInBytes int64 `json:"direct_max_in_bytes"` 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 db53e78ac4..9601239608 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L326-L329 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L331-L334 type NodeInfoMemory struct { Total string `json:"total"` TotalInBytes int64 `json:"total_in_bytes"` 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 43fa5c823a..aab2549402 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L331-L334 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L336-L339 type NodeInfoNetwork struct { PrimaryInterface NodeInfoNetworkInterface `json:"primary_interface"` RefreshInterval int `json:"refresh_interval"` 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 e4d3d79393..4ab3d06ffc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoNetworkInterface type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L336-L340 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L341-L345 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 1e790ddb2c..4d3a7d4b65 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoOSCPU type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L342-L351 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L347-L356 type NodeInfoOSCPU struct { CacheSize string `json:"cache_size"` CacheSizeInBytes int `json:"cache_size_in_bytes"` 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 ed111e7270..f410acaf41 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L158-L163 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7fa7d566b9..b84759049c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoRepositories type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L165-L167 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 48b295541c..9fa72d5150 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoRepositoriesUrl type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L169-L171 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9ebba5866c..f2640a12de 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L284-L287 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L289-L292 type NodeInfoScript struct { AllowedTypes string `json:"allowed_types"` DisableMaxCompilationsRate *string `json:"disable_max_compilations_rate,omitempty"` 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 e8d613ed2d..acf113cbbf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L289-L291 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L294-L296 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 9d9541b511..44170f175e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSearchRemote type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L293-L295 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L298-L300 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 2e0f2b2c31..05ca9b85de 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,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L69-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L69-L85 type NodeInfoSettings struct { Action *NodeInfoAction `json:"action,omitempty"` Bootstrap *NodeInfoBootstrap `json:"bootstrap,omitempty"` 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 0b984dfba6..980ed21625 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L132-L142 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9f55a08f38..f367bd8b28 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsClusterElection type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L148-L150 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e4879a5a5f..d94bf96b85 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L192-L197 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L192-L197 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 7c39442944..8c819e3f5e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttpType type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L199-L202 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L199-L202 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 314abcadf8..cb28f53e4e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoSettingsIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L87-L122 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 17a0ca8a8b..c67da2c74f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,9 +30,9 @@ import ( // NodeInfoSettingsNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L223-L225 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L223-L225 type NodeInfoSettingsNetwork struct { - Host *string `json:"host,omitempty"` + Host []string `json:"host,omitempty"` } func (s *NodeInfoSettingsNetwork) UnmarshalJSON(data []byte) error { @@ -51,8 +51,19 @@ func (s *NodeInfoSettingsNetwork) UnmarshalJSON(data []byte) error { switch t { case "host": - if err := dec.Decode(&s.Host); err != nil { - return fmt.Errorf("%s | %w", "Host", 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", "Host", err) + } + + s.Host = append(s.Host, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Host); err != nil { + return fmt.Errorf("%s | %w", "Host", err) + } } } 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 a3f9fa8449..d0c7fa2fbd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L152-L156 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 23c0991ef2..bb420aa723 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L208-L212 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L208-L212 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 5d63e623a3..02384467b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L219-L221 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L219-L221 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 3f4191c205..d7c50e6426 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportType type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L214-L217 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L214-L217 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 53ee145eeb..ef880386d0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L353-L357 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L358-L362 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 781ece98c3..6671a7f807 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,9 +26,10 @@ import ( // NodeInfoXpack type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L239-L243 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L239-L244 type NodeInfoXpack struct { License *NodeInfoXpackLicense `json:"license,omitempty"` + Ml *NodeInfoXpackMl `json:"ml,omitempty"` Notification map[string]json.RawMessage `json:"notification,omitempty"` Security NodeInfoXpackSecurity `json:"security"` } 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 26c2e1a88b..2cfac37596 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoXpackLicense type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L276-L278 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L281-L283 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 f6e6a284b7..452b724ef9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackLicenseType type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L280-L282 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L285-L287 type NodeInfoXpackLicenseType struct { Type string `json:"type"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpackml.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpackml.go new file mode 100644 index 0000000000..0cc0679783 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpackml.go @@ -0,0 +1,78 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// NodeInfoXpackMl type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L253-L255 +type NodeInfoXpackMl struct { + UseAutoMachineMemoryPercent *bool `json:"use_auto_machine_memory_percent,omitempty"` +} + +func (s *NodeInfoXpackMl) 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 "use_auto_machine_memory_percent": + 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", "UseAutoMachineMemoryPercent", err) + } + s.UseAutoMachineMemoryPercent = &value + case bool: + s.UseAutoMachineMemoryPercent = &v + } + + } + } + return nil +} + +// NewNodeInfoXpackMl returns a NodeInfoXpackMl. +func NewNodeInfoXpackMl() *NodeInfoXpackMl { + r := &NodeInfoXpackMl{} + + return r +} 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 65adef1a1e..06cc02b8a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,11 +31,11 @@ import ( // NodeInfoXpackSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L245-L250 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L246-L251 type NodeInfoXpackSecurity struct { Authc *NodeInfoXpackSecurityAuthc `json:"authc,omitempty"` Enabled string `json:"enabled"` - Http NodeInfoXpackSecuritySsl `json:"http"` + Http *NodeInfoXpackSecuritySsl `json:"http,omitempty"` Transport *NodeInfoXpackSecuritySsl `json:"transport,omitempty"` } 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 6cb36a967d..ecc7735942 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,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoXpackSecurityAuthc type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L256-L259 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L261-L264 type NodeInfoXpackSecurityAuthc struct { - Realms NodeInfoXpackSecurityAuthcRealms `json:"realms"` - Token NodeInfoXpackSecurityAuthcToken `json:"token"` + Realms *NodeInfoXpackSecurityAuthcRealms `json:"realms,omitempty"` + Token *NodeInfoXpackSecurityAuthcToken `json:"token,omitempty"` } // NewNodeInfoXpackSecurityAuthc returns a NodeInfoXpackSecurityAuthc. 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 d4e14eae43..0a3582185c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoXpackSecurityAuthcRealms type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L261-L265 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L266-L270 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 089a2bc7f7..5a5e493bc7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcRealmsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L271-L274 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L276-L279 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 72db0a0192..a29c8c5fa9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L267-L269 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L272-L274 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 c28b315e58..11b230a7ad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodeInfoXpackSecuritySsl type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L252-L254 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L257-L259 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 6dbf26c2f6..abc7481fbb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeJvmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L359-L373 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L364-L378 type NodeJvmInfo struct { GcCollectors []string `json:"gc_collectors"` InputArguments []string `json:"input_arguments"` 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 ea36cad100..00a8ea700f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeOperatingSystemInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L375-L392 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L380-L397 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 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 3dd7bde637..dd07b185bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodePackagingType type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L526-L539 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 a9acf66849..a5f892caea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeProcessInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L394-L401 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L399-L406 type NodeProcessInfo struct { // Id Process identifier (PID) Id int64 `json:"id"` 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 203d930550..4dfad70bde 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // NodeReloadError type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/NodeReloadResult.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9dc1db0791..721eb1a242 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // Stats // NodeReloadError // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/NodeReloadResult.ts#L29-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 48d085d61b..242dd9d3ca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodesContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L997-L1002 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1068-L1073 type NodesContext struct { CacheEvictions *int64 `json:"cache_evictions,omitempty"` CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"` 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 4563bd4fde..56c9f1c6d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodesCredentials type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_service_credentials/types.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 94188f9baf..ff33c2c272 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodesCredentialsFileToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_service_credentials/types.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d50307f1fc..65e2066bcd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NodeShard type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L60-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Node.ts#L54-L65 type NodeShard struct { AllocationId map[string]string `json:"allocation_id,omitempty"` Index string `json:"index"` 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 04d47cd81b..f843ce0c73 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // NodeShutdownStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6f8eedc855..6e968e1ea4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L116-L121 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9c4186fd88..7dfeafa446 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L123-L142 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L123-L142 type NodesIndexingPressureMemory struct { // Current Contains statistics for current indexing load. Current *PressureMemory `json:"current,omitempty"` 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 e185ef6e0b..80c6b92e85 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,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // NodesIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L345-L354 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` + Pipelines map[string]IngestStats `json:"pipelines,omitempty"` // Total Contains statistics about ingest operations for the node. Total *IngestTotal `json:"total,omitempty"` } @@ -33,7 +33,7 @@ type NodesIngest struct { // NewNodesIngest returns a NodesIngest. func NewNodesIngest() *NodesIngest { r := &NodesIngest{ - Pipelines: make(map[string]IngestTotal, 0), + Pipelines: make(map[string]IngestStats, 0), } return r 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 6a3fe25dd6..58478a07e3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/nodes/types.ts#L23-L542 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 eeb81d1b61..9f3bedd9e5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L28-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 498b1539c3..9ad9e1f076 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // NodeTasks type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/tasks/_types/TaskListResponseBase.ts#L49-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 abef5028a1..57e9b5700d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // NodeThreadPoolInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L297-L304 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/info/types.ts#L302-L309 type NodeThreadPoolInfo struct { Core *int `json:"core,omitempty"` KeepAlive Duration `json:"keep_alive,omitempty"` 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 f597025d97..10dcf9d5ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // NodeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/usage/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1992239fb6..3b0426bd88 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NoriAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L66-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L312-L318 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 ae6e28199c..3a7e269627 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // NoriPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L275-L278 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L274-L277 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 f88642fe40..882f57af2a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NoriTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L81-L87 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/nori-plugin.ts#L28-L34 type NoriTokenizer struct { DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"` DiscardPunctuation *bool `json:"discard_punctuation,omitempty"` 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 11b421c58e..75aac997ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // NormalizeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L319-L324 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L351-L359 type NormalizeAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 bdef424e50..c0b84171da 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // LowercaseNormalizer // CustomNormalizer // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/normalizers.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/normalizers.ts#L20-L24 type Normalizer any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/norwegiananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/norwegiananalyzer.go new file mode 100644 index 0000000000..8cf9000a73 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/norwegiananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// NorwegianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L237-L242 +type NorwegianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *NorwegianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s NorwegianAnalyzer) MarshalJSON() ([]byte, error) { + type innerNorwegianAnalyzer NorwegianAnalyzer + tmp := innerNorwegianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "norwegian" + + return json.Marshal(tmp) +} + +// NewNorwegianAnalyzer returns a NorwegianAnalyzer. +func NewNorwegianAnalyzer() *NorwegianAnalyzer { + r := &NorwegianAnalyzer{} + + return r +} 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 7dfa7b55e6..4321078669 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // NumberRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L157-L157 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L172-L172 type NumberRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 cfb9d786d3..c7547f7b14 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // NumericDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L192-L192 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L208-L208 type NumericDecayFunction struct { DecayFunctionBasedoubledouble map[string]DecayPlacementdoubledouble `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the 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 b4d34ad111..8a6e2467b8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // NumericFielddata type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/NumericFielddata.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c5bc3ef108..b72bc0e407 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ObjectProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L46-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/complex.ts#L46-L50 type ObjectProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -43,7 +43,6 @@ type ObjectProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Subobjects *bool `json:"subobjects,omitempty"` Type string `json:"type,omitempty"` @@ -761,18 +760,6 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -822,7 +809,6 @@ func (s ObjectProperty) MarshalJSON() ([]byte, error) { IgnoreAbove: s.IgnoreAbove, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Subobjects: s.Subobjects, Type: s.Type, 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 0b20d7e2a4..fef6f28f4a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // OneHotEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 09e083972f..bbb48f73a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // OperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L945-L951 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1016-L1022 type OperatingSystem struct { Cgroup *Cgroup `json:"cgroup,omitempty"` Cpu *Cpu `json:"cpu,omitempty"` 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 215955347a..4ffbbb40ff 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // OperatingSystemMemoryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/stats/types.ts#L541-L568 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 28b9efd868..30a7a97025 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // OperationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L145-L167 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5dd97fd9bf..f93dfdcfde 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // OutlierDetectionParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L527-L561 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L526-L560 type OutlierDetectionParameters struct { // ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled. ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"` 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 649387ea20..dbdc08ff92 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // OverallBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Bucket.ts#L130-L145 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Bucket.ts#L129-L144 type OverallBucket struct { // BucketSpan The length of the bucket in seconds. Matches the job with the longest // bucket_span value. 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 57db768624..162d257c25 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // OverallBucketJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Bucket.ts#L146-L149 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Bucket.ts#L145-L148 type OverallBucketJob struct { JobId string `json:"job_id"` MaxAnomalyScore Float64 `json:"max_anomaly_score"` 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 5b8504f83a..519b761f72 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Overlapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 57f6dcfa98..017d810d00 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Page type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Page.ts#L22-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Page.ts#L22-L33 type Page struct { // From Skips the specified number of items. From *int `json:"from,omitempty"` 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 2b5e61a3b4..d8ea90e34c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // PagerDutyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L54-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Actions.ts#L54-L54 type PagerDutyAction struct { Account *string `json:"account,omitempty"` AttachPayload bool `json:"attach_payload"` 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 6ab8ed56c6..81b9d1336f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // PagerDutyContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 11dfaef942..cecdcbd1c8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // PagerDutyEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L40-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Actions.ts#L40-L52 type PagerDutyEvent struct { Account *string `json:"account,omitempty"` AttachPayload bool `json:"attach_payload"` 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 099cbae2cf..503ebbb07c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PagerDutyEventProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L56-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Actions.ts#L56-L59 type PagerDutyEventProxy struct { Host *string `json:"host,omitempty"` Port *int `json:"port,omitempty"` 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 f283636b3f..e4b3da6e27 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PagerDutyResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L78-L83 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0171b052c3..5e58333626 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // PainlessContextSetup type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scripts_painless_execute/types.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` @@ -39,7 +39,7 @@ type PainlessContextSetup struct { // alias. Index string `json:"index"` // Query Use this parameter to specify a query for computing a score. - Query Query `json:"query"` + Query *Query `json:"query,omitempty"` } func (s *PainlessContextSetup) UnmarshalJSON(data []byte) error { 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 598066c325..8025387d9d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ParentAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L786-L787 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L894-L898 type ParentAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *ParentAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 e0de972ec7..04eda0b8e3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ParentAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L645-L650 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L662-L667 type ParentAggregation struct { // Type The child type that should be selected. Type *string `json:"type,omitempty"` 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 efd86c13ab..acb520beaf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ParentIdQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L132-L146 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/joining.ts#L141-L158 type ParentIdQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 02c0706579..0542303001 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ParentTaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 type ParentTaskInfo struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` 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 366ff0f08a..886f175170 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L224-L231 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 85f12f47c6..f04da5719b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L385-L390 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1a88d768ab..3a324200d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PathHierarchyTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L89-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L95-L102 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 adc87aaa9f..2fc32f4c66 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PatternAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L74-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L320-L327 type PatternAnalyzer struct { Flags *string `json:"flags,omitempty"` Lowercase *bool `json:"lowercase,omitempty"` 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 621fccf099..2ff82718fd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // PatternCaptureTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L280-L284 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L279-L283 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 c6e38acfc5..73136fa09d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L54-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/char_filters.ts#L57-L62 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 2e0f511a3c..3105356550 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L286-L292 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L285-L291 type PatternReplaceTokenFilter struct { All *bool `json:"all,omitempty"` Flags *string `json:"flags,omitempty"` 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 2a1aaec315..90cf889880 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PatternTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L98-L103 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L104-L109 type PatternTokenizer struct { Flags *string `json:"flags,omitempty"` Group *int `json:"group,omitempty"` 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 34c7b2a96d..e94af3c8df 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PendingTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/pending_tasks/types.ts#L23-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 9322537f35..7a561c7c2e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PendingTasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/pending_tasks/types.ts#L20-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c705f7eb9e..e0ee9eeed0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // float32 // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Numeric.ts#L28-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c82e62f798..4a77dce4df 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // PercentageScoreHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L766-L766 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L811-L811 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 d56172393a..dc7a6aa551 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PercentileRanksAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L174-L193 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L180-L202 type PercentileRanksAggregation 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/percentiles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentiles.go index 888e2e5186..889e853e1e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // KeyedPercentiles // []ArrayPercentilesItem // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L150-L151 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L152-L153 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 b038cc033e..e2d3e43f24 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L195-L214 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L204-L223 type PercentilesAggregation 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/percentilesbucketaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregate.go index 5d98ef70a9..bc488a56a5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // PercentilesBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L178-L179 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L180-L181 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 a3475649c1..be0823ed17 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // PercentilesBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L354-L359 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L389-L397 type PercentilesBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 25000d8a6a..c942f5ab5c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PercolateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L202-L239 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L205-L245 type PercolateQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 855d029bff..4afcc28f00 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // PercolatorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L188-L190 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L188-L190 type PercolatorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` 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 77b62be3cc..9ffcb9d226 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PerPartitionCategorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Analysis.ts#L150-L159 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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`. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persiananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persiananalyzer.go new file mode 100644 index 0000000000..af8000fd68 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persiananalyzer.go @@ -0,0 +1,113 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// PersianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L244-L248 +type PersianAnalyzer struct { + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *PersianAnalyzer) 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 "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s PersianAnalyzer) MarshalJSON() ([]byte, error) { + type innerPersianAnalyzer PersianAnalyzer + tmp := innerPersianAnalyzer{ + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "persian" + + return json.Marshal(tmp) +} + +// NewPersianAnalyzer returns a PersianAnalyzer. +func NewPersianAnalyzer() *PersianAnalyzer { + r := &PersianAnalyzer{} + + return r +} 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 a80d551270..968b456b87 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // PersistentTaskStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 db9d034449..9d43487af1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Phase type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L26-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L26-L32 type Phase struct { Actions *IlmActions `json:"actions,omitempty"` MinAge *Duration `json:"min_age,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 815ec10662..e8d01117f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Phases type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L34-L40 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 7ddb884f56..df81f0025b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -36,14 +36,14 @@ import ( // PhoneticTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/phonetic-plugin.ts#L64-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/phonetic-plugin.ts#L64-L72 type PhoneticTokenFilter struct { Encoder phoneticencoder.PhoneticEncoder `json:"encoder"` - Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset"` + Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset,omitempty"` MaxCodeLen *int `json:"max_code_len,omitempty"` - NameType phoneticnametype.PhoneticNameType `json:"name_type"` + NameType *phoneticnametype.PhoneticNameType `json:"name_type,omitempty"` Replace *bool `json:"replace,omitempty"` - RuleType phoneticruletype.PhoneticRuleType `json:"rule_type"` + RuleType *phoneticruletype.PhoneticRuleType `json:"rule_type,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` } 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 bb0150f0b8..4174b0e738 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L57-L62 type PhraseSuggest struct { Length int `json:"length"` Offset int `json:"offset"` 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 42820b7936..d129b6559a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestCollate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L333-L346 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L333-L346 type PhraseSuggestCollate struct { // Params Parameters to use if the query is templated. Params map[string]json.RawMessage `json:"params,omitempty"` 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 17b0cb46b6..5b56e769e0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestCollateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L348-L357 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L348-L357 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 6a1809fda3..091d6debf7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L359-L417 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L359-L417 type PhraseSuggester struct { // Analyzer The analyzer to analyze the suggest text with. // Defaults to the search analyzer of the suggest field. 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 5405b0baf4..c24e140de8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L419-L428 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L419-L428 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 c14ca6808d..f091bd893b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L86-L91 type PhraseSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Highlighted *string `json:"highlighted,omitempty"` 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 bd715db007..035f3783c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // PinnedDoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L262-L271 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L269-L278 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 7fb3107669..7630be9340 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PinnedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L241-L260 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L247-L267 type PinnedQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 c982e068a4..f86f1a5568 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PipelineConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Pipeline.ts#L61-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Pipeline.ts#L67-L81 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 b4f77cf79d..9ac9bb2b78 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PipelineMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/logstash/_types/Pipeline.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f483b74948..7801aee10f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PipelineProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L928-L939 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1226-L1237 type PipelineProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 9b54c55366..bdfb7dab27 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PipelineSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/logstash/_types/Pipeline.ts#L28-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 1fb409dc33..a2390143ca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,13 +33,15 @@ import ( // PipelineSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/types.ts#L33-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/simulate/types.ts#L52-L60 type PipelineSimulation struct { - Doc *DocumentSimulation `json:"doc,omitempty"` - ProcessorResults []PipelineSimulation `json:"processor_results,omitempty"` - ProcessorType *string `json:"processor_type,omitempty"` - Status *actionstatusoptions.ActionStatusOptions `json:"status,omitempty"` - Tag *string `json:"tag,omitempty"` + Description *string `json:"description,omitempty"` + Doc *DocumentSimulation `json:"doc,omitempty"` + Error *ErrorCause `json:"error,omitempty"` + IgnoredError *ErrorCause `json:"ignored_error,omitempty"` + ProcessorType *string `json:"processor_type,omitempty"` + Status *actionstatusoptions.ActionStatusOptions `json:"status,omitempty"` + Tag *string `json:"tag,omitempty"` } func (s *PipelineSimulation) UnmarshalJSON(data []byte) error { @@ -57,14 +59,31 @@ func (s *PipelineSimulation) UnmarshalJSON(data []byte) error { switch t { + case "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + case "doc": if err := dec.Decode(&s.Doc); err != nil { return fmt.Errorf("%s | %w", "Doc", err) } - case "processor_results": - if err := dec.Decode(&s.ProcessorResults); err != nil { - return fmt.Errorf("%s | %w", "ProcessorResults", err) + case "error": + if err := dec.Decode(&s.Error); err != nil { + return fmt.Errorf("%s | %w", "Error", err) + } + + case "ignored_error": + if err := dec.Decode(&s.IgnoredError); err != nil { + return fmt.Errorf("%s | %w", "IgnoredError", err) } case "processor_type": 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 8111728446..d96108ee36 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // simplequerystringflag.SimpleQueryStringFlag // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 36337d213d..adba3a6f26 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Pivot type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L54-L68 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cc50348dba..6cf0e29f35 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // PivotGroupByContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L70-L78 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5e4e7085bb..482934251c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PluginsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/plugins/types.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 24e3abd096..9806d078a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // PluginsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 56cf5f7b45..68713bb3be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PluginStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L180-L190 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L180-L190 type PluginStats struct { Classname string `json:"classname"` Description string `json:"description"` 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 a7a2483ca5..4744b23924 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // PointInTimeReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/PointInTimeReference.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bc13b9635a..6996fcb20c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // PointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L66-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/geo.ts#L66-L71 type PointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -46,7 +46,6 @@ type PointProperty struct { Meta map[string]string `json:"meta,omitempty"` NullValue *string `json:"null_value,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -803,18 +802,6 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -853,7 +840,6 @@ func (s PointProperty) MarshalJSON() ([]byte, error) { Meta: s.Meta, NullValue: s.NullValue, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 6caf284676..70fc0e9f56 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Pool type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L878-L895 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L949-L966 type Pool struct { // MaxInBytes Maximum amount of memory, in bytes, available for use by the heap. MaxInBytes *int64 `json:"max_in_bytes,omitempty"` 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 04815bb36f..854ab6add4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // PorterStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L294-L296 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L293-L295 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/portugueseanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/portugueseanalyzer.go new file mode 100644 index 0000000000..ca7aea8d1d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/portugueseanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// PortugueseAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L250-L255 +type PortugueseAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *PortugueseAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s PortugueseAnalyzer) MarshalJSON() ([]byte, error) { + type innerPortugueseAnalyzer PortugueseAnalyzer + tmp := innerPortugueseAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "portuguese" + + return json.Marshal(tmp) +} + +// NewPortugueseAnalyzer returns a PortugueseAnalyzer. +func NewPortugueseAnalyzer() *PortugueseAnalyzer { + r := &PortugueseAnalyzer{} + + return r +} 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 8c089943fc..f91d6350c5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PostMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 685970c0a3..8905951fe5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // PredicateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L298-L301 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L297-L300 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 a12393564d..38d1603e60 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,16 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types -// PredictedValue holds the union for the following types: +// PredictedValue type alias. // -// string -// Float64 -// bool -// int -// -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L457-L457 -type PredictedValue any +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L457-L457 +type PredictedValue []ScalarValue 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 d5e0f275eb..ef74f437f3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L88-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L98-L120 type PrefixQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 74d3c6854f..cba637c957 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Preprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e1e2b2ee58..9b58057ad1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L144-L199 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L144-L199 type PressureMemory struct { // All Memory consumed by indexing requests in the coordinating, primary, or replica // stage. 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 5d123cd37c..4dd7dbfd36 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Privileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/types.ts#L48-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ac8ad60eab..5e605419ce 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PrivilegesActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_privileges/types.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cde43efbf4..9d41af99ee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // PrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges_user_profile/types.ts#L30-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bc533a2cb3..16792073c9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Process type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L953-L975 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1024-L1046 type Process struct { // Cpu Contains CPU statistics for the node. Cpu *Cpu `json:"cpu,omitempty"` 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 c2e5cc89a1..67ecca4c93 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Processor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L384-L401 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L420-L437 type Processor struct { // Count Number of documents transformed by the processor. Count *int64 `json:"count,omitempty"` 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 a457360924..726ac9df80 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ProcessorContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L27-L239 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L27-L297 type ProcessorContainer struct { // Append Appends one or more values to an existing array if the field already exists // and it is an array. @@ -47,6 +47,10 @@ type ProcessorContainer struct { // Circle Converts circle definitions of shapes to regular polygons which approximate // them. Circle *CircleProcessor `json:"circle,omitempty"` + // CommunityId Computes the Community ID for network flow data as defined in the + // Community ID Specification. You can use a community ID to correlate network + // events related to a single flow. + CommunityId *CommunityIDProcessor `json:"community_id,omitempty"` // Convert Converts a field in the currently ingested document to a different type, such // as converting a string to an integer. // If the field value is an array, all members will be converted. @@ -79,8 +83,16 @@ type ProcessorContainer struct { // This is useful for when you expect a pipeline to fail and want to relay a // specific message to the requester. Fail *FailProcessor `json:"fail,omitempty"` + // Fingerprint Computes a hash of the document’s content. You can use this hash for + // content fingerprinting. + Fingerprint *FingerprintProcessor `json:"fingerprint,omitempty"` // Foreach Runs an ingest processor on each element of an array or object. Foreach *ForeachProcessor `json:"foreach,omitempty"` + // GeoGrid Converts geo-grid definitions of grid tiles or cells to regular bounding + // boxes or polygons which describe their shape. + // This is useful if there is a need to interact with the tile shapes as + // spatially indexable fields. + GeoGrid *GeoGridProcessor `json:"geo_grid,omitempty"` // Geoip The `geoip` processor adds information about the geographical location of an // IPv4 or IPv6 address. Geoip *GeoIpProcessor `json:"geoip,omitempty"` @@ -96,6 +108,10 @@ type ProcessorContainer struct { // If any non-string values are encountered, the processor will throw an // exception. Gsub *GsubProcessor `json:"gsub,omitempty"` + // HtmlStrip Removes HTML tags from the field. + // If the field is an array of strings, HTML tags will be removed from all + // members of the array. + HtmlStrip *HtmlStripProcessor `json:"html_strip,omitempty"` // Inference Uses a pre-trained data frame analytics model or a model deployed for natural // language processing tasks to infer against the data that is being ingested in // the pipeline. @@ -113,8 +129,24 @@ type ProcessorContainer struct { // If the field is an array of strings, all members of the array will be // converted. Lowercase *LowercaseProcessor `json:"lowercase,omitempty"` + // NetworkDirection Calculates the network direction given a source IP address, destination IP + // address, and a list of internal networks. + NetworkDirection *NetworkDirectionProcessor `json:"network_direction,omitempty"` // Pipeline Executes another pipeline. Pipeline *PipelineProcessor `json:"pipeline,omitempty"` + // Redact The Redact processor uses the Grok rules engine to obscure text in the input + // document matching the given Grok patterns. + // The processor can be used to obscure Personal Identifying Information (PII) + // by configuring it to detect known patterns such as email or IP addresses. + // Text that matches a Grok pattern is replaced with a configurable string such + // as `` where an email address is matched or simply replace all matches + // with the text `` if preferred. + Redact *RedactProcessor `json:"redact,omitempty"` + // RegisteredDomain Extracts the registered domain (also known as the effective top-level + // domain or eTLD), sub-domain, and top-level domain from a fully qualified + // domain name (FQDN). Uses the registered domains defined in the Mozilla + // Public Suffix List. + RegisteredDomain *RegisteredDomainProcessor `json:"registered_domain,omitempty"` // Remove Removes existing fields. // If one field doesn’t exist, an exception will be thrown. Remove *RemoveProcessor `json:"remove,omitempty"` @@ -149,6 +181,10 @@ type ProcessorContainer struct { // Split Splits a field into an array using a separator character. // Only works on string fields. Split *SplitProcessor `json:"split,omitempty"` + // Terminate Terminates the current ingest pipeline, causing no further processors to be + // run. + // This will normally be executed conditionally, using the `if` option. + Terminate *TerminateProcessor `json:"terminate,omitempty"` // Trim Trims whitespace from a field. // If the field is an array of strings, all members of the array will be // trimmed. @@ -158,6 +194,11 @@ type ProcessorContainer struct { // If the field is an array of strings, all members of the array will be // converted. Uppercase *UppercaseProcessor `json:"uppercase,omitempty"` + // UriParts Parses a Uniform Resource Identifier (URI) string and extracts its components + // as an object. + // This URI object includes properties for the URI’s domain, path, fragment, + // port, query, scheme, user info, username, and password. + UriParts *UriPartsProcessor `json:"uri_parts,omitempty"` // Urldecode URL-decodes a string. // If the field is an array of strings, all members of the array will be // decoded. 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 cd94088b9f..cac0b5fa1a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Profile type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L93-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L101-L103 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 95fca430c9..fdc5419b0e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -72,5 +72,5 @@ package types // LongRangeProperty // IcuCollationProperty // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/Property.ts#L96-L164 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/Property.ts#L96-L164 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 1425e75d37..69aa6e7814 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // PublishedClusterStates type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L263-L276 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 02bff5ba78..929dddbed8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Queries type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L403-L405 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L403-L405 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 d78aff9bcb..b8fe29d81b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Query type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L102-L427 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/abstractions.ts#L102-L427 type Query 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/querybreakdown.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querybreakdown.go index 9d496195f4..bb289b1c49 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // QueryBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L97-L116 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L105-L126 type QueryBreakdown struct { Advance int64 `json:"advance"` AdvanceCount int64 `json:"advance_count"` @@ -39,6 +39,8 @@ type QueryBreakdown struct { BuildScorerCount int64 `json:"build_scorer_count"` ComputeMaxScore int64 `json:"compute_max_score"` ComputeMaxScoreCount int64 `json:"compute_max_score_count"` + CountWeight int64 `json:"count_weight"` + CountWeightCount int64 `json:"count_weight_count"` CreateWeight int64 `json:"create_weight"` CreateWeightCount int64 `json:"create_weight_count"` Match int64 `json:"match"` @@ -158,6 +160,36 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error { s.ComputeMaxScoreCount = f } + case "count_weight": + 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", "CountWeight", err) + } + s.CountWeight = value + case float64: + f := int64(v) + s.CountWeight = f + } + + case "count_weight_count": + 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", "CountWeightCount", err) + } + s.CountWeightCount = value + case float64: + f := int64(v) + s.CountWeightCount = f + } + case "create_weight": var tmp any dec.Decode(&tmp) 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 df54740e90..8ee12b9920 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // QueryCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L192-L226 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 322740b842..6f2dbec745 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // QueryProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L118-L124 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L128-L134 type QueryProfile struct { Breakdown QueryBreakdown `json:"breakdown"` Children []QueryProfile `json:"children,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrole.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrole.go index 8257321507..9ae420364f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrole.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrole.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // QueryRole type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_role/types.ts#L103-L109 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_role/types.ts#L103-L109 type QueryRole 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/queryrule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrule.go index cdb6bf37c0..fce17da44a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // QueryRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L36-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/_types/QueryRuleset.ts#L36-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 5c93a85115..616e4a8d86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // QueryRuleActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L69-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/_types/QueryRuleset.ts#L70-L73 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 8b931b3281..9fec21ed0b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // QueryRuleCriteria type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L48-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/_types/QueryRuleset.ts#L49-L53 type QueryRuleCriteria struct { Metadata *string `json:"metadata,omitempty"` 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 15e4c856a9..91313d6fcb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // QueryRuleset type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/_types/QueryRuleset.ts#L25-L34 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 e0d8cdec81..b4abc164f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // QueryRulesetListItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/list_rulesets/types.ts#L23-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/list_rulesets/types.ts#L23-L37 type QueryRulesetListItem struct { // RuleCriteriaTypesCounts A map of criteria type to the number of rules of that type RuleCriteriaTypesCounts map[string]int `json:"rule_criteria_types_counts"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulesetmatchedrule.go similarity index 52% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulesetmatchedrule.go index f493f13ead..1a18bea711 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulesetmatchedrule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -28,17 +28,17 @@ import ( "io" ) -// HotThread type. +// QueryRulesetMatchedRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/hot_threads/types.ts#L23-L28 -type HotThread struct { - Hosts []string `json:"hosts"` - NodeId string `json:"node_id"` - NodeName string `json:"node_name"` - Threads []string `json:"threads"` +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/query_rules/test/QueryRulesetTestResponse.ts#L30-L39 +type QueryRulesetMatchedRule struct { + // RuleId Rule unique identifier within that ruleset + RuleId string `json:"rule_id"` + // RulesetId Ruleset unique identifier + RulesetId string `json:"ruleset_id"` } -func (s *HotThread) UnmarshalJSON(data []byte) error { +func (s *QueryRulesetMatchedRule) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -53,24 +53,14 @@ func (s *HotThread) UnmarshalJSON(data []byte) error { switch t { - case "hosts": - if err := dec.Decode(&s.Hosts); err != nil { - return fmt.Errorf("%s | %w", "Hosts", err) + case "rule_id": + if err := dec.Decode(&s.RuleId); err != nil { + return fmt.Errorf("%s | %w", "RuleId", err) } - case "node_id": - if err := dec.Decode(&s.NodeId); err != nil { - return fmt.Errorf("%s | %w", "NodeId", err) - } - - case "node_name": - if err := dec.Decode(&s.NodeName); err != nil { - return fmt.Errorf("%s | %w", "NodeName", err) - } - - case "threads": - if err := dec.Decode(&s.Threads); err != nil { - return fmt.Errorf("%s | %w", "Threads", err) + case "ruleset_id": + if err := dec.Decode(&s.RulesetId); err != nil { + return fmt.Errorf("%s | %w", "RulesetId", err) } } @@ -78,9 +68,9 @@ func (s *HotThread) UnmarshalJSON(data []byte) error { return nil } -// NewHotThread returns a HotThread. -func NewHotThread() *HotThread { - r := &HotThread{} +// NewQueryRulesetMatchedRule returns a QueryRulesetMatchedRule. +func NewQueryRulesetMatchedRule() *QueryRulesetMatchedRule { + r := &QueryRulesetMatchedRule{} return r } 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 6f21a5f6a5..5d3fe429a2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // QueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L580-L700 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L598-L721 type QueryStringQuery struct { // AllowLeadingWildcard If `true`, the wildcard characters `*` and `?` are allowed as the first // character of the query string. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryuser.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryuser.go index c621246c59..67c2b62437 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryuser.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryuser.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // QueryUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_user/types.ts#L103-L105 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_user/types.ts#L103-L105 type QueryUser struct { Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` 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 45d5558606..ff8666f157 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // QueryVectorBuilder type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Knn.ts#L69-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Knn.ts#L74-L77 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 77ec5a7341..c34b98d870 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // QueryWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Watch.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Watch.ts#L58-L64 type QueryWatch struct { Id_ string `json:"_id"` PrimaryTerm_ *int `json:"_primary_term,omitempty"` 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 ad198d2e0b..09747d97ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L282-L292 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L282-L292 type QuestionAnsweringInferenceOptions struct { // MaxAnswerLength The maximum answer length to consider MaxAnswerLength *int `json:"max_answer_length,omitempty"` 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 8fe9c5af08..435bbd40fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L420-L431 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomsampleraggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomsampleraggregation.go new file mode 100644 index 0000000000..ab228ffdc5 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomsampleraggregation.go @@ -0,0 +1,122 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RandomSamplerAggregation type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L749-L769 +type RandomSamplerAggregation struct { + // Probability The probability that a document will be included in the aggregated data. + // Must be greater than 0, less than 0.5, or exactly 1. + // The lower the probability, the fewer documents are matched. + Probability Float64 `json:"probability"` + // Seed The seed to generate the random sampling of documents. + // When a seed is provided, the random subset of documents is the same between + // calls. + Seed *int `json:"seed,omitempty"` + // ShardSeed When combined with seed, setting shard_seed ensures 100% consistent sampling + // over shards where data is exactly the same. + ShardSeed *int `json:"shard_seed,omitempty"` +} + +func (s *RandomSamplerAggregation) 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 "probability": + 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", "Probability", err) + } + f := Float64(value) + s.Probability = f + case float64: + f := Float64(v) + s.Probability = f + } + + case "seed": + + 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", "Seed", err) + } + s.Seed = &value + case float64: + f := int(v) + s.Seed = &f + } + + case "shard_seed": + + 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", "ShardSeed", err) + } + s.ShardSeed = &value + case float64: + f := int(v) + s.ShardSeed = &f + } + + } + } + return nil +} + +// NewRandomSamplerAggregation returns a RandomSamplerAggregation. +func NewRandomSamplerAggregation() *RandomSamplerAggregation { + r := &RandomSamplerAggregation{} + + return r +} 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 4798e21e8a..a651fba060 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RandomScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L128-L131 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L144-L147 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 f6bca2d5fa..9831c1c987 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L535-L536 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L594-L598 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 13bf79e12f..fba7b48bd1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L652-L672 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L669-L689 type RangeAggregation struct { // Field The date field whose values are use to build ranges. Field *string `json:"field,omitempty"` 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 c56a0b7a3f..42ec23fdfb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // RangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L538-L545 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L600-L607 type RangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -559,6 +559,13 @@ func (s *RangeBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 e44f182ea0..c4b5fdfe86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -27,5 +27,5 @@ package types // NumberRangeQuery // TermRangeQuery // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L161-L170 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L176-L186 type RangeQuery any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedatemath.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedatemath.go index e4f1b4686f..7598b8f173 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedatemath.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedatemath.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RangeQueryBaseDateMath type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L109-L133 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L122-L148 type RangeQueryBaseDateMath struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedouble.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedouble.go index 8348be88f6..65e0751d4f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedouble.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedouble.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RangeQueryBasedouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L109-L133 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L122-L148 type RangeQueryBasedouble struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasestring.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasestring.go index e8dfa00751..a5af875fb5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasestring.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasestring.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RangeQueryBasestring type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L109-L133 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L122-L148 type RangeQueryBasestring struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 384c6f4c52..67c0e87f36 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RankContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Rank.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 index b5b919eb71..60070f84dc 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankeddocument.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankeddocument.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Results.ts#L67-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Results.ts#L67-L77 type RankedDocument struct { Index int `json:"index"` Score float32 `json:"score"` 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 d3e658477b..7ba72ca7fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L141-L145 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/rank_eval/types.ts#L144-L148 type RankEvalHit struct { Id_ string `json:"_id"` Index_ string `json:"_index"` 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 118582d706..33aee553c2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RankEvalHitItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L136-L139 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/rank_eval/types.ts#L139-L142 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 d897fa0bf1..5f3d2cf3a2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RankEvalMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L90-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e09c4cb9d6..345e62dd20 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L125-L134 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/rank_eval/types.ts#L128-L137 type RankEvalMetricDetail struct { // Hits The hits section shows a grouping of the search results with their supplied // ratings 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 61afa7b966..18408702bb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDiscountedCumulativeGain type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L66-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 54eec8f0ba..95a4fe9600 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricExpectedReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L79-L88 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 a52d9d3f2d..ac4e72dd8a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricMeanReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L60-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 b349726ab3..f3c0b0aa9a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L42-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 931071dd4d..b1f1e91d59 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricRatingTreshold type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 62f0dd5fa5..c7fa02ef06 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L54-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 1f9747ac2c..c0bbf3e062 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankEvalQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/rank_eval/types.ts#L111-L117 type RankEvalQuery struct { Query Query `json:"query"` Size *int `json:"size,omitempty"` @@ -39,6 +39,11 @@ type RankEvalQuery struct { func (s *RankEvalQuery) UnmarshalJSON(data []byte) error { + if !bytes.HasPrefix(data, []byte(`{`)) { + err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Query) + return err + } + dec := json.NewDecoder(bytes.NewReader(data)) for { 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 54a16a5f0c..29adf048bd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RankEvalRequestItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L98-L109 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 72c2863a37..8369b332ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RankFeatureFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L273-L273 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L280-L280 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 2c5343be36..be31abab6f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RankFeatureFunctionLinear type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L275-L275 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L282-L282 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 b1d45ed8cd..e8dbb594d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionLogarithm type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L277-L282 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L284-L289 type RankFeatureFunctionLogarithm struct { // ScalingFactor Configurable scaling factor. ScalingFactor float32 `json:"scaling_factor"` 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 e89c75f45d..2055ef03e3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSaturation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L284-L289 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L291-L296 type RankFeatureFunctionSaturation struct { // Pivot Configurable pivot value so that the result will be less than 0.5. Pivot *float32 `json:"pivot,omitempty"` 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 12eacd75af..b3e57af817 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSigmoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L291-L300 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L298-L307 type RankFeatureFunctionSigmoid struct { // Exponent Configurable Exponent. Exponent float32 `json:"exponent"` 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 c9bb41fb82..2ae7d83d2a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RankFeatureProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L192-L195 type RankFeatureProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` 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 0760ff1eaa..d1abc1ae8c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RankFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L302-L325 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L309-L335 type RankFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 5f70ab204f..fefb6541d4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RankFeaturesProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L197-L200 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L197-L200 type RankFeaturesProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` 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 83cbd07bcc..22fa307ca6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RareTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L689-L719 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L706-L739 type RareTermsAggregation struct { // Exclude Terms that should be excluded from the aggregation. Exclude []string `json:"exclude,omitempty"` 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 9d9b2af32f..fc889566c4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RateAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L748-L752 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L847-L854 type RateAggregate struct { Meta Metadata `json:"meta,omitempty"` Value Float64 `json:"value"` 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 b91547a2db..0a3749ac9a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // RateAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L230-L241 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L239-L250 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 9c2bd11800..69c0fcde4e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ReadException type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/_types/FollowIndexStats.ts#L71-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ccr/_types/FollowIndexStats.ts#L71-L75 type ReadException struct { Exception ErrorCause `json:"exception"` FromSeqNo int64 `json:"from_seq_no"` 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 d9a4bcfa95..289f995232 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ReadOnlyUrlRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L60-L63 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 506fea6974..e239611460 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ReadOnlyUrlRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L110-L115 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotRepository.ts#L110-L115 type ReadOnlyUrlRepositorySettings struct { ChunkSize ByteSize `json:"chunk_size,omitempty"` Compress *bool `json:"compress,omitempty"` 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 825eff9e8e..ba449b32ca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RealmCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L266-L268 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L264-L266 type RealmCache struct { Size int64 `json:"size"` } 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 4b2ca43c7f..ecb1448386 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RealmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RealmInfo.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 89c052dadd..20f71f9ca3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Recording type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L225-L230 type Recording struct { CumulativeExecutionCount *int64 `json:"cumulative_execution_count,omitempty"` CumulativeExecutionTime Duration `json:"cumulative_execution_time,omitempty"` 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 40ee054805..9442773b39 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RecoveryBytes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L38-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 922a0ce108..cb7a113dea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RecoveryFiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/recovery/types.ts#L56-L62 type RecoveryFiles struct { Details []FileDetails `json:"details,omitempty"` Percent Percentage `json:"percent"` 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 18d0b18836..8de0d7919f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RecoveryIndexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L64-L74 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 736d071494..e3a475203a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RecoveryOrigin type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L76-L89 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/recovery/types.ts#L76-L89 type RecoveryOrigin struct { BootstrapNewHistoryUuid *bool `json:"bootstrap_new_history_uuid,omitempty"` Host *string `json:"host,omitempty"` 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 16055cc020..7af4a41b12 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RecoveryRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/recovery/types.ts#L24-L155 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e323ea7f4c..414f7b5a97 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RecoveryStartStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L91-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2397742cdf..295afdc470 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RecoveryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L228-L233 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L228-L233 type RecoveryStats struct { CurrentAsSource int64 `json:"current_as_source"` CurrentAsTarget int64 `json:"current_as_target"` 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 7ba8ce67e1..d0838dc5a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RecoveryStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L98-L100 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/redact.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/redact.go new file mode 100644 index 0000000000..a09bf20fbd --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/redact.go @@ -0,0 +1,79 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// Redact type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/simulate/types.ts#L39-L44 +type Redact struct { + // IsRedacted_ indicates if document has been redacted + IsRedacted_ bool `json:"_is_redacted"` +} + +func (s *Redact) 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 "_is_redacted": + 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", "IsRedacted_", err) + } + s.IsRedacted_ = value + case bool: + s.IsRedacted_ = v + } + + } + } + return nil +} + +// NewRedact returns a Redact. +func NewRedact() *Redact { + r := &Redact{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/redactprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/redactprocessor.go new file mode 100644 index 0000000000..4b3d6dd85e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/redactprocessor.go @@ -0,0 +1,234 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RedactProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1239-L1280 +type RedactProcessor struct { + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // Field The field to be redacted + Field string `json:"field"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // 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"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + PatternDefinitions map[string]string `json:"pattern_definitions,omitempty"` + // Patterns A list of grok expressions to match and redact named captures with + Patterns []string `json:"patterns"` + // Prefix Start a redacted section with this token + Prefix *string `json:"prefix,omitempty"` + // SkipIfUnlicensed If `true` and the current license does not support running redact processors, + // then the processor quietly exits without modifying the document + SkipIfUnlicensed *bool `json:"skip_if_unlicensed,omitempty"` + // Suffix End a redacted section with this token + Suffix *string `json:"suffix,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` + // TraceRedact If `true` then ingest metadata `_ingest._redact._is_redacted` is set to + // `true` if the document has been redacted + TraceRedact *bool `json:"trace_redact,omitempty"` +} + +func (s *RedactProcessor) 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 "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + case "field": + if err := dec.Decode(&s.Field); err != nil { + return fmt.Errorf("%s | %w", "Field", err) + } + + case "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "ignore_missing": + 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", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "pattern_definitions": + if s.PatternDefinitions == nil { + s.PatternDefinitions = make(map[string]string, 0) + } + if err := dec.Decode(&s.PatternDefinitions); err != nil { + return fmt.Errorf("%s | %w", "PatternDefinitions", err) + } + + case "patterns": + if err := dec.Decode(&s.Patterns); err != nil { + return fmt.Errorf("%s | %w", "Patterns", err) + } + + case "prefix": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Prefix", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Prefix = &o + + case "skip_if_unlicensed": + 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", "SkipIfUnlicensed", err) + } + s.SkipIfUnlicensed = &value + case bool: + s.SkipIfUnlicensed = &v + } + + case "suffix": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Suffix", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Suffix = &o + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + case "trace_redact": + 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", "TraceRedact", err) + } + s.TraceRedact = &value + case bool: + s.TraceRedact = &v + } + + } + } + return nil +} + +// NewRedactProcessor returns a RedactProcessor. +func NewRedactProcessor() *RedactProcessor { + r := &RedactProcessor{ + PatternDefinitions: make(map[string]string, 0), + } + + return r +} 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 7015fc2434..7f4de33563 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RefreshStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L235-L242 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L235-L242 type RefreshStats struct { ExternalTotal int64 `json:"external_total"` ExternalTotalTimeInMillis int64 `json:"external_total_time_in_millis"` 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 71a230e5f9..03c576a4c6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RegexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L183-L194 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L183-L194 type RegexOptions struct { // Flags Optional operators for the regular expression. Flags string `json:"flags,omitempty"` 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 b2f82ed1ab..0abcd08da8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RegexpQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L187-L217 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L203-L236 type RegexpQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexvalidation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexvalidation.go index 585aab54fd..af5007f2c6 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexvalidation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RegexValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L78-L81 type RegexValidation struct { Constraint string `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/registereddomainprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/registereddomainprocessor.go new file mode 100644 index 0000000000..d281ca7f3c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/registereddomainprocessor.go @@ -0,0 +1,162 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RegisteredDomainProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1282-L1298 +type RegisteredDomainProcessor struct { + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // Field Field containing the source FQDN. + Field string `json:"field"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // IgnoreMissing If true and any required fields are missing, the processor quietly exits + // without modifying the document. + IgnoreMissing *bool `json:"ignore_missing,omitempty"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` + // TargetField Object field containing extracted domain components. If an empty string, + // the processor adds components to the document’s root. + TargetField *string `json:"target_field,omitempty"` +} + +func (s *RegisteredDomainProcessor) 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 "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + case "field": + if err := dec.Decode(&s.Field); err != nil { + return fmt.Errorf("%s | %w", "Field", err) + } + + case "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "ignore_missing": + 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", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + case "target_field": + if err := dec.Decode(&s.TargetField); err != nil { + return fmt.Errorf("%s | %w", "TargetField", err) + } + + } + } + return nil +} + +// NewRegisteredDomainProcessor returns a RegisteredDomainProcessor. +func NewRegisteredDomainProcessor() *RegisteredDomainProcessor { + r := &RegisteredDomainProcessor{} + + return r +} 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 7c4863a9e0..77ceab8853 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RegressionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L82-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 4ee12d024a..46d2cd0a08 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // ReindexDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex/types.ts#L39-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 22dba1ff06..dadc97e7ee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ReindexNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex_rethrottle/types.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cde9ee2a5a..96a324a66a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ReindexSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex/types.ts#L66-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 fe350d60de..da5a0c6725 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ReindexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex_rethrottle/types.ts#L37-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 76194cd08e..cb62d1a48c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ReindexTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex_rethrottle/types.ts#L87-L98 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/reindex_rethrottle/types.ts#L87-L98 type ReindexTask struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` 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 6605baf5a9..cb0fcac14d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ReloadDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/reload_search_analyzers/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e3e2032f5f..32555eb5cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ReloadResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/reload_search_analyzers/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d9dd5c661b..5df7295132 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RelocationFailureInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L73-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Node.ts#L67-L69 type RelocationFailureInfo struct { FailedAttempts int `json:"failed_attempts"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/remoteindicesprivileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/remoteindicesprivileges.go new file mode 100644 index 0000000000..0a223aa763 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/remoteindicesprivileges.go @@ -0,0 +1,187 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" +) + +// RemoteIndicesPrivileges type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L225-L253 +type RemoteIndicesPrivileges struct { + // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that + // cover restricted indices. Implicitly, restricted indices have limited + // privileges that can cause pattern tests to fail. If restricted indices are + // explicitly included in the `names` list, Elasticsearch checks privileges + // against these indices regardless of the value set for + // `allow_restricted_indices`. + AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"` + // Clusters A list of cluster aliases to which the permissions in this entry apply. + Clusters []string `json:"clusters"` + // FieldSecurity The document fields that the owners of the role have read access to. + FieldSecurity *FieldSecurity `json:"field_security,omitempty"` + // Names A list of indices (or index name patterns) to which the permissions in this + // entry apply. + Names []string `json:"names"` + // Privileges The index level privileges that owners of the role have on the specified + // indices. + Privileges []indexprivilege.IndexPrivilege `json:"privileges"` + // Query A search query that defines the documents the owners of the role have access + // to. A document within the specified indices must match this query for it to + // be accessible by the owners of the role. + Query IndicesPrivilegesQuery `json:"query,omitempty"` +} + +func (s *RemoteIndicesPrivileges) 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_restricted_indices": + 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", "AllowRestrictedIndices", err) + } + s.AllowRestrictedIndices = &value + case bool: + s.AllowRestrictedIndices = &v + } + + case "clusters": + 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", "Clusters", err) + } + + s.Clusters = append(s.Clusters, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Clusters); err != nil { + return fmt.Errorf("%s | %w", "Clusters", err) + } + } + + case "field_security": + if err := dec.Decode(&s.FieldSecurity); err != nil { + return fmt.Errorf("%s | %w", "FieldSecurity", err) + } + + case "names": + 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", "Names", err) + } + + s.Names = append(s.Names, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Names); err != nil { + return fmt.Errorf("%s | %w", "Names", err) + } + } + + case "privileges": + if err := dec.Decode(&s.Privileges); err != nil { + return fmt.Errorf("%s | %w", "Privileges", err) + } + + case "query": + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + query_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Query", err) + } + + switch t { + + case "bool", "boosting", "combined_fields", "common", "constant_score", "dis_max", "distance_feature", "exists", "function_score", "fuzzy", "geo_bounding_box", "geo_distance", "geo_polygon", "geo_shape", "has_child", "has_parent", "ids", "intervals", "knn", "match", "match_all", "match_bool_prefix", "match_none", "match_phrase", "match_phrase_prefix", "more_like_this", "multi_match", "nested", "parent_id", "percolate", "pinned", "prefix", "query_string", "range", "rank_feature", "regexp", "rule", "script", "script_score", "semantic", "shape", "simple_query_string", "span_containing", "span_field_masking", "span_first", "span_multi", "span_near", "span_not", "span_or", "span_term", "span_within", "sparse_vector", "term", "terms", "terms_set", "text_expansion", "type", "weighted_tokens", "wildcard", "wrapper": + o := NewQuery() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + s.Query = o + break query_field + + case "template": + o := NewRoleTemplateQuery() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + s.Query = o + break query_field + + } + } + if s.Query == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Query); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + } + + } + } + return nil +} + +// NewRemoteIndicesPrivileges returns a RemoteIndicesPrivileges. +func NewRemoteIndicesPrivileges() *RemoteIndicesPrivileges { + r := &RemoteIndicesPrivileges{} + + return r +} 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 c940da70ae..eecf64b7cd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RemoteSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex/types.ts#L99-L125 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e6a421cb55..96822d00ae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RemoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/update_aliases/types.ts#L97-L122 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/update_aliases/types.ts#L97-L122 type RemoveAction struct { // Alias Alias for the action. // Index alias names support date math. 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 4ec63206ea..6ac59918bc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RemoveDuplicatesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L303-L305 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L302-L304 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 a67a011162..263f0b9211 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RemoveIndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/update_aliases/types.ts#L124-L139 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/update_aliases/types.ts#L124-L139 type RemoveIndexAction struct { // Index Data stream or index for the action. // Supports wildcards (`*`). 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 5a0b7cb0af..434969398b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RemoveProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L941-L955 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1300-L1314 type RemoveProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 5f0811d201..cc43e48b07 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RenameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L957-L973 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1316-L1332 type RenameProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 5442360c03..d0dcf41bed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ReportingEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L224-L232 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Actions.ts#L224-L232 type ReportingEmailAttachment struct { Inline *bool `json:"inline,omitempty"` Interval Duration `json:"interval,omitempty"` 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 3a1ee371cd..0169a3b7bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RepositoriesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/repositories/types.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0d91d67829..615709f518 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,5 +29,5 @@ package types // ReadOnlyUrlRepository // SourceOnlyRepository // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 382414af73..79a1f9e7f8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RepositoryIntegrityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L135-L139 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L136-L140 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 c81a6f62ab..2903064321 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RepositoryIntegrityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L140-L144 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L141-L145 type RepositoryIntegrityIndicatorDetails struct { Corrupted []string `json:"corrupted,omitempty"` CorruptedRepositories *int64 `json:"corrupted_repositories,omitempty"` 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 0747ea750b..fedbaacd67 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RepositoryLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ce54a46bda..952bc34315 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RepositoryMeteringInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 3890a7203e..8a974afc8e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RequestCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L244-L250 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L244-L250 type RequestCacheStats struct { Evictions int64 `json:"evictions"` HitCount int64 `json:"hit_count"` 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 5a5d58d817..bc25dc1d15 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RequestCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103 type RequestCounts struct { // GetBlob Number of Get Blob requests (Azure) GetBlob *int64 `json:"GetBlob,omitempty"` 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 70a91e195c..130b640e20 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // MultisearchHeader // TemplateConfig // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch_template/types.ts#L25-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 eb6d81c420..b1b276dfe9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RerouteDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/types.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d101aa69c9..c98c197328 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RerouteExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/types.ts#L92-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 df90f7677f..9e6ce4977c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RerouteParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/reroute/types.ts#L98-L105 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/reroute/types.ts#L98-L105 type RerouteParameters struct { AllowPrimary bool `json:"allow_primary"` FromNode *string `json:"from_node,omitempty"` 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 bc66be796b..62c5930184 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RerouteProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L975-L1003 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1334-L1362 type RerouteProcessor struct { // Dataset Field references or a static value for the dataset part of the data stream // name. 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 51f89a4f37..979487f9fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Rescore type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/rescoring.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/rescoring.ts#L25-L38 type Rescore struct { LearningToRank *LearningToRank `json:"learning_to_rank,omitempty"` Query *RescoreQuery `json:"query,omitempty"` 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 bb2d131d67..31662c5ea1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RescoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/rescoring.ts#L40-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 a20d0a3a48..9633137ad7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ReservedSize type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L71-L76 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L72-L77 type ReservedSize struct { NodeId string `json:"node_id"` Path string `json:"path"` 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 802b3c30b6..eddace0c46 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ResolveClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 5c1c0a108b..f47b4aef2d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexAliasItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6c6811f96a..189953760f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexDataStreamsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f93047f1dc..0e07f8cb9f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1f173b64a6..60c163f596 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ResourcePrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/types.ts#L47-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fe2acb568b..38f7e83e0a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ResponseBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/SearchResponse.ts#L38-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/SearchResponse.ts#L38-L54 type ResponseBody struct { Aggregations map[string]Aggregate `json:"aggregations,omitempty"` Clusters_ *ClusterStatistics `json:"_clusters,omitempty"` @@ -493,6 +493,13 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); err != nil { 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 7ff389a024..60f6be574d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L37-L81 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 1aafeeb532..49d8f86605 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Retention type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/_types/SnapshotLifecycle.ts#L84-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 df678b6f95..9a885acad6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RetentionLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L65-L67 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 26a2f6ee39..74e42f4eae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RetentionPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L88-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4be165e345..14c096a3bc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RetentionPolicyContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L80-L86 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bfdcc0d95b..e6d9a869f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Retries type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retries.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Retries.ts#L22-L25 type Retries struct { Bulk int64 `json:"bulk"` Search int64 `json:"search"` 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 index 6f8a9b7025..e613605178 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retrievercontainer.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retrievercontainer.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RetrieverContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retriever.ts#L26-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Retriever.ts#L26-L38 type RetrieverContainer struct { // Knn A retriever that replaces the functionality of a knn search. Knn *KnnRetriever `json:"knn,omitempty"` @@ -30,6 +30,9 @@ type RetrieverContainer struct { Rrf *RRFRetriever `json:"rrf,omitempty"` // Standard A retriever that replaces the functionality of a traditional query. Standard *StandardRetriever `json:"standard,omitempty"` + // TextSimilarityReranker A retriever that reranks the top documents based on a reranking model using + // the InferenceAPI + TextSimilarityReranker *TextSimilarityReranker `json:"text_similarity_reranker,omitempty"` } // NewRetrieverContainer returns a RetrieverContainer. 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 9dc9368746..2a3ab48cf6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ReverseNestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L493-L494 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L540-L544 type ReverseNestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *ReverseNestedAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 5149b2d6a2..587d84ad1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ReverseNestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L721-L727 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L741-L747 type ReverseNestedAggregation struct { // 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 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 59b300ed38..5d848321da 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ReverseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L307-L309 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L306-L308 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 2da4d6eb13..0d143314af 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Role type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_role/types.ts#L29-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4e29bced30..23359fc851 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RoleDescriptor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleDescriptor.ts#L28-L61 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/RoleDescriptor.ts#L31-L64 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 52b9380152..1919079217 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RoleDescriptorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleDescriptor.ts#L63-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/RoleDescriptor.ts#L66-L98 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 2e8c8a5c48..83354ff88e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RoleDescriptorWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_service_accounts/types.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e1b7b17df2..4957d8c1dc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RoleMappingRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleMappingRule.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/RoleMappingRule.ts#L22-L33 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/rolequerycontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolequerycontainer.go index 09f47183b1..56d0e19beb 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolequerycontainer.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolequerycontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RoleQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_role/types.ts#L37-L101 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_role/types.ts#L37-L101 type RoleQueryContainer struct { // Bool matches roles matching boolean combinations of other queries. Bool *BoolQuery `json:"bool,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 8423c19f38..1afe0f86a1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // RoleTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleTemplate.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bcbf5cd2b2..a4b62fde77 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // Query // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L293-L294 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L321-L322 type RoleTemplateInlineQuery any 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 50f6ecd8c8..4aa6dda74f 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,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RoleTemplateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L261-L271 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L289-L299 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 1f3f9d4128..3442c8843b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // RoleTemplateScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L273-L291 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L301-L319 type RoleTemplateScript struct { // Id The `id` for a stored script. Id *string `json:"id,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloveraction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloveraction.go index 22cb116ab2..0809ba522c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloveraction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloveraction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RolloverAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L102-L113 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L102-L113 type RolloverAction struct { MaxAge Duration `json:"max_age,omitempty"` MaxDocs *int64 `json:"max_docs,omitempty"` 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 733f5c3d6e..ab2bb61951 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/rollover/types.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/rollover/types.ts#L24-L40 type RolloverConditions struct { MaxAge Duration `json:"max_age,omitempty"` MaxAgeMillis *int64 `json:"max_age_millis,omitempty"` 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 0ac9e987cf..addc992c02 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RollupCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_caps/types.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/rollup/get_rollup_caps/types.ts#L24-L26 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 4f96583560..92d87dd276 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RollupCapabilitySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_caps/types.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/rollup/get_rollup_caps/types.ts#L28-L33 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 ee0271f50f..c08316920f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RollupFieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_caps/types.ts#L36-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/rollup/get_rollup_caps/types.ts#L35-L39 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 cd3ac70ffd..1547754d43 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RollupJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_jobs/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0de6aa9cc4..a8005dfde6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RollupJobConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_jobs/types.ts#L34-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/rollup/get_jobs/types.ts#L34-L43 type RollupJobConfiguration struct { Cron string `json:"cron"` Groups Groupings `json:"groups"` 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 712e7d2b5c..dc8331b780 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RollupJobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_jobs/types.ts#L45-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/rollup/get_jobs/types.ts#L45-L58 type RollupJobStats struct { DocumentsProcessed int64 `json:"documents_processed"` IndexFailures int64 `json:"index_failures"` 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 ad2d546770..ca6b72e98e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // RollupJobStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_jobs/types.ts#L60-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 9b362e159e..88d6184ecd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_index_caps/types.ts#L28-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ea943d2563..6b83ae1b03 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummaryField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_index_caps/types.ts#L35-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/romaniananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/romaniananalyzer.go new file mode 100644 index 0000000000..fdcd5a5940 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/romaniananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RomanianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L257-L262 +type RomanianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *RomanianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s RomanianAnalyzer) MarshalJSON() ([]byte, error) { + type innerRomanianAnalyzer RomanianAnalyzer + tmp := innerRomanianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "romanian" + + return json.Marshal(tmp) +} + +// NewRomanianAnalyzer returns a RomanianAnalyzer. +func NewRomanianAnalyzer() *RomanianAnalyzer { + r := &RomanianAnalyzer{} + + return r +} 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 4c55753ad7..ace1b9822b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RoutingField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/meta-fields.ts#L50-L52 type RoutingField struct { Required bool `json:"required"` } 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 56eca05e70..cfeca2ea72 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RrfRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Rank.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 index d8da939898..62d5b1809a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfretriever.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfretriever.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,10 +31,13 @@ import ( // RRFRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retriever.ts#L73-L80 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Retriever.ts#L75-L82 type RRFRetriever struct { // 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"` // 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"` @@ -76,6 +79,22 @@ func (s *RRFRetriever) UnmarshalJSON(data []byte) error { } } + 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 "rank_constant": var tmp any 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 04850d723f..6140fb2683 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // RuleCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Rule.ts#L52-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 8770d8bc31..2148692dca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RuleQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L381-L385 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L398-L405 type RuleQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 2d83c9334f..ecd4765d22 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // RunningStateSearchInterval type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L213-L230 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/Datafeed.ts#L216-L233 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 a2322eb02a..9942f1bfe2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,10 +33,12 @@ import ( // RuntimeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/RuntimeFields.ts#L26-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/RuntimeFields.ts#L26-L50 type RuntimeField struct { // FetchFields For type `lookup` FetchFields []RuntimeFieldFetchFields `json:"fetch_fields,omitempty"` + // Fields For type `composite` + Fields map[string]CompositeSubField `json:"fields,omitempty"` // Format A custom format for `date` type runtime fields. Format *string `json:"format,omitempty"` // InputField For type `lookup` @@ -72,6 +74,14 @@ func (s *RuntimeField) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "FetchFields", err) } + case "fields": + if s.Fields == nil { + s.Fields = make(map[string]CompositeSubField, 0) + } + if err := dec.Decode(&s.Fields); err != nil { + return fmt.Errorf("%s | %w", "Fields", err) + } + case "format": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { @@ -116,7 +126,9 @@ func (s *RuntimeField) UnmarshalJSON(data []byte) error { // NewRuntimeField returns a RuntimeField. func NewRuntimeField() *RuntimeField { - r := &RuntimeField{} + r := &RuntimeField{ + Fields: make(map[string]CompositeSubField, 0), + } return r } 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 15583b6565..fd298e4b90 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldFetchFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/RuntimeFields.ts#L50-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/RuntimeFields.ts#L56-L60 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 2f5df043f0..ddf9eb2a06 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // RuntimeFields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/RuntimeFields.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 07feb7ff06..531bc19e22 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldsType type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L279-L294 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L277-L292 type RuntimeFieldsType struct { CharsMax int64 `json:"chars_max"` CharsTotal int64 `json:"chars_total"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/russiananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/russiananalyzer.go new file mode 100644 index 0000000000..ff9356675b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/russiananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RussianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L264-L269 +type RussianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *RussianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s RussianAnalyzer) MarshalJSON() ([]byte, error) { + type innerRussianAnalyzer RussianAnalyzer + tmp := innerRussianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "russian" + + return json.Marshal(tmp) +} + +// NewRussianAnalyzer returns a RussianAnalyzer. +func NewRussianAnalyzer() *RussianAnalyzer { + r := &RussianAnalyzer{} + + return r +} 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 14ab23352d..dd08e921ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // S3Repository type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4d1554c824..5f94fd2b6c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // S3RepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L93-L102 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotRepository.ts#L93-L102 type S3RepositorySettings struct { BasePath *string `json:"base_path,omitempty"` Bucket string `json:"bucket"` 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 b84e0caf1a..e39d81551f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SampleDiversity type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/_types/ExploreControls.ts#L51-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/graph/_types/ExploreControls.ts#L51-L54 type SampleDiversity struct { Field string `json:"field"` MaxDocsPerValue int `json:"max_docs_per_value"` 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 1d4728d0b2..b653014662 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // SamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L502-L503 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L558-L559 type SamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *SamplerAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 529cf20d7c..1e1fd0c52a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L729-L735 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L771-L780 type SamplerAggregation struct { // ShardSize Limits how many top-scoring documents are collected in the sample processed // on each shard. 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 99dbe84773..3b5285baec 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -28,5 +28,5 @@ package types // bool // nil // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5bd032ffc3..4cd167892d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // ScaledFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L182-L186 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L182-L186 type ScaledFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -53,7 +53,6 @@ type ScaledFloatNumberProperty struct { Properties map[string]Property `json:"properties,omitempty"` ScalingFactor *Float64 `json:"scaling_factor,omitempty"` Script *Script `json:"script,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -876,18 +875,6 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -950,7 +937,6 @@ func (s ScaledFloatNumberProperty) MarshalJSON() ([]byte, error) { Properties: s.Properties, ScalingFactor: s.ScalingFactor, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, 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 3de2564156..98667c4fbe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ScheduleContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L80-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 32c6878db6..9510545a7a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // HourAndMinute // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L98-L103 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 130f5b6764..1062b7ce4a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ScheduleTriggerEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L93-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/schedulingconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulingconfiguration.go index 8e5d850278..0f89eee581 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulingconfiguration.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulingconfiguration.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SchedulingConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L231-L235 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L231-L235 type SchedulingConfiguration struct { AccessControl *ConnectorScheduling `json:"access_control,omitempty"` Full *ConnectorScheduling `json:"full,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 68bdcb2cc1..73b845df76 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // ScoreSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L55-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L54-L56 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 fe558b4b7d..c76768aa20 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // Script type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Scripting.ts#L73-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Scripting.ts#L73-L97 type Script struct { // Id The `id` for a stored script. Id *string `json:"id,omitempty"` 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 45dc16fed6..3535875e66 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ScriptCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L1031-L1045 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1102-L1116 type ScriptCache struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` 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 d46c31697c..868bc3762e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ScriptCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L79-L87 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Conditions.ts#L79-L87 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 c8f2974cea..9aa6a6782c 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,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ScriptedHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L768-L770 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L813-L815 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 8cc9413a99..3f3da84181 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L653-L656 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L739-L745 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 3260f47329..0a1c702e33 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L254-L280 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L263-L289 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 313f5bfd01..13fae71604 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ScriptField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Scripting.ts#L99-L102 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Scripting.ts#L99-L102 type ScriptField struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Script Script `json:"script"` 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 5d6568a3d0..807dcab2ec 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Scripting type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L977-L995 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1048-L1066 type Scripting struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` 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 8c0c1cf1aa..da6fa44a8b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ScriptProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1005-L1025 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1364-L1384 type ScriptProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 d37e63cff4..a460f232b5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ScriptQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L327-L333 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L337-L346 type ScriptQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 3f059d13a3..01a6ac7573 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,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ScriptScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L121-L126 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L137-L142 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 5c1e44aadf..80ccfc6630 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ScriptScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L335-L349 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L348-L365 type ScriptScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 8d888f7263..ca942ea5fd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -28,7 +28,7 @@ import ( // ScriptSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L73-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L72-L78 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 39451e6c1f..b142274682 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ScriptTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Transform.ts#L36-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 441481706e..d97dd0b862 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ScrollIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L56-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L56-L56 type ScrollIds []string diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshotaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshotaction.go index 2b843db7fb..e4917b21da 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshotaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshotaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshotAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L131-L134 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L131-L134 type SearchableSnapshotAction struct { ForceMergeIndex *bool `json:"force_merge_index,omitempty"` SnapshotRepository string `json:"snapshot_repository"` 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 5b8ccfde32..9fbad58d2a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshots type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L428-L432 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L426-L430 type SearchableSnapshots struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 3f20cdad5a..58d28fe921 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SearchApplication type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/_types/SearchApplication.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 85eaf56d36..6c7f6c7a9c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SearchApplicationListItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/list/SearchApplicationsListResponse.ts#L31-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 abb330bd17..e3c12e5a09 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SearchApplicationTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/_types/SearchApplication.ts#L47-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/search_application/_types/SearchApplication.ts#L47-L52 type SearchApplicationTemplate struct { // Script The associated mustache template. Script Script `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 5b9f1f6ab0..73f156c861 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // SearchAsYouTypeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L212-L222 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L212-L223 type SearchAsYouTypeProperty struct { Analyzer *string `json:"analyzer,omitempty"` CopyTo []string `json:"copy_to,omitempty"` 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 a26bdc14da..d989cd1aaf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SearchIdle type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L245-L248 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L245-L248 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 5a54db69b0..6c674bd7ec 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SearchInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L112-L116 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2123f9898b..ffb0b8e47f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SearchInputRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L147-L149 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b3c708b321..4e82fca661 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SearchInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L118-L125 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Input.ts#L118-L125 type SearchInputRequestDefinition struct { Body *SearchInputRequestBody `json:"body,omitempty"` Indices []string `json:"indices,omitempty"` 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 c921725f38..56dd3b31cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SearchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L126-L130 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L136-L140 type SearchProfile struct { Collector []Collector `json:"collector"` Query []QueryProfile `json:"query"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchshardsnodeattributes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchshardsnodeattributes.go new file mode 100644 index 0000000000..e0a6fecb17 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchshardsnodeattributes.go @@ -0,0 +1,157 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" +) + +// SearchShardsNodeAttributes type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search_shards/SearchShardsResponse.ts#L42-L60 +type SearchShardsNodeAttributes struct { + // Attributes Lists node attributes. + Attributes map[string]string `json:"attributes"` + // EphemeralId The ephemeral ID of the node. + EphemeralId string `json:"ephemeral_id"` + ExternalId string `json:"external_id"` + MaxIndexVersion int `json:"max_index_version"` + MinIndexVersion int `json:"min_index_version"` + // Name The human-readable identifier of the node. + Name string `json:"name"` + Roles []noderole.NodeRole `json:"roles"` + // TransportAddress The host and port where transport HTTP connections are accepted. + TransportAddress string `json:"transport_address"` + Version string `json:"version"` +} + +func (s *SearchShardsNodeAttributes) 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 "attributes": + if s.Attributes == nil { + s.Attributes = make(map[string]string, 0) + } + if err := dec.Decode(&s.Attributes); err != nil { + return fmt.Errorf("%s | %w", "Attributes", err) + } + + case "ephemeral_id": + if err := dec.Decode(&s.EphemeralId); err != nil { + return fmt.Errorf("%s | %w", "EphemeralId", err) + } + + case "external_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ExternalId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ExternalId = o + + case "max_index_version": + + 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", "MaxIndexVersion", err) + } + s.MaxIndexVersion = value + case float64: + f := int(v) + s.MaxIndexVersion = f + } + + case "min_index_version": + + 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", "MinIndexVersion", err) + } + s.MinIndexVersion = value + case float64: + f := int(v) + s.MinIndexVersion = f + } + + case "name": + if err := dec.Decode(&s.Name); err != nil { + return fmt.Errorf("%s | %w", "Name", err) + } + + case "roles": + if err := dec.Decode(&s.Roles); err != nil { + return fmt.Errorf("%s | %w", "Roles", err) + } + + case "transport_address": + if err := dec.Decode(&s.TransportAddress); err != nil { + return fmt.Errorf("%s | %w", "TransportAddress", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// NewSearchShardsNodeAttributes returns a SearchShardsNodeAttributes. +func NewSearchShardsNodeAttributes() *SearchShardsNodeAttributes { + r := &SearchShardsNodeAttributes{ + Attributes: make(map[string]string, 0), + } + + return r +} 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 0e6e62eaf1..b7ab9ace51 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SearchStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L252-L271 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L252-L271 type SearchStats struct { FetchCurrent int64 `json:"fetch_current"` FetchTime Duration `json:"fetch_time,omitempty"` 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 f4db97ef0a..b213fdc39d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SearchTemplateRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L128-L145 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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, 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 40472cb0c5..79b2feb01c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SearchTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Transform.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c83fc499dd..ede42d171f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Security type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L434-L447 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L432-L445 type Security struct { Anonymous FeatureToggle `json:"anonymous"` ApiKeyService FeatureToggle `json:"api_key_service"` 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 da898f7cc9..d911597e06 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SecurityRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleMapping.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/RoleMapping.ts#L25-L33 type SecurityRoleMapping struct { Enabled bool `json:"enabled"` Metadata Metadata `json:"metadata"` 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 1bc9b4d9ce..5176a9bab3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SecurityRoles type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L296-L300 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L294-L298 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 f092da7cc1..d727b722e2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SecurityRolesDls type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L308-L310 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L306-L308 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 76e86bbf0c..6d3d9074e5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesDlsBitSetCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L312-L316 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L310-L314 type SecurityRolesDlsBitSetCache struct { Count int `json:"count"` Memory ByteSize `json:"memory,omitempty"` 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 67e2468ea0..cf5acee649 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesFile type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L318-L322 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L316-L320 type SecurityRolesFile struct { Dls bool `json:"dls"` Fls bool `json:"fls"` 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 e80b2144a1..d84e22a4d0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesNative type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L300-L304 type SecurityRolesNative struct { Dls bool `json:"dls"` Fls bool `json:"fls"` 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 de64793a3c..5394f9aa5c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Segment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/segments/types.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/segments/types.ts#L28-L38 type Segment struct { Attributes map[string]string `json:"attributes"` Committed bool `json:"committed"` 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 b6720d7135..41dc7d614c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SegmentsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/segments/types.ts#L22-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 86c759ed2b..dd1a88dba7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SegmentsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L273-L366 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/selectoption.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/selectoption.go index 8444a50287..749c7d5fcb 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/selectoption.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/selectoption.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SelectOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L25-L28 type SelectOption struct { Label string `json:"label"` Value ScalarValue `json:"value"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semanticquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semanticquery.go index 6bf3ff5b2d..3a8dd25a2d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semanticquery.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semanticquery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SemanticQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/SemanticQuery.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/SemanticQuery.ts#L22-L30 type SemanticQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semantictextproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semantictextproperty.go index fbce05b8f8..08f17b0b37 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semantictextproperty.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semantictextproperty.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SemanticTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L206-L210 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L206-L210 type SemanticTextProperty struct { InferenceId string `json:"inference_id"` Meta map[string]string `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serbiananalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serbiananalyzer.go new file mode 100644 index 0000000000..22f7e54101 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serbiananalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SerbianAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L271-L276 +type SerbianAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *SerbianAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s SerbianAnalyzer) MarshalJSON() ([]byte, error) { + type innerSerbianAnalyzer SerbianAnalyzer + tmp := innerSerbianAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "serbian" + + return json.Marshal(tmp) +} + +// NewSerbianAnalyzer returns a SerbianAnalyzer. +func NewSerbianAnalyzer() *SerbianAnalyzer { + r := &SerbianAnalyzer{} + + return r +} 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 ccdc304fda..0dc440105f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SerialDifferencingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L361-L367 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L399-L408 type SerialDifferencingAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 5f7da4b814..001fb1269a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SerializedClusterState type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L232-L238 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 47962cd343..3855ec1335 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SerializedClusterStateDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L240-L246 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L240-L246 type SerializedClusterStateDetail struct { CompressedSize *string `json:"compressed_size,omitempty"` CompressedSizeInBytes *int64 `json:"compressed_size_in_bytes,omitempty"` 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 595bc46752..ab363ddb42 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ServiceToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/create_service_token/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/setpriorityaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setpriorityaction.go index 3347cca135..909656aa7d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setpriorityaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setpriorityaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SetPriorityAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L98-L100 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L98-L100 type SetPriorityAction struct { Priority *int `json:"priority,omitempty"` } 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 5cfbabc134..549fdb18bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SetProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1027-L1061 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1386-L1420 type SetProcessor struct { // CopyFrom The origin field which will be copied to `field`, cannot set `value` // simultaneously. 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 7403943ab4..f1baffa476 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SetSecurityUserProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1063-L1072 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1422-L1431 type SetSecurityUserProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 fc5a753f8a..04af128ad3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Settings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L98-L144 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 e4d554d025..6288283929 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SettingsAnalyze type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L235-L238 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L235-L238 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 05b7093f4e..688eeaee4d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SettingsHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L230-L233 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L230-L233 type SettingsHighlight struct { MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"` } 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 2da241c01b..cd6af6fd97 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SettingsQueryString type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L250-L252 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L250-L252 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 9c26ba4bb5..9d55391dfb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SettingsSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L240-L243 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L240-L243 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 ab6f18d95e..cba58e2a69 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,5 +31,5 @@ package types // SettingsSimilarityLmj // SettingsSimilarityScripted // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L171-L182 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L171-L182 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 a6b8110db5..74332d2f2d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityBm25 type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L188-L193 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L188-L193 type SettingsSimilarityBm25 struct { B *Float64 `json:"b,omitempty"` DiscountOverlaps *bool `json:"discount_overlaps,omitempty"` 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 3d1163eab9..b58a0a1566 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityBoolean type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L184-L186 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L184-L186 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 5d4d8d00b4..275b242491 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -28,7 +28,7 @@ import ( // SettingsSimilarityDfi type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L195-L198 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L195-L198 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 8b724959ef..f212c34cf0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SettingsSimilarityDfr type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L200-L205 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L200-L205 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 a86e54b9f3..75317ba51e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SettingsSimilarityIb type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L207-L212 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L207-L212 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 d7b224f3d0..d2d9f505bc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmd type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L214-L217 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L214-L217 type SettingsSimilarityLmd struct { Mu *Float64 `json:"mu,omitempty"` Type string `json:"type,omitempty"` 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 5a6d80516b..ddee9be7fd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmj type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L219-L222 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L219-L222 type SettingsSimilarityLmj struct { Lambda *Float64 `json:"lambda,omitempty"` Type string `json:"type,omitempty"` 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 baed4222e0..cf97ad3a1c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityScripted type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L224-L228 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L224-L228 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 ec2b6c4d2e..56f5645abc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L366-L379 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L383-L396 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 ba78c8aaf8..d33c9acc22 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // ShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L73-L85 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/geo.ts#L73-L85 type ShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -48,7 +48,6 @@ type ShapeProperty struct { Meta map[string]string `json:"meta,omitempty"` Orientation *geoorientation.GeoOrientation `json:"orientation,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -812,18 +811,6 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -863,7 +850,6 @@ func (s ShapeProperty) MarshalJSON() ([]byte, error) { Meta: s.Meta, Orientation: s.Orientation, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 2c99c46852..7ce51716af 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L351-L364 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L367-L381 type ShapeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 88373fb488..0eac253500 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardCommit type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L112-L117 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L112-L117 type ShardCommit struct { Generation int `json:"generation"` Id string `json:"id"` 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 28a2e1e477..7688b8bb4d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Errors.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Errors.ts#L52-L58 type ShardFailure struct { Index *string `json:"index,omitempty"` Node *string `json:"node,omitempty"` 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 5a8ef3cd59..af532ea3c2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardFileSizeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L124-L131 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L124-L131 type ShardFileSizeInfo struct { AverageSizeInBytes *int64 `json:"average_size_in_bytes,omitempty"` Count *int64 `json:"count,omitempty"` 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 bf13424fda..c4460fcdda 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,14 +33,15 @@ import ( // ShardHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/health/types.ts#L36-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/health/types.ts#L37-L45 type ShardHealthStats struct { - ActiveShards int `json:"active_shards"` - InitializingShards int `json:"initializing_shards"` - PrimaryActive bool `json:"primary_active"` - RelocatingShards int `json:"relocating_shards"` - Status healthstatus.HealthStatus `json:"status"` - UnassignedShards int `json:"unassigned_shards"` + ActiveShards int `json:"active_shards"` + InitializingShards int `json:"initializing_shards"` + PrimaryActive bool `json:"primary_active"` + RelocatingShards int `json:"relocating_shards"` + Status healthstatus.HealthStatus `json:"status"` + UnassignedPrimaryShards int `json:"unassigned_primary_shards"` + UnassignedShards int `json:"unassigned_shards"` } func (s *ShardHealthStats) UnmarshalJSON(data []byte) error { @@ -125,6 +126,22 @@ func (s *ShardHealthStats) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Status", err) } + case "unassigned_primary_shards": + + 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", "UnassignedPrimaryShards", err) + } + s.UnassignedPrimaryShards = value + case float64: + f := int(v) + s.UnassignedPrimaryShards = f + } + case "unassigned_shards": var tmp any 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 cdfc851ff4..b4b2c6c847 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L133-L138 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L133-L138 type ShardLease struct { Id string `json:"id"` RetainingSeqNo int64 `json:"retaining_seq_no"` 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 a7b4d610ee..cac5f31f44 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // ShardMigrationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 298caa96b7..3b8dccf706 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L140-L144 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L140-L144 type ShardPath struct { DataPath string `json:"data_path"` IsCustomDataPath bool `json:"is_custom_data_path"` 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 7ce03826b5..4c0180db2c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,12 +31,17 @@ import ( // ShardProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L132-L137 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/profile.ts#L142-L152 type ShardProfile struct { Aggregations []AggregationProfile `json:"aggregations"` + Cluster string `json:"cluster"` + Dfs *DfsProfile `json:"dfs,omitempty"` Fetch *FetchProfile `json:"fetch,omitempty"` Id string `json:"id"` + Index string `json:"index"` + NodeId string `json:"node_id"` Searches []SearchProfile `json:"searches"` + ShardId int64 `json:"shard_id"` } func (s *ShardProfile) UnmarshalJSON(data []byte) error { @@ -59,6 +64,23 @@ func (s *ShardProfile) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Aggregations", err) } + case "cluster": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Cluster", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Cluster = o + + case "dfs": + if err := dec.Decode(&s.Dfs); err != nil { + return fmt.Errorf("%s | %w", "Dfs", err) + } + case "fetch": if err := dec.Decode(&s.Fetch); err != nil { return fmt.Errorf("%s | %w", "Fetch", err) @@ -76,11 +98,36 @@ func (s *ShardProfile) UnmarshalJSON(data []byte) error { } s.Id = o + case "index": + if err := dec.Decode(&s.Index); err != nil { + return fmt.Errorf("%s | %w", "Index", err) + } + + case "node_id": + if err := dec.Decode(&s.NodeId); err != nil { + return fmt.Errorf("%s | %w", "NodeId", err) + } + case "searches": if err := dec.Decode(&s.Searches); err != nil { return fmt.Errorf("%s | %w", "Searches", err) } + case "shard_id": + 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", "ShardId", err) + } + s.ShardId = value + case float64: + f := int64(v) + s.ShardId = f + } + } } return nil 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 a17fb9dd12..c1ec5bf17f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardQueryCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L146-L154 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L146-L154 type ShardQueryCache struct { CacheCount int64 `json:"cache_count"` CacheSize int64 `json:"cache_size"` 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 04ac9ff3fd..4c3648a8d8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L118-L135 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/recovery/types.ts#L118-L135 type ShardRecovery struct { Id int64 `json:"id"` Index RecoveryIndexStatus `json:"index"` 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 48a65d2b48..e255a28dee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardRetentionLeases type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L156-L160 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L156-L160 type ShardRetentionLeases struct { Leases []ShardLease `json:"leases"` PrimaryTerm int64 `json:"primary_term"` 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 714adfeee0..f17ac25f73 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ShardRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L162-L167 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L162-L167 type ShardRouting struct { Node string `json:"node"` Primary bool `json:"primary"` 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 f36fc4fba7..29d6d8de2b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ShardsAvailabilityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L104-L108 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L105-L109 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 c7c87ee315..925861e1d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardsAvailabilityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L109-L120 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L110-L121 type ShardsAvailabilityIndicatorDetails struct { CreatingPrimaries int64 `json:"creating_primaries"` CreatingReplicas int64 `json:"creating_replicas"` 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 f1768a42e6..71565849fa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // ShardsCapacityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L173-L177 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L190-L194 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 0cd7b18a91..f429f85774 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ShardsCapacityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L179-L182 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L196-L199 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 bf68603599..4948daec1a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardsCapacityIndicatorTierDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L184-L187 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L201-L204 type ShardsCapacityIndicatorTierDetail struct { CurrentUsedShards *int `json:"current_used_shards,omitempty"` MaxShardsInCluster int `json:"max_shards_in_cluster"` 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 11a73dd184..956182742e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardSegmentRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/segments/types.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/segments/types.ts#L40-L44 type ShardSegmentRouting struct { Node string `json:"node"` Primary bool `json:"primary"` 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 28d60c8a55..2498506722 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardSequenceNumber type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L176-L180 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L176-L180 type ShardSequenceNumber struct { GlobalCheckpoint int64 `json:"global_checkpoint"` LocalCheckpoint int64 `json:"local_checkpoint"` 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 0e110ef4a5..fed1118548 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/shards/types.ts#L20-L421 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cat/shards/types.ts#L20-L427 type ShardsRecord struct { // BulkAvgSizeInBytes The average size in bytes of shard bulk operations. BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"` @@ -45,6 +45,8 @@ type ShardsRecord struct { BulkTotalTime *string `json:"bulk.total_time,omitempty"` // CompletionSize The size of completion. CompletionSize *string `json:"completion.size,omitempty"` + // Dataset total size of dataset (including the cache for partially mounted indices) + Dataset *string `json:"dataset,omitempty"` // Docs The number of documents in the shard. Docs *string `json:"docs,omitempty"` // FielddataEvictions The fielddata cache evictions. @@ -314,6 +316,18 @@ func (s *ShardsRecord) UnmarshalJSON(data []byte) error { } s.CompletionSize = &o + case "dataset": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Dataset", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Dataset = &o + case "docs", "d", "dc": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { 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 d10c0cdacb..b8f5730a52 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardsSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/segments/types.ts#L46-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/segments/types.ts#L46-L51 type ShardsSegment struct { NumCommittedSegments int `json:"num_committed_segments"` NumSearchSegments int `json:"num_search_segments"` 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 d6d36d8768..a6d3883139 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // ShardsStatsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d392c2d088..071d4f0e23 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardsStatsSummaryItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 type ShardsStatsSummaryItem struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` 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 bcd54407e7..7af57ba3b3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ShardStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L54-L66 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 acc10ebcda..bd942f9a9f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // ShardStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L30-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/shard_stores/types.ts#L29-L36 type ShardStore struct { Allocation shardstoreallocation.ShardStoreAllocation `json:"allocation"` AllocationId *string `json:"allocation_id,omitempty"` 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 0345a4eb30..58bbee77b0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardStoreException type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L54-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/shard_stores/types.ts#L53-L56 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 3b708dd2f3..707f5aebb4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ShardStoreIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_shards/SearchShardsResponse.ts#L33-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search_shards/SearchShardsResponse.ts#L62-L65 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 251ce86653..a739370c3a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardStoreNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L39-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/shard_stores/types.ts#L38-L45 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 73021739f8..10e66fa85d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // ShardStoreWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L59-L61 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/shard_stores/types.ts#L58-L60 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 543e256c4c..446fec1473 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShardsTotalStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L182-L184 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/stats/types.ts#L182-L184 type ShardsTotalStats struct { TotalCount int64 `json:"total_count"` } 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 5e2cd26156..afe60876cb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Shared type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 bba622295c..244bfb7ee3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SharedFileSystemRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f426156a25..2cc2ac129e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SharedFileSystemRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L104-L108 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotRepository.ts#L104-L108 type SharedFileSystemRepositorySettings struct { ChunkSize ByteSize `json:"chunk_size,omitempty"` Compress *bool `json:"compress,omitempty"` 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 aed1938eea..fa10c75885 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShingleTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L87-L95 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L86-L94 type ShingleTokenFilter struct { FillerToken *string `json:"filler_token,omitempty"` MaxShingleSize string `json:"max_shingle_size,omitempty"` 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 2e5a70b918..47d40b790d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // ShortNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L167-L170 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L167-L170 type ShortNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,6 @@ type ShortNumberProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -848,18 +847,6 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -921,7 +908,6 @@ func (s ShortNumberProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkaction.go index 459085c97d..008adede12 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ShrinkAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L120-L124 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L120-L124 type ShrinkAction struct { AllowWriteAfterShrink *bool `json:"allow_write_after_shrink,omitempty"` MaxPrimaryShardSize ByteSize `json:"max_primary_shard_size,omitempty"` 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 76ba0a0777..9aadac2f4f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SignificantLongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L592-L594 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L668-L670 type SignificantLongTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantLongTermsBucket `json:"buckets"` 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 8884bc53c3..a16d3236db 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // SignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L601-L604 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L677-L680 type SignificantLongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` @@ -547,6 +547,13 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 96e8a16816..7b5dc25f70 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SignificantStringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L606-L608 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L682-L684 type SignificantStringTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantStringTermsBucket `json:"buckets"` 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 a0b523e656..e6f1b33cf6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // SignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L610-L612 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L686-L688 type SignificantStringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` @@ -531,6 +531,13 @@ func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 ada9c28d1c..5e11a9d53e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SignificantTermsAggregateBaseSignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L585-L590 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L658-L666 type SignificantTermsAggregateBaseSignificantLongTermsBucket struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantLongTermsBucket `json:"buckets"` 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 600550f7b9..9687aaf4a4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SignificantTermsAggregateBaseSignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L585-L590 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L658-L666 type SignificantTermsAggregateBaseSignificantStringTermsBucket struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantStringTermsBucket `json:"buckets"` 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 6860067dea..5203bdd661 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SignificantTermsAggregateBaseVoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L585-L590 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L658-L666 type SignificantTermsAggregateBaseVoid struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsVoid `json:"buckets"` 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 c324bd4086..df5ca3a76c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SignificantTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L772-L836 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L817-L884 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. 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 09fc9b6a8c..d748dae0ea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SignificantTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L838-L910 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L886-L961 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. 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 8e328d3845..fdcd94f451 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SimpleAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L83-L86 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L329-L332 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 168a7c2a6d..67a63ba70c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SimpleMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L247-L250 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L273-L276 type SimpleMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplepatternsplittokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplepatternsplittokenizer.go new file mode 100644 index 0000000000..ad66c55a2b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplepatternsplittokenizer.go @@ -0,0 +1,102 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SimplePatternSplitTokenizer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L116-L119 +type SimplePatternSplitTokenizer struct { + Pattern *string `json:"pattern,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *SimplePatternSplitTokenizer) 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 "pattern": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Pattern", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Pattern = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s SimplePatternSplitTokenizer) MarshalJSON() ([]byte, error) { + type innerSimplePatternSplitTokenizer SimplePatternSplitTokenizer + tmp := innerSimplePatternSplitTokenizer{ + Pattern: s.Pattern, + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "simple_pattern_split" + + return json.Marshal(tmp) +} + +// NewSimplePatternSplitTokenizer returns a SimplePatternSplitTokenizer. +func NewSimplePatternSplitTokenizer() *SimplePatternSplitTokenizer { + r := &SimplePatternSplitTokenizer{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplepatterntokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplepatterntokenizer.go new file mode 100644 index 0000000000..2ccfbed948 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplepatterntokenizer.go @@ -0,0 +1,102 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SimplePatternTokenizer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L111-L114 +type SimplePatternTokenizer struct { + Pattern *string `json:"pattern,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *SimplePatternTokenizer) 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 "pattern": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Pattern", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Pattern = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s SimplePatternTokenizer) MarshalJSON() ([]byte, error) { + type innerSimplePatternTokenizer SimplePatternTokenizer + tmp := innerSimplePatternTokenizer{ + Pattern: s.Pattern, + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "simple_pattern" + + return json.Marshal(tmp) +} + +// NewSimplePatternTokenizer returns a SimplePatternTokenizer. +func NewSimplePatternTokenizer() *SimplePatternTokenizer { + r := &SimplePatternTokenizer{} + + return r +} 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 0b43d778e6..04a0c2d408 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SimpleQueryStringFlags type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L702-L706 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L723-L727 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 3d1b45049a..a44c309daa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SimpleQueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L765-L830 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/fulltext.ts#L786-L854 type SimpleQueryStringQuery struct { // AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string. AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"` 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 f6be1a8bfd..4aa5c2c196 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SimpleValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L224-L225 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L238-L239 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 2ac2c53b18..a8facf33fc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SimulatedActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L96-L100 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L90-L94 type SimulatedActions struct { Actions []string `json:"actions"` All *SimulatedActions `json:"all,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulatedocumentresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulatedocumentresult.go new file mode 100644 index 0000000000..1ca8163f48 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulatedocumentresult.go @@ -0,0 +1,37 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// SimulateDocumentResult type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/simulate/types.ts#L46-L50 +type SimulateDocumentResult struct { + Doc *DocumentSimulation `json:"doc,omitempty"` + Error *ErrorCause `json:"error,omitempty"` + ProcessorResults []PipelineSimulation `json:"processor_results,omitempty"` +} + +// NewSimulateDocumentResult returns a SimulateDocumentResult. +func NewSimulateDocumentResult() *SimulateDocumentResult { + r := &SimulateDocumentResult{} + + return r +} 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 2e04d0692d..a5019086ba 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,9 +30,10 @@ import ( // SimulateIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/types.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/simulate/types.ts#L29-L37 type SimulateIngest struct { Pipeline *string `json:"pipeline,omitempty"` + Redact_ *Redact `json:"_redact,omitempty"` Timestamp DateTime `json:"timestamp"` } @@ -56,6 +57,11 @@ func (s *SimulateIngest) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Pipeline", err) } + case "_redact": + if err := dec.Decode(&s.Redact_); err != nil { + return fmt.Errorf("%s | %w", "Redact_", err) + } + case "timestamp": if err := dec.Decode(&s.Timestamp); err != nil { return fmt.Errorf("%s | %w", "Timestamp", err) 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 39a85d3ae9..a0e38d00fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SizeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/meta-fields.ts#L54-L56 type SizeField struct { Enabled bool `json:"enabled"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizehttphistogram.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizehttphistogram.go new file mode 100644 index 0000000000..d7a8b4eb89 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizehttphistogram.go @@ -0,0 +1,111 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SizeHttpHistogram type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L714-L718 +type SizeHttpHistogram struct { + Count int64 `json:"count"` + GeBytes *int64 `json:"ge_bytes,omitempty"` + LtBytes *int64 `json:"lt_bytes,omitempty"` +} + +func (s *SizeHttpHistogram) 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 "count": + 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", "Count", err) + } + s.Count = value + case float64: + f := int64(v) + s.Count = f + } + + case "ge_bytes": + 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", "GeBytes", err) + } + s.GeBytes = &value + case float64: + f := int64(v) + s.GeBytes = &f + } + + case "lt_bytes": + 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", "LtBytes", err) + } + s.LtBytes = &value + case float64: + f := int64(v) + s.LtBytes = &f + } + + } + } + return nil +} + +// NewSizeHttpHistogram returns a SizeHttpHistogram. +func NewSizeHttpHistogram() *SizeHttpHistogram { + r := &SizeHttpHistogram{} + + return r +} 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 a3c9688c71..13348055e4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlackAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L91-L94 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7a6c96ba76..81c667cd2c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlackAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L101-L117 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e73527b8c7..fb73a7a35c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlackAttachmentField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L119-L123 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Actions.ts#L119-L123 type SlackAttachmentField struct { Int bool `json:"short"` Title string `json:"title"` 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 94303f51ef..f17a983db1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlackDynamicAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L125-L128 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d5ea427946..9f50a37f0f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlackMessage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L130-L137 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6791162835..b154b42510 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlackResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L96-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ab56c176a6..4a088231ce 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlicedScroll type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/SlicedScroll.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/SlicedScroll.ts#L23-L27 type SlicedScroll struct { Field *string `json:"field,omitempty"` Id string `json:"id"` 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 0d694733f6..889dff5f0b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int // slicescalculation.SlicesCalculation // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L364-L369 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L365-L370 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 2920d4126d..947ffd4793 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Slm type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L449-L452 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L447-L450 type Slm struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 6304146ff2..2d022cbe69 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L157-L161 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L174-L178 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 bb8058ae04..59edb977ed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L162-L166 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L179-L183 type SlmIndicatorDetails struct { Policies int64 `json:"policies"` SlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"slm_status"` 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 1bc36a1e2a..fabe6ebc76 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlmIndicatorUnhealthyPolicies type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L168-L171 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L185-L188 type SlmIndicatorUnhealthyPolicies struct { Count int64 `json:"count"` InvocationsSinceLastSuccess map[string]int64 `json:"invocations_since_last_success,omitempty"` 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 92f18cd304..37003c5195 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SLMPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/_types/SnapshotLifecycle.ts#L76-L82 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fff99fd200..3b31306a78 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L490-L495 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L490-L495 type SlowlogSettings struct { Level *string `json:"level,omitempty"` Reformat *bool `json:"reformat,omitempty"` 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 0f0aafe959..24cb8f5fae 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SlowlogTresholdLevels type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L502-L507 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L502-L507 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 793e8cebbe..ebdea663c4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L497-L500 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L497-L500 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 8bc6779c4e..e3c5c5c7ea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SmoothingModelContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L445-L461 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L445-L461 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 e2c15e9842..ed9f8c304c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SnapshotIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6d5852e4f5..2732ea52bc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SnapshotInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 type SnapshotInfo struct { DataStreams []string `json:"data_streams"` Duration Duration `json:"duration,omitempty"` 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 db684a59a6..a8235b3458 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SnapshotLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/_types/SnapshotLifecycle.ts#L38-L49 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 947e8bb8e2..47e1ebd853 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SnapshotResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/get/SnapshotGetResponse.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7841c8db15..7bbd3b3ebb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SnapshotRestore type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/restore/SnapshotRestoreResponse.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/restore/SnapshotRestoreResponse.ts#L30-L34 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 dce5dd77c7..35fa239b6c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,13 +31,14 @@ import ( // SnapshotShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L29 type SnapshotShardFailure struct { - Index string `json:"index"` - NodeId *string `json:"node_id,omitempty"` - Reason string `json:"reason"` - ShardId string `json:"shard_id"` - Status string `json:"status"` + Index string `json:"index"` + IndexUuid string `json:"index_uuid"` + NodeId *string `json:"node_id,omitempty"` + Reason string `json:"reason"` + ShardId string `json:"shard_id"` + Status string `json:"status"` } func (s *SnapshotShardFailure) UnmarshalJSON(data []byte) error { @@ -60,6 +61,11 @@ func (s *SnapshotShardFailure) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Index", err) } + case "index_uuid": + if err := dec.Decode(&s.IndexUuid); err != nil { + return fmt.Errorf("%s | %w", "IndexUuid", err) + } + case "node_id": if err := dec.Decode(&s.NodeId); err != nil { return fmt.Errorf("%s | %w", "NodeId", err) 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 81440280e8..5319bfa2ca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SnapshotShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L29 type SnapshotShardsStats struct { Done int64 `json:"done"` Failed int64 `json:"failed"` 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 c5a792a279..16c27942dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // SnapshotShardsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 65f439e498..5e84c53ae3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SnapshotsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/snapshots/types.ts#L24-L96 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 520e41b1ff..599364b06a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotStats.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1e938b5927..475fa5eaea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // SnowballAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L88-L93 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L334-L339 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 2859018445..bad447ceb2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // SnowballTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L311-L314 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L310-L313 type SnowballTokenFilter struct { Language *snowballlanguage.SnowballLanguage `json:"language,omitempty"` 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 4f109f0f2b..d6304fd6bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SoftDeletes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L50-L63 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/soranianalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/soranianalyzer.go new file mode 100644 index 0000000000..f288a45044 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/soranianalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SoraniAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L278-L283 +type SoraniAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *SoraniAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s SoraniAnalyzer) MarshalJSON() ([]byte, error) { + type innerSoraniAnalyzer SoraniAnalyzer + tmp := innerSoraniAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "sorani" + + return json.Marshal(tmp) +} + +// NewSoraniAnalyzer returns a SoraniAnalyzer. +func NewSoraniAnalyzer() *SoraniAnalyzer { + r := &SoraniAnalyzer{} + + return r +} 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 acf7e59d70..156c0605d4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Sort type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L105-L105 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L104-L104 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 0791852c87..c00b1935f3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // SortOptions // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L99-L103 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L98-L102 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 a831840012..af69175d3b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -27,7 +27,7 @@ import ( // SortOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L87-L97 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/sort.ts#L86-L96 type SortOptions struct { Doc_ *ScoreSort `json:"_doc,omitempty"` GeoDistance_ *GeoDistanceSort `json:"_geo_distance,omitempty"` 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 6fbabb8276..3394451e68 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SortProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1079-L1095 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1438-L1454 type SortProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 2a83e6243a..d65856aacc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // bool // SourceFilter // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/SourceFilter.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2231bae8d8..1b01397b00 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // bool // []string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/SourceFilter.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7d06d85b73..6f023d9947 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SourceField type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L58-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/meta-fields.ts#L58-L65 type SourceField struct { Compress *bool `json:"compress,omitempty"` CompressThreshold *string `json:"compress_threshold,omitempty"` 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 a1bd28e3a7..7c002f735c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SourceFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/SourceFilter.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 615f1a1759..3b9fe1845c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SourceOnlyRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L65-L68 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a4898b33e2..eae0d5bf1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SourceOnlyRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotRepository.ts#L117-L124 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotRepository.ts#L117-L124 type SourceOnlyRepositorySettings struct { ChunkSize ByteSize `json:"chunk_size,omitempty"` Compress *bool `json:"compress,omitempty"` 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 7544248168..d5e634cbc7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanContainingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L25-L36 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L25-L39 type SpanContainingQuery struct { // Big Can be any span query. // Matching spans from `big` that contain matches from `little` are returned. 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 f90a997bad..e729e58c1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanFieldMaskingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L38-L41 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L41-L47 type SpanFieldMaskingQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 822fb8dc40..b12f700638 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanFirstQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L43-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L49-L61 type SpanFirstQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 3588cc0ba8..cf18e52cdf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SpanGapQuery type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L63-L65 type SpanGapQuery map[string]int diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanishanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanishanalyzer.go new file mode 100644 index 0000000000..238df34297 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanishanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SpanishAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L285-L290 +type SpanishAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *SpanishAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s SpanishAnalyzer) MarshalJSON() ([]byte, error) { + type innerSpanishAnalyzer SpanishAnalyzer + tmp := innerSpanishAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "spanish" + + return json.Marshal(tmp) +} + +// NewSpanishAnalyzer returns a SpanishAnalyzer. +func NewSpanishAnalyzer() *SpanishAnalyzer { + r := &SpanishAnalyzer{} + + return r +} 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 9ec9fc2c82..dd0acea138 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanMultiTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L58-L63 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L67-L75 type SpanMultiTermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 f24770f832..b186a39049 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanNearQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L65-L78 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L77-L93 type SpanNearQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 4236e97b30..7166123c78 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanNotQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L80-L104 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L95-L122 type SpanNotQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 ceda221185..973b300aee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanOrQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L106-L111 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L124-L132 type SpanOrQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 b52b4a8326..3f809c6d75 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SpanQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L131-L173 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L158-L200 type SpanQuery struct { // SpanContaining Accepts a list of span queries, but only returns those spans which also match // a second span query. 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 ab4797619d..f0c3b61095 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L113-L116 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L134-L140 type SpanTermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 669725aced..1621ed05d0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SpanWithinQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L118-L129 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/span.ts#L142-L156 type SpanWithinQuery struct { // Big Can be any span query. // Matching spans from `little` that are enclosed within `big` are returned. 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 f848792d82..771cf2ec95 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SparseEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Results.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Results.ts#L36-L38 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 8e8ef8af4a..ffc58e2db1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SparseVector type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Results.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Results.ts#L24-L28 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 1c18360b4a..ac9dbe62cd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SparseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L202-L204 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L202-L204 type SparseVectorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorquery.go index d3824856e5..7e1108d27b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorquery.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorquery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SparseVectorQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L80 type SparseVectorQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 ee8774c41f..0434e6169e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SplitProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1097-L1122 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1456-L1481 type SplitProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 af6f3dcb9a..9d2d10ccce 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Sql type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L386-L389 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L384-L387 type Sql struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 2a7554f623..0b75dbbb34 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Ssl type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L391-L394 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L389-L392 type Ssl struct { Http FeatureToggle `json:"http"` Transport FeatureToggle `json:"transport"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stagnatingbackingindices.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stagnatingbackingindices.go new file mode 100644 index 0000000000..206511ba70 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stagnatingbackingindices.go @@ -0,0 +1,102 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// StagnatingBackingIndices type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/health_report/types.ts#L157-L161 +type StagnatingBackingIndices struct { + FirstOccurrenceTimestamp int64 `json:"first_occurrence_timestamp"` + IndexName string `json:"index_name"` + RetryCount int `json:"retry_count"` +} + +func (s *StagnatingBackingIndices) 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 "first_occurrence_timestamp": + 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", "FirstOccurrenceTimestamp", err) + } + s.FirstOccurrenceTimestamp = value + case float64: + f := int64(v) + s.FirstOccurrenceTimestamp = f + } + + case "index_name": + if err := dec.Decode(&s.IndexName); err != nil { + return fmt.Errorf("%s | %w", "IndexName", err) + } + + case "retry_count": + + 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", "RetryCount", err) + } + s.RetryCount = value + case float64: + f := int(v) + s.RetryCount = f + } + + } + } + return nil +} + +// NewStagnatingBackingIndices returns a StagnatingBackingIndices. +func NewStagnatingBackingIndices() *StagnatingBackingIndices { + r := &StagnatingBackingIndices{} + + return r +} 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 bf013cb064..f8d6663c2f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StandardAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L95-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L341-L345 type StandardAnalyzer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Stopwords []string `json:"stopwords,omitempty"` 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 2f28851358..c1e8220034 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // StandardDeviationBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L260-L267 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L281-L288 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 c6d1bd36f0..5fdb6713ef 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StandardDeviationBoundsAsString type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L269-L276 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L290-L297 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 index 4abe6eef27..7904c7075d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardretriever.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardretriever.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StandardRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retriever.ts#L43-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Retriever.ts#L47-L58 type StandardRetriever struct { // Collapse Collapses the top documents by a specified key into a single top document per // key. 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 e11ddfb69b..45df18a075 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StandardTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L105-L108 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L121-L124 type StandardTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` 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 1cf36bdb05..e6dd555a7d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Statistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/slm/_types/SnapshotLifecycle.ts#L51-L74 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/slm/_types/SnapshotLifecycle.ts#L51-L74 type Statistics struct { Policy *string `json:"policy,omitempty"` RetentionDeletionTime Duration `json:"retention_deletion_time,omitempty"` 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 267be49526..9cdf695d30 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // Stats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L30-L114 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L30-L114 type Stats struct { // AdaptiveSelection Statistics about adaptive replica selection. AdaptiveSelection map[string]AdaptiveSelection `json:"adaptive_selection,omitempty"` 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 1697f28716..900e928653 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L240-L255 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L257-L273 type StatsAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` 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 70681c6ede..f7afb30a68 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L282-L282 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L291-L291 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 e926493411..2690839ccb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L257-L258 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L275-L279 type StatsBucketAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` 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 c7a80d3ebe..12064c01e5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // StatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L369-L369 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L410-L410 type StatsBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 079858b1f5..2388248002 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Status type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotStatus.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/snapshot/_types/SnapshotStatus.ts#L26-L35 type Status struct { IncludeGlobalState bool `json:"include_global_state"` Indices map[string]SnapshotIndexStats `json:"indices"` 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 f96be661b2..897907723b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StemmerOverrideTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L316-L320 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L315-L319 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 8519462e74..6c664ed9a6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L322-L326 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L321-L325 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 71c6c81c4f..2c684944f0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,11 +31,11 @@ import ( // StepKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/move_to_step/types.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/move_to_step/types.ts#L20-L25 type StepKey struct { - Action string `json:"action"` - Name string `json:"name"` - Phase string `json:"phase"` + Action *string `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Phase string `json:"phase"` } func (s *StepKey) UnmarshalJSON(data []byte) error { @@ -63,7 +63,7 @@ func (s *StepKey) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Action = o + s.Action = &o case "name": var tmp json.RawMessage @@ -75,7 +75,7 @@ func (s *StepKey) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Name = o + s.Name = &o case "phase": var tmp json.RawMessage 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 9c02eb59df..36c316d71c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StopAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L347-L352 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 12480c374a..11edbd18af 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StopTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L97-L103 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L96-L102 type StopTokenFilter struct { IgnoreCase *bool `json:"ignore_case,omitempty"` RemoveTrailing *bool `json:"remove_trailing,omitempty"` 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 ae18919566..2975fbb992 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // StopWords type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/StopWords.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 740d894024..4694ba86a7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // Storage type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L509-L518 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L509-L518 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. 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 f32738e580..23caa0a5cc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // StoredScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Scripting.ts#L47-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/storestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storestats.go index 7f900c9660..a76de3c8dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StoreStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L368-L395 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 3fe9fd0991..ee8d4d2db1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // bool // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_spec_utils/Stringified.ts#L20-L27 type Stringifiedboolean any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifieddouble.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifieddouble.go new file mode 100644 index 0000000000..a062789b00 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifieddouble.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. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// Stringifieddouble holds the union for the following types: +// +// Float64 +// string +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_spec_utils/Stringified.ts#L20-L27 +type Stringifieddouble 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 7096b90829..0d902eb618 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f28f36d7b8..883a3fe36d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d87e38ddef..8ddca38db0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b856fe4931..6d491ed450 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e4232d4ecc..13ccf876aa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // StringRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L445-L449 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L483-L487 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 98b22c22a3..e2d24ce9c4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // StringRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L451-L453 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L489-L491 type StringRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -498,6 +498,13 @@ func (s *StringRareTermsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 d8fa4516ac..6b172159e6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StringStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L700-L711 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L793-L804 type StringStatsAggregate struct { AvgLength *Float64 `json:"avg_length,omitempty"` AvgLengthAsString *string `json:"avg_length_as_string,omitempty"` 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 0e46ba6376..779213f274 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StringStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L284-L290 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L293-L299 type StringStatsAggregation 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/stringtermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsaggregate.go index 8caf2ddb2f..f8c832af2d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L386-L391 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L424-L429 type StringTermsAggregate struct { Buckets BucketsStringTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 84019d1c23..a2b5204aa6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // StringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L397-L399 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L435-L437 type StringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -507,6 +507,13 @@ func (s *StringTermsBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 cbeb99d064..367fcc6453 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // StupidBackoffSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L463-L468 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L463-L468 type StupidBackoffSmoothingModel struct { // Discount A constant factor that the lower order n-gram model is discounted by. Discount Float64 `json:"discount"` 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 676d0c9308..7f76682d9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ package types // PhraseSuggest // TermSuggest // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c91ce595c5..21f055c69e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SuggestContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6adfd6a14a..7e16061a6f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Suggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L101-L107 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L101-L107 type Suggester struct { Suggesters map[string]FieldSuggester `json:"-"` // Text Global suggest text, to avoid repetition when the same text is used in 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 bc12f785f3..5fd39bab7f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SuggestFuzziness type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L196-L224 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L196-L224 type SuggestFuzziness struct { // Fuzziness The fuzziness factor. Fuzziness Fuzziness `json:"fuzziness,omitempty"` 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 aa77e681cb..1bda56d95e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SumAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L203-L207 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L211-L216 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 2b4a738a91..88cdf760fb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L292-L292 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L301-L301 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 c8082c9a80..3032bf7eac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SumBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L371-L371 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/pipeline.ts#L412-L415 type SumBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 d49857e25c..852b717c28 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // Summary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/_types/Policy.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/swedishanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/swedishanalyzer.go new file mode 100644 index 0000000000..cf22fb10df --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/swedishanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SwedishAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L292-L297 +type SwedishAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *SwedishAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s SwedishAnalyzer) MarshalJSON() ([]byte, error) { + type innerSwedishAnalyzer SwedishAnalyzer + tmp := innerSwedishAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "swedish" + + return json.Marshal(tmp) +} + +// NewSwedishAnalyzer returns a SwedishAnalyzer. +func NewSwedishAnalyzer() *SwedishAnalyzer { + r := &SwedishAnalyzer{} + + return r +} 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 8fdc7e9f21..024484ef11 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SyncContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L169-L175 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/syncjobconnectorreference.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncjobconnectorreference.go index 8d4d329b0b..fed4e2880a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncjobconnectorreference.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncjobconnectorreference.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SyncJobConnectorReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/SyncJob.ts#L31-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/SyncJob.ts#L31-L40 type SyncJobConnectorReference struct { Configuration ConnectorConfiguration `json:"configuration"` Filtering FilteringRules `json:"filtering"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncrulesfeature.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncrulesfeature.go index 93656a7b65..4bef356fc9 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncrulesfeature.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncrulesfeature.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // SyncRulesFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L219-L222 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L219-L222 type SyncRulesFeature struct { Advanced *FeatureEnabled `json:"advanced,omitempty"` Basic *FeatureEnabled `json:"basic,omitempty"` 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 313c1c080f..017f9f08f7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SynonymGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L110-L120 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L109-L119 type SynonymGraphTokenFilter struct { Expand *bool `json:"expand,omitempty"` Format *synonymformat.SynonymFormat `json:"format,omitempty"` 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 97683a9ac3..1d54a2dd43 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SynonymRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/_types/SynonymRule.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 84d9725320..d3cc775d44 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // SynonymRuleRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/_types/SynonymRule.ts#L38-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1e178bbc5a..7f44b37ace 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // SynonymsSetItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L30-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 cb1c62cbdb..bcd5c5f6bf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // SynonymsUpdateResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/_types/SynonymsUpdateResult.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 e7ce3b004e..021cbea57e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // SynonymTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L122-L132 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L121-L131 type SynonymTokenFilter struct { Expand *bool `json:"expand,omitempty"` Format *synonymformat.SynonymFormat `json:"format,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevaluescontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevaluescontainer.go new file mode 100644 index 0000000000..a8857be452 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevaluescontainer.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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// TableValuesContainer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/esql/_types/TableValuesContainer.ts#L22-L28 +type TableValuesContainer struct { + Float64 [][]Float64 `json:"double,omitempty"` + Int [][]int `json:"integer,omitempty"` + Int64 [][]int64 `json:"long,omitempty"` + Keyword [][]string `json:"keyword,omitempty"` +} + +// NewTableValuesContainer returns a TableValuesContainer. +func NewTableValuesContainer() *TableValuesContainer { + r := &TableValuesContainer{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevaluesintegervalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevaluesintegervalue.go new file mode 100644 index 0000000000..3e66077b50 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevaluesintegervalue.go @@ -0,0 +1,26 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// TableValuesIntegerValue type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/esql/_types/TableValuesContainer.ts#L30-L30 +type TableValuesIntegerValue []int diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueskeywordvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueskeywordvalue.go new file mode 100644 index 0000000000..24dcb59f41 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueskeywordvalue.go @@ -0,0 +1,26 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// TableValuesKeywordValue type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/esql/_types/TableValuesContainer.ts#L31-L31 +type TableValuesKeywordValue []string diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueslongdouble.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueslongdouble.go new file mode 100644 index 0000000000..41847d9de6 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueslongdouble.go @@ -0,0 +1,26 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// TableValuesLongDouble type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/esql/_types/TableValuesContainer.ts#L33-L33 +type TableValuesLongDouble []Float64 diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueslongvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueslongvalue.go new file mode 100644 index 0000000000..80513af0c5 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tablevalueslongvalue.go @@ -0,0 +1,26 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +// TableValuesLongValue type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/esql/_types/TableValuesContainer.ts#L32-L32 +type TableValuesLongValue []int64 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 4dc345dcf9..6c8e81787a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TargetMeanEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L49-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_trained_model/types.ts#L49-L54 type TargetMeanEncodingPreprocessor struct { DefaultValue Float64 `json:"default_value"` FeatureName string `json:"feature_name"` 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 8689730b16..d6bd70a57c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TaskFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Errors.ts#L68-L73 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Errors.ts#L68-L73 type TaskFailure struct { NodeId string `json:"node_id"` Reason ErrorCause `json:"reason"` 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 4441552b5b..da950678d0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L132-L132 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L133-L133 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 998ac45a73..7c5fd6d4c1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/tasks/_types/TaskInfo.ts#L32-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/tasks/_types/TaskInfo.ts#L32-L47 type TaskInfo struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` 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 7f7df8d179..047c80f9fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // []TaskInfo // map[string]ParentTaskInfo // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/tasks/_types/TaskListResponseBase.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 297af432cb..41e2ec7e2b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/tasks/types.ts#L22-L101 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 49ea6186e8..d4c05db25c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TDigest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L223-L228 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L232-L237 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 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 88762aa43f..1f253b8918 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L175-L176 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L177-L178 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 4ba6c994e1..37282d942b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L172-L173 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L174-L175 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 90a87c062b..2bf2a578c2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // Template type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0255ee8b0f..66519ae1a4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TemplateConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch_template/types.ts#L28-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 d15ebab0b6..86c5204af2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/TemplateMapping.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/TemplateMapping.ts#L27-L34 type TemplateMapping struct { Aliases map[string]Alias `json:"aliases"` IndexPatterns []string `json:"index_patterns"` 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 0d8d7e8e1b..b693acdaba 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TemplatesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/templates/types.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 11a9c17d38..87c9aefb1d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Term type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/termvectors/types.ts#L34-L40 type Term struct { DocFreq *int `json:"doc_freq,omitempty"` Score *Float64 `json:"score,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/terminateprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/terminateprocessor.go new file mode 100644 index 0000000000..6bed3cbc56 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/terminateprocessor.go @@ -0,0 +1,130 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// TerminateProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1483-L1483 +type TerminateProcessor struct { + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` +} + +func (s *TerminateProcessor) 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 "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + case "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + } + } + return nil +} + +// NewTerminateProcessor returns a TerminateProcessor. +func NewTerminateProcessor() *TerminateProcessor { + r := &TerminateProcessor{} + + return r +} 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 4261bd5551..37f5f78298 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L219-L233 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L238-L255 type TermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termrangequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termrangequery.go index 57d6f91de2..98f1ed9f06 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termrangequery.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termrangequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // TermRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L159-L159 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L174-L174 type TermRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 e4c95612e6..9014926a32 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseDoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L417-L422 type TermsAggregateBaseDoubleTermsBucket struct { Buckets BucketsDoubleTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 205f2f98c8..70c8122f81 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L417-L422 type TermsAggregateBaseLongTermsBucket struct { Buckets BucketsLongTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 a09446fe25..23726bbce8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseMultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L417-L422 type TermsAggregateBaseMultiTermsBucket struct { Buckets BucketsMultiTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 f4997a48e7..96a0cdd497 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L417-L422 type TermsAggregateBaseStringTermsBucket struct { Buckets BucketsStringTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 265b49b9ff..6242cbed6d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseVoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L417-L422 type TermsAggregateBaseVoid struct { Buckets BucketsVoid `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 4b8535f33d..ec21882fd9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -36,7 +36,7 @@ import ( // TermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L912-L977 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L963-L1031 type TermsAggregation struct { // CollectMode Determines how child aggregations should be calculated: breadth-first or // depth-first. 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 8919ea22a4..8c15c900d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TermsExclude type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1008-L1009 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1077-L1078 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 215d9eb21e..7b3d100e46 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TermsGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/_types/Groupings.ts#L75-L82 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 bdbbe844c4..51108023f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,5 +26,5 @@ package types // []string // TermsPartition // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1005-L1006 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1074-L1075 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 f6b6adc166..c4c091f61d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TermsLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L247-L252 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L270-L275 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 faecd6d60e..f7deacf447 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermsPartition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1011-L1020 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1080-L1089 type TermsPartition struct { // NumPartitions The number of partitions. NumPartitions int64 `json:"num_partitions"` 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 485fa1858b..64ef6b0fed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L235-L240 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L257-L263 type TermsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 97c8882e5b..ebaf148744 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // []FieldValue // TermsLookup // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L242-L245 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L265-L268 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 0393324973..3ac750a65c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermsSetQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L254-L267 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L277-L299 type TermsSetQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -39,6 +39,9 @@ type TermsSetQuery struct { // 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"` + // MinimumShouldMatch Specification describing number of matching terms required to return a + // document. + MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"` // MinimumShouldMatchField Numeric field containing the number of matching terms required to return a // document. MinimumShouldMatchField *string `json:"minimum_should_match_field,omitempty"` @@ -81,6 +84,11 @@ func (s *TermsSetQuery) UnmarshalJSON(data []byte) error { s.Boost = &f } + case "minimum_should_match": + if err := dec.Decode(&s.MinimumShouldMatch); err != nil { + return fmt.Errorf("%s | %w", "MinimumShouldMatch", err) + } + case "minimum_should_match_field": if err := dec.Decode(&s.MinimumShouldMatchField); err != nil { return fmt.Errorf("%s | %w", "MinimumShouldMatchField", err) 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 f9c18d67fa..1224e76edf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L64-L69 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L64-L69 type TermSuggest struct { Length int `json:"length"` Offset int `json:"offset"` 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 b0b357329d..c4e219ea37 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // TermSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L506-L568 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L506-L568 type TermSuggester struct { // Analyzer The analyzer to analyze the suggest text with. // Defaults to the search analyzer of the suggest field. 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 6abb1d8abc..d5458e8ad8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/suggester.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/suggester.ts#L93-L99 type TermSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Freq int64 `json:"freq"` 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 1bcf73d362..f83dc5e034 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TermVector type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/termvectors/types.ts#L23-L26 type TermVector struct { FieldStatistics *FieldStatistics `json:"field_statistics,omitempty"` 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 58eea55454..4391d9e90b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermVectorsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/types.ts#L49-L86 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/termvectors/types.ts#L49-L86 type TermVectorsFilter struct { // MaxDocFreq Ignore words which occur in more than this many docs. // Defaults to unbounded. 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 ce2320491c..21444c91ed 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermVectorsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mtermvectors/types.ts#L96-L104 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/mtermvectors/types.ts#L96-L104 type TermVectorsResult struct { Error *ErrorCause `json:"error,omitempty"` Found *bool `json:"found,omitempty"` 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 3940dbd1d1..88f2f4198c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TermVectorsToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/types.ts#L42-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/termvectors/types.ts#L42-L47 type TermVectorsToken struct { EndOffset *int `json:"end_offset,omitempty"` Payload *string `json:"payload,omitempty"` 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 24ae6c6e8a..ae52ebd8d9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TestPopulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L310-L320 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L319-L329 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 18bc56b6a8..b1441f0876 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L189-L199 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 ecfe67dfbd..e93ce1e16f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L363-L372 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 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 be93da0e98..5c576265a7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextEmbedding type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Knn.ts#L74-L77 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Knn.ts#L79-L82 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 d65e398e5a..99e6bc321d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingByteResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Results.ts#L46-L51 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Results.ts#L46-L51 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 8920dee1f1..efa4f21f7c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L237-L245 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 50273cee24..36bb02a995 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L392-L396 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7201485af8..9992711fc6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Results.ts#L53-L58 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/inference/_types/Results.ts#L53-L58 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 18b528f5a1..bce650781c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L247-L253 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 868dec4e88..1446141d6b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L398-L402 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2a05990609..22f67b05cf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextExpansionQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L36 type TextExpansionQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 84f551cb39..aa68acc8e0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TextIndexPrefixes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L264-L267 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L265-L268 type TextIndexPrefixes struct { MaxChars int `json:"max_chars"` MinChars int `json:"min_chars"` 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 0a97816c35..ad7b274f8c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // TextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L269-L285 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L270-L287 type TextProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textsimilarityreranker.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textsimilarityreranker.go new file mode 100644 index 0000000000..43fa646e5d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textsimilarityreranker.go @@ -0,0 +1,170 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// TextSimilarityReranker type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Retriever.ts#L84-L95 +type TextSimilarityReranker struct { + // Field The document field to be used for text similarity comparisons. This field + // should contain the text that will be evaluated against the inference_text + Field *string `json:"field,omitempty"` + // Filter Query to filter the documents that can match. + Filter []Query `json:"filter,omitempty"` + // InferenceId Unique identifier of the inference endpoint created using the inference API. + InferenceId *string `json:"inference_id,omitempty"` + // InferenceText The text snippet used as the basis for similarity comparison + InferenceText *string `json:"inference_text,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"` + // RankWindowSize This value determines how many documents we will consider from the nested + // retriever. + RankWindowSize *int `json:"rank_window_size,omitempty"` + // Retriever The nested retriever which will produce the first-level results, that will + // later be used for reranking. + Retriever *RetrieverContainer `json:"retriever,omitempty"` +} + +func (s *TextSimilarityReranker) 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 "inference_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "InferenceId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.InferenceId = &o + + case "inference_text": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "InferenceText", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.InferenceText = &o + + 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 "rank_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", "RankWindowSize", err) + } + s.RankWindowSize = &value + case float64: + f := int(v) + s.RankWindowSize = &f + } + + case "retriever": + if err := dec.Decode(&s.Retriever); err != nil { + return fmt.Errorf("%s | %w", "Retriever", err) + } + + } + } + return nil +} + +// NewTextSimilarityReranker returns a TextSimilarityReranker. +func NewTextSimilarityReranker() *TextSimilarityReranker { + r := &TextSimilarityReranker{} + + return r +} 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 fe53ecf7e6..cb0bffefa5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TextToAnalyze type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/types.ts#L69-L69 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/analyze/types.ts#L69-L69 type TextToAnalyze []string diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/thaianalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/thaianalyzer.go new file mode 100644 index 0000000000..916bb45824 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/thaianalyzer.go @@ -0,0 +1,113 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ThaiAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L306-L310 +type ThaiAnalyzer struct { + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *ThaiAnalyzer) 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 "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ThaiAnalyzer) MarshalJSON() ([]byte, error) { + type innerThaiAnalyzer ThaiAnalyzer + tmp := innerThaiAnalyzer{ + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "thai" + + return json.Marshal(tmp) +} + +// NewThaiAnalyzer returns a ThaiAnalyzer. +func NewThaiAnalyzer() *ThaiAnalyzer { + r := &ThaiAnalyzer{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/thaitokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/thaitokenizer.go new file mode 100644 index 0000000000..099d9ff1f4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/thaitokenizer.go @@ -0,0 +1,87 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// ThaiTokenizer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L126-L128 +type ThaiTokenizer struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *ThaiTokenizer) 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 "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ThaiTokenizer) MarshalJSON() ([]byte, error) { + type innerThaiTokenizer ThaiTokenizer + tmp := innerThaiTokenizer{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "thai" + + return json.Marshal(tmp) +} + +// NewThaiTokenizer returns a ThaiTokenizer. +func NewThaiTokenizer() *ThaiTokenizer { + r := &ThaiTokenizer{} + + return r +} 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 3fbc820dbd..8345e4bccd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ThreadCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L1004-L1029 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1075-L1100 type ThreadCount struct { // Active Number of active threads in the thread pool. Active *int64 `json:"active,omitempty"` 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 d5e7229881..db778be090 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ThreadPoolRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/thread_pool/types.ts#L22-L124 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f37b1ec57f..c5d563fca6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ThrottleState type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L126-L129 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L120-L123 type ThrottleState struct { Reason string `json:"reason"` Timestamp DateTime `json:"timestamp"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timehttphistogram.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timehttphistogram.go new file mode 100644 index 0000000000..20ba4c09c7 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timehttphistogram.go @@ -0,0 +1,111 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// TimeHttpHistogram type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L708-L712 +type TimeHttpHistogram struct { + Count int64 `json:"count"` + GeMillis *int64 `json:"ge_millis,omitempty"` + LtMillis *int64 `json:"lt_millis,omitempty"` +} + +func (s *TimeHttpHistogram) 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 "count": + 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", "Count", err) + } + s.Count = value + case float64: + f := int64(v) + s.Count = f + } + + case "ge_millis": + 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", "GeMillis", err) + } + s.GeMillis = &value + case float64: + f := int64(v) + s.GeMillis = &f + } + + case "lt_millis": + 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", "LtMillis", err) + } + s.LtMillis = &value + case float64: + f := int64(v) + s.LtMillis = &f + } + + } + } + return nil +} + +// NewTimeHttpHistogram returns a TimeHttpHistogram. +func NewTimeHttpHistogram() *TimeHttpHistogram { + r := &TimeHttpHistogram{} + + return r +} 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 69c86a09e1..2500ae3c3e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TimeOfMonth type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L110-L113 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1d4173fccb..63990a076d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // TimeOfWeek type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ab7c9faeac..5142ccb3b2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // TimeOfYear type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L120-L124 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/timeseriesaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesaggregate.go new file mode 100644 index 0000000000..255582b4f3 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesaggregate.go @@ -0,0 +1,90 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// TimeSeriesAggregate type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L730-L731 +type TimeSeriesAggregate struct { + Buckets BucketsTimeSeriesBucket `json:"buckets"` + Meta Metadata `json:"meta,omitempty"` +} + +func (s *TimeSeriesAggregate) 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 "buckets": + + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + source := bytes.NewReader(rawMsg) + localDec := json.NewDecoder(source) + switch rawMsg[0] { + case '{': + o := make(map[string]TimeSeriesBucket, 0) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Buckets", err) + } + s.Buckets = o + case '[': + o := []TimeSeriesBucket{} + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Buckets", err) + } + s.Buckets = o + } + + case "meta": + if err := dec.Decode(&s.Meta); err != nil { + return fmt.Errorf("%s | %w", "Meta", err) + } + + } + } + return nil +} + +// NewTimeSeriesAggregate returns a TimeSeriesAggregate. +func NewTimeSeriesAggregate() *TimeSeriesAggregate { + r := &TimeSeriesAggregate{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesaggregation.go new file mode 100644 index 0000000000..5187e45d0d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesaggregation.go @@ -0,0 +1,98 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// TimeSeriesAggregation type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1033-L1046 +type TimeSeriesAggregation struct { + // 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"` + // Size The maximum number of results to return. + Size *int `json:"size,omitempty"` +} + +func (s *TimeSeriesAggregation) 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 "keyed": + 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", "Keyed", err) + } + s.Keyed = &value + case bool: + s.Keyed = &v + } + + case "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", "Size", err) + } + s.Size = &value + case float64: + f := int(v) + s.Size = &f + } + + } + } + return nil +} + +// NewTimeSeriesAggregation returns a TimeSeriesAggregation. +func NewTimeSeriesAggregation() *TimeSeriesAggregation { + r := &TimeSeriesAggregation{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesbucket.go new file mode 100644 index 0000000000..aeb2f64c6c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeseriesbucket.go @@ -0,0 +1,642 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + "strings" +) + +// TimeSeriesBucket type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L733-L735 +type TimeSeriesBucket struct { + Aggregations map[string]Aggregate `json:"-"` + DocCount int64 `json:"doc_count"` + Key map[string]FieldValue `json:"key"` +} + +func (s *TimeSeriesBucket) 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 "doc_count": + 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", "DocCount", err) + } + s.DocCount = value + case float64: + f := int64(v) + s.DocCount = f + } + + case "key": + if s.Key == nil { + s.Key = make(map[string]FieldValue, 0) + } + if err := dec.Decode(&s.Key); err != nil { + return fmt.Errorf("%s | %w", "Key", err) + } + + default: + + if value, ok := t.(string); ok { + if strings.Contains(value, "#") { + elems := strings.Split(value, "#") + if len(elems) == 2 { + if s.Aggregations == nil { + s.Aggregations = make(map[string]Aggregate, 0) + } + switch elems[0] { + + case "cardinality": + o := NewCardinalityAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "hdr_percentiles": + o := NewHdrPercentilesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "hdr_percentile_ranks": + o := NewHdrPercentileRanksAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "tdigest_percentiles": + o := NewTDigestPercentilesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "tdigest_percentile_ranks": + o := NewTDigestPercentileRanksAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "percentiles_bucket": + o := NewPercentilesBucketAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "median_absolute_deviation": + o := NewMedianAbsoluteDeviationAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "min": + o := NewMinAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "max": + o := NewMaxAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "sum": + o := NewSumAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "avg": + o := NewAvgAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "weighted_avg": + o := NewWeightedAvgAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "value_count": + o := NewValueCountAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "simple_value": + o := NewSimpleValueAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "derivative": + o := NewDerivativeAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "bucket_metric_value": + o := NewBucketMetricValueAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "stats": + o := NewStatsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "stats_bucket": + o := NewStatsBucketAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "extended_stats": + o := NewExtendedStatsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "extended_stats_bucket": + o := NewExtendedStatsBucketAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "geo_bounds": + o := NewGeoBoundsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "geo_centroid": + o := NewGeoCentroidAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "histogram": + o := NewHistogramAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "date_histogram": + o := NewDateHistogramAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "auto_date_histogram": + o := NewAutoDateHistogramAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "variable_width_histogram": + o := NewVariableWidthHistogramAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "sterms": + o := NewStringTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "lterms": + o := NewLongTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "dterms": + o := NewDoubleTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "umterms": + o := NewUnmappedTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "lrareterms": + o := NewLongRareTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "srareterms": + o := NewStringRareTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "umrareterms": + o := NewUnmappedRareTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "multi_terms": + o := NewMultiTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "missing": + o := NewMissingAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "nested": + o := NewNestedAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "reverse_nested": + o := NewReverseNestedAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "global": + o := NewGlobalAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "filter": + o := NewFilterAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "children": + o := NewChildrenAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "parent": + o := NewParentAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "sampler": + o := NewSamplerAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "unmapped_sampler": + o := NewUnmappedSamplerAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "geohash_grid": + o := NewGeoHashGridAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "geotile_grid": + o := NewGeoTileGridAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "geohex_grid": + o := NewGeoHexGridAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "range": + o := NewRangeAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "date_range": + o := NewDateRangeAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "geo_distance": + o := NewGeoDistanceAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "ip_range": + o := NewIpRangeAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "ip_prefix": + o := NewIpPrefixAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "filters": + o := NewFiltersAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "adjacency_matrix": + o := NewAdjacencyMatrixAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "siglterms": + o := NewSignificantLongTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "sigsterms": + o := NewSignificantStringTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "umsigterms": + o := NewUnmappedSignificantTermsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "composite": + o := NewCompositeAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "frequent_item_sets": + o := NewFrequentItemSetsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "scripted_metric": + o := NewScriptedMetricAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "top_hits": + o := NewTopHitsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "inference": + o := NewInferenceAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "string_stats": + o := NewStringStatsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "boxplot": + o := NewBoxPlotAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "top_metrics": + o := NewTopMetricsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "t_test": + o := NewTTestAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "rate": + o := NewRateAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "simple_long_value": + o := NewCumulativeCardinalityAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "matrix_stats": + o := NewMatrixStatsAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + case "geo_line": + o := NewGeoLineAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + + default: + o := make(map[string]any, 0) + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + } + } else { + return errors.New("cannot decode JSON for field Aggregations") + } + } else { + o := make(map[string]any, 0) + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[value] = o + } + } + + } + } + return nil +} + +// MarhsalJSON overrides marshalling for types with additional properties +func (s TimeSeriesBucket) MarshalJSON() ([]byte, error) { + type opt TimeSeriesBucket + // We transform the struct to a map without the embedded additional properties map + tmp := make(map[string]any, 0) + + data, err := json.Marshal(opt(s)) + if err != nil { + return nil, err + } + err = json.Unmarshal(data, &tmp) + if err != nil { + return nil, err + } + + // We inline the additional fields from the underlying map + for key, value := range s.Aggregations { + tmp[fmt.Sprintf("%s", key)] = value + } + delete(tmp, "Aggregations") + + data, err = json.Marshal(tmp) + if err != nil { + return nil, err + } + + return data, nil +} + +// NewTimeSeriesBucket returns a TimeSeriesBucket. +func NewTimeSeriesBucket() *TimeSeriesBucket { + r := &TimeSeriesBucket{ + Aggregations: make(map[string]Aggregate, 0), + Key: make(map[string]FieldValue, 0), + } + + return r +} 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 dbfad21de8..35a9da1dc5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TimeSync type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L177-L189 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 7f59d93b56..ab2015c0d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L563-L568 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L562-L567 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 f5cc35094f..c7a5db120f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // TokenCountProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/specialized.ts#L85-L92 type TokenCountProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` @@ -48,7 +48,6 @@ type TokenCountProperty struct { Meta map[string]string `json:"meta,omitempty"` NullValue *Float64 `json:"null_value,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -837,18 +836,6 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -889,7 +876,6 @@ func (s TokenCountProperty) MarshalJSON() ([]byte, error) { Meta: s.Meta, NullValue: s.NullValue, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 943ff74f39..65f02e21f1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TokenDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/types.ts#L71-L74 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/analyze/types.ts#L71-L74 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 5f519725a9..80eedc3089 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // TokenFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L346-L348 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L345-L350 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 525e2dbc64..2ed7a9fa4b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -70,5 +70,5 @@ package types // PhoneticTokenFilter // DictionaryDecompounderTokenFilter // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L350-L402 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L352-L404 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 aff6f37e8f..d63a79412a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TokenizationConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L110-L129 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a57846eb5c..3b88c6e587 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // string // TokenizerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L120-L122 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L140-L145 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 24581b086f..7d0af8bca8 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,26 +16,30 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TokenizerDefinition holds the union for the following types: // // CharGroupTokenizer +// ClassicTokenizer // EdgeNGramTokenizer // KeywordTokenizer // LetterTokenizer // LowercaseTokenizer // NGramTokenizer -// NoriTokenizer // PathHierarchyTokenizer +// PatternTokenizer +// SimplePatternTokenizer +// SimplePatternSplitTokenizer // StandardTokenizer +// ThaiTokenizer // UaxEmailUrlTokenizer // WhitespaceTokenizer -// KuromojiTokenizer -// PatternTokenizer // IcuTokenizer +// KuromojiTokenizer +// NoriTokenizer // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L124-L142 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L147-L170 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 8839153f37..ade8e05581 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TokenPruningConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/TokenPruningConfig.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 a47ff6d7d7..02b8c1e5b8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L440-L444 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L440-L444 type TopClassEntry struct { ClassName string `json:"class_name"` ClassProbability Float64 `json:"class_probability"` 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 97a74b0ef0..21bb180c3d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TopHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/find_structure/types.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/text_structure/find_structure/types.ts#L35-L38 type TopHit struct { Count int64 `json:"count"` Value json.RawMessage `json:"value,omitempty"` 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 6e53d27aee..2403628d86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TopHitsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L658-L661 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L747-L753 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 397104d673..91ea0a091e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TopHitsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L337-L397 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L346-L406 type TopHitsAggregation struct { // DocvalueFields Fields for which to return doc values. DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` 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 067cf2695b..08050372d2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TopLeftBottomRightGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L161-L164 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 21edc4d75f..6082f37cde 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TopMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L736-L740 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L832-L836 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 5e67bc53ce..87d65b8b5b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TopMetricsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L731-L734 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L827-L830 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 ae79c9e88e..1b46ad6f93 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TopMetricsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L399-L413 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L408-L425 type TopMetricsAggregation 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/topmetricsvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsvalue.go index 0b7e04e149..43ec84a87a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TopMetricsValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L415-L420 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L427-L432 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 30d7f39ec5..501cee3817 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TopRightBottomLeftGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2282fefcb0..7548b9dcc7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L233-L240 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L232-L239 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 43b07ccd3c..b40916d229 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportanceClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L242-L247 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L241-L246 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 f8d2198fd1..71d1e0d19f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TotalFeatureImportanceStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L249-L256 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L248-L255 type TotalFeatureImportanceStatistics struct { // Max The maximum importance value across all the training data for this feature. Max int `json:"max"` 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 d9fca4e974..33e647016f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TotalUserProfiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/suggest_user_profiles/Response.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/suggest_user_profiles/Response.ts#L24-L27 type TotalUserProfiles struct { Relation string `json:"relation"` Value int64 `json:"value"` 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 b4bd5cebd6..d3e9d070b7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // bool // int // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L143-L151 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/search/_types/hits.ts#L144-L152 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 c3a614b0c6..5659c56b5f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TrainedModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 ef19ab0f28..e67eeaeb9a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignment type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L403-L418 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L399-L414 type TrainedModelAssignment struct { // AssignmentState The overall assignment state. AssignmentState deploymentassignmentstate.DeploymentAssignmentState `json:"assignment_state"` 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 46f25a6038..e5a4c88e23 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentRoutingTable type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L374-L392 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L370-L388 type TrainedModelAssignmentRoutingTable struct { // CurrentAllocations Current number of allocations. CurrentAllocations int `json:"current_allocations"` 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 856b57044f..dd366fc10b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentTaskParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L316-L349 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L312-L345 type TrainedModelAssignmentTaskParameters struct { // CacheSize The size of the trained model cache. CacheSize ByteSize `json:"cache_size"` 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 7d6646964f..1a51aad109 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // TrainedModelConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L165-L200 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L164-L199 type TrainedModelConfig 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/types/trainedmodelconfiginput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfiginput.go index 861a8866fe..722a580c3f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TrainedModelConfigInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L202-L205 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L201-L204 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 eb5cd5b115..ae6c6a5968 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TrainedModelConfigMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L207-L215 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L206-L214 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 98be337f8e..8fbbb3afee 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // TrainedModelDeploymentAllocationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L394-L401 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L390-L397 type TrainedModelDeploymentAllocationStatus struct { // AllocationCount The current number of nodes where the model is allocated. AllocationCount int `json:"allocation_count"` 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 9cd2f778d4..82d3fe02f9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelDeploymentNodesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L133-L163 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L132-L162 type TrainedModelDeploymentNodesStats struct { // AverageInferenceTimeMs The average time for each inference call to complete on this node. AverageInferenceTimeMs Float64 `json:"average_inference_time_ms"` 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 46972112f8..a75c5dbc9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate" ) // TrainedModelDeploymentStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L62-L102 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L61-L101 type TrainedModelDeploymentStats struct { // AllocationStatus The detailed allocation status for the deployment. AllocationStatus TrainedModelDeploymentAllocationStatus `json:"allocation_status"` @@ -65,7 +65,7 @@ type TrainedModelDeploymentStats struct { // StartTime The epoch timestamp when the deployment started. StartTime int64 `json:"start_time"` // State The overall state of the deployment. - State deploymentstate.DeploymentState `json:"state"` + State deploymentassignmentstate.DeploymentAssignmentState `json:"state"` // ThreadsPerAllocation The number of threads used be each allocation during inference. ThreadsPerAllocation int `json:"threads_per_allocation"` // TimeoutCount The sum of `timeout_count` for all nodes in the deployment. 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 4adbdebde3..622b588b72 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelEntities type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L433-L439 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L433-L439 type TrainedModelEntities struct { ClassName string `json:"class_name"` ClassProbability Float64 `json:"class_probability"` 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 d267ae510b..42d56e3f43 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L446-L449 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L446-L449 type TrainedModelInferenceClassImportance struct { ClassName string `json:"class_name"` Importance Float64 `json:"importance"` 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 34bf9981ab..05dbbc3056 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L451-L455 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L451-L455 type TrainedModelInferenceFeatureImportance struct { Classes []TrainedModelInferenceClassImportance `json:"classes,omitempty"` FeatureName string `json:"feature_name"` 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 af15a70999..0be5c0698d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L104-L124 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L103-L123 type TrainedModelInferenceStats struct { // CacheMissCount The number of times the model was loaded for inference and was not retrieved // from the cache. 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 48274720f1..b39eba874a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TrainedModelLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L420-L422 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L416-L418 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 504cc3f6f1..882ff89749 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TrainedModelLocationIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L424-L426 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L420-L422 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 77d67f5c12..b0533084a4 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelPrefixStrings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L428-L437 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L424-L433 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 7e2a7bad7c..47784c7301 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TrainedModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L126-L131 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L125-L130 type TrainedModelSizeStats struct { // ModelSizeBytes The size of the model in bytes. ModelSizeBytes ByteSize `json:"model_size_bytes"` 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 93c41d534d..8f60042811 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/ml_trained_models/types.ts#L23-L115 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 298650433e..b01e11bd00 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L42-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/TrainedModel.ts#L41-L59 type TrainedModelStats struct { // DeploymentStats A collection of deployment stats, which is present when the models are // deployed. 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 4131a9dced..1d18a34260 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTree type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5da1b8e6fc..0c16df0426 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTreeNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L81-L91 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_trained_model/types.ts#L81-L91 type TrainedModelTreeNode struct { DecisionType *string `json:"decision_type,omitempty"` DefaultLeft *bool `json:"default_left,omitempty"` 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 e52485baad..c991035802 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TransformAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Authorization.ts#L59-L71 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 4be1138519..a958296ef3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TransformContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Transform.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 0d2b232fff..072730f283 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TransformDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L34-L45 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 1817e29e5a..a3b94e2fd6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TransformIndexerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform_stats/types.ts#L56-L74 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 d933305cba..bdbd460f02 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TransformProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform_stats/types.ts#L48-L54 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/transform/get_transform_stats/types.ts#L48-L54 type TransformProgress struct { DocsIndexed int64 `json:"docs_indexed"` DocsProcessed int64 `json:"docs_processed"` 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 2c4befd9f3..2e4be93f79 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TransformSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/_types/Transform.ts#L146-L165 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3de0757a55..8f1301a94e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TransformsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/transforms/types.ts#L22-L197 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 fa4be06fb3..6e026758e7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TransformStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform_stats/types.ts#L31-L42 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 d2cbc6f501..a2d223292d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // TransformStatsHealth type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform_stats/types.ts#L44-L46 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 f7e739b9bd..1c881fb355 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TransformSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform/types.ts#L33-L61 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9ed6d9b619..9afc8a75a9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // Translog type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L341-L363 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L341-L363 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 8d40fc0316..50ae6b7694 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TranslogRetention type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L382-L401 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/_types/IndexSettings.ts#L382-L401 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 d62014014a..26e205305b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TranslogStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L397-L405 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L397-L405 type TranslogStats struct { EarliestLastModifiedAge int64 `json:"earliest_last_modified_age"` Operations int64 `json:"operations"` 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 192f6f54fa..6b6be2d343 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TranslogStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L102-L109 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/recovery/types.ts#L102-L109 type TranslogStatus struct { Percent Percentage `json:"percent"` Recovered int64 `json:"recovered"` 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 f444228dad..e754d693a3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Transport type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L1047-L1090 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1118-L1161 type Transport struct { // InboundHandlingTimeHistogram The distribution of the time spent handling each inbound message on a // transport thread, represented as a histogram. 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 1cd969c230..1322b8944e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TransportHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L1092-L1106 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/nodes/_types/Stats.ts#L1163-L1177 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. 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 a876699c56..62a167dd00 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TriggerContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Trigger.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 42ef7bb3c2..c1774dd36f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TriggerEventContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Trigger.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 aadf7273cd..511a1d46bc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TriggerEventResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Trigger.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 291553dd0a..c1adf0c92d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TrimProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1124-L1140 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1485-L1501 type TrimProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 9758cd0dad..141ddf27be 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // TrimTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L328-L330 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L327-L329 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 7008c5e097..f55d57f730 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TruncateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L332-L335 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L331-L334 type TruncateTokenFilter struct { Length *int `json:"length,omitempty"` Type string `json:"type,omitempty"` 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 74ee82ab17..ce453f232f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TTestAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L742-L746 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L838-L845 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 492d4636c6..df8b8aad11 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,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // TTestAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L294-L308 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L303-L317 type TTestAggregation struct { // A Test population A. A *TestPopulation `json:"a,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/turkishanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/turkishanalyzer.go new file mode 100644 index 0000000000..cdf33d1a70 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/turkishanalyzer.go @@ -0,0 +1,120 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// TurkishAnalyzer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L299-L304 +type TurkishAnalyzer struct { + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords []string `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *TurkishAnalyzer) 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 "stem_exclusion": + if err := dec.Decode(&s.StemExclusion); err != nil { + return fmt.Errorf("%s | %w", "StemExclusion", err) + } + + case "stopwords": + 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", "Stopwords", err) + } + + s.Stopwords = append(s.Stopwords, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + } + + case "stopwords_path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "StopwordsPath", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.StopwordsPath = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s TurkishAnalyzer) MarshalJSON() ([]byte, error) { + type innerTurkishAnalyzer TurkishAnalyzer + tmp := innerTurkishAnalyzer{ + StemExclusion: s.StemExclusion, + Stopwords: s.Stopwords, + StopwordsPath: s.StopwordsPath, + Type: s.Type, + } + + tmp.Type = "turkish" + + return json.Marshal(tmp) +} + +// NewTurkishAnalyzer returns a TurkishAnalyzer. +func NewTurkishAnalyzer() *TurkishAnalyzer { + r := &TurkishAnalyzer{} + + return r +} 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 4df7dfc16b..dd61c44581 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // TypeFieldMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get_field_mapping/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 70b0344b00..6b11e18d69 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // TypeMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/TypeMapping.ts#L34-L57 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/TypeMapping.ts#L34-L57 type TypeMapping struct { AllField *AllField `json:"all_field,omitempty"` DataStreamTimestamp_ *DataStreamTimestamp `json:"_data_stream_timestamp,omitempty"` 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 a33571ab3a..645343e309 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // TypeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L269-L271 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L301-L303 type TypeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 0e776f2d27..b9aa3f5acf 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UaxEmailUrlTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L110-L113 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L130-L133 type UaxEmailUrlTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` 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 6b5b8018e9..d853cf6859 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // UnassignedInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L117-L125 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/cluster/allocation_explain/types.ts#L128-L136 type UnassignedInformation struct { AllocationStatus *string `json:"allocation_status,omitempty"` At DateTime `json:"at"` 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 5013ff8fe2..26eaa3fd14 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UniqueTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L337-L340 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L336-L339 type UniqueTokenFilter struct { OnlyOnSamePosition *bool `json:"only_on_same_position,omitempty"` Type string `json:"type,omitempty"` 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 3799c644d9..9479dd918e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // UnmappedRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L455-L461 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L493-L499 type UnmappedRareTermsAggregate struct { Buckets BucketsVoid `json:"buckets"` Meta Metadata `json:"meta,omitempty"` 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 4819433634..4aafa3282c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // UnmappedSamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L505-L506 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L561-L562 type UnmappedSamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -491,6 +491,13 @@ func (s *UnmappedSamplerAggregate) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 0fd34324e4..a85f86ab86 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UnmappedSignificantTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L614-L620 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L690-L696 type UnmappedSignificantTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsVoid `json:"buckets"` 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 37684087bb..dd48a878b5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UnmappedTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L425-L431 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L463-L469 type UnmappedTermsAggregate struct { Buckets BucketsVoid `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` 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 f2750949e1..cb24ff29f7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // UnratedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L147-L150 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/rank_eval/types.ts#L150-L153 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 ecd8a47f65..bc45ddd08a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -35,7 +35,7 @@ import ( // UnsignedLongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L177-L180 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L177-L180 type UnsignedLongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,6 @@ type UnsignedLongNumberProperty struct { 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"` Store *bool `json:"store,omitempty"` // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. // Defaults to false. @@ -848,18 +847,6 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Script", err) } - 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) @@ -921,7 +908,6 @@ func (s UnsignedLongNumberProperty) MarshalJSON() ([]byte, error) { OnScriptError: s.OnScriptError, Properties: s.Properties, Script: s.Script, - Similarity: s.Similarity, Store: s.Store, TimeSeriesDimension: s.TimeSeriesDimension, TimeSeriesMetric: s.TimeSeriesMetric, diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddecayfunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddecayfunction.go index 9cb0620a35..8b89868f7c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddecayfunction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddecayfunction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -29,7 +29,7 @@ import ( // UntypedDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L188-L191 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/compound.ts#L204-L207 type UntypedDecayFunction struct { DecayFunctionBase map[string]DecayPlacement `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddistancefeaturequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddistancefeaturequery.go index 0d23c20beb..ac004a8cca 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddistancefeaturequery.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddistancefeaturequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UntypedDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L62-L65 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/specialized.ts#L61-L64 type UntypedDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypedrangequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypedrangequery.go index 670e47ee7e..e8d611a195 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypedrangequery.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypedrangequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // UntypedRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L135-L144 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L150-L159 type UntypedRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 975ce972e8..2e3cf2bd88 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UpdateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L169-L205 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 556454971a..642283797b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // UpdateByQueryRethrottleNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a109925ebe..bd175f1b46 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // UpdateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L136-L143 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_global/bulk/types.ts#L136-L143 type UpdateOperation struct { // Id_ The document ID. Id_ *string `json:"_id,omitempty"` 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 ea910db25d..22ebaec182 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UppercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1142-L1158 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1503-L1519 type UppercaseProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 a6ebefc6cb..34b694dced 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // UppercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L342-L344 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L341-L343 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/uripartsprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uripartsprocessor.go new file mode 100644 index 0000000000..5682bbdb8f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uripartsprocessor.go @@ -0,0 +1,195 @@ +// 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/4fcf747dfafc951e1dcf3077327e3dcee9107db3 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// UriPartsProcessor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1539-L1565 +type UriPartsProcessor struct { + // Description Description of the processor. + // Useful for describing the purpose of the processor or its configuration. + Description *string `json:"description,omitempty"` + // Field Field containing the URI string. + Field string `json:"field"` + // If Conditionally execute the processor. + If *string `json:"if,omitempty"` + // IgnoreFailure Ignore failures for the processor. + IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without + // modifying the document. + IgnoreMissing *bool `json:"ignore_missing,omitempty"` + // KeepOriginal If `true`, the processor copies the unparsed URI to + // `.original`. + KeepOriginal *bool `json:"keep_original,omitempty"` + // OnFailure Handle failures for the processor. + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // RemoveIfSuccessful If `true`, the processor removes the `field` after parsing the URI string. + // If parsing fails, the processor does not remove the `field`. + RemoveIfSuccessful *bool `json:"remove_if_successful,omitempty"` + // Tag Identifier for the processor. + // Useful for debugging and metrics. + Tag *string `json:"tag,omitempty"` + // TargetField Output field for the URI object. + TargetField *string `json:"target_field,omitempty"` +} + +func (s *UriPartsProcessor) 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 "description": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Description", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Description = &o + + case "field": + if err := dec.Decode(&s.Field); err != nil { + return fmt.Errorf("%s | %w", "Field", err) + } + + case "if": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "If", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.If = &o + + case "ignore_failure": + 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", "IgnoreFailure", err) + } + s.IgnoreFailure = &value + case bool: + s.IgnoreFailure = &v + } + + case "ignore_missing": + 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", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + + case "keep_original": + 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", "KeepOriginal", err) + } + s.KeepOriginal = &value + case bool: + s.KeepOriginal = &v + } + + case "on_failure": + if err := dec.Decode(&s.OnFailure); err != nil { + return fmt.Errorf("%s | %w", "OnFailure", err) + } + + case "remove_if_successful": + 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", "RemoveIfSuccessful", err) + } + s.RemoveIfSuccessful = &value + case bool: + s.RemoveIfSuccessful = &v + } + + case "tag": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tag", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tag = &o + + case "target_field": + if err := dec.Decode(&s.TargetField); err != nil { + return fmt.Errorf("%s | %w", "TargetField", err) + } + + } + } + return nil +} + +// NewUriPartsProcessor returns a UriPartsProcessor. +func NewUriPartsProcessor() *UriPartsProcessor { + r := &UriPartsProcessor{} + + return r +} 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 be5acfdf8d..3161007192 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UrlDecodeProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1160-L1176 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L1521-L1537 type UrlDecodeProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 243eef715d..511ee425ab 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // UsageStatsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L41-L43 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L41-L43 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 82d3c74cec..580e5e06f7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UsageStatsShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L45-L50 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 45e3514775..f0b42a06fa 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // User type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/User.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/User.ts#L23-L31 type User struct { Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` 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 fef11abe6f..6f523c4956 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,11 +33,13 @@ import ( // UserAgentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L370-L390 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ingest/_types/Processors.ts#L474-L505 type UserAgentProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. Description *string `json:"description,omitempty"` + // ExtractDeviceType Extracts device type from the user agent string on a best-effort basis. + ExtractDeviceType *bool `json:"extract_device_type,omitempty"` // Field The field containing the user agent string. Field string `json:"field"` // If Conditionally execute the processor. @@ -48,8 +50,9 @@ type UserAgentProcessor struct { // modifying the document. IgnoreMissing *bool `json:"ignore_missing,omitempty"` // OnFailure Handle failures for the processor. - OnFailure []ProcessorContainer `json:"on_failure,omitempty"` - Options []useragentproperty.UserAgentProperty `json:"options,omitempty"` + OnFailure []ProcessorContainer `json:"on_failure,omitempty"` + // Properties Controls what properties are added to `target_field`. + Properties []useragentproperty.UserAgentProperty `json:"properties,omitempty"` // RegexFile The name of the file in the `config/ingest-user-agent` directory containing // the regular expressions for parsing the user agent string. Both the directory // and the file have to be created before starting Elasticsearch. If not @@ -90,6 +93,20 @@ func (s *UserAgentProcessor) UnmarshalJSON(data []byte) error { } s.Description = &o + case "extract_device_type": + 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", "ExtractDeviceType", err) + } + s.ExtractDeviceType = &value + case bool: + s.ExtractDeviceType = &v + } + case "field": if err := dec.Decode(&s.Field); err != nil { return fmt.Errorf("%s | %w", "Field", err) @@ -140,9 +157,9 @@ func (s *UserAgentProcessor) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "OnFailure", err) } - case "options": - if err := dec.Decode(&s.Options); err != nil { - return fmt.Errorf("%s | %w", "Options", err) + case "properties": + if err := dec.Decode(&s.Properties); err != nil { + return fmt.Errorf("%s | %w", "Properties", err) } case "regex_file": 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 91f10b8960..e4083e1ba5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // UserIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L227-L249 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/Privileges.ts#L255-L277 type UserIndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited 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 b8ce21ef10..693eac8093 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UserProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/UserProfile.ts#L42-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/UserProfile.ts#L41-L47 type UserProfile struct { Data map[string]json.RawMessage `json:"data"` Enabled *bool `json:"enabled,omitempty"` 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 b2d2ca46ba..6d4ad8b63b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UserProfileHitMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/UserProfile.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/UserProfile.ts#L27-L30 type UserProfileHitMetadata struct { PrimaryTerm_ int64 `json:"_primary_term"` SeqNo_ int64 `json:"_seq_no"` 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 0f760865ca..3804a4c73a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UserProfileUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/UserProfile.ts#L33-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/UserProfile.ts#L32-L39 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 6de4baa578..59286f0bd1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UserProfileWithMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/UserProfile.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/_types/UserProfile.ts#L49-L52 type UserProfileWithMetadata struct { Data map[string]json.RawMessage `json:"data"` Doc_ UserProfileHitMetadata `json:"_doc"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userquerycontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userquerycontainer.go index 5e2dd94964..9684134d38 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userquerycontainer.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userquerycontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // UserQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_user/types.ts#L37-L101 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/security/query_user/types.ts#L37-L101 type UserQueryContainer struct { // Bool matches users matching boolean combinations of other queries. Bool *BoolQuery `json:"bool,omitempty"` 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 03db83b2a0..eea5ccc10f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // UserRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_token/types.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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/validation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validation.go index 223a38457e..0865f4530f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validation.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -28,5 +28,5 @@ package types // IncludedInValidation // RegexValidation // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L50-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/connector/_types/Connector.ts#L50-L56 type Validation any 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 da93a174dd..a59c2e550a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ValidationLoss type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L570-L575 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/DataframeAnalytics.ts#L569-L574 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 14042db8b3..1711614cf5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L231-L236 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 e931156ce5..73ba110c8c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L422-L422 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L434-L434 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 a8ee1c47bd..1788b142ac 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // VariableWidthHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L364-L366 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L402-L404 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 eeb707f232..b6f2c96feb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // VariableWidthHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1022-L1043 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/bucket.ts#L1091-L1115 type VariableWidthHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` 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 d642cbb6df..f4386ce602 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // VariableWidthHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L368-L375 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L406-L413 type VariableWidthHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -575,6 +575,13 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error { } s.Aggregations[elems[1]] = o + case "time_series": + o := NewTimeSeriesAggregate() + if err := dec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Aggregations", err) + } + s.Aggregations[elems[1]] = o + case "scripted_metric": o := NewScriptedMetricAggregate() if err := dec.Decode(&o); 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 1c76563594..a9e568895d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Vector type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L454-L458 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L452-L456 type Vector struct { Available bool `json:"available"` DenseVectorDimsAvgCount int `json:"dense_vector_dims_avg_count"` 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 85b1c8c9a3..ab6a1ed8b2 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // VerifyIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L111-L116 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 cbd6f73ec7..c0d9ce2237 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // VersionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L287-L289 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L289-L291 type VersionProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -43,7 +43,6 @@ type VersionProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -760,18 +759,6 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -807,7 +794,6 @@ func (s VersionProperty) MarshalJSON() ([]byte, error) { IgnoreAbove: s.IgnoreAbove, Meta: s.Meta, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 51f02f29d2..967b5e3e88 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Vertex type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/_types/Vertex.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/graph/_types/Vertex.ts#L23-L28 type Vertex struct { Depth int64 `json:"depth"` Field string `json:"field"` 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 b1b21b87f1..e04bcebc68 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // VertexDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/_types/Vertex.ts#L30-L59 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 5ad26b323e..72cf749c17 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // VertexInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/_types/Vertex.ts#L61-L64 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/graph/_types/Vertex.ts#L61-L64 type VertexInclude struct { Boost Float64 `json:"boost"` Term string `json:"term"` 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 14d6d9e6f8..e89bd546c3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Vocabulary type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L233-L235 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 119ddf7596..d1683506c3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -25,5 +25,5 @@ package types // int // waitforactiveshardoptions.WaitForActiveShardOptions // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L142-L143 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/common.ts#L143-L144 type WaitForActiveShards any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforsnapshotaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforsnapshotaction.go index ef3102519d..32e4007ee4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforsnapshotaction.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforsnapshotaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WaitForSnapshotAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L148-L150 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ilm/_types/Phase.ts#L148-L150 type WaitForSnapshotAction struct { Policy string `json:"policy"` } 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 44969c2892..64264c4923 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WarmerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Stats.ts#L407-L412 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/Stats.ts#L407-L412 type WarmerStats struct { Current int64 `json:"current"` Total int64 `json:"total"` 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 4f58716f47..419a9c6313 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // Watch type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Watch.ts#L37-L47 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 8622c29776..4c206068c9 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Watcher type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L460-L464 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L458-L462 type Watcher struct { Available bool `json:"available"` Count Counter `json:"count"` 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 d2b9c63932..dbe4e861dd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // WatcherAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L41-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L35-L54 type WatcherAction struct { ActionType *actiontype.ActionType `json:"action_type,omitempty"` Condition *WatcherCondition `json:"condition,omitempty"` 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 e4818648b1..a6c493c23f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // WatcherActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L396-L398 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L394-L396 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 35df8ecd9b..2872173479 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // WatcherActionTotals type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L412-L415 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L410-L413 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 8c99eeffbd..255c9b8ecd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // WatcherCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Conditions.ts#L50-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Conditions.ts#L50-L62 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 a426602e97..8d64b65804 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -26,7 +26,7 @@ import ( // WatcherInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Input.ts#L90-L98 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 effcbc76ee..47053a79a8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // WatcherNodeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/stats/types.ts#L33-L40 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/stats/types.ts#L33-L40 type WatcherNodeStats struct { CurrentWatches []WatchRecordStats `json:"current_watches,omitempty"` ExecutionThreadPool ExecutionThreadPool `json:"execution_thread_pool"` 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 d0e8193d49..88cd9a9a1b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // WatcherStatusActions type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L62-L62 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/watcher/_types/Action.ts#L56-L56 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 6bdc4f713b..ddabfbc7c7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // WatcherWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L400-L405 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L398-L403 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 0886484c9b..ce8874a350 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // WatcherWatchTrigger type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L407-L410 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L405-L408 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 11583c6437..bcb64d1131 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WatcherWatchTriggerSchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L466-L469 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L464-L467 type WatcherWatchTriggerSchedule struct { Active int64 `json:"active"` All_ Counter `json:"_all"` 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 368fd15ebb..2c36fd2f75 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // WatchRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/execute_watch/types.ts#L27-L39 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b52d55da36..99d7aaa3cb 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // WatchRecordQueuedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/stats/types.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 dee922bcc5..68c188629c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -32,7 +32,7 @@ import ( // WatchRecordStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/stats/types.ts#L54-L60 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 246a8ac5d0..9d387c2e85 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WatchStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Watch.ts#L49-L56 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 a542b885f4..364371fe42 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -34,7 +34,7 @@ import ( // WebhookAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L293-L293 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 21b2aef44b..17cedd7811 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // WebhookResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Actions.ts#L295-L298 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 68f2a6fad3..4c7e6fbd95 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // WeightedAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L437-L451 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L449-L463 type WeightedAverageAggregation struct { // Format A numeric response formatter. Format *string `json:"format,omitempty"` 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 3c5a7e8ee4..a6716df35e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WeightedAverageValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L453-L463 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/metric.ts#L465-L475 type WeightedAverageValue struct { // Field The field from which to extract the values or weights. Field *string `json:"field,omitempty"` 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 8e2b47d1e5..8e90ab2159 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WeightedAvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L212-L216 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/aggregations/Aggregate.ts#L224-L229 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 b553a16bde..913fbddfea 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WeightedTokensQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/WeightedTokensQuery.ts#L27-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/WeightedTokensQuery.ts#L25-L33 type WeightedTokensQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 eabad9be4a..c4c0babc81 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // Weights type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/types.ts#L108-L110 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/put_trained_model/types.ts#L108-L110 type Weights struct { Weights Float64 `json:"weights"` } 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 86828e9610..052baf43e3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -30,7 +30,7 @@ import ( // WhitespaceAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L108-L111 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/analyzers.ts#L354-L357 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 e6de6f2f83..e1d82d8343 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WhitespaceTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/tokenizers.ts#L135-L138 type WhitespaceTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` 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 16fcf2093c..61c011b8e7 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // WildcardProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L291-L298 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/mapping/core.ts#L293-L300 type WildcardProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -44,7 +44,6 @@ type WildcardProperty struct { Meta map[string]string `json:"meta,omitempty"` NullValue *string `json:"null_value,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` } @@ -773,18 +772,6 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error { } } - 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) @@ -821,7 +808,6 @@ func (s WildcardProperty) MarshalJSON() ([]byte, error) { Meta: s.Meta, NullValue: s.NullValue, Properties: s.Properties, - Similarity: s.Similarity, Store: s.Store, Type: s.Type, } 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 541f9b4dac..2a9f26236d 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WildcardQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L273-L290 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/term.ts#L305-L325 type WildcardQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 3ed120980c..c9de4ebeb1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WktGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L150-L152 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 b7dcb6db1d..5b4602ab54 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WordDelimiterGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L151-L168 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L150-L167 type WordDelimiterGraphTokenFilter struct { AdjustOffsets *bool `json:"adjust_offsets,omitempty"` CatenateAll *bool `json:"catenate_all,omitempty"` 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 a2b29e4820..27540ae5f3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WordDelimiterTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L134-L149 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/analysis/token_filters.ts#L133-L148 type WordDelimiterTokenFilter struct { CatenateAll *bool `json:"catenate_all,omitempty"` CatenateNumbers *bool `json:"catenate_numbers,omitempty"` 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 50fb40bcec..af2fe8a4ab 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // WrapperQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L501-L507 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/_types/query_dsl/abstractions.ts#L501-L510 type WrapperQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 546b15cb88..30acb066f0 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -33,7 +33,7 @@ import ( // WriteOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/types.ts#L109-L128 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 416e4d6b21..97e5136118 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // XpackDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L77-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L75-L77 type XpackDatafeed struct { Count int64 `json:"count"` } 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 f91e28e047..f145ed9415 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // XpackFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/info/types.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/info/types.ts#L85-L90 type XpackFeature struct { Available bool `json:"available"` Description *string `json:"description,omitempty"` 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 bbacc5665c..036f2e5fa9 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,28 +16,28 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types // XpackFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/info/types.ts#L42-L75 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/info/types.ts#L42-L83 type XpackFeatures struct { AggregateMetric XpackFeature `json:"aggregate_metric"` Analytics XpackFeature `json:"analytics"` Archive XpackFeature `json:"archive"` Ccr XpackFeature `json:"ccr"` - DataFrame *XpackFeature `json:"data_frame,omitempty"` - DataScience *XpackFeature `json:"data_science,omitempty"` DataStreams XpackFeature `json:"data_streams"` DataTiers XpackFeature `json:"data_tiers"` Enrich XpackFeature `json:"enrich"` + EnterpriseSearch XpackFeature `json:"enterprise_search"` Eql XpackFeature `json:"eql"` - Flattened *XpackFeature `json:"flattened,omitempty"` + Esql XpackFeature `json:"esql"` FrozenIndices XpackFeature `json:"frozen_indices"` Graph XpackFeature `json:"graph"` Ilm XpackFeature `json:"ilm"` + Logsdb XpackFeature `json:"logsdb"` Logstash XpackFeature `json:"logstash"` Ml XpackFeature `json:"ml"` Monitoring XpackFeature `json:"monitoring"` @@ -49,7 +49,7 @@ type XpackFeatures struct { Spatial XpackFeature `json:"spatial"` Sql XpackFeature `json:"sql"` Transform XpackFeature `json:"transform"` - Vectors *XpackFeature `json:"vectors,omitempty"` + UniversalProfiling XpackFeature `json:"universal_profiling"` VotingOnly XpackFeature `json:"voting_only"` Watcher XpackFeature `json:"watcher"` } 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 341a24c4a0..d360ba53ca 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // XpackQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L259-L264 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L257-L262 type XpackQuery struct { Count *int `json:"count,omitempty"` Failed *int `json:"failed,omitempty"` 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 7c0b431810..1d92045c5b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // XpackRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L417-L426 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L415-L424 type XpackRealm struct { Available bool `json:"available"` Cache []RealmCache `json:"cache,omitempty"` 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 31b6b5115b..380a01de8b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // XpackRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L270-L273 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L268-L271 type XpackRoleMapping struct { Enabled int `json:"enabled"` Size int `json:"size"` 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 a340a35a66..dd57d470e8 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // XpackRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L275-L277 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/xpack/usage/types.ts#L273-L275 type XpackRuntimeFieldTypes struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 2d249bbf83..66974975d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L201-L222 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L201-L222 type ZeroShotClassificationInferenceOptions struct { // ClassificationLabels The zero shot classification labels indicating entailment, neutral, and // contradiction 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 a22722bb33..07e3a9d99a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L374-L383 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/specification/ml/_types/inference.ts#L374-L383 type ZeroShotClassificationInferenceUpdateOptions struct { // Labels The labels to predict. Labels []string `json:"labels"` 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 c3a447f8c6..1d38cfac39 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Acknowledges a watch, manually throttling the execution of the watch's // actions. 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 307146401d..2472c9757f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package ackwatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package ackwatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c3271abfcc..38d3cd0f73 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Activates a currently inactive watch. package activatewatch 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 de92cb45b2..87fd17f6d6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package activatewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package activatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6d419927ce..9797e0099b 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Deactivates a currently active watch. package deactivatewatch 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 0676583dd6..32841887cd 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deactivatewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deactivatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 6e8e170f53..6cf7a49c8c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Removes a watch from Watcher. package deletewatch 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 6d8c410343..ea250ff12c 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package deletewatch // Response holds the response body struct for the package deletewatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/delete_watch/DeleteWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 9909256b93..6ea7abc91f 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // This API can be used to force execution of the watch outside of its // triggering logic or to simulate the watch execution for debugging purposes. 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 45ebbb0b52..9e0a4310cc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package executewatch @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 eda16492fb..5c19f5f8c6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package executewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5c7b885b5f..9188418e22 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieve settings for the watcher system index package getsettings 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 8170c4b35c..3693436ff5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves a watch by its ID. package getwatch 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 4540dba958..81ecdfb9fe 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package getwatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getwatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/get_watch/GetWatchResponse.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 c7d30e4d8e..38e81721b5 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Creates a new watch, or updates an existing one. package 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 4b7a9bbe05..e026ff9879 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putwatch @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/put_watch/WatcherPutWatchRequest.ts#L30-L53 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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"` 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 b8696ce172..abbcf31c9e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package putwatch // Response holds the response body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 76f7b6f185..f05c1e72e3 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves stored watches. package 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 edad2b6269..35e092c3b1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package querywatches @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L48 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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. 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 393729f594..c383521fc1 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package querywatches @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 57c58b311c..104499a0cc 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/start/WatcherStartResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 3b6edae5c3..7a8faddf6a 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Starts Watcher if it is not already running. package start 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 9f0a464551..ce77c37b14 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/stats/WatcherStatsResponse.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 2fb709a5c3..ddd4e9aa12 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Retrieves the current Watcher metrics. package stats 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 fc75499960..69b11262f6 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/stop/WatcherStopResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 91e5c3d0ee..3344a1b580 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Stops Watcher if it is running. package stop 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 fcdca0b2c8..4c78611477 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Update settings for the watcher system index package updatesettings 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 8eb0d5974f..811ee1117e 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // Provides general information about the installed X-Pack features. package info @@ -34,6 +34,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/xpackcategory" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -277,7 +278,7 @@ func (r *Info) Header(key, value string) *Info { // Categories A comma-separated list of the information categories to include in the // response. For example, `build,license,features`. // API name: categories -func (r *Info) Categories(categories ...string) *Info { +func (r *Info) Categories(categories ...xpackcategory.XPackCategory) *Info { tmp := []string{} for _, item := range categories { tmp = append(tmp, fmt.Sprintf("%v", item)) 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 b9bf39ca1d..6e256f4fad 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/info/XPackInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 481cb3c68b..2dc31a48ab 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 package usage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/XPackUsageResponse.ts#L43-L79 +// https://github.com/elastic/elasticsearch-specification/blob/4fcf747dfafc951e1dcf3077327e3dcee9107db3/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 5df877f8d3..f998204116 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/19027dbdd366978ccae41842a040a636730e7c10 +// https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3 // This API provides information about which features are currently enabled and // available under the current license and some usage statistics. diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go b/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go index 4b177c8206..e9fe103943 100644 --- a/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go +++ b/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go @@ -348,7 +348,11 @@ func (d decoder) unmarshalAnyValue(unmarshal unmarshalFunc, m protoreflect.Messa switch tok.Kind() { case json.ObjectClose: if !found { - return d.newError(tok.Pos(), `missing "value" field`) + // We tolerate an omitted `value` field with the google.protobuf.Empty Well-Known-Type, + // for compatibility with other proto runtimes that have interpreted the spec differently. + if m.Descriptor().FullName() != genid.Empty_message_fullname { + return d.newError(tok.Pos(), `missing "value" field`) + } } return nil diff --git a/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb b/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb index ff6a38360add36f53d48bb0863b701696e0d7b2d..2c0693d7abbf532f021dafc96e7568f57214b8e7 100644 GIT binary patch literal 99 zcmd;*m3YRk#C*w)K}(o}QGiK;Nr72|(SYfa9SaAe1S6NM#B;bblK@aefe9$h2$E(1 dOTS=O5(H{Ql40Ut&|548XQ literal 93 zcmd;*mUzal#C*w)K}(Q>QGiK;Nr72|(SYfa9TNv5m$bxlxFnMRqXeS@6Ht;7B*_4j Ve8H{+(u69m1u{(G8N0>{b^xZ!4_5#H diff --git a/vendor/google.golang.org/protobuf/internal/editionssupport/editions.go b/vendor/google.golang.org/protobuf/internal/editionssupport/editions.go index 08dad7692c..bf1aba0e85 100644 --- a/vendor/google.golang.org/protobuf/internal/editionssupport/editions.go +++ b/vendor/google.golang.org/protobuf/internal/editionssupport/editions.go @@ -10,4 +10,9 @@ import "google.golang.org/protobuf/types/descriptorpb" const ( Minimum = descriptorpb.Edition_EDITION_PROTO2 Maximum = descriptorpb.Edition_EDITION_2023 + + // MaximumKnown is the maximum edition that is known to Go Protobuf, but not + // declared as supported. In other words: end users cannot use it, but + // testprotos inside Go Protobuf can. + MaximumKnown = descriptorpb.Edition_EDITION_2024 ) diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc.go index fa790e0ff1..f325298564 100644 --- a/vendor/google.golang.org/protobuf/internal/filedesc/desc.go +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc.go @@ -32,6 +32,7 @@ const ( EditionProto2 Edition = 998 EditionProto3 Edition = 999 Edition2023 Edition = 1000 + Edition2024 Edition = 1001 EditionUnsupported Edition = 100000 ) @@ -77,28 +78,42 @@ type ( Locations SourceLocations } + // EditionFeatures is a frequently-instantiated struct, so please take care + // to minimize padding when adding new fields to this struct (add them in + // the right place/order). EditionFeatures struct { + // StripEnumPrefix determines if the plugin generates enum value + // constants as-is, with their prefix stripped, or both variants. + StripEnumPrefix int + // IsFieldPresence is true if field_presence is EXPLICIT // https://protobuf.dev/editions/features/#field_presence IsFieldPresence bool + // IsFieldPresence is true if field_presence is LEGACY_REQUIRED // https://protobuf.dev/editions/features/#field_presence IsLegacyRequired bool + // IsOpenEnum is true if enum_type is OPEN // https://protobuf.dev/editions/features/#enum_type IsOpenEnum bool + // IsPacked is true if repeated_field_encoding is PACKED // https://protobuf.dev/editions/features/#repeated_field_encoding IsPacked bool + // IsUTF8Validated is true if utf_validation is VERIFY // https://protobuf.dev/editions/features/#utf8_validation IsUTF8Validated bool + // IsDelimitedEncoded is true if message_encoding is DELIMITED // https://protobuf.dev/editions/features/#message_encoding IsDelimitedEncoded bool + // IsJSONCompliant is true if json_format is ALLOW // https://protobuf.dev/editions/features/#json_format IsJSONCompliant bool + // GenerateLegacyUnmarshalJSON determines if the plugin generates the // UnmarshalJSON([]byte) error method for enums. GenerateLegacyUnmarshalJSON bool diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/editions.go b/vendor/google.golang.org/protobuf/internal/filedesc/editions.go index fd4d0c83d2..7611796e86 100644 --- a/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +++ b/vendor/google.golang.org/protobuf/internal/filedesc/editions.go @@ -32,6 +32,10 @@ func unmarshalGoFeature(b []byte, parent EditionFeatures) EditionFeatures { v, m := protowire.ConsumeVarint(b) b = b[m:] parent.GenerateLegacyUnmarshalJSON = protowire.DecodeBool(v) + case genid.GoFeatures_StripEnumPrefix_field_number: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + parent.StripEnumPrefix = int(v) default: panic(fmt.Sprintf("unkown field number %d while unmarshalling GoFeatures", num)) } diff --git a/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go b/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go index 7f67cbb6e9..09792d96f6 100644 --- a/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go +++ b/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go @@ -21,13 +21,30 @@ const ( // Field names for pb.GoFeatures. const ( GoFeatures_LegacyUnmarshalJsonEnum_field_name protoreflect.Name = "legacy_unmarshal_json_enum" + GoFeatures_StripEnumPrefix_field_name protoreflect.Name = "strip_enum_prefix" GoFeatures_LegacyUnmarshalJsonEnum_field_fullname protoreflect.FullName = "pb.GoFeatures.legacy_unmarshal_json_enum" + GoFeatures_StripEnumPrefix_field_fullname protoreflect.FullName = "pb.GoFeatures.strip_enum_prefix" ) // Field numbers for pb.GoFeatures. const ( GoFeatures_LegacyUnmarshalJsonEnum_field_number protoreflect.FieldNumber = 1 + GoFeatures_StripEnumPrefix_field_number protoreflect.FieldNumber = 3 +) + +// Full and short names for pb.GoFeatures.StripEnumPrefix. +const ( + GoFeatures_StripEnumPrefix_enum_fullname = "pb.GoFeatures.StripEnumPrefix" + GoFeatures_StripEnumPrefix_enum_name = "StripEnumPrefix" +) + +// Enum values for pb.GoFeatures.StripEnumPrefix. +const ( + GoFeatures_STRIP_ENUM_PREFIX_UNSPECIFIED_enum_value = 0 + GoFeatures_STRIP_ENUM_PREFIX_KEEP_enum_value = 1 + GoFeatures_STRIP_ENUM_PREFIX_GENERATE_BOTH_enum_value = 2 + GoFeatures_STRIP_ENUM_PREFIX_STRIP_enum_value = 3 ) // Extension numbers diff --git a/vendor/google.golang.org/protobuf/internal/version/version.go b/vendor/google.golang.org/protobuf/internal/version/version.go index fb8e15e8da..62a52a40a3 100644 --- a/vendor/google.golang.org/protobuf/internal/version/version.go +++ b/vendor/google.golang.org/protobuf/internal/version/version.go @@ -52,7 +52,7 @@ import ( const ( Major = 1 Minor = 35 - Patch = 1 + Patch = 2 PreRelease = "" ) diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go index 8fbecb4f58..69a0505091 100644 --- a/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go @@ -13,6 +13,8 @@ package protodesc import ( + "strings" + "google.golang.org/protobuf/internal/editionssupport" "google.golang.org/protobuf/internal/errors" "google.golang.org/protobuf/internal/filedesc" @@ -102,13 +104,17 @@ func (o FileOptions) New(fd *descriptorpb.FileDescriptorProto, r Resolver) (prot default: return nil, errors.New("invalid syntax: %q", fd.GetSyntax()) } - if f.L1.Syntax == protoreflect.Editions && (fd.GetEdition() < editionssupport.Minimum || fd.GetEdition() > editionssupport.Maximum) { - return nil, errors.New("use of edition %v not yet supported by the Go Protobuf runtime", fd.GetEdition()) - } f.L1.Path = fd.GetName() if f.L1.Path == "" { return nil, errors.New("file path must be populated") } + if f.L1.Syntax == protoreflect.Editions && (fd.GetEdition() < editionssupport.Minimum || fd.GetEdition() > editionssupport.Maximum) { + // Allow cmd/protoc-gen-go/testdata to use any edition for easier + // testing of upcoming edition features. + if !strings.HasPrefix(fd.GetName(), "cmd/protoc-gen-go/testdata/") { + return nil, errors.New("use of edition %v not yet supported by the Go Protobuf runtime", fd.GetEdition()) + } + } f.L1.Package = protoreflect.FullName(fd.GetPackage()) if !f.L1.Package.IsValid() && f.L1.Package != "" { return nil, errors.New("invalid package: %q", f.L1.Package) diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/editions.go b/vendor/google.golang.org/protobuf/reflect/protodesc/editions.go index 002e0047ae..d0aeab9585 100644 --- a/vendor/google.golang.org/protobuf/reflect/protodesc/editions.go +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/editions.go @@ -43,6 +43,8 @@ func toEditionProto(ed filedesc.Edition) descriptorpb.Edition { return descriptorpb.Edition_EDITION_PROTO3 case filedesc.Edition2023: return descriptorpb.Edition_EDITION_2023 + case filedesc.Edition2024: + return descriptorpb.Edition_EDITION_2024 default: panic(fmt.Sprintf("unknown value for edition: %v", ed)) } @@ -127,6 +129,9 @@ func mergeEditionFeatures(parentDesc protoreflect.Descriptor, child *descriptorp if luje := goFeatures.LegacyUnmarshalJsonEnum; luje != nil { parentFS.GenerateLegacyUnmarshalJSON = *luje } + if sep := goFeatures.StripEnumPrefix; sep != nil { + parentFS.StripEnumPrefix = int(*sep) + } } return parentFS diff --git a/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go b/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go index c7e860fcd6..5067b89e90 100644 --- a/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go +++ b/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go @@ -18,13 +18,76 @@ import ( sync "sync" ) +type GoFeatures_StripEnumPrefix int32 + +const ( + GoFeatures_STRIP_ENUM_PREFIX_UNSPECIFIED GoFeatures_StripEnumPrefix = 0 + GoFeatures_STRIP_ENUM_PREFIX_KEEP GoFeatures_StripEnumPrefix = 1 + GoFeatures_STRIP_ENUM_PREFIX_GENERATE_BOTH GoFeatures_StripEnumPrefix = 2 + GoFeatures_STRIP_ENUM_PREFIX_STRIP GoFeatures_StripEnumPrefix = 3 +) + +// Enum value maps for GoFeatures_StripEnumPrefix. +var ( + GoFeatures_StripEnumPrefix_name = map[int32]string{ + 0: "STRIP_ENUM_PREFIX_UNSPECIFIED", + 1: "STRIP_ENUM_PREFIX_KEEP", + 2: "STRIP_ENUM_PREFIX_GENERATE_BOTH", + 3: "STRIP_ENUM_PREFIX_STRIP", + } + GoFeatures_StripEnumPrefix_value = map[string]int32{ + "STRIP_ENUM_PREFIX_UNSPECIFIED": 0, + "STRIP_ENUM_PREFIX_KEEP": 1, + "STRIP_ENUM_PREFIX_GENERATE_BOTH": 2, + "STRIP_ENUM_PREFIX_STRIP": 3, + } +) + +func (x GoFeatures_StripEnumPrefix) Enum() *GoFeatures_StripEnumPrefix { + p := new(GoFeatures_StripEnumPrefix) + *p = x + return p +} + +func (x GoFeatures_StripEnumPrefix) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GoFeatures_StripEnumPrefix) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_go_features_proto_enumTypes[0].Descriptor() +} + +func (GoFeatures_StripEnumPrefix) Type() protoreflect.EnumType { + return &file_google_protobuf_go_features_proto_enumTypes[0] +} + +func (x GoFeatures_StripEnumPrefix) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *GoFeatures_StripEnumPrefix) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = GoFeatures_StripEnumPrefix(num) + return nil +} + +// Deprecated: Use GoFeatures_StripEnumPrefix.Descriptor instead. +func (GoFeatures_StripEnumPrefix) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_go_features_proto_rawDescGZIP(), []int{0, 0} +} + type GoFeatures struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Whether or not to generate the deprecated UnmarshalJSON method for enums. - LegacyUnmarshalJsonEnum *bool `protobuf:"varint,1,opt,name=legacy_unmarshal_json_enum,json=legacyUnmarshalJsonEnum" json:"legacy_unmarshal_json_enum,omitempty"` + LegacyUnmarshalJsonEnum *bool `protobuf:"varint,1,opt,name=legacy_unmarshal_json_enum,json=legacyUnmarshalJsonEnum" json:"legacy_unmarshal_json_enum,omitempty"` + StripEnumPrefix *GoFeatures_StripEnumPrefix `protobuf:"varint,3,opt,name=strip_enum_prefix,json=stripEnumPrefix,enum=pb.GoFeatures_StripEnumPrefix" json:"strip_enum_prefix,omitempty"` } func (x *GoFeatures) Reset() { @@ -64,6 +127,13 @@ func (x *GoFeatures) GetLegacyUnmarshalJsonEnum() bool { return false } +func (x *GoFeatures) GetStripEnumPrefix() GoFeatures_StripEnumPrefix { + if x != nil && x.StripEnumPrefix != nil { + return *x.StripEnumPrefix + } + return GoFeatures_STRIP_ENUM_PREFIX_UNSPECIFIED +} + var file_google_protobuf_go_features_proto_extTypes = []protoimpl.ExtensionInfo{ { ExtendedType: (*descriptorpb.FeatureSet)(nil), @@ -88,7 +158,7 @@ var file_google_protobuf_go_features_proto_rawDesc = []byte{ 0x66, 0x2f, 0x67, 0x6f, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x01, 0x0a, 0x0a, 0x47, 0x6f, + 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe0, 0x03, 0x0a, 0x0a, 0x47, 0x6f, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0xbe, 0x01, 0x0a, 0x1a, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x75, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, 0x6c, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x80, 0x01, @@ -101,14 +171,31 @@ var file_google_protobuf_go_features_proto_rawDesc = []byte{ 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x20, 0x66, 0x75, 0x74, 0x75, 0x72, 0x65, 0x20, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x17, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x55, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, - 0x6c, 0x4a, 0x73, 0x6f, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x3c, 0x0a, 0x02, 0x67, 0x6f, 0x12, - 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x18, 0xea, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x6f, 0x46, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x73, 0x52, 0x02, 0x67, 0x6f, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x67, 0x6f, 0x66, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x70, 0x62, + 0x6c, 0x4a, 0x73, 0x6f, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x7c, 0x0a, 0x11, 0x73, 0x74, 0x72, + 0x69, 0x70, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x6f, 0x46, 0x65, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x70, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x72, + 0x65, 0x66, 0x69, 0x78, 0x42, 0x30, 0x88, 0x01, 0x01, 0x98, 0x01, 0x06, 0x98, 0x01, 0x07, 0x98, + 0x01, 0x01, 0xa2, 0x01, 0x1b, 0x12, 0x16, 0x53, 0x54, 0x52, 0x49, 0x50, 0x5f, 0x45, 0x4e, 0x55, + 0x4d, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x5f, 0x4b, 0x45, 0x45, 0x50, 0x18, 0x84, 0x07, + 0xb2, 0x01, 0x03, 0x08, 0xe9, 0x07, 0x52, 0x0f, 0x73, 0x74, 0x72, 0x69, 0x70, 0x45, 0x6e, 0x75, + 0x6d, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x92, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x69, + 0x70, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x21, 0x0a, 0x1d, 0x53, + 0x54, 0x52, 0x49, 0x50, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, + 0x0a, 0x16, 0x53, 0x54, 0x52, 0x49, 0x50, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, 0x45, + 0x46, 0x49, 0x58, 0x5f, 0x4b, 0x45, 0x45, 0x50, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x53, 0x54, + 0x52, 0x49, 0x50, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x5f, + 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x02, 0x12, + 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x52, 0x49, 0x50, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, + 0x45, 0x46, 0x49, 0x58, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x50, 0x10, 0x03, 0x3a, 0x3c, 0x0a, 0x02, + 0x67, 0x6f, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x18, + 0xea, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x6f, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x02, 0x67, 0x6f, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x67, + 0x6f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x70, 0x62, } var ( @@ -123,19 +210,22 @@ func file_google_protobuf_go_features_proto_rawDescGZIP() []byte { return file_google_protobuf_go_features_proto_rawDescData } +var file_google_protobuf_go_features_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_protobuf_go_features_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_protobuf_go_features_proto_goTypes = []any{ - (*GoFeatures)(nil), // 0: pb.GoFeatures - (*descriptorpb.FeatureSet)(nil), // 1: google.protobuf.FeatureSet + (GoFeatures_StripEnumPrefix)(0), // 0: pb.GoFeatures.StripEnumPrefix + (*GoFeatures)(nil), // 1: pb.GoFeatures + (*descriptorpb.FeatureSet)(nil), // 2: google.protobuf.FeatureSet } var file_google_protobuf_go_features_proto_depIdxs = []int32{ - 1, // 0: pb.go:extendee -> google.protobuf.FeatureSet - 0, // 1: pb.go:type_name -> pb.GoFeatures - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 1, // [1:2] is the sub-list for extension type_name - 0, // [0:1] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name + 0, // 0: pb.GoFeatures.strip_enum_prefix:type_name -> pb.GoFeatures.StripEnumPrefix + 2, // 1: pb.go:extendee -> google.protobuf.FeatureSet + 1, // 2: pb.go:type_name -> pb.GoFeatures + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 2, // [2:3] is the sub-list for extension type_name + 1, // [1:2] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_google_protobuf_go_features_proto_init() } @@ -148,13 +238,14 @@ func file_google_protobuf_go_features_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_protobuf_go_features_proto_rawDesc, - NumEnums: 0, + NumEnums: 1, NumMessages: 1, NumExtensions: 1, NumServices: 0, }, GoTypes: file_google_protobuf_go_features_proto_goTypes, DependencyIndexes: file_google_protobuf_go_features_proto_depIdxs, + EnumInfos: file_google_protobuf_go_features_proto_enumTypes, MessageInfos: file_google_protobuf_go_features_proto_msgTypes, ExtensionInfos: file_google_protobuf_go_features_proto_extTypes, }.Build() diff --git a/vendor/modules.txt b/vendor/modules.txt index 8aecca2ddb..d6f9710e0e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -32,10 +32,10 @@ github.com/aws/aws-sdk-go-v2/internal/shareddefaults github.com/aws/aws-sdk-go-v2/internal/strings github.com/aws/aws-sdk-go-v2/internal/sync/singleflight github.com/aws/aws-sdk-go-v2/internal/timeconv -# github.com/aws/aws-sdk-go-v2/config v1.28.3 +# github.com/aws/aws-sdk-go-v2/config v1.28.4 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/config -# github.com/aws/aws-sdk-go-v2/credentials v1.17.44 +# github.com/aws/aws-sdk-go-v2/credentials v1.17.45 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/credentials github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds @@ -57,7 +57,7 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 # github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/internal/ini -# github.com/aws/aws-sdk-go-v2/service/dynamodb v1.36.5 +# github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/dynamodb github.com/aws/aws-sdk-go-v2/service/dynamodb/internal/customizations @@ -92,12 +92,12 @@ github.com/aws/aws-sdk-go-v2/service/sso/types github.com/aws/aws-sdk-go-v2/service/ssooidc github.com/aws/aws-sdk-go-v2/service/ssooidc/internal/endpoints github.com/aws/aws-sdk-go-v2/service/ssooidc/types -# github.com/aws/aws-sdk-go-v2/service/sts v1.32.4 +# github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/sts github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints github.com/aws/aws-sdk-go-v2/service/sts/types -# github.com/aws/smithy-go v1.22.0 +# github.com/aws/smithy-go v1.22.1 ## explicit; go 1.21 github.com/aws/smithy-go github.com/aws/smithy-go/auth @@ -144,7 +144,7 @@ github.com/eapache/go-xerial-snappy # github.com/eapache/queue v1.1.0 ## explicit github.com/eapache/queue -# github.com/eclipse/paho.golang v0.21.0 +# github.com/eclipse/paho.golang v0.22.0 ## explicit; go 1.21 github.com/eclipse/paho.golang/autopaho github.com/eclipse/paho.golang/autopaho/queue @@ -159,8 +159,8 @@ github.com/eclipse/paho.golang/paho/store/memory ## 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.15.0 -## explicit; go 1.21 +# github.com/elastic/go-elasticsearch/v8 v8.16.0 +## explicit; go 1.22 github.com/elastic/go-elasticsearch/v8 github.com/elastic/go-elasticsearch/v8/esapi github.com/elastic/go-elasticsearch/v8/internal/version @@ -394,10 +394,13 @@ github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete github.com/elastic/go-elasticsearch/v8/typedapi/inference/get github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference github.com/elastic/go-elasticsearch/v8/typedapi/inference/put +github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats +github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok +github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate github.com/elastic/go-elasticsearch/v8/typedapi/license/delete @@ -505,6 +508,7 @@ github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset +github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps @@ -607,6 +611,7 @@ github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository +github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository @@ -685,7 +690,6 @@ github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/decision github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate -github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deprecationlevel github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfiindependencemeasure github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfraftereffect @@ -696,6 +700,7 @@ github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/edgengramside github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/enrichpolicyphase +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionphase github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionstatus @@ -708,12 +713,15 @@ github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filtertype +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fingerprintdigest github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/followerindexstatus github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionscoremode github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoexecution +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtargetformat +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtiletype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geostrategy @@ -818,6 +826,7 @@ github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcefieldmode +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sqlformat github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/statslevel github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/storagetype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/stringdistance @@ -850,6 +859,7 @@ github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/waitforevents github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watcherstate +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/xpackcategory github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch @@ -1186,10 +1196,10 @@ golang.org/x/text/unicode/norm # golang.org/x/time v0.8.0 ## explicit; go 1.18 golang.org/x/time/rate -# google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 +# google.golang.org/genproto/googleapis/api v0.0.0-20241113202542-65e8d215514f ## explicit; go 1.21 google.golang.org/genproto/googleapis/api/httpbody -# google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 +# google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f ## explicit; go 1.21 google.golang.org/genproto/googleapis/rpc/errdetails google.golang.org/genproto/googleapis/rpc/status @@ -1259,7 +1269,7 @@ google.golang.org/grpc/serviceconfig google.golang.org/grpc/stats google.golang.org/grpc/status google.golang.org/grpc/tap -# google.golang.org/protobuf v1.35.1 +# google.golang.org/protobuf v1.35.2 ## explicit; go 1.21 google.golang.org/protobuf/encoding/protojson google.golang.org/protobuf/encoding/prototext