From 5dcf61ef21ee6009849451901146ed4a13459a9d Mon Sep 17 00:00:00 2001 From: Sotirios Mantziaris Date: Wed, 18 Sep 2024 22:22:02 +0300 Subject: [PATCH] Upgrades (#754) ## Which problem is this PR solving? ## Short description of the changes --- go.mod | 38 +- go.sum | 76 +- .../aws/aws-sdk-go-v2/config/CHANGELOG.md | 8 + .../config/go_module_metadata.go | 2 +- .../config/resolve_credentials.go | 15 +- .../aws-sdk-go-v2/credentials/CHANGELOG.md | 4 + .../credentials/go_module_metadata.go | 2 +- .../service/dynamodb/CHANGELOG.md | 4 + .../service/dynamodb/api_client.go | 38 +- .../service/dynamodb/endpoints.go | 4 - .../service/dynamodb/go_module_metadata.go | 2 +- .../aws-sdk-go-v2/service/dynamodb/options.go | 3 - .../aws-sdk-go-v2/service/sns/CHANGELOG.md | 4 + .../aws-sdk-go-v2/service/sns/api_client.go | 38 +- .../aws-sdk-go-v2/service/sns/endpoints.go | 4 - .../service/sns/go_module_metadata.go | 2 +- .../aws/aws-sdk-go-v2/service/sns/options.go | 3 - .../aws-sdk-go-v2/service/sqs/CHANGELOG.md | 4 + .../aws-sdk-go-v2/service/sqs/api_client.go | 38 +- .../aws-sdk-go-v2/service/sqs/endpoints.go | 4 - .../service/sqs/go_module_metadata.go | 2 +- .../aws/aws-sdk-go-v2/service/sqs/options.go | 3 - .../aws-sdk-go-v2/service/sso/CHANGELOG.md | 4 + .../aws-sdk-go-v2/service/sso/api_client.go | 38 +- .../aws-sdk-go-v2/service/sso/endpoints.go | 4 - .../service/sso/go_module_metadata.go | 2 +- .../aws/aws-sdk-go-v2/service/sso/options.go | 3 - .../service/ssooidc/CHANGELOG.md | 4 + .../service/ssooidc/api_client.go | 38 +- .../service/ssooidc/endpoints.go | 4 - .../service/ssooidc/go_module_metadata.go | 2 +- .../aws-sdk-go-v2/service/ssooidc/options.go | 3 - .../aws-sdk-go-v2/service/sts/CHANGELOG.md | 4 + .../aws-sdk-go-v2/service/sts/api_client.go | 38 +- .../aws-sdk-go-v2/service/sts/endpoints.go | 4 - .../service/sts/go_module_metadata.go | 2 +- .../aws/aws-sdk-go-v2/service/sts/options.go | 3 - .../elastic/go-elasticsearch/v8/Makefile | 2 +- .../elastic/go-elasticsearch/v8/README.md | 2 +- .../go-elasticsearch/v8/catalog-info.yaml | 4 +- .../go-elasticsearch/v8/esapi/api._.go | 80 +- .../go-elasticsearch/v8/esapi/api.bulk.go | 2 +- .../v8/esapi/api.capabilities.go | 266 +++ .../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 | 15 +- .../api.cluster.delete_component_template.go | 2 +- ...cluster.delete_voting_config_exclusions.go | 2 +- .../api.cluster.exists_component_template.go | 2 +- .../api.cluster.get_component_template.go | 2 +- .../v8/esapi/api.cluster.get_settings.go | 2 +- .../v8/esapi/api.cluster.health.go | 2 +- .../v8/esapi/api.cluster.info.go | 2 +- .../v8/esapi/api.cluster.pending_tasks.go | 2 +- ...i.cluster.post_voting_config_exclusions.go | 2 +- .../api.cluster.put_component_template.go | 2 +- .../v8/esapi/api.cluster.put_settings.go | 2 +- .../v8/esapi/api.cluster.remote_info.go | 2 +- .../v8/esapi/api.cluster.reroute.go | 2 +- .../v8/esapi/api.cluster.state.go | 2 +- .../v8/esapi/api.cluster.stats.go | 2 +- .../v8/esapi/api.connector.check_in.go | 2 +- .../v8/esapi/api.connector.delete.go | 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 | 15 +- .../v8/esapi/api.connector.put.go | 32 +- .../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 | 239 +++ .../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 | 237 +++ .../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 | 16 +- .../v8/esapi/api.field_caps.go | 2 +- .../v8/esapi/api.fleet.delete_secret.go | 2 +- .../v8/esapi/api.fleet.get_secret.go | 2 +- .../v8/esapi/api.fleet.global_checkpoints.go | 2 +- .../v8/esapi/api.fleet.msearch.go | 2 +- .../v8/esapi/api.fleet.post_secret.go | 2 +- .../v8/esapi/api.fleet.search.go | 2 +- .../go-elasticsearch/v8/esapi/api.get.go | 2 +- .../v8/esapi/api.get_script.go | 2 +- .../v8/esapi/api.get_script_context.go | 2 +- .../v8/esapi/api.get_script_languages.go | 2 +- .../v8/esapi/api.get_source.go | 2 +- .../v8/esapi/api.health_report.go | 2 +- .../go-elasticsearch/v8/esapi/api.index.go | 2 +- .../v8/esapi/api.indices.add_block.go | 2 +- .../v8/esapi/api.indices.analyze.go | 2 +- .../v8/esapi/api.indices.clear_cache.go | 2 +- .../v8/esapi/api.indices.clone.go | 2 +- .../v8/esapi/api.indices.close.go | 2 +- .../v8/esapi/api.indices.create.go | 2 +- .../v8/esapi/api.indices.delete.go | 2 +- .../v8/esapi/api.indices.delete_alias.go | 2 +- .../api.indices.delete_data_lifecycle.go | 2 +- .../api.indices.delete_index_template.go | 2 +- .../v8/esapi/api.indices.delete_template.go | 2 +- .../v8/esapi/api.indices.disk_usage.go | 2 +- .../v8/esapi/api.indices.downsample.go | 2 +- .../v8/esapi/api.indices.exists.go | 2 +- .../v8/esapi/api.indices.exists_alias.go | 2 +- .../api.indices.exists_index_template.go | 2 +- .../v8/esapi/api.indices.exists_template.go | 2 +- .../api.indices.explain_data_lifecycle.go | 2 +- .../v8/esapi/api.indices.field_usage_stats.go | 2 +- .../v8/esapi/api.indices.flush.go | 2 +- .../v8/esapi/api.indices.forcemerge.go | 2 +- .../v8/esapi/api.indices.get.go | 2 +- .../v8/esapi/api.indices.get_alias.go | 2 +- .../esapi/api.indices.get_data_lifecycle.go | 2 +- .../v8/esapi/api.indices.get_field_mapping.go | 2 +- .../esapi/api.indices.get_index_template.go | 2 +- .../v8/esapi/api.indices.get_mapping.go | 2 +- .../v8/esapi/api.indices.get_settings.go | 2 +- .../v8/esapi/api.indices.get_template.go | 2 +- .../esapi/api.indices.modify_data_stream.go | 2 +- .../v8/esapi/api.indices.open.go | 2 +- .../v8/esapi/api.indices.put_alias.go | 2 +- .../esapi/api.indices.put_data_lifecycle.go | 2 +- .../esapi/api.indices.put_index_template.go | 2 +- .../v8/esapi/api.indices.put_mapping.go | 2 +- .../v8/esapi/api.indices.put_settings.go | 2 +- .../v8/esapi/api.indices.put_template.go | 2 +- .../v8/esapi/api.indices.recovery.go | 2 +- .../v8/esapi/api.indices.refresh.go | 2 +- .../v8/esapi/api.indices.resolve_cluster.go | 2 +- .../v8/esapi/api.indices.resolve_index.go | 2 +- .../v8/esapi/api.indices.rollover.go | 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 +- ...elete_model.go => api.inference.delete.go} | 82 +- ...ence.get_model.go => api.inference.get.go} | 60 +- .../v8/esapi/api.inference.inference.go | 4 +- ...ence.put_model.go => api.inference.put.go} | 64 +- .../go-elasticsearch/v8/esapi/api.info.go | 2 +- .../esapi/api.ingest.delete_geoip_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 | 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 | 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 | 231 +++ ...e.go => api.query_rules.delete_ruleset.go} | 54 +- .../v8/esapi/api.query_rules.get_rule.go | 231 +++ ....get.go => api.query_rules.get_ruleset.go} | 54 +- ...st.go => api.query_rules.list_rulesets.go} | 62 +- .../v8/esapi/api.query_rules.put_rule.go | 241 +++ ....put.go => api.query_rules.put_ruleset.go} | 56 +- .../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 | 2 +- .../v8/esapi/api.search_template.go | 2 +- .../v8/esapi/api.shutdown.delete_node.go | 2 +- .../v8/esapi/api.shutdown.get_node.go | 16 +- .../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 | 17 +- .../esapi/api.snapshot.delete_repository.go | 2 +- .../v8/esapi/api.snapshot.get.go | 2 +- .../v8/esapi/api.snapshot.get_repository.go | 2 +- .../esapi/api.snapshot.repository_analyze.go | 2 +- .../v8/esapi/api.snapshot.restore.go | 2 +- .../v8/esapi/api.snapshot.status.go | 2 +- .../esapi/api.snapshot.verify_repository.go | 2 +- .../v8/esapi/api.synonyms.delete_synonym.go | 2 +- .../esapi/api.synonyms.delete_synonym_rule.go | 2 +- .../v8/esapi/api.synonyms.get_synonym.go | 2 +- .../v8/esapi/api.synonyms.get_synonym_rule.go | 2 +- .../esapi/api.synonyms.get_synonyms_sets.go | 2 +- .../v8/esapi/api.synonyms.put_synonym.go | 2 +- .../v8/esapi/api.synonyms.put_synonym_rule.go | 2 +- .../v8/esapi/api.tasks.cancel.go | 2 +- .../v8/esapi/api.tasks.get.go | 2 +- .../v8/esapi/api.tasks.list.go | 2 +- .../v8/esapi/api.terms_enum.go | 2 +- .../v8/esapi/api.termvectors.go | 2 +- .../go-elasticsearch/v8/esapi/api.update.go | 2 +- .../v8/esapi/api.update_by_query.go | 2 +- .../esapi/api.update_by_query_rethrottle.go | 2 +- .../v8/esapi/api.xpack.async_search.delete.go | 2 +- .../v8/esapi/api.xpack.async_search.get.go | 2 +- .../v8/esapi/api.xpack.async_search.status.go | 2 +- .../v8/esapi/api.xpack.async_search.submit.go | 2 +- ...k.autoscaling.delete_autoscaling_policy.go | 28 +- ...ck.autoscaling.get_autoscaling_capacity.go | 16 +- ...pack.autoscaling.get_autoscaling_policy.go | 16 +- ...pack.autoscaling.put_autoscaling_policy.go | 28 +- .../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 | 16 +- .../esapi/api.xpack.enrich.execute_policy.go | 15 +- .../v8/esapi/api.xpack.enrich.get_policy.go | 16 +- .../v8/esapi/api.xpack.enrich.put_policy.go | 16 +- .../v8/esapi/api.xpack.enrich.stats.go | 16 +- .../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 | 2 +- .../api.xpack.indices.data_streams_stats.go | 2 +- .../api.xpack.indices.delete_data_stream.go | 2 +- .../api.xpack.indices.get_data_stream.go | 2 +- ...pi.xpack.indices.migrate_to_data_stream.go | 2 +- .../api.xpack.indices.promote_data_stream.go | 2 +- ...i.xpack.indices.reload_search_analyzers.go | 2 +- .../v8/esapi/api.xpack.indices.unfreeze.go | 2 +- .../v8/esapi/api.xpack.license.delete.go | 28 +- .../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 | 29 +- .../api.xpack.license.post_start_basic.go | 29 +- .../api.xpack.license.post_start_trial.go | 31 +- .../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 | 31 +- .../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 | 238 +++ .../esapi/api.xpack.security.bulk_put_role.go | 238 +++ ...api.xpack.security.bulk_update_api_keys.go | 2 +- .../api.xpack.security.change_password.go | 2 +- .../api.xpack.security.clear_api_key_cache.go | 2 +- ....xpack.security.clear_cached_privileges.go | 2 +- .../api.xpack.security.clear_cached_realms.go | 2 +- .../api.xpack.security.clear_cached_roles.go | 2 +- ...ck.security.clear_cached_service_tokens.go | 2 +- .../api.xpack.security.create_api_key.go | 2 +- ...k.security.create_cross_cluster_api_key.go | 2 +- ...api.xpack.security.create_service_token.go | 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 | 16 +- .../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 | 6 +- .../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 | 232 +++ .../v8/esapi/api.xpack.security.query_user.go | 2 +- .../api.xpack.security.saml_authenticate.go | 2 +- ...api.xpack.security.saml_complete_logout.go | 2 +- .../api.xpack.security.saml_invalidate.go | 2 +- .../esapi/api.xpack.security.saml_logout.go | 2 +- ...ck.security.saml_prepare_authentication.go | 2 +- ...security.saml_service_provider_metadata.go | 2 +- ...pi.xpack.security.suggest_user_profiles.go | 2 +- .../api.xpack.security.update_api_key.go | 2 +- ...k.security.update_cross_cluster_api_key.go | 2 +- .../api.xpack.security.update_settings.go | 28 +- ...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 | 28 +- .../v8/esapi/api.xpack.slm.stop.go | 28 +- .../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 | 6 +- ...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 | 215 +++ .../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 | 16 +- .../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 | 16 +- .../v8/esapi/api.xpack.watcher.stats.go | 2 +- .../v8/esapi/api.xpack.watcher.stop.go | 16 +- .../api.xpack.watcher.update_settings.go | 28 +- .../v8/esapi/api.xpack.xpack.info.go | 2 +- .../v8/esapi/api.xpack.xpack.usage.go | 2 +- .../elastic/go-elasticsearch/v8/esapi/doc.go | 2 +- .../v8/internal/version/version.go | 2 +- .../go-elasticsearch/v8/typedapi/api._.go | 1664 +++++++++++++---- .../v8/typedapi/asyncsearch/delete/delete.go | 22 +- .../typedapi/asyncsearch/delete/response.go | 4 +- .../v8/typedapi/asyncsearch/get/get.go | 12 +- .../v8/typedapi/asyncsearch/get/response.go | 98 +- .../typedapi/asyncsearch/status/response.go | 119 +- .../v8/typedapi/asyncsearch/status/status.go | 12 +- .../v8/typedapi/asyncsearch/submit/request.go | 37 +- .../typedapi/asyncsearch/submit/response.go | 98 +- .../v8/typedapi/asyncsearch/submit/submit.go | 28 +- .../delete_autoscaling_policy.go | 2 +- .../deleteautoscalingpolicy/response.go | 4 +- .../get_autoscaling_capacity.go | 2 +- .../getautoscalingcapacity/response.go | 4 +- .../get_autoscaling_policy.go | 2 +- .../getautoscalingpolicy/response.go | 4 +- .../put_autoscaling_policy.go | 2 +- .../putautoscalingpolicy/request.go | 4 +- .../putautoscalingpolicy/response.go | 4 +- .../v8/typedapi/capabilities/capabilities.go | 225 +++ .../v8/typedapi/cat/aliases/aliases.go | 20 +- .../v8/typedapi/cat/aliases/response.go | 4 +- .../v8/typedapi/cat/allocation/allocation.go | 14 +- .../v8/typedapi/cat/allocation/response.go | 4 +- .../componenttemplates/component_templates.go | 20 +- .../cat/componenttemplates/response.go | 4 +- .../v8/typedapi/cat/count/count.go | 24 +- .../v8/typedapi/cat/count/response.go | 4 +- .../v8/typedapi/cat/fielddata/fielddata.go | 20 +- .../v8/typedapi/cat/fielddata/response.go | 4 +- .../v8/typedapi/cat/health/health.go | 36 +- .../v8/typedapi/cat/health/response.go | 4 +- .../v8/typedapi/cat/help/help.go | 2 +- .../v8/typedapi/cat/help/response.go | 4 +- .../v8/typedapi/cat/indices/indices.go | 36 +- .../v8/typedapi/cat/indices/response.go | 4 +- .../v8/typedapi/cat/master/master.go | 14 +- .../v8/typedapi/cat/master/response.go | 4 +- .../typedapi/cat/mldatafeeds/ml_datafeeds.go | 22 +- .../v8/typedapi/cat/mldatafeeds/response.go | 4 +- .../ml_data_frame_analytics.go | 16 +- .../cat/mldataframeanalytics/response.go | 4 +- .../v8/typedapi/cat/mljobs/ml_jobs.go | 22 +- .../v8/typedapi/cat/mljobs/response.go | 4 +- .../cat/mltrainedmodels/ml_trained_models.go | 14 +- .../typedapi/cat/mltrainedmodels/response.go | 4 +- .../v8/typedapi/cat/nodeattrs/nodeattrs.go | 8 +- .../v8/typedapi/cat/nodeattrs/response.go | 4 +- .../v8/typedapi/cat/nodes/nodes.go | 12 +- .../v8/typedapi/cat/nodes/response.go | 4 +- .../cat/pendingtasks/pending_tasks.go | 12 +- .../v8/typedapi/cat/pendingtasks/response.go | 4 +- .../v8/typedapi/cat/plugins/plugins.go | 12 +- .../v8/typedapi/cat/plugins/response.go | 4 +- .../v8/typedapi/cat/recovery/recovery.go | 26 +- .../v8/typedapi/cat/recovery/response.go | 4 +- .../typedapi/cat/repositories/repositories.go | 12 +- .../v8/typedapi/cat/repositories/response.go | 4 +- .../v8/typedapi/cat/segments/response.go | 4 +- .../v8/typedapi/cat/segments/segments.go | 14 +- .../v8/typedapi/cat/shards/response.go | 4 +- .../v8/typedapi/cat/shards/shards.go | 12 +- .../v8/typedapi/cat/snapshots/response.go | 4 +- .../v8/typedapi/cat/snapshots/snapshots.go | 14 +- .../v8/typedapi/cat/tasks/response.go | 4 +- .../v8/typedapi/cat/tasks/tasks.go | 14 +- .../v8/typedapi/cat/templates/response.go | 4 +- .../v8/typedapi/cat/templates/templates.go | 18 +- .../v8/typedapi/cat/threadpool/response.go | 4 +- .../v8/typedapi/cat/threadpool/thread_pool.go | 22 +- .../v8/typedapi/cat/transforms/response.go | 4 +- .../v8/typedapi/cat/transforms/transforms.go | 14 +- .../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 | 10 +- .../deletecomponenttemplate/response.go | 4 +- .../delete_voting_config_exclusions.go | 2 +- .../exists_component_template.go | 2 +- .../get_component_template.go | 6 +- .../cluster/getcomponenttemplate/response.go | 4 +- .../cluster/getsettings/get_settings.go | 8 +- .../typedapi/cluster/getsettings/response.go | 4 +- .../v8/typedapi/cluster/health/health.go | 31 +- .../v8/typedapi/cluster/health/response.go | 4 +- .../v8/typedapi/cluster/info/info.go | 2 +- .../v8/typedapi/cluster/info/response.go | 4 +- .../cluster/pendingtasks/pending_tasks.go | 28 +- .../typedapi/cluster/pendingtasks/response.go | 4 +- .../post_voting_config_exclusions.go | 2 +- .../put_component_template.go | 50 +- .../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 | 10 +- .../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 | 12 +- .../v8/typedapi/connector/checkin/check_in.go | 346 ++++ .../v8/typedapi/connector/checkin/response.go | 38 + .../delete/delete.go | 57 +- .../delete/response.go | 4 +- .../{queryruleset => connector}/get/get.go | 48 +- .../v8/typedapi/connector/get/response.go | 346 ++++ .../typedapi/connector/lastsync/last_sync.go | 465 +++++ .../v8/typedapi/connector/lastsync/request.go | 183 ++ .../typedapi/connector/lastsync/response.go | 38 + .../{queryruleset => connector}/list/list.go | 59 +- .../v8/typedapi/connector/list/response.go | 39 + .../v8/typedapi/connector/post/post.go | 381 ++++ .../v8/typedapi/connector/post/request.go | 147 ++ .../v8/typedapi/connector/post/response.go | 39 + .../{queryruleset => connector}/put/put.go | 97 +- .../v8/typedapi/connector/put/request.go | 147 ++ .../put/response.go | 5 +- .../connector/secretpost/secret_post.go | 223 +++ .../connector/syncjobcancel/response.go | 38 + .../syncjobcancel/sync_job_cancel.go | 346 ++++ .../connector/syncjobdelete/response.go | 37 + .../syncjobdelete/sync_job_delete.go | 344 ++++ .../typedapi/connector/syncjobget/response.go | 233 +++ .../connector/syncjobget/sync_job_get.go | 344 ++++ .../connector/syncjoblist/response.go | 39 + .../connector/syncjoblist/sync_job_list.go | 367 ++++ .../typedapi/connector/syncjobpost/request.go | 96 + .../connector/syncjobpost/response.go | 34 + .../connector/syncjobpost/sync_job_post.go | 361 ++++ .../updateactivefiltering/response.go | 38 + .../update_active_filtering.go | 352 ++++ .../connector/updateapikeyid/request.go | 53 + .../connector/updateapikeyid/response.go | 38 + .../updateapikeyid/update_api_key_id.go | 376 ++++ .../connector/updateconfiguration/request.go | 92 + .../connector/updateconfiguration/response.go | 38 + .../update_configuration.go | 375 ++++ .../typedapi/connector/updateerror/request.go | 79 + .../connector/updateerror/response.go | 38 + .../connector/updateerror/update_error.go | 367 ++++ .../connector/updatefiltering/request.go | 56 + .../connector/updatefiltering/response.go | 38 + .../updatefiltering/update_filtering.go | 382 ++++ .../updatefilteringvalidation/request.go | 54 + .../updatefilteringvalidation/response.go | 38 + .../update_filtering_validation.go | 370 ++++ .../connector/updateindexname/request.go | 79 + .../connector/updateindexname/response.go | 38 + .../updateindexname/update_index_name.go | 367 ++++ .../typedapi/connector/updatename/request.go | 53 + .../typedapi/connector/updatename/response.go | 38 + .../connector/updatename/update_name.go | 376 ++++ .../connector/updatenative/request.go | 52 + .../connector/updatenative/response.go | 38 + .../connector/updatenative/update_native.go | 367 ++++ .../updatepipeline}/request.go | 12 +- .../connector/updatepipeline/response.go | 38 + .../updatepipeline/update_pipeline.go | 368 ++++ .../connector/updatescheduling/request.go | 54 + .../connector/updatescheduling/response.go | 38 + .../updatescheduling/update_scheduling.go | 368 ++++ .../connector/updateservicetype/request.go | 52 + .../connector/updateservicetype/response.go | 38 + .../updateservicetype/update_service_type.go | 368 ++++ .../connector/updatestatus/request.go | 54 + .../connector/updatestatus/response.go | 38 + .../connector/updatestatus/update_status.go | 368 ++++ .../v8/typedapi/core/bulk/bulk.go | 10 +- .../v8/typedapi/core/bulk/request.go | 4 +- .../v8/typedapi/core/bulk/response.go | 4 +- .../typedapi/core/clearscroll/clear_scroll.go | 6 +- .../v8/typedapi/core/clearscroll/request.go | 42 +- .../v8/typedapi/core/clearscroll/response.go | 4 +- .../closepointintime/close_point_in_time.go | 6 +- .../typedapi/core/closepointintime/request.go | 31 +- .../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 | 18 +- .../v8/typedapi/core/create/request.go | 4 +- .../v8/typedapi/core/create/response.go | 4 +- .../v8/typedapi/core/delete/delete.go | 6 +- .../v8/typedapi/core/delete/response.go | 4 +- .../core/deletebyquery/delete_by_query.go | 6 +- .../v8/typedapi/core/deletebyquery/request.go | 4 +- .../typedapi/core/deletebyquery/response.go | 4 +- .../delete_by_query_rethrottle.go | 2 +- .../core/deletebyqueryrethrottle/response.go | 4 +- .../core/deletescript/delete_script.go | 6 +- .../v8/typedapi/core/deletescript/response.go | 4 +- .../v8/typedapi/core/exists/exists.go | 6 +- .../core/existssource/exists_source.go | 6 +- .../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 | 20 +- .../v8/typedapi/core/fieldcaps/request.go | 4 +- .../v8/typedapi/core/fieldcaps/response.go | 4 +- .../v8/typedapi/core/get/get.go | 2 +- .../v8/typedapi/core/get/response.go | 4 +- .../v8/typedapi/core/getscript/get_script.go | 6 +- .../v8/typedapi/core/getscript/response.go | 4 +- .../getscriptcontext/get_script_context.go | 2 +- .../core/getscriptcontext/response.go | 4 +- .../get_script_languages.go | 2 +- .../core/getscriptlanguages/response.go | 4 +- .../v8/typedapi/core/getsource/get_source.go | 2 +- .../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 | 12 +- .../v8/typedapi/core/index/request.go | 4 +- .../v8/typedapi/core/index/response.go | 4 +- .../v8/typedapi/core/info/info.go | 2 +- .../v8/typedapi/core/info/response.go | 4 +- .../v8/typedapi/core/knnsearch/knn_search.go | 2 +- .../v8/typedapi/core/knnsearch/request.go | 37 +- .../v8/typedapi/core/knnsearch/response.go | 4 +- .../v8/typedapi/core/mget/mget.go | 2 +- .../v8/typedapi/core/mget/request.go | 4 +- .../v8/typedapi/core/mget/response.go | 17 +- .../v8/typedapi/core/msearch/msearch.go | 17 +- .../v8/typedapi/core/msearch/request.go | 4 +- .../v8/typedapi/core/msearch/response.go | 17 +- .../core/msearchtemplate/msearch_template.go | 6 +- .../typedapi/core/msearchtemplate/request.go | 4 +- .../typedapi/core/msearchtemplate/response.go | 17 +- .../core/mtermvectors/mtermvectors.go | 2 +- .../v8/typedapi/core/mtermvectors/request.go | 4 +- .../v8/typedapi/core/mtermvectors/response.go | 4 +- .../openpointintime/open_point_in_time.go | 34 +- .../typedapi/core/openpointintime/response.go | 4 +- .../v8/typedapi/core/ping/ping.go | 2 +- .../v8/typedapi/core/putscript/put_script.go | 6 +- .../v8/typedapi/core/putscript/request.go | 4 +- .../v8/typedapi/core/putscript/response.go | 4 +- .../v8/typedapi/core/rankeval/rank_eval.go | 10 +- .../v8/typedapi/core/rankeval/request.go | 4 +- .../v8/typedapi/core/rankeval/response.go | 4 +- .../v8/typedapi/core/reindex/reindex.go | 5 +- .../v8/typedapi/core/reindex/request.go | 112 +- .../v8/typedapi/core/reindex/response.go | 4 +- .../reindexrethrottle/reindex_rethrottle.go | 6 +- .../core/reindexrethrottle/response.go | 4 +- .../render_search_template.go | 6 +- .../core/rendersearchtemplate/request.go | 4 +- .../core/rendersearchtemplate/response.go | 4 +- .../core/scriptspainlessexecute/request.go | 6 +- .../core/scriptspainlessexecute/response.go | 4 +- .../scripts_painless_execute.go | 8 +- .../v8/typedapi/core/scroll/request.go | 4 +- .../v8/typedapi/core/scroll/response.go | 4 +- .../v8/typedapi/core/scroll/scroll.go | 2 +- .../v8/typedapi/core/search/request.go | 37 +- .../v8/typedapi/core/search/response.go | 4 +- .../v8/typedapi/core/search/search.go | 27 +- .../v8/typedapi/core/searchmvt/request.go | 4 +- .../v8/typedapi/core/searchmvt/response.go | 4 +- .../v8/typedapi/core/searchmvt/search_mvt.go | 2 +- .../v8/typedapi/core/searchshards/response.go | 4 +- .../core/searchshards/search_shards.go | 2 +- .../typedapi/core/searchtemplate/request.go | 4 +- .../typedapi/core/searchtemplate/response.go | 4 +- .../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 | 2 +- .../v8/typedapi/core/termvectors/request.go | 4 +- .../v8/typedapi/core/termvectors/response.go | 6 +- .../typedapi/core/termvectors/termvectors.go | 2 +- .../v8/typedapi/core/update/request.go | 68 +- .../v8/typedapi/core/update/response.go | 4 +- .../v8/typedapi/core/update/update.go | 5 +- .../v8/typedapi/core/updatebyquery/request.go | 95 +- .../typedapi/core/updatebyquery/response.go | 4 +- .../core/updatebyquery/update_by_query.go | 25 +- .../core/updatebyqueryrethrottle/response.go | 4 +- .../update_by_query_rethrottle.go | 2 +- .../delete_dangling_index.go | 2 +- .../deletedanglingindex/response.go | 4 +- .../import_dangling_index.go | 2 +- .../importdanglingindex/response.go | 4 +- .../list_dangling_indices.go | 2 +- .../listdanglingindices/response.go | 4 +- .../enrich/deletepolicy/delete_policy.go | 2 +- .../typedapi/enrich/deletepolicy/response.go | 4 +- .../enrich/executepolicy/execute_policy.go | 2 +- .../typedapi/enrich/executepolicy/response.go | 4 +- .../typedapi/enrich/getpolicy/get_policy.go | 6 +- .../v8/typedapi/enrich/getpolicy/response.go | 4 +- .../typedapi/enrich/putpolicy/put_policy.go | 6 +- .../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 | 10 +- .../v8/typedapi/eql/delete/delete.go | 10 +- .../v8/typedapi/eql/delete/response.go | 4 +- .../v8/typedapi/eql/get/get.go | 10 +- .../v8/typedapi/eql/get/response.go | 4 +- .../v8/typedapi/eql/getstatus/get_status.go | 10 +- .../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 | 231 +++ .../v8/typedapi/esql/query/query.go | 6 +- .../v8/typedapi/esql/query/request.go | 4 +- .../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 | 24 +- .../v8/typedapi/fleet/msearch/request.go | 4 +- .../v8/typedapi/fleet/msearch/response.go | 17 +- .../typedapi/fleet/postsecret/post_secret.go | 2 +- .../v8/typedapi/fleet/search/request.go | 37 +- .../v8/typedapi/fleet/search/response.go | 4 +- .../v8/typedapi/fleet/search/search.go | 16 +- .../v8/typedapi/graph/explore/explore.go | 10 +- .../v8/typedapi/graph/explore/request.go | 4 +- .../v8/typedapi/graph/explore/response.go | 4 +- .../ilm/deletelifecycle/delete_lifecycle.go | 12 +- .../typedapi/ilm/deletelifecycle/response.go | 4 +- .../ilm/explainlifecycle/explain_lifecycle.go | 14 +- .../typedapi/ilm/explainlifecycle/response.go | 4 +- .../ilm/getlifecycle/get_lifecycle.go | 8 +- .../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 | 20 +- .../ilm/migratetodatatiers/request.go | 4 +- .../ilm/migratetodatatiers/response.go | 4 +- .../typedapi/ilm/movetostep/move_to_step.go | 2 +- .../v8/typedapi/ilm/movetostep/request.go | 4 +- .../v8/typedapi/ilm/movetostep/response.go | 4 +- .../ilm/putlifecycle/put_lifecycle.go | 8 +- .../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 | 2 +- .../v8/typedapi/indices/addblock/response.go | 4 +- .../v8/typedapi/indices/analyze/analyze.go | 8 +- .../v8/typedapi/indices/analyze/request.go | 850 ++++----- .../v8/typedapi/indices/analyze/response.go | 4 +- .../indices/clearcache/clear_cache.go | 8 +- .../typedapi/indices/clearcache/response.go | 4 +- .../v8/typedapi/indices/clone/clone.go | 6 +- .../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 | 6 +- .../v8/typedapi/indices/create/request.go | 4 +- .../v8/typedapi/indices/create/response.go | 4 +- .../createdatastream/create_data_stream.go | 8 +- .../indices/createdatastream/response.go | 4 +- .../datastreamsstats/data_streams_stats.go | 6 +- .../indices/datastreamsstats/response.go | 4 +- .../v8/typedapi/indices/delete/delete.go | 6 +- .../v8/typedapi/indices/delete/response.go | 4 +- .../indices/deletealias/delete_alias.go | 6 +- .../typedapi/indices/deletealias/response.go | 4 +- .../delete_data_lifecycle.go | 8 +- .../indices/deletedatalifecycle/response.go | 4 +- .../deletedatastream/delete_data_stream.go | 6 +- .../indices/deletedatastream/response.go | 4 +- .../delete_index_template.go | 18 +- .../indices/deleteindextemplate/response.go | 4 +- .../indices/deletetemplate/delete_template.go | 6 +- .../indices/deletetemplate/response.go | 4 +- .../typedapi/indices/diskusage/disk_usage.go | 6 +- .../v8/typedapi/indices/diskusage/response.go | 4 +- .../typedapi/indices/downsample/downsample.go | 10 +- .../v8/typedapi/indices/downsample/request.go | 4 +- .../typedapi/indices/downsample/response.go | 4 +- .../v8/typedapi/indices/exists/exists.go | 6 +- .../indices/existsalias/exists_alias.go | 6 +- .../exists_index_template.go | 2 +- .../indices/existstemplate/exists_template.go | 4 +- .../explain_data_lifecycle.go | 2 +- .../indices/explaindatalifecycle/response.go | 4 +- .../fieldusagestats/field_usage_stats.go | 6 +- .../indices/fieldusagestats/response.go | 4 +- .../v8/typedapi/indices/flush/flush.go | 6 +- .../v8/typedapi/indices/flush/response.go | 4 +- .../typedapi/indices/forcemerge/forcemerge.go | 2 +- .../typedapi/indices/forcemerge/response.go | 4 +- .../v8/typedapi/indices/get/get.go | 10 +- .../v8/typedapi/indices/get/response.go | 4 +- .../v8/typedapi/indices/getalias/get_alias.go | 6 +- .../v8/typedapi/indices/getalias/response.go | 4 +- .../getdatalifecycle/get_data_lifecycle.go | 8 +- .../indices/getdatalifecycle/response.go | 4 +- .../indices/getdatastream/get_data_stream.go | 6 +- .../indices/getdatastream/response.go | 4 +- .../getfieldmapping/get_field_mapping.go | 10 +- .../indices/getfieldmapping/response.go | 4 +- .../getindextemplate/get_index_template.go | 8 +- .../indices/getindextemplate/response.go | 4 +- .../indices/getmapping/get_mapping.go | 10 +- .../typedapi/indices/getmapping/response.go | 4 +- .../indices/getsettings/get_settings.go | 8 +- .../typedapi/indices/getsettings/response.go | 4 +- .../indices/gettemplate/get_template.go | 8 +- .../typedapi/indices/gettemplate/response.go | 4 +- .../migrate_to_data_stream.go | 30 +- .../indices/migratetodatastream/response.go | 4 +- .../modifydatastream/modify_data_stream.go | 8 +- .../indices/modifydatastream/request.go | 4 +- .../indices/modifydatastream/response.go | 4 +- .../v8/typedapi/indices/open/open.go | 8 +- .../v8/typedapi/indices/open/response.go | 4 +- .../promotedatastream/promote_data_stream.go | 2 +- .../indices/promotedatastream/response.go | 4 +- .../v8/typedapi/indices/putalias/put_alias.go | 6 +- .../v8/typedapi/indices/putalias/request.go | 4 +- .../v8/typedapi/indices/putalias/response.go | 4 +- .../putdatalifecycle/put_data_lifecycle.go | 6 +- .../indices/putdatalifecycle/request.go | 4 +- .../indices/putdatalifecycle/response.go | 4 +- .../putindextemplate/put_index_template.go | 10 +- .../indices/putindextemplate/request.go | 4 +- .../indices/putindextemplate/response.go | 4 +- .../indices/putmapping/put_mapping.go | 12 +- .../v8/typedapi/indices/putmapping/request.go | 22 +- .../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 | 10 +- .../typedapi/indices/puttemplate/request.go | 4 +- .../typedapi/indices/puttemplate/response.go | 4 +- .../v8/typedapi/indices/recovery/recovery.go | 12 +- .../v8/typedapi/indices/recovery/response.go | 4 +- .../v8/typedapi/indices/refresh/refresh.go | 12 +- .../v8/typedapi/indices/refresh/response.go | 4 +- .../reload_search_analyzers.go | 2 +- .../indices/reloadsearchanalyzers/response.go | 4 +- .../indices/resolvecluster/resolve_cluster.go | 10 +- .../indices/resolvecluster/response.go | 4 +- .../indices/resolveindex/resolve_index.go | 10 +- .../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 | 8 +- .../v8/typedapi/indices/segments/response.go | 4 +- .../v8/typedapi/indices/segments/segments.go | 10 +- .../typedapi/indices/shardstores/response.go | 4 +- .../indices/shardstores/shard_stores.go | 10 +- .../v8/typedapi/indices/shrink/request.go | 4 +- .../v8/typedapi/indices/shrink/response.go | 4 +- .../v8/typedapi/indices/shrink/shrink.go | 6 +- .../indices/simulateindextemplate/response.go | 4 +- .../simulate_index_template.go | 12 +- .../indices/simulatetemplate/request.go | 4 +- .../indices/simulatetemplate/response.go | 4 +- .../simulatetemplate/simulate_template.go | 10 +- .../v8/typedapi/indices/split/request.go | 4 +- .../v8/typedapi/indices/split/response.go | 4 +- .../v8/typedapi/indices/split/split.go | 8 +- .../v8/typedapi/indices/stats/response.go | 4 +- .../v8/typedapi/indices/stats/stats.go | 10 +- .../v8/typedapi/indices/unfreeze/response.go | 4 +- .../v8/typedapi/indices/unfreeze/unfreeze.go | 8 +- .../typedapi/indices/updatealiases/request.go | 4 +- .../indices/updatealiases/response.go | 4 +- .../indices/updatealiases/update_aliases.go | 6 +- .../typedapi/indices/validatequery/request.go | 4 +- .../indices/validatequery/response.go | 4 +- .../indices/validatequery/validate_query.go | 6 +- .../delete_model.go => delete/delete.go} | 84 +- .../v8/typedapi/inference/delete/response.go | 38 + .../{getmodel/get_model.go => get/get.go} | 73 +- .../inference/{getmodel => get}/response.go | 10 +- .../typedapi/inference/inference/inference.go | 8 +- .../typedapi/inference/inference/request.go | 6 +- .../typedapi/inference/inference/response.go | 4 +- .../{putmodel/put_model.go => put/put.go} | 74 +- .../inference/{putmodel => put}/request.go | 12 +- .../inference/{putmodel => put}/response.go | 16 +- .../ingest/deletepipeline/delete_pipeline.go | 6 +- .../ingest/deletepipeline/response.go | 4 +- .../ingest/geoipstats/geo_ip_stats.go | 6 +- .../v8/typedapi/ingest/geoipstats/response.go | 4 +- .../ingest/getpipeline/get_pipeline.go | 8 +- .../typedapi/ingest/getpipeline/response.go | 4 +- .../ingest/processorgrok/processor_grok.go | 14 +- .../typedapi/ingest/processorgrok/response.go | 4 +- .../ingest/putpipeline/put_pipeline.go | 8 +- .../v8/typedapi/ingest/putpipeline/request.go | 4 +- .../typedapi/ingest/putpipeline/response.go | 4 +- .../v8/typedapi/ingest/simulate/request.go | 4 +- .../v8/typedapi/ingest/simulate/response.go | 4 +- .../v8/typedapi/ingest/simulate/simulate.go | 6 +- .../v8/typedapi/license/delete/delete.go | 2 +- .../v8/typedapi/license/delete/response.go | 4 +- .../v8/typedapi/license/get/get.go | 12 +- .../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 | 20 +- .../license/poststartbasic/response.go | 4 +- .../poststarttrial/post_start_trial.go | 8 +- .../license/poststarttrial/response.go | 4 +- .../deletepipeline/delete_pipeline.go | 6 +- .../logstash/getpipeline/get_pipeline.go | 6 +- .../typedapi/logstash/getpipeline/response.go | 4 +- .../logstash/putpipeline/put_pipeline.go | 6 +- .../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 | 18 +- .../response.go | 4 +- .../v8/typedapi/ml/closejob/close_job.go | 42 +- .../v8/typedapi/ml/closejob/request.go | 4 +- .../v8/typedapi/ml/closejob/response.go | 4 +- .../ml/deletecalendar/delete_calendar.go | 6 +- .../v8/typedapi/ml/deletecalendar/response.go | 4 +- .../delete_calendar_event.go | 2 +- .../ml/deletecalendarevent/response.go | 4 +- .../deletecalendarjob/delete_calendar_job.go | 2 +- .../typedapi/ml/deletecalendarjob/response.go | 4 +- .../ml/deletedatafeed/delete_datafeed.go | 2 +- .../v8/typedapi/ml/deletedatafeed/response.go | 4 +- .../delete_data_frame_analytics.go | 6 +- .../ml/deletedataframeanalytics/response.go | 4 +- .../deleteexpireddata/delete_expired_data.go | 18 +- .../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 | 10 +- .../v8/typedapi/ml/deleteforecast/response.go | 4 +- .../v8/typedapi/ml/deletejob/delete_job.go | 20 +- .../v8/typedapi/ml/deletejob/response.go | 4 +- .../delete_model_snapshot.go | 8 +- .../ml/deletemodelsnapshot/response.go | 4 +- .../delete_trained_model.go | 2 +- .../ml/deletetrainedmodel/response.go | 4 +- .../delete_trained_model_alias.go | 12 +- .../ml/deletetrainedmodelalias/response.go | 4 +- .../estimate_model_memory.go | 10 +- .../ml/estimatemodelmemory/request.go | 4 +- .../ml/estimatemodelmemory/response.go | 4 +- .../evaluatedataframe/evaluate_data_frame.go | 10 +- .../typedapi/ml/evaluatedataframe/request.go | 4 +- .../typedapi/ml/evaluatedataframe/response.go | 4 +- .../explain_data_frame_analytics.go | 18 +- .../ml/explaindataframeanalytics/request.go | 4 +- .../ml/explaindataframeanalytics/response.go | 4 +- .../v8/typedapi/ml/flushjob/flush_job.go | 18 +- .../v8/typedapi/ml/flushjob/request.go | 4 +- .../v8/typedapi/ml/flushjob/response.go | 4 +- .../v8/typedapi/ml/forecast/forecast.go | 10 +- .../v8/typedapi/ml/forecast/request.go | 4 +- .../v8/typedapi/ml/forecast/response.go | 4 +- .../v8/typedapi/ml/getbuckets/get_buckets.go | 4 +- .../v8/typedapi/ml/getbuckets/request.go | 4 +- .../v8/typedapi/ml/getbuckets/response.go | 4 +- .../getcalendarevents/get_calendar_events.go | 2 +- .../typedapi/ml/getcalendarevents/response.go | 4 +- .../typedapi/ml/getcalendars/get_calendars.go | 2 +- .../v8/typedapi/ml/getcalendars/request.go | 4 +- .../v8/typedapi/ml/getcalendars/response.go | 4 +- .../ml/getcategories/get_categories.go | 2 +- .../v8/typedapi/ml/getcategories/request.go | 4 +- .../v8/typedapi/ml/getcategories/response.go | 4 +- .../typedapi/ml/getdatafeeds/get_datafeeds.go | 12 +- .../v8/typedapi/ml/getdatafeeds/response.go | 4 +- .../ml/getdatafeedstats/get_datafeed_stats.go | 14 +- .../typedapi/ml/getdatafeedstats/response.go | 4 +- .../get_data_frame_analytics.go | 8 +- .../ml/getdataframeanalytics/response.go | 4 +- .../get_data_frame_analytics_stats.go | 2 +- .../ml/getdataframeanalyticsstats/response.go | 4 +- .../v8/typedapi/ml/getfilters/get_filters.go | 4 +- .../v8/typedapi/ml/getfilters/response.go | 4 +- .../ml/getinfluencers/get_influencers.go | 8 +- .../v8/typedapi/ml/getinfluencers/request.go | 4 +- .../v8/typedapi/ml/getinfluencers/response.go | 4 +- .../v8/typedapi/ml/getjobs/get_jobs.go | 10 +- .../v8/typedapi/ml/getjobs/response.go | 4 +- .../typedapi/ml/getjobstats/get_job_stats.go | 2 +- .../v8/typedapi/ml/getjobstats/response.go | 4 +- .../ml/getmemorystats/get_memory_stats.go | 10 +- .../v8/typedapi/ml/getmemorystats/response.go | 4 +- .../getmodelsnapshots/get_model_snapshots.go | 2 +- .../typedapi/ml/getmodelsnapshots/request.go | 4 +- .../typedapi/ml/getmodelsnapshots/response.go | 4 +- .../get_model_snapshot_upgrade_stats.go | 10 +- .../getmodelsnapshotupgradestats/response.go | 4 +- .../getoverallbuckets/get_overall_buckets.go | 32 +- .../typedapi/ml/getoverallbuckets/request.go | 4 +- .../typedapi/ml/getoverallbuckets/response.go | 4 +- .../v8/typedapi/ml/getrecords/get_records.go | 22 +- .../v8/typedapi/ml/getrecords/request.go | 4 +- .../v8/typedapi/ml/getrecords/response.go | 4 +- .../ml/gettrainedmodels/get_trained_models.go | 20 +- .../typedapi/ml/gettrainedmodels/response.go | 4 +- .../get_trained_models_stats.go | 12 +- .../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 | 14 +- .../v8/typedapi/ml/info/response.go | 4 +- .../v8/typedapi/ml/openjob/open_job.go | 16 +- .../v8/typedapi/ml/openjob/request.go | 31 +- .../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 | 12 +- .../v8/typedapi/ml/postdata/request.go | 4 +- .../v8/typedapi/ml/postdata/response.go | 4 +- .../ml/previewdatafeed/preview_datafeed.go | 28 +- .../v8/typedapi/ml/previewdatafeed/request.go | 4 +- .../typedapi/ml/previewdatafeed/response.go | 4 +- .../preview_data_frame_analytics.go | 6 +- .../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 | 2 +- .../v8/typedapi/ml/putcalendarjob/response.go | 4 +- .../typedapi/ml/putdatafeed/put_datafeed.go | 32 +- .../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 | 10 +- .../v8/typedapi/ml/putfilter/request.go | 4 +- .../v8/typedapi/ml/putfilter/response.go | 4 +- .../v8/typedapi/ml/putjob/put_job.go | 8 +- .../v8/typedapi/ml/putjob/request.go | 4 +- .../v8/typedapi/ml/putjob/response.go | 205 +- .../ml/puttrainedmodel/put_trained_model.go | 8 +- .../v8/typedapi/ml/puttrainedmodel/request.go | 4 +- .../typedapi/ml/puttrainedmodel/response.go | 187 +- .../put_trained_model_alias.go | 40 +- .../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 | 12 +- .../ml/puttrainedmodelvocabulary/request.go | 4 +- .../ml/puttrainedmodelvocabulary/response.go | 4 +- .../v8/typedapi/ml/resetjob/reset_job.go | 14 +- .../v8/typedapi/ml/resetjob/response.go | 4 +- .../ml/revertmodelsnapshot/request.go | 4 +- .../ml/revertmodelsnapshot/response.go | 4 +- .../revert_model_snapshot.go | 16 +- .../v8/typedapi/ml/setupgrademode/response.go | 4 +- .../ml/setupgrademode/set_upgrade_mode.go | 22 +- .../v8/typedapi/ml/startdatafeed/request.go | 4 +- .../v8/typedapi/ml/startdatafeed/response.go | 4 +- .../ml/startdatafeed/start_datafeed.go | 40 +- .../ml/startdataframeanalytics/response.go | 4 +- .../start_data_frame_analytics.go | 24 +- .../starttrainedmodeldeployment/response.go | 4 +- .../start_trained_model_deployment.go | 8 +- .../v8/typedapi/ml/stopdatafeed/request.go | 4 +- .../v8/typedapi/ml/stopdatafeed/response.go | 4 +- .../typedapi/ml/stopdatafeed/stop_datafeed.go | 8 +- .../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 | 20 +- .../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 | 8 +- .../v8/typedapi/ml/updatejob/request.go | 4 +- .../v8/typedapi/ml/updatejob/response.go | 4 +- .../v8/typedapi/ml/updatejob/update_job.go | 2 +- .../ml/updatemodelsnapshot/request.go | 4 +- .../ml/updatemodelsnapshot/response.go | 4 +- .../update_model_snapshot.go | 2 +- .../updatetrainedmodeldeployment/request.go | 4 +- .../updatetrainedmodeldeployment/response.go | 4 +- .../update_trained_model_deployment.go | 8 +- .../ml/upgradejobsnapshot/response.go | 4 +- .../upgrade_job_snapshot.go | 24 +- .../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 | 10 +- .../response.go | 4 +- .../get_repositories_metering_info.go | 20 +- .../getrepositoriesmeteringinfo/response.go | 4 +- .../typedapi/nodes/hotthreads/hot_threads.go | 10 +- .../v8/typedapi/nodes/hotthreads/response.go | 4 +- .../v8/typedapi/nodes/info/info.go | 6 +- .../v8/typedapi/nodes/info/response.go | 4 +- .../reload_secure_settings.go | 6 +- .../nodes/reloadsecuresettings/request.go | 31 +- .../nodes/reloadsecuresettings/response.go | 4 +- .../v8/typedapi/nodes/stats/response.go | 4 +- .../v8/typedapi/nodes/stats/stats.go | 6 +- .../v8/typedapi/nodes/usage/response.go | 4 +- .../v8/typedapi/nodes/usage/usage.go | 6 +- .../profiling/flamegraph/flamegraph.go | 233 +++ .../profiling/stacktraces/stacktraces.go | 231 +++ .../v8/typedapi/profiling/status/status.go | 225 +++ .../profiling/topnfunctions/topn_functions.go | 233 +++ .../queryrules/deleterule/delete_rule.go | 365 ++++ .../deleterule}/response.go | 8 +- .../deleteruleset/delete_ruleset.go | 342 ++++ .../queryrules/deleteruleset/response.go | 37 + .../typedapi/queryrules/getrule/get_rule.go | 365 ++++ .../typedapi/queryrules/getrule/response.go | 43 + .../queryrules/getruleset/get_ruleset.go | 342 ++++ .../get => queryrules/getruleset}/response.go | 8 +- .../queryrules/listrulesets/list_rulesets.go | 335 ++++ .../listrulesets}/response.go | 8 +- .../typedapi/queryrules/putrule/put_rule.go | 412 ++++ .../v8/typedapi/queryrules/putrule/request.go | 123 ++ .../typedapi/queryrules/putrule/response.go | 38 + .../queryrules/putruleset/put_ruleset.go | 365 ++++ .../typedapi/queryrules/putruleset/request.go | 92 + .../queryrules/putruleset/response.go | 38 + .../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 | 10 +- .../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 | 4 +- .../rollup/rollupsearch/rollup_search.go | 6 +- .../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 | 2 +- .../searchapplication/delete/response.go | 4 +- .../delete_behavioral_analytics.go | 2 +- .../deletebehavioralanalytics/response.go | 4 +- .../v8/typedapi/searchapplication/get/get.go | 6 +- .../searchapplication/get/response.go | 4 +- .../get_behavioral_analytics.go | 2 +- .../getbehavioralanalytics/response.go | 4 +- .../typedapi/searchapplication/list/list.go | 2 +- .../searchapplication/list/response.go | 4 +- .../v8/typedapi/searchapplication/put/put.go | 2 +- .../typedapi/searchapplication/put/request.go | 4 +- .../searchapplication/put/response.go | 4 +- .../put_behavioral_analytics.go | 2 +- .../putbehavioralanalytics/response.go | 4 +- .../searchapplication/search/request.go | 4 +- .../searchapplication/search/response.go | 4 +- .../searchapplication/search/search.go | 6 +- .../activate_user_profile.go | 6 +- .../security/activateuserprofile/request.go | 4 +- .../security/activateuserprofile/response.go | 4 +- .../security/authenticate/authenticate.go | 22 +- .../security/authenticate/response.go | 8 +- .../bulkdeleterole/bulk_delete_role.go | 362 ++++ .../security/bulkdeleterole/request.go | 54 + .../security/bulkdeleterole/response.go | 44 + .../security/bulkputrole/bulk_put_role.go | 363 ++++ .../typedapi/security/bulkputrole/request.go | 58 + .../typedapi/security/bulkputrole/response.go | 46 + .../bulkupdateapikeys/bulk_update_api_keys.go | 2 +- .../changepassword/change_password.go | 2 +- .../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 | 2 +- .../clearcachedprivileges/response.go | 4 +- .../clearcachedrealms/clear_cached_realms.go | 2 +- .../security/clearcachedrealms/response.go | 4 +- .../clearcachedroles/clear_cached_roles.go | 2 +- .../security/clearcachedroles/response.go | 4 +- .../clear_cached_service_tokens.go | 2 +- .../clearcachedservicetokens/response.go | 4 +- .../security/createapikey/create_api_key.go | 14 +- .../typedapi/security/createapikey/request.go | 4 +- .../security/createapikey/response.go | 4 +- .../create_cross_cluster_api_key.go | 2 +- .../create_service_token.go | 6 +- .../security/createservicetoken/response.go | 4 +- .../deleteprivileges/delete_privileges.go | 2 +- .../security/deleteprivileges/response.go | 4 +- .../security/deleterole/delete_role.go | 2 +- .../typedapi/security/deleterole/response.go | 4 +- .../deleterolemapping/delete_role_mapping.go | 2 +- .../security/deleterolemapping/response.go | 4 +- .../delete_service_token.go | 2 +- .../security/deleteservicetoken/response.go | 4 +- .../security/deleteuser/delete_user.go | 2 +- .../typedapi/security/deleteuser/response.go | 4 +- .../security/disableuser/disable_user.go | 2 +- .../typedapi/security/disableuser/response.go | 4 +- .../disable_user_profile.go | 2 +- .../security/disableuserprofile/response.go | 4 +- .../security/enableuser/enable_user.go | 2 +- .../typedapi/security/enableuser/response.go | 4 +- .../enableuserprofile/enable_user_profile.go | 2 +- .../security/enableuserprofile/response.go | 4 +- .../security/enrollkibana/enroll_kibana.go | 10 +- .../security/enrollkibana/response.go | 4 +- .../security/enrollnode/enroll_node.go | 6 +- .../typedapi/security/enrollnode/response.go | 4 +- .../security/getapikey/get_api_key.go | 12 +- .../typedapi/security/getapikey/response.go | 4 +- .../get_builtin_privileges.go | 2 +- .../security/getbuiltinprivileges/response.go | 4 +- .../security/getprivileges/get_privileges.go | 2 +- .../security/getprivileges/response.go | 4 +- .../v8/typedapi/security/getrole/get_role.go | 10 +- .../v8/typedapi/security/getrole/response.go | 4 +- .../getrolemapping/get_role_mapping.go | 2 +- .../security/getrolemapping/response.go | 4 +- .../get_service_accounts.go | 8 +- .../security/getserviceaccounts/response.go | 4 +- .../get_service_credentials.go | 2 +- .../getservicecredentials/response.go | 4 +- .../security/getsettings/get_settings.go | 2 +- .../typedapi/security/gettoken/get_token.go | 2 +- .../v8/typedapi/security/gettoken/request.go | 4 +- .../v8/typedapi/security/gettoken/response.go | 4 +- .../v8/typedapi/security/getuser/get_user.go | 2 +- .../v8/typedapi/security/getuser/response.go | 4 +- .../getuserprivileges/get_user_privileges.go | 2 +- .../security/getuserprivileges/response.go | 4 +- .../getuserprofile/get_user_profile.go | 6 +- .../security/getuserprofile/response.go | 4 +- .../security/grantapikey/grant_api_key.go | 46 +- .../typedapi/security/grantapikey/request.go | 4 +- .../typedapi/security/grantapikey/response.go | 4 +- .../security/hasprivileges/has_privileges.go | 2 +- .../security/hasprivileges/request.go | 4 +- .../security/hasprivileges/response.go | 4 +- .../has_privileges_user_profile.go | 2 +- .../hasprivilegesuserprofile/request.go | 4 +- .../hasprivilegesuserprofile/response.go | 4 +- .../invalidateapikey/invalidate_api_key.go | 20 +- .../security/invalidateapikey/request.go | 4 +- .../security/invalidateapikey/response.go | 4 +- .../invalidatetoken/invalidate_token.go | 2 +- .../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 | 2 +- .../security/putprivileges/request.go | 4 +- .../security/putprivileges/response.go | 4 +- .../v8/typedapi/security/putrole/put_role.go | 25 +- .../v8/typedapi/security/putrole/request.go | 23 +- .../v8/typedapi/security/putrole/response.go | 4 +- .../putrolemapping/put_role_mapping.go | 2 +- .../security/putrolemapping/request.go | 4 +- .../security/putrolemapping/response.go | 4 +- .../v8/typedapi/security/putuser/put_user.go | 6 +- .../v8/typedapi/security/putuser/request.go | 12 +- .../v8/typedapi/security/putuser/response.go | 4 +- .../security/queryapikeys/query_api_keys.go | 8 +- .../typedapi/security/queryapikeys/request.go | 4 +- .../security/queryapikeys/response.go | 4 +- .../typedapi/security/queryrole/query_role.go | 398 ++++ .../v8/typedapi/security/queryrole/request.go | 161 ++ .../typedapi/security/queryrole/response.go | 44 + .../typedapi/security/queryuser/query_user.go | 405 ++++ .../v8/typedapi/security/queryuser/request.go | 159 ++ .../typedapi/security/queryuser/response.go | 44 + .../security/samlauthenticate/request.go | 4 +- .../security/samlauthenticate/response.go | 4 +- .../samlauthenticate/saml_authenticate.go | 8 +- .../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 | 8 +- .../samlprepareauthentication/request.go | 4 +- .../samlprepareauthentication/response.go | 4 +- .../saml_prepare_authentication.go | 8 +- .../samlserviceprovidermetadata/response.go | 4 +- .../saml_service_provider_metadata.go | 6 +- .../security/suggestuserprofiles/request.go | 4 +- .../security/suggestuserprofiles/response.go | 4 +- .../suggest_user_profiles.go | 2 +- .../typedapi/security/updateapikey/request.go | 4 +- .../security/updateapikey/response.go | 4 +- .../security/updateapikey/update_api_key.go | 48 +- .../updatesettings/update_settings.go | 2 +- .../security/updateuserprofiledata/request.go | 4 +- .../updateuserprofiledata/response.go | 4 +- .../update_user_profile_data.go | 8 +- .../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 | 8 +- .../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 +- .../v8/typedapi/snapshot/restore/request.go | 4 +- .../v8/typedapi/snapshot/restore/response.go | 4 +- .../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 | 2 +- .../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 | 37 +- .../v8/typedapi/sql/translate/translate.go | 2 +- .../typedapi/ssl/certificates/certificates.go | 2 +- .../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 | 6 +- .../typedapi/synonyms/putsynonym/request.go | 4 +- .../typedapi/synonyms/putsynonym/response.go | 4 +- .../putsynonymrule/put_synonym_rule.go | 2 +- .../synonyms/putsynonymrule/request.go | 31 +- .../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 | 2 +- .../v8/typedapi/tasks/get/response.go | 4 +- .../v8/typedapi/tasks/list/list.go | 8 +- .../v8/typedapi/tasks/list/response.go | 4 +- .../find_field_structure.go | 225 +++ .../find_message_structure.go | 233 +++ .../findstructure/find_structure.go | 2 +- .../textstructure/findstructure/request.go | 4 +- .../textstructure/findstructure/response.go | 4 +- .../textstructure/testgrokpattern/request.go | 4 +- .../textstructure/testgrokpattern/response.go | 4 +- .../testgrokpattern/test_grok_pattern.go | 2 +- .../deletetransform/delete_transform.go | 6 +- .../transform/deletetransform/response.go | 4 +- .../transform/getnodestats/get_node_stats.go | 225 +++ .../transform/gettransform/get_transform.go | 2 +- .../transform/gettransform/response.go | 4 +- .../gettransformstats/get_transform_stats.go | 2 +- .../transform/gettransformstats/response.go | 4 +- .../previewtransform/preview_transform.go | 14 +- .../transform/previewtransform/request.go | 4 +- .../transform/previewtransform/response.go | 4 +- .../transform/puttransform/put_transform.go | 72 +- .../transform/puttransform/request.go | 4 +- .../transform/puttransform/response.go | 4 +- .../resettransform/reset_transform.go | 12 +- .../transform/resettransform/response.go | 4 +- .../schedulenowtransform/response.go | 4 +- .../schedule_now_transform.go | 16 +- .../transform/starttransform/response.go | 4 +- .../starttransform/start_transform.go | 60 +- .../transform/stoptransform/response.go | 4 +- .../transform/stoptransform/stop_transform.go | 2 +- .../transform/updatetransform/request.go | 6 +- .../transform/updatetransform/response.go | 4 +- .../updatetransform/update_transform.go | 24 +- .../transform/upgradetransforms/response.go | 4 +- .../upgradetransforms/upgrade_transforms.go | 20 +- .../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 | 4 +- .../v8/typedapi/types/aggregate.go | 4 +- .../types/aggregatemetricdoubleproperty.go | 40 +- .../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 | 4 +- .../aggregationprofiledelegatedebugfilter.go | 4 +- .../v8/typedapi/types/aggregationrange.go | 4 +- .../v8/typedapi/types/aggregations.go | 4 +- .../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 | 128 ++ .../v8/typedapi/types/allocationdecision.go | 4 +- .../v8/typedapi/types/allocationrecord.go | 69 +- .../v8/typedapi/types/allocationstore.go | 4 +- .../v8/typedapi/types/alwayscondition.go | 4 +- .../v8/typedapi/types/analysisconfig.go | 44 +- .../v8/typedapi/types/analysisconfigread.go | 44 +- .../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 | 4 +- .../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 | 44 +- .../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 | 113 +- .../v8/typedapi/types/appendprocessor.go | 4 +- .../types/applicationglobaluserprivileges.go | 4 +- .../typedapi/types/applicationprivileges.go | 4 +- .../types/applicationprivilegescheck.go | 4 +- .../typedapi/types/applicationsprivileges.go | 4 +- .../v8/typedapi/types/archive.go | 4 +- .../typedapi/types/arraycomparecondition.go | 4 +- .../v8/typedapi/types/arraycompareopparams.go | 4 +- .../v8/typedapi/types/arraypercentilesitem.go | 10 +- .../typedapi/types/asciifoldingtokenfilter.go | 4 +- .../v8/typedapi/types/asyncsearch.go | 4 +- .../v8/typedapi/types/attachmentprocessor.go | 4 +- .../v8/typedapi/types/audit.go | 4 +- .../v8/typedapi/types/authenticateduser.go | 10 +- .../v8/typedapi/types/authenticatetoken.go | 4 +- .../typedapi/types/authenticationprovider.go | 4 +- .../types/autodatehistogramaggregate.go | 4 +- .../types/autodatehistogramaggregation.go | 39 +- .../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 | 4 +- .../v8/typedapi/types/autoscalingresources.go | 4 +- .../v8/typedapi/types/averageaggregation.go | 39 +- .../types/averagebucketaggregation.go | 4 +- .../v8/typedapi/types/avgaggregate.go | 8 +- .../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/binaryproperty.go | 40 +- .../v8/typedapi/types/booleanproperty.go | 40 +- .../v8/typedapi/types/boolquery.go | 4 +- .../v8/typedapi/types/boostingquery.go | 4 +- .../v8/typedapi/types/boxplotaggregate.go | 4 +- .../v8/typedapi/types/boxplotaggregation.go | 39 +- .../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 | 8 +- .../typedapi/types/bucketpathaggregation.go | 4 +- .../types/bucketsadjacencymatrixbucket.go | 4 +- .../types/bucketsapikeyquerycontainer.go | 4 +- .../typedapi/types/bucketscompositebucket.go | 4 +- .../typedapi/types/bucketscriptaggregation.go | 39 +- .../types/bucketsdatehistogrambucket.go | 4 +- .../types/bucketsdoubletermsbucket.go | 4 +- .../types/bucketselectoraggregation.go | 39 +- .../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 +- .../v8/typedapi/types/bucketsummary.go | 4 +- .../bucketsvariablewidthhistogrambucket.go | 4 +- .../v8/typedapi/types/bucketsvoid.go | 4 +- .../v8/typedapi/types/buildinformation.go | 4 +- .../v8/typedapi/types/bulkerror.go | 93 + .../types/bulkindexbyscrollfailure.go | 4 +- .../v8/typedapi/types/bulkstats.go | 4 +- .../v8/typedapi/types/bytenumberproperty.go | 75 +- .../v8/typedapi/types/bytesize.go | 4 +- .../v8/typedapi/types/bytesprocessor.go | 4 +- .../v8/typedapi/types/cachequeries.go | 4 +- .../v8/typedapi/types/cachestats.go | 4 +- .../v8/typedapi/types/calendar.go | 4 +- .../v8/typedapi/types/calendarevent.go | 4 +- .../v8/typedapi/types/cardinalityaggregate.go | 4 +- .../typedapi/types/cardinalityaggregation.go | 43 +- .../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 | 791 ++++---- .../types/categorizetextaggregation.go | 44 +- .../typedapi/types/categorizetextanalyzer.go | 4 +- .../v8/typedapi/types/category.go | 4 +- .../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 | 8 +- .../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 | 4 +- .../v8/typedapi/types/childrenaggregation.go | 4 +- .../v8/typedapi/types/chisquareheuristic.go | 4 +- .../v8/typedapi/types/chunkingconfig.go | 4 +- .../v8/typedapi/types/circleprocessor.go | 4 +- .../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 | 9 +- .../v8/typedapi/types/compactnodeinfo.go | 4 +- .../v8/typedapi/types/completioncontext.go | 23 +- .../v8/typedapi/types/completionproperty.go | 40 +- .../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 | 4 +- .../compositedatehistogramaggregation.go | 39 +- .../types/compositegeotilegridaggregation.go | 99 +- .../types/compositehistogramaggregation.go | 39 +- .../types/compositetermsaggregation.go | 39 +- .../v8/typedapi/types/conditiontokenfilter.go | 37 +- .../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 | 347 ++++ .../types/connectorconfigproperties.go | 261 +++ .../typedapi/types/connectorconfiguration.go | 26 + .../types/connectorcustomscheduling.go | 26 + .../v8/typedapi/types/connectorfeatures.go | 38 + .../v8/typedapi/types/connectorscheduling.go | 92 + .../v8/typedapi/types/connectorsyncjob.go | 234 +++ .../typedapi/types/constantkeywordproperty.go | 40 +- .../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 | 4 +- .../v8/typedapi/types/customanalyzer.go | 4 +- .../types/customcategorizetextanalyzer.go | 4 +- .../v8/typedapi/types/customnormalizer.go | 4 +- .../v8/typedapi/types/customscheduling.go | 116 ++ .../customschedulingconfigurationoverrides.go | 113 ++ .../v8/typedapi/types/dailyschedule.go | 4 +- .../v8/typedapi/types/danglingindex.go | 4 +- .../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 | 19 +- .../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 | 13 +- .../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 | 4 +- .../v8/typedapi/types/datastreamindex.go | 4 +- .../v8/typedapi/types/datastreamlifecycle.go | 4 +- .../types/datastreamlifecycledownsampling.go | 4 +- .../types/datastreamlifecycleexplain.go | 4 +- .../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 | 4 +- .../typedapi/types/datastreamwithlifecycle.go | 4 +- .../typedapi/types/datatierphasestatistics.go | 4 +- .../v8/typedapi/types/datatiers.go | 4 +- .../v8/typedapi/types/datedecayfunction.go | 12 +- .../types/datedistancefeaturequery.go | 4 +- .../typedapi/types/datehistogramaggregate.go | 4 +- .../types/datehistogramaggregation.go | 39 +- .../v8/typedapi/types/datehistogrambucket.go | 4 +- .../typedapi/types/datehistogramgrouping.go | 4 +- .../typedapi/types/dateindexnameprocessor.go | 4 +- .../v8/typedapi/types/datenanosproperty.go | 40 +- .../v8/typedapi/types/dateprocessor.go | 4 +- .../v8/typedapi/types/dateproperty.go | 40 +- .../v8/typedapi/types/daterangeaggregate.go | 4 +- .../v8/typedapi/types/daterangeaggregation.go | 4 +- .../v8/typedapi/types/daterangeexpression.go | 4 +- .../v8/typedapi/types/daterangeproperty.go | 40 +- .../v8/typedapi/types/daterangequery.go | 8 +- .../v8/typedapi/types/datetime.go | 4 +- .../v8/typedapi/types/decayfunction.go | 5 +- .../decayfunctionbasedatemathduration.go | 76 + .../types/decayfunctionbasedoubledouble.go | 76 + .../decayfunctionbasegeolocationdistance.go | 76 + .../v8/typedapi/types/decayplacement.go | 105 ++ .../types/decayplacementdatemathduration.go | 4 +- .../types/decayplacementdoubledouble.go | 4 +- .../decayplacementgeolocationdistance.go | 46 +- .../v8/typedapi/types/defaults.go | 4 +- .../v8/typedapi/types/definition.go | 4 +- .../typedapi/types/delayeddatacheckconfig.go | 4 +- .../v8/typedapi/types/deleteaction.go | 78 + .../types/deleteinferenceendpointresult.go | 86 + .../v8/typedapi/types/deleteoperation.go | 4 +- .../types/delimitedpayloadtokenfilter.go | 4 +- .../typedapi/types/densevectorindexoptions.go | 35 +- .../v8/typedapi/types/densevectorproperty.go | 40 +- .../{storedscriptid.go => dependency.go} | 48 +- .../v8/typedapi/types/deprecation.go | 4 +- .../v8/typedapi/types/deprecationindexing.go | 4 +- .../v8/typedapi/types/derivativeaggregate.go | 8 +- .../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/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 | 5 +- ...istancefeaturequerybasedatemathduration.go | 4 +- ...ancefeaturequerybasegeolocationdistance.go | 46 +- .../types/diversifiedsampleraggregation.go | 41 +- .../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 | 4 +- .../v8/typedapi/types/doublenumberproperty.go | 75 +- .../v8/typedapi/types/doublerangeproperty.go | 40 +- .../v8/typedapi/types/doubletermsaggregate.go | 4 +- .../v8/typedapi/types/doubletermsbucket.go | 4 +- .../v8/typedapi/types/downsampleaction.go | 74 + .../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 | 4 +- .../v8/typedapi/types/dynamicproperty.go | 75 +- .../v8/typedapi/types/dynamictemplate.go | 40 +- .../v8/typedapi/types/edgengramtokenfilter.go | 4 +- .../v8/typedapi/types/edgengramtokenizer.go | 4 +- .../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/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 | 4 +- .../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 | 65 + .../enums/connectorstatus/connectorstatus.go | 69 + .../types/enums/converttype/converttype.go | 4 +- .../dataattachmentformat.go | 4 +- .../enums/datafeedstate/datafeedstate.go | 4 +- .../enums/dataframestate/dataframestate.go | 4 +- .../v8/typedapi/types/enums/day/day.go | 4 +- .../typedapi/types/enums/decision/decision.go | 4 +- .../delimitedpayloadencoding.go | 4 +- .../deploymentallocationstate.go | 4 +- .../deploymentassignmentstate.go | 4 +- .../enums/deploymentstate/deploymentstate.go | 4 +- .../deprecationlevel/deprecationlevel.go | 4 +- .../dfiindependencemeasure.go | 4 +- .../enums/dfraftereffect/dfraftereffect.go | 4 +- .../enums/dfrbasicmodel/dfrbasicmodel.go | 4 +- .../types/enums/displaytype/displaytype.go | 69 + .../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 +- .../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 | 8 +- .../fieldvaluefactormodifier.go | 4 +- .../enums/filteringpolicy/filteringpolicy.go | 57 + .../filteringrulerule/filteringrulerule.go | 77 + .../filteringvalidationstate.go | 61 + .../types/enums/filtertype/filtertype.go | 4 +- .../followerindexstatus.go | 4 +- .../functionboostmode/functionboostmode.go | 4 +- .../functionscoremode/functionscoremode.go | 4 +- .../types/enums/gappolicy/gappolicy.go | 4 +- .../enums/geodistancetype/geodistancetype.go | 4 +- .../types/enums/geoexecution/geoexecution.go | 4 +- .../enums/geoorientation/geoorientation.go | 4 +- .../geoshaperelation/geoshaperelation.go | 4 +- .../types/enums/geostrategy/geostrategy.go | 4 +- .../geovalidationmethod.go | 4 +- .../types/enums/granttype/granttype.go | 4 +- .../gridaggregationtype.go | 4 +- .../typedapi/types/enums/gridtype/gridtype.go | 4 +- .../typedapi/types/enums/groupby/groupby.go | 4 +- .../types/enums/healthstatus/healthstatus.go | 4 +- .../highlighterencoder/highlighterencoder.go | 4 +- .../highlighterfragmenter.go | 4 +- .../highlighterorder/highlighterorder.go | 4 +- .../highlightertagsschema.go | 4 +- .../enums/highlightertype/highlightertype.go | 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 | 12 +- .../enums/queryruletype/queryruletype.go | 4 +- .../enums/rangerelation/rangerelation.go | 4 +- .../typedapi/types/enums/ratemode/ratemode.go | 4 +- .../typedapi/types/enums/refresh/refresh.go | 4 +- .../responsecontenttype.go | 4 +- .../v8/typedapi/types/enums/result/result.go | 4 +- .../enums/resultposition/resultposition.go | 4 +- .../types/enums/routingstate/routingstate.go | 4 +- .../types/enums/ruleaction/ruleaction.go | 4 +- .../runtimefieldtype/runtimefieldtype.go | 4 +- .../sampleraggregationexecutionhint.go | 4 +- .../types/enums/scoremode/scoremode.go | 4 +- .../enums/scriptlanguage/scriptlanguage.go | 4 +- .../enums/scriptsorttype/scriptsorttype.go | 4 +- .../types/enums/searchtype/searchtype.go | 4 +- .../segmentsortmissing/segmentsortmissing.go | 4 +- .../enums/segmentsortmode/segmentsortmode.go | 4 +- .../segmentsortorder/segmentsortorder.go | 4 +- .../types/enums/shapetype/shapetype.go | 4 +- .../shardroutingstate/shardroutingstate.go | 4 +- .../shardsstatsstage/shardsstatsstage.go | 4 +- .../shardstoreallocation.go | 4 +- .../shardstorestatus/shardstorestatus.go | 4 +- .../enums/shutdownstatus/shutdownstatus.go | 4 +- .../types/enums/shutdowntype/shutdowntype.go | 4 +- .../types/enums/snapshotsort/snapshotsort.go | 4 +- .../snapshotupgradestate.go | 4 +- .../snowballlanguage/snowballlanguage.go | 4 +- .../typedapi/types/enums/sortmode/sortmode.go | 4 +- .../types/enums/sortorder/sortorder.go | 4 +- .../enums/sourcefieldmode/sourcefieldmode.go | 4 +- .../types/enums/statslevel/statslevel.go | 4 +- .../types/enums/storagetype/storagetype.go | 4 +- .../enums/stringdistance/stringdistance.go | 4 +- .../types/enums/suggestmode/suggestmode.go | 4 +- .../types/enums/suggestsort/suggestsort.go | 4 +- .../syncjobtriggermethod.go | 57 + .../types/enums/syncjobtype/syncjobtype.go | 61 + .../types/enums/syncstatus/syncstatus.go | 77 + .../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 | 4 +- .../types/enums/valuetype/valuetype.go | 4 +- .../types/enums/versiontype/versiontype.go | 4 +- .../enums/waitforevents/waitforevents.go | 4 +- .../types/enums/watcherstate/watcherstate.go | 4 +- .../enums/zerotermsquery/zerotermsquery.go | 4 +- .../v8/typedapi/types/epochtimeunitmillis.go | 4 +- .../v8/typedapi/types/epochtimeunitseconds.go | 4 +- .../go-elasticsearch/v8/typedapi/types/eql.go | 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/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 | 24 +- .../types/extendedstatsaggregation.go | 39 +- .../types/extendedstatsbucketaggregate.go | 24 +- .../types/extendedstatsbucketaggregation.go | 4 +- .../v8/typedapi/types/failprocessor.go | 4 +- .../v8/typedapi/types/feature.go | 4 +- .../v8/typedapi/types/featureenabled.go | 78 + .../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 | 40 +- .../v8/typedapi/types/fieldandformat.go | 9 +- .../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 | 22 +- .../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 | 4 +- .../types/filteringadvancedsnippet.go | 85 + .../v8/typedapi/types/filteringconfig.go | 88 + .../v8/typedapi/types/filteringrule.go | 132 ++ .../v8/typedapi/types/filteringrules.go | 37 + .../types/filteringrulesvalidation.go | 40 + ...nfigurations.go => filteringvalidation.go} | 19 +- .../v8/typedapi/types/filterref.go | 4 +- .../v8/typedapi/types/filtersaggregate.go | 4 +- .../v8/typedapi/types/filtersaggregation.go | 4 +- .../v8/typedapi/types/filtersbucket.go | 4 +- .../v8/typedapi/types/fingerprintanalyzer.go | 4 +- .../typedapi/types/fingerprinttokenfilter.go | 4 +- .../v8/typedapi/types/flattened.go | 4 +- .../v8/typedapi/types/flattenedproperty.go | 40 +- .../v8/typedapi/types/floatnumberproperty.go | 75 +- .../v8/typedapi/types/floatrangeproperty.go | 40 +- .../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 +- ...geconfiguration.go => forcemergeaction.go} | 31 +- .../typedapi/types/forcemergeresponsebody.go | 4 +- .../v8/typedapi/types/foreachprocessor.go | 4 +- .../types/formattablemetricaggregation.go | 39 +- .../v8/typedapi/types/foundstatus.go | 4 +- .../types/frequencyencodingpreprocessor.go | 4 +- .../types/frequentitemsetsaggregate.go | 4 +- .../types/frequentitemsetsaggregation.go | 4 +- .../typedapi/types/frequentitemsetsbucket.go | 4 +- .../typedapi/types/frequentitemsetsfield.go | 37 +- .../v8/typedapi/types/frozenindices.go | 4 +- .../v8/typedapi/types/functionscore.go | 37 +- .../v8/typedapi/types/functionscorequery.go | 4 +- .../v8/typedapi/types/fuzziness.go | 4 +- .../v8/typedapi/types/fuzzyquery.go | 9 +- .../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 | 64 +- .../v8/typedapi/types/geoboundsaggregation.go | 39 +- .../v8/typedapi/types/geocentroidaggregate.go | 46 +- .../typedapi/types/geocentroidaggregation.go | 55 +- .../v8/typedapi/types/geodecayfunction.go | 12 +- .../v8/typedapi/types/geodistanceaggregate.go | 4 +- .../typedapi/types/geodistanceaggregation.go | 46 +- .../typedapi/types/geodistancefeaturequery.go | 46 +- .../v8/typedapi/types/geodistancequery.go | 4 +- .../v8/typedapi/types/geodistancesort.go | 10 +- .../v8/typedapi/types/geohashgridaggregate.go | 4 +- .../typedapi/types/geohashgridaggregation.go | 64 +- .../v8/typedapi/types/geohashgridbucket.go | 4 +- .../v8/typedapi/types/geohashlocation.go | 4 +- .../v8/typedapi/types/geohashprecision.go | 4 +- .../v8/typedapi/types/geohexgridaggregate.go | 4 +- .../typedapi/types/geohexgridaggregation.go | 64 +- .../v8/typedapi/types/geohexgridbucket.go | 4 +- .../typedapi/types/geoipdownloadstatistics.go | 4 +- .../typedapi/types/geoipnodedatabasename.go | 4 +- .../v8/typedapi/types/geoipnodedatabases.go | 4 +- .../v8/typedapi/types/geoipprocessor.go | 4 +- .../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 | 117 +- .../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 | 40 +- .../v8/typedapi/types/geoshapequery.go | 4 +- .../v8/typedapi/types/geotilegridaggregate.go | 4 +- .../typedapi/types/geotilegridaggregation.go | 64 +- .../v8/typedapi/types/geotilegridbucket.go | 4 +- .../v8/typedapi/types/getmigrationfeature.go | 4 +- .../v8/typedapi/types/getresult.go | 4 +- .../v8/typedapi/types/getscriptcontext.go | 4 +- .../v8/typedapi/types/getstats.go | 4 +- .../v8/typedapi/types/getuserprofileerrors.go | 4 +- .../v8/typedapi/types/globalaggregate.go | 4 +- .../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 | 99 + .../v8/typedapi/types/grokprocessor.go | 4 +- .../v8/typedapi/types/groupings.go | 4 +- .../v8/typedapi/types/gsubprocessor.go | 4 +- .../typedapi/types/halffloatnumberproperty.go | 75 +- .../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 | 4 +- .../v8/typedapi/types/healthresponsebody.go | 4 +- .../v8/typedapi/types/healthstatistics.go | 4 +- .../v8/typedapi/types/helprecord.go | 4 +- .../v8/typedapi/types/highlight.go | 4 +- .../v8/typedapi/types/highlightfield.go | 4 +- .../v8/typedapi/types/hint.go | 4 +- .../v8/typedapi/types/histogramaggregate.go | 4 +- .../v8/typedapi/types/histogramaggregation.go | 39 +- .../v8/typedapi/types/histogrambucket.go | 4 +- .../v8/typedapi/types/histogramgrouping.go | 4 +- .../v8/typedapi/types/histogramproperty.go | 40 +- .../go-elasticsearch/v8/typedapi/types/hit.go | 45 +- .../v8/typedapi/types/hitsevent.go | 22 +- .../v8/typedapi/types/hitsmetadata.go | 8 +- .../v8/typedapi/types/hitssequence.go | 6 +- .../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/hotthread.go | 4 +- .../v8/typedapi/types/hourandminute.go | 4 +- .../v8/typedapi/types/hourlyschedule.go | 4 +- .../v8/typedapi/types/htmlstripcharfilter.go | 4 +- .../v8/typedapi/types/http.go | 4 +- .../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/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 | 52 +- .../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 | 60 + .../v8/typedapi/types/ilmindicator.go | 4 +- .../v8/typedapi/types/ilmindicatordetails.go | 25 +- .../v8/typedapi/types/ilmpolicy.go | 4 +- .../v8/typedapi/types/ilmpolicystatistics.go | 4 +- .../v8/typedapi/types/impact.go | 4 +- .../v8/typedapi/types/includedinvalidation.go | 53 + .../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 | 4 +- .../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 | 4 +- .../typedapi/types/indexsettingslifecycle.go | 4 +- .../types/indexsettingslifecyclestep.go | 4 +- .../typedapi/types/indexsettingstimeseries.go | 4 +- .../v8/typedapi/types/indexstate.go | 4 +- .../v8/typedapi/types/indexstats.go | 4 +- .../v8/typedapi/types/indextemplate.go | 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 | 12 +- .../v8/typedapi/types/indicators.go | 4 +- .../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 | 46 +- .../typedapi/types/indicesprivilegesquery.go | 4 +- .../v8/typedapi/types/indicesrecord.go | 20 +- .../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/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 +- .../{modelconfig.go => inferenceendpoint.go} | 18 +- ...gcontainer.go => inferenceendpointinfo.go} | 30 +- .../types/inferencefeatureimportance.go | 4 +- .../v8/typedapi/types/inferenceprocessor.go | 4 +- .../typedapi/types/inferenceresponseresult.go | 19 +- .../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 | 4 +- .../v8/typedapi/types/ingestpipelineparams.go | 121 ++ .../v8/typedapi/types/ingesttotal.go | 4 +- .../v8/typedapi/types/inlineget.go | 4 +- .../types/inlinegetdictuserdefined.go | 4 +- .../v8/typedapi/types/inlinescript.go | 118 -- .../v8/typedapi/types/innerhits.go | 37 +- .../v8/typedapi/types/innerhitsresult.go | 4 +- .../v8/typedapi/types/inprogress.go | 4 +- .../v8/typedapi/types/input.go | 4 +- .../typedapi/types/integernumberproperty.go | 75 +- .../v8/typedapi/types/integerrangeproperty.go | 40 +- .../v8/typedapi/types/intervals.go | 4 +- .../v8/typedapi/types/intervalsallof.go | 4 +- .../v8/typedapi/types/intervalsanyof.go | 4 +- .../v8/typedapi/types/intervalsfilter.go | 110 +- .../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 | 4 +- .../v8/typedapi/types/ipproperty.go | 75 +- .../v8/typedapi/types/iprangeaggregate.go | 4 +- .../v8/typedapi/types/iprangeaggregation.go | 4 +- .../typedapi/types/iprangeaggregationrange.go | 12 +- .../v8/typedapi/types/iprangebucket.go | 4 +- .../v8/typedapi/types/iprangeproperty.go | 40 +- .../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 | 40 +- .../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 | 4 +- .../v8/typedapi/types/keywordproperty.go | 75 +- .../v8/typedapi/types/keywordtokenizer.go | 4 +- .../v8/typedapi/types/kibanatoken.go | 4 +- .../v8/typedapi/types/knnquery.go | 4 +- .../v8/typedapi/types/knnretriever.go | 4 +- .../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/learningtorank.go | 4 +- .../v8/typedapi/types/lengthtokenfilter.go | 4 +- .../v8/typedapi/types/lessthanvalidation.go | 99 + .../v8/typedapi/types/lettertokenizer.go | 4 +- .../v8/typedapi/types/license.go | 6 +- .../v8/typedapi/types/licenseinformation.go | 8 +- .../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 | 95 + .../v8/typedapi/types/loggingaction.go | 4 +- .../v8/typedapi/types/loggingresult.go | 4 +- .../v8/typedapi/types/logstashpipeline.go | 4 +- .../v8/typedapi/types/longnumberproperty.go | 75 +- .../v8/typedapi/types/longrangeproperty.go | 40 +- .../typedapi/types/longraretermsaggregate.go | 4 +- .../v8/typedapi/types/longraretermsbucket.go | 4 +- .../v8/typedapi/types/longtermsaggregate.go | 4 +- .../v8/typedapi/types/longtermsbucket.go | 4 +- .../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 | 29 +- .../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 | 9 +- .../v8/typedapi/types/matchedfield.go | 4 +- .../v8/typedapi/types/matchedtext.go | 4 +- .../v8/typedapi/types/matchnonequery.go | 4 +- .../typedapi/types/matchonlytextproperty.go | 22 +- .../typedapi/types/matchphraseprefixquery.go | 9 +- .../v8/typedapi/types/matchphrasequery.go | 9 +- .../v8/typedapi/types/matchquery.go | 9 +- .../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 | 8 +- .../v8/typedapi/types/maxaggregation.go | 39 +- .../v8/typedapi/types/maxbucketaggregation.go | 4 +- .../types/medianabsolutedeviationaggregate.go | 8 +- .../medianabsolutedeviationaggregation.go | 39 +- .../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 | 37 +- .../v8/typedapi/types/mgetresponseitem.go | 4 +- .../v8/typedapi/types/migrateaction.go | 78 + .../types/migrationfeatureindexinfo.go | 4 +- .../v8/typedapi/types/minaggregate.go | 8 +- .../v8/typedapi/types/minaggregation.go | 39 +- .../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 | 4 +- .../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 +- ...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 | 37 +- .../v8/typedapi/types/multisearchheader.go | 4 +- .../v8/typedapi/types/multisearchitem.go | 4 +- .../v8/typedapi/types/multisearchresult.go | 17 +- .../v8/typedapi/types/multitermlookup.go | 4 +- .../v8/typedapi/types/multitermsaggregate.go | 4 +- .../typedapi/types/multitermsaggregation.go | 4 +- .../v8/typedapi/types/multitermsbucket.go | 4 +- .../v8/typedapi/types/murmur3hashproperty.go | 40 +- .../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 | 4 +- .../v8/typedapi/types/nestedaggregation.go | 4 +- .../v8/typedapi/types/nestedidentity.go | 4 +- .../v8/typedapi/types/nestedproperty.go | 40 +- .../v8/typedapi/types/nestedquery.go | 4 +- .../v8/typedapi/types/nestedsortvalue.go | 4 +- .../v8/typedapi/types/nevercondition.go | 4 +- .../v8/typedapi/types/ngramtokenfilter.go | 4 +- .../v8/typedapi/types/ngramtokenizer.go | 4 +- .../types/nlpberttokenizationconfig.go | 4 +- .../types/nlprobertatokenizationconfig.go | 4 +- .../types/nlptokenizationupdateoptions.go | 4 +- .../v8/typedapi/types/node.go | 4 +- .../types/nodeallocationexplanation.go | 4 +- .../v8/typedapi/types/nodeattributes.go | 4 +- .../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 | 9 +- .../typedapi/types/nodeinfosettingsingest.go | 4 +- .../typedapi/types/nodeinfosettingsnetwork.go | 4 +- .../v8/typedapi/types/nodeinfosettingsnode.go | 4 +- .../types/nodeinfosettingstransport.go | 4 +- .../nodeinfosettingstransportfeatures.go | 4 +- .../types/nodeinfosettingstransporttype.go | 9 +- .../v8/typedapi/types/nodeinfotransport.go | 4 +- .../v8/typedapi/types/nodeinfoxpack.go | 4 +- .../v8/typedapi/types/nodeinfoxpacklicense.go | 4 +- .../types/nodeinfoxpacklicensetype.go | 4 +- .../typedapi/types/nodeinfoxpacksecurity.go | 4 +- .../types/nodeinfoxpacksecurityauthc.go | 4 +- .../types/nodeinfoxpacksecurityauthcrealms.go | 4 +- .../nodeinfoxpacksecurityauthcrealmsstatus.go | 4 +- .../types/nodeinfoxpacksecurityauthctoken.go | 4 +- .../types/nodeinfoxpacksecurityssl.go | 4 +- .../v8/typedapi/types/nodejvminfo.go | 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 | 6 +- .../v8/typedapi/types/nodeshutdownstatus.go | 4 +- .../typedapi/types/nodesindexingpressure.go | 4 +- .../types/nodesindexingpressurememory.go | 4 +- .../v8/typedapi/types/nodesingest.go | 4 +- .../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/numberrangequery.go | 8 +- .../v8/typedapi/types/numericdecayfunction.go | 14 +- .../v8/typedapi/types/numericfielddata.go | 4 +- .../v8/typedapi/types/objectproperty.go | 40 +- .../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 | 4 +- .../v8/typedapi/types/parentaggregate.go | 4 +- .../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 | 41 +- .../v8/typedapi/types/percentiles.go | 4 +- .../typedapi/types/percentilesaggregation.go | 39 +- .../types/percentilesbucketaggregate.go | 4 +- .../types/percentilesbucketaggregation.go | 4 +- .../v8/typedapi/types/percolatequery.go | 4 +- .../v8/typedapi/types/percolatorproperty.go | 40 +- .../types/perpartitioncategorization.go | 4 +- .../v8/typedapi/types/persistenttaskstatus.go | 4 +- .../v8/typedapi/types/phase.go | 14 +- .../v8/typedapi/types/phases.go | 4 +- .../v8/typedapi/types/phonetictokenfilter.go | 4 +- .../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 | 4 +- ...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 | 40 +- .../v8/typedapi/types/pool.go | 4 +- .../typedapi/types/porterstemtokenfilter.go | 4 +- .../v8/typedapi/types/postmigrationfeature.go | 4 +- .../v8/typedapi/types/predicatetokenfilter.go | 37 +- .../v8/typedapi/types/predictedvalue.go | 4 +- .../v8/typedapi/types/prefixquery.go | 9 +- .../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 | 4 +- .../v8/typedapi/types/profile.go | 4 +- .../v8/typedapi/types/property.go | 7 +- .../typedapi/types/publishedclusterstates.go | 4 +- .../v8/typedapi/types/queries.go | 4 +- .../v8/typedapi/types/query.go | 62 +- .../v8/typedapi/types/querybreakdown.go | 4 +- .../v8/typedapi/types/querycachestats.go | 4 +- .../v8/typedapi/types/queryprofile.go | 4 +- .../v8/typedapi/types/queryrole.go | 169 ++ .../v8/typedapi/types/queryrule.go | 37 +- .../v8/typedapi/types/queryruleactions.go | 4 +- .../v8/typedapi/types/queryrulecriteria.go | 8 +- .../v8/typedapi/types/queryruleset.go | 4 +- .../v8/typedapi/types/queryrulesetlistitem.go | 30 +- .../v8/typedapi/types/querystringquery.go | 4 +- .../v8/typedapi/types/queryuser.go | 127 ++ .../v8/typedapi/types/queryvectorbuilder.go | 4 +- .../v8/typedapi/types/querywatch.go | 4 +- .../questionansweringinferenceoptions.go | 4 +- ...questionansweringinferenceupdateoptions.go | 4 +- .../v8/typedapi/types/randomscorefunction.go | 4 +- .../v8/typedapi/types/rangeaggregate.go | 4 +- .../v8/typedapi/types/rangeaggregation.go | 39 +- .../v8/typedapi/types/rangebucket.go | 4 +- .../v8/typedapi/types/rangequery.go | 6 +- .../typedapi/types/rangequerybasedatemath.go | 147 ++ .../v8/typedapi/types/rangequerybasedouble.go | 191 ++ .../v8/typedapi/types/rangequerybasestring.go | 189 ++ .../v8/typedapi/types/rankcontainer.go | 4 +- .../v8/typedapi/types/rankeddocument.go | 4 +- .../v8/typedapi/types/rankevalhit.go | 4 +- .../v8/typedapi/types/rankevalhititem.go | 6 +- .../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 | 4 +- .../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 | 40 +- .../v8/typedapi/types/rankfeaturequery.go | 4 +- .../v8/typedapi/types/rankfeaturesproperty.go | 40 +- .../v8/typedapi/types/raretermsaggregation.go | 37 +- .../v8/typedapi/types/rateaggregate.go | 4 +- .../v8/typedapi/types/rateaggregation.go | 39 +- .../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/refreshstats.go | 4 +- .../v8/typedapi/types/regexoptions.go | 4 +- .../v8/typedapi/types/regexpquery.go | 9 +- .../v8/typedapi/types/regexvalidation.go | 95 + .../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 +- .../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 | 4 +- .../v8/typedapi/types/responseitem.go | 8 +- .../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 | 4 +- .../typedapi/types/reversenestedaggregate.go | 4 +- .../types/reversenestedaggregation.go | 4 +- .../v8/typedapi/types/reversetokenfilter.go | 4 +- .../v8/typedapi/types/role.go | 4 +- .../v8/typedapi/types/roledescriptor.go | 27 +- .../v8/typedapi/types/roledescriptorread.go | 23 +- .../typedapi/types/roledescriptorwrapper.go | 4 +- .../v8/typedapi/types/rolemappingrule.go | 4 +- .../v8/typedapi/types/rolequerycontainer.go | 178 ++ .../v8/typedapi/types/roletemplate.go | 71 +- .../typedapi/types/roletemplateinlinequery.go | 4 +- .../types/roletemplateinlinescript.go | 119 -- .../v8/typedapi/types/roletemplatequery.go | 70 +- .../v8/typedapi/types/roletemplatescript.go | 128 +- .../v8/typedapi/types/rolloveraction.go | 163 ++ .../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/routingfield.go | 4 +- .../v8/typedapi/types/rrfrank.go | 16 +- .../v8/typedapi/types/rrfretriever.go | 26 +- .../v8/typedapi/types/rulecondition.go | 4 +- .../v8/typedapi/types/rulequery.go | 12 +- .../types/runningstatesearchinterval.go | 4 +- .../v8/typedapi/types/runtimefield.go | 39 +- .../typedapi/types/runtimefieldfetchfields.go | 9 +- .../v8/typedapi/types/runtimefields.go | 4 +- .../v8/typedapi/types/runtimefieldstype.go | 4 +- .../v8/typedapi/types/s3repository.go | 4 +- .../v8/typedapi/types/s3repositorysettings.go | 4 +- .../v8/typedapi/types/samplediversity.go | 4 +- .../v8/typedapi/types/sampleraggregate.go | 4 +- .../v8/typedapi/types/sampleraggregation.go | 4 +- .../v8/typedapi/types/scalarvalue.go | 4 +- .../types/scaledfloatnumberproperty.go | 75 +- .../v8/typedapi/types/schedulecontainer.go | 4 +- .../v8/typedapi/types/scheduletimeofday.go | 4 +- .../v8/typedapi/types/scheduletriggerevent.go | 4 +- .../typedapi/types/schedulingconfiguration.go | 37 + .../v8/typedapi/types/scoresort.go | 4 +- .../v8/typedapi/types/script.go | 113 +- .../v8/typedapi/types/scriptcache.go | 4 +- .../v8/typedapi/types/scriptcondition.go | 4 +- .../v8/typedapi/types/scriptedheuristic.go | 68 +- .../typedapi/types/scriptedmetricaggregate.go | 4 +- .../types/scriptedmetricaggregation.go | 179 +- .../v8/typedapi/types/scriptfield.go | 37 +- .../v8/typedapi/types/scripting.go | 4 +- .../v8/typedapi/types/scriptprocessor.go | 4 +- .../v8/typedapi/types/scriptquery.go | 37 +- .../v8/typedapi/types/scriptscorefunction.go | 68 +- .../v8/typedapi/types/scriptscorequery.go | 37 +- .../v8/typedapi/types/scriptsort.go | 86 +- .../v8/typedapi/types/scripttransform.go | 4 +- .../v8/typedapi/types/scrollids.go | 4 +- .../types/searchablesnapshotaction.go | 91 + .../v8/typedapi/types/searchablesnapshots.go | 4 +- .../v8/typedapi/types/searchapplication.go | 4 +- .../types/searchapplicationlistitem.go | 4 +- .../types/searchapplicationtemplate.go | 6 +- .../typedapi/types/searchasyoutypeproperty.go | 40 +- .../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 +- .../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 | 82 + .../v8/typedapi/types/semanticquery.go | 126 ++ .../v8/typedapi/types/semantictextproperty.go | 99 + .../types/serialdifferencingaggregation.go | 4 +- .../typedapi/types/serializedclusterstate.go | 4 +- .../types/serializedclusterstatedetail.go | 4 +- .../v8/typedapi/types/servicetoken.go | 4 +- ...kconfiguration.go => setpriorityaction.go} | 26 +- .../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 | 111 +- .../v8/typedapi/types/shapefieldquery.go | 4 +- .../v8/typedapi/types/shapeproperty.go | 40 +- .../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 | 4 +- .../v8/typedapi/types/shardlease.go | 4 +- .../v8/typedapi/types/shardmigrationstatus.go | 4 +- .../v8/typedapi/types/shardpath.go | 4 +- .../v8/typedapi/types/shardprofile.go | 4 +- .../v8/typedapi/types/shardquerycache.go | 4 +- .../v8/typedapi/types/shardrecovery.go | 4 +- .../v8/typedapi/types/shardretentionleases.go | 4 +- .../v8/typedapi/types/shardrouting.go | 8 +- .../types/shardsavailabilityindicator.go | 4 +- .../shardsavailabilityindicatordetails.go | 20 +- .../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 | 20 +- .../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 | 75 +- .../v8/typedapi/types/shrinkaction.go | 101 + .../types/significantlongtermsaggregate.go | 4 +- .../types/significantlongtermsbucket.go | 4 +- .../types/significantstringtermsaggregate.go | 4 +- .../types/significantstringtermsbucket.go | 4 +- ...aggregatebasesignificantlongtermsbucket.go | 4 +- ...gregatebasesignificantstringtermsbucket.go | 4 +- .../significanttermsaggregatebasevoid.go | 4 +- .../types/significanttermsaggregation.go | 37 +- .../types/significanttextaggregation.go | 37 +- .../v8/typedapi/types/simpleanalyzer.go | 4 +- .../types/simplemovingaverageaggregation.go | 4 +- .../typedapi/types/simplequerystringflags.go | 4 +- .../typedapi/types/simplequerystringquery.go | 4 +- .../v8/typedapi/types/simplevalueaggregate.go | 8 +- .../v8/typedapi/types/simulatedactions.go | 4 +- .../v8/typedapi/types/simulateingest.go | 4 +- .../v8/typedapi/types/sizefield.go | 4 +- .../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 | 6 +- .../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 | 4 +- .../v8/typedapi/types/snapshotshardsstats.go | 4 +- .../v8/typedapi/types/snapshotshardsstatus.go | 4 +- .../v8/typedapi/types/snapshotsrecord.go | 44 +- .../v8/typedapi/types/snapshotstats.go | 4 +- .../v8/typedapi/types/snowballanalyzer.go | 4 +- .../v8/typedapi/types/snowballtokenfilter.go | 10 +- .../v8/typedapi/types/softdeletes.go | 4 +- .../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 | 13 +- .../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/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 | 9 +- .../v8/typedapi/types/spanwithinquery.go | 4 +- .../typedapi/types/sparseembeddingresult.go | 4 +- .../v8/typedapi/types/sparsevector.go | 4 +- .../v8/typedapi/types/sparsevectorproperty.go | 40 +- .../v8/typedapi/types/sparsevectorquery.go | 179 ++ .../v8/typedapi/types/splitprocessor.go | 4 +- .../go-elasticsearch/v8/typedapi/types/sql.go | 4 +- .../go-elasticsearch/v8/typedapi/types/ssl.go | 4 +- .../v8/typedapi/types/standardanalyzer.go | 4 +- .../typedapi/types/standarddeviationbounds.go | 16 +- .../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 | 10 +- .../v8/typedapi/types/statsaggregation.go | 39 +- .../v8/typedapi/types/statsbucketaggregate.go | 10 +- .../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 | 4 +- .../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 +- .../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 | 4 +- .../v8/typedapi/types/stringstatsaggregate.go | 24 +- .../typedapi/types/stringstatsaggregation.go | 39 +- .../v8/typedapi/types/stringtermsaggregate.go | 4 +- .../v8/typedapi/types/stringtermsbucket.go | 4 +- .../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 | 8 +- .../v8/typedapi/types/sumaggregation.go | 39 +- .../v8/typedapi/types/sumbucketaggregation.go | 4 +- .../v8/typedapi/types/summary.go | 4 +- .../v8/typedapi/types/synccontainer.go | 4 +- .../types/syncjobconnectorreference.go | 132 ++ .../v8/typedapi/types/syncrulesfeature.go | 36 + .../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 +- .../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 | 6 +- .../v8/typedapi/types/term.go | 4 +- .../v8/typedapi/types/termquery.go | 4 +- .../v8/typedapi/types/termrangequery.go | 189 ++ .../termsaggregatebasedoubletermsbucket.go | 4 +- .../termsaggregatebaselongtermsbucket.go | 4 +- .../termsaggregatebasemultitermsbucket.go | 4 +- .../termsaggregatebasestringtermsbucket.go | 4 +- .../typedapi/types/termsaggregatebasevoid.go | 4 +- .../v8/typedapi/types/termsaggregation.go | 86 +- .../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 | 39 +- .../v8/typedapi/types/termsuggest.go | 4 +- .../v8/typedapi/types/termsuggester.go | 4 +- .../v8/typedapi/types/termsuggestoption.go | 4 +- .../v8/typedapi/types/termvector.go | 8 +- .../v8/typedapi/types/termvectorsfilter.go | 4 +- .../v8/typedapi/types/termvectorsresult.go | 6 +- .../v8/typedapi/types/termvectorstoken.go | 4 +- .../v8/typedapi/types/testpopulation.go | 41 +- .../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 | 40 +- .../v8/typedapi/types/texttoanalyze.go | 4 +- .../v8/typedapi/types/threadcount.go | 4 +- .../v8/typedapi/types/threadpoolrecord.go | 20 +- .../v8/typedapi/types/throttlestate.go | 4 +- .../v8/typedapi/types/timeofmonth.go | 4 +- .../v8/typedapi/types/timeofweek.go | 4 +- .../v8/typedapi/types/timeofyear.go | 4 +- .../v8/typedapi/types/timesync.go | 4 +- .../v8/typedapi/types/timingstats.go | 4 +- .../v8/typedapi/types/tokencountproperty.go | 40 +- .../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 | 4 +- .../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 | 72 +- .../types/topleftbottomrightgeobounds.go | 88 +- .../v8/typedapi/types/topmetrics.go | 4 +- .../v8/typedapi/types/topmetricsaggregate.go | 4 +- .../typedapi/types/topmetricsaggregation.go | 39 +- .../v8/typedapi/types/topmetricsvalue.go | 4 +- .../types/toprightbottomleftgeobounds.go | 88 +- .../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 | 6 +- .../v8/typedapi/types/trainedmodelentities.go | 4 +- .../trainedmodelinferenceclassimportance.go | 4 +- .../trainedmodelinferencefeatureimportance.go | 4 +- .../types/trainedmodelinferencestats.go | 6 +- .../v8/typedapi/types/trainedmodellocation.go | 4 +- .../types/trainedmodellocationindex.go | 4 +- .../types/trainedmodelprefixstrings.go | 4 +- .../typedapi/types/trainedmodelsizestats.go | 22 +- .../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 | 26 +- .../v8/typedapi/types/transformsource.go | 4 +- .../v8/typedapi/types/transformsrecord.go | 16 +- .../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 | 6 +- .../v8/typedapi/types/ttestaggregation.go | 4 +- .../v8/typedapi/types/typefieldmappings.go | 4 +- .../v8/typedapi/types/typemapping.go | 22 +- .../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 | 4 +- .../unmappedsignificanttermsaggregate.go | 4 +- .../typedapi/types/unmappedtermsaggregate.go | 4 +- .../v8/typedapi/types/unrateddocument.go | 4 +- .../types/unsignedlongnumberproperty.go | 75 +- .../v8/typedapi/types/untypeddecayfunction.go | 76 + .../types/untypeddistancefeaturequery.go | 133 ++ .../v8/typedapi/types/untypedrangequery.go | 162 ++ .../v8/typedapi/types/updateaction.go | 68 +- .../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/urldecodeprocessor.go | 4 +- .../v8/typedapi/types/usagestatsindex.go | 4 +- .../v8/typedapi/types/usagestatsshards.go | 4 +- .../v8/typedapi/types/user.go | 10 +- .../v8/typedapi/types/useragentprocessor.go | 4 +- .../typedapi/types/userindicesprivileges.go | 49 +- .../v8/typedapi/types/userprofile.go | 4 +- .../typedapi/types/userprofilehitmetadata.go | 4 +- .../v8/typedapi/types/userprofileuser.go | 10 +- .../typedapi/types/userprofilewithmetadata.go | 4 +- .../v8/typedapi/types/userquerycontainer.go | 178 ++ .../v8/typedapi/types/userrealm.go | 4 +- .../v8/typedapi/types/validation.go | 32 + .../v8/typedapi/types/validationloss.go | 4 +- .../v8/typedapi/types/valuecountaggregate.go | 8 +- .../typedapi/types/valuecountaggregation.go | 39 +- .../types/variablewidthhistogramaggregate.go | 4 +- .../variablewidthhistogramaggregation.go | 41 +- .../types/variablewidthhistogrambucket.go | 4 +- .../v8/typedapi/types/vector.go | 4 +- .../v8/typedapi/types/verifyindex.go | 4 +- .../v8/typedapi/types/versionproperty.go | 40 +- .../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 | 76 + .../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 | 39 +- .../v8/typedapi/types/weightedavgaggregate.go | 8 +- .../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 | 40 +- .../v8/typedapi/types/wildcardquery.go | 9 +- .../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 | 4 +- .../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 | 20 +- .../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 | 6 +- .../v8/typedapi/xpack/info/response.go | 4 +- .../v8/typedapi/xpack/usage/response.go | 4 +- .../v8/typedapi/xpack/usage/usage.go | 8 +- .../gorilla/websocket/.editorconfig | 20 - .../github.com/gorilla/websocket/.gitignore | 26 +- .../gorilla/websocket/.golangci.yml | 3 - vendor/github.com/gorilla/websocket/AUTHORS | 9 + vendor/github.com/gorilla/websocket/LICENSE | 39 +- vendor/github.com/gorilla/websocket/Makefile | 34 - vendor/github.com/gorilla/websocket/README.md | 15 +- vendor/github.com/gorilla/websocket/client.go | 26 +- .../gorilla/websocket/compression.go | 9 +- vendor/github.com/gorilla/websocket/conn.go | 75 +- vendor/github.com/gorilla/websocket/mask.go | 4 - vendor/github.com/gorilla/websocket/proxy.go | 17 +- vendor/github.com/gorilla/websocket/server.go | 38 +- .../gorilla/websocket/tls_handshake.go | 3 + .../gorilla/websocket/tls_handshake_116.go | 21 + vendor/github.com/gorilla/websocket/util.go | 4 +- .../gorilla/websocket/x_net_proxy.go | 473 +++++ .../bson/bsonrw/extjson_parser.go | 2 +- .../bson/bsonrw/extjson_writer.go | 13 +- .../mongo-driver/bson/bsonrw/json_scanner.go | 37 +- .../mongo-driver/bson/bsonrw/value_writer.go | 2 +- .../go.mongodb.org/mongo-driver/bson/doc.go | 11 +- .../mongo-driver/bson/primitive/decimal.go | 6 +- .../mongo-driver/mongo/bulk_write.go | 7 +- .../mongo-driver/mongo/change_stream.go | 3 +- .../mongo-driver/mongo/client.go | 18 +- .../mongo-driver/mongo/client_encryption.go | 10 +- .../mongo-driver/mongo/collection.go | 29 +- .../mongo-driver/mongo/database.go | 11 +- .../mongo-driver/mongo/description/server.go | 18 +- .../mongo-driver/mongo/index_view.go | 26 +- .../mongo/options/clientoptions.go | 71 +- .../mongo/options/encryptoptions.go | 28 +- .../mongo/options/serverapioptions.go | 3 +- .../mongo-driver/mongo/search_index_view.go | 6 +- .../mongo-driver/mongo/session.go | 5 +- .../mongo-driver/version/version.go | 2 +- .../mongo-driver/x/bsonx/bsoncore/element.go | 8 +- .../mongo-driver/x/bsonx/bsoncore/value.go | 13 +- .../mongo-driver/x/mongo/driver/auth/auth.go | 44 +- .../mongo-driver/x/mongo/driver/auth/cred.go | 14 +- .../x/mongo/driver/auth/default.go | 21 +- .../x/mongo/driver/auth/gssapi.go | 13 +- .../x/mongo/driver/auth/gssapi_not_enabled.go | 4 +- .../mongo/driver/auth/gssapi_not_supported.go | 3 +- .../mongo/driver/auth/internal/gssapi/gss.go | 5 +- .../mongo/driver/auth/internal/gssapi/sspi.go | 5 +- .../x/mongo/driver/auth/mongodbaws.go | 29 +- .../x/mongo/driver/auth/mongodbcr.go | 14 +- .../mongo-driver/x/mongo/driver/auth/oidc.go | 556 ++++++ .../mongo-driver/x/mongo/driver/auth/plain.go | 29 +- .../mongo-driver/x/mongo/driver/auth/sasl.go | 5 +- .../mongo-driver/x/mongo/driver/auth/scram.go | 25 +- .../mongo-driver/x/mongo/driver/auth/x509.go | 13 +- .../x/mongo/driver/batch_cursor.go | 12 +- .../x/mongo/driver/connstring/connstring.go | 34 +- .../mongo-driver/x/mongo/driver/driver.go | 59 + .../mongo-driver/x/mongo/driver/errors.go | 2 +- .../x/mongo/driver/mongocrypt/mongocrypt.go | 7 +- .../options/mongocrypt_context_options.go | 9 +- .../mongo-driver/x/mongo/driver/operation.go | 37 +- .../driver/operation/abort_transaction.go | 12 + .../x/mongo/driver/operation/aggregate.go | 12 + .../x/mongo/driver/operation/command.go | 14 +- .../driver/operation/commit_transaction.go | 12 + .../x/mongo/driver/operation/count.go | 12 + .../x/mongo/driver/operation/create.go | 12 + .../mongo/driver/operation/create_indexes.go | 42 +- .../driver/operation/create_search_indexes.go | 36 +- .../x/mongo/driver/operation/delete.go | 53 +- .../x/mongo/driver/operation/distinct.go | 15 +- .../mongo/driver/operation/drop_collection.go | 36 +- .../x/mongo/driver/operation/drop_database.go | 30 +- .../x/mongo/driver/operation/drop_indexes.go | 62 +- .../driver/operation/drop_search_index.go | 39 +- .../x/mongo/driver/operation/end_sessions.go | 30 +- .../x/mongo/driver/operation/find.go | 12 + .../mongo/driver/operation/find_and_modify.go | 12 + .../x/mongo/driver/operation/hello.go | 11 + .../x/mongo/driver/operation/insert.go | 15 +- .../x/mongo/driver/operation/listDatabases.go | 12 + .../driver/operation/list_collections.go | 12 + .../x/mongo/driver/operation/list_indexes.go | 38 +- .../x/mongo/driver/operation/update.go | 12 + .../driver/operation/update_search_index.go | 41 +- .../x/mongo/driver/session/client_session.go | 18 +- .../x/mongo/driver/topology/connection.go | 183 +- .../x/mongo/driver/topology/fsm.go | 2 +- .../x/mongo/driver/topology/pool.go | 68 +- .../x/mongo/driver/topology/server.go | 2 +- .../mongo/driver/topology/topology_options.go | 129 +- .../x/mongo/driver/wiremessage/wiremessage.go | 27 +- .../grpc/otelgrpc/version.go | 2 +- .../otlpmetricgrpc/internal/oconf/options.go | 2 +- .../otlpmetricgrpc/internal/oconf/tls.go | 2 +- .../otlp/otlpmetric/otlpmetricgrpc/version.go | 2 +- .../internal/otlpconfig/options.go | 2 +- .../otel/exporters/otlp/otlptrace/version.go | 2 +- .../otel/sdk/metric/config.go | 7 +- .../otel/sdk/metric/instrument.go | 8 +- .../otel/sdk/metric/internal/aggregate/sum.go | 4 +- .../internal/exemplar/filtered_reservoir.go | 2 +- .../otel/sdk/metric/internal/exemplar/rand.go | 2 +- .../otel/sdk/metric/meter.go | 20 +- .../otel/sdk/metric/version.go | 2 +- vendor/modules.txt | 115 +- 3773 files changed, 46276 insertions(+), 13307 deletions(-) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.capabilities.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_claim.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_features.go rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.inference.delete_model.go => api.inference.delete.go} (64%) rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.inference.get_model.go => api.inference.get.go} (69%) rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.inference.put_model.go => api.inference.put.go} (68%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_geoip_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_geoip_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_geoip_database.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_rule.go rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.query_ruleset.delete.go => api.query_rules.delete_ruleset.go} (67%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_rule.go rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.query_ruleset.get.go => api.query_rules.get_ruleset.go} (68%) rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.query_ruleset.list.go => api.query_rules.list_rulesets.go} (66%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_rule.go rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.query_ruleset.put.go => api.query_rules.put_ruleset.go} (68%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_delete_role.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_put_role.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_role.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_node_stats.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/capabilities/capabilities.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/check_in.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/response.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset => connector}/delete/delete.go (85%) rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset => connector}/delete/response.go (81%) rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset => connector}/get/get.go (87%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/last_sync.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/response.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset => connector}/list/list.go (83%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/post.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/response.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset => connector}/put/put.go (81%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/request.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset => connector}/put/response.go (79%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost/secret_post.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/sync_job_cancel.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/sync_job_delete.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/sync_job_get.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/sync_job_list.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/sync_job_post.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/update_active_filtering.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/update_api_key_id.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/update_configuration.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/update_error.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/update_filtering.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/update_index_name.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/update_name.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/update_native.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset/put => connector/updatepipeline}/request.go (71%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/update_pipeline.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/update_scheduling.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/update_service_type.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/update_status.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery/async_query.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/{deletemodel/delete_model.go => delete/delete.go} (78%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/response.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/{getmodel/get_model.go => get/get.go} (80%) rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/{getmodel => get}/response.go (72%) rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/{putmodel/put_model.go => put/put.go} (79%) rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/{putmodel => put}/request.go (70%) rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/{putmodel => put}/response.go (72%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph/flamegraph.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces/stacktraces.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/status/status.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions/topn_functions.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/delete_rule.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{inference/deletemodel => queryrules/deleterule}/response.go (79%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/delete_ruleset.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/get_rule.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/get_ruleset.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset/get => queryrules/getruleset}/response.go (76%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/list_rulesets.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/{queryruleset/list => queryrules/listrulesets}/response.go (75%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/put_rule.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/put_ruleset.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/bulk_delete_role.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/bulk_put_role.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/query_role.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/query_user.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/request.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/response.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findfieldstructure/find_field_structure.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure/find_message_structure.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/getnodestats/get_node_stats.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocateaction.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkerror.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connector.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfigproperties.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfiguration.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorcustomscheduling.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorfeatures.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorscheduling.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorsyncjob.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customscheduling.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customschedulingconfigurationoverrides.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedatemathduration.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedoubledouble.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasegeolocationdistance.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacement.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteaction.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteinferenceendpointresult.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/{storedscriptid.go => dependency.go} (51%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleaction.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus/connectorstatus.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype/displaytype.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy/filteringpolicy.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule/filteringrulerule.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype/syncjobtype.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus/syncstatus.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featureenabled.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringadvancedsnippet.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringconfig.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrule.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrules.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrulesvalidation.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/{configurations.go => filteringvalidation.go} (59%) rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/{forcemergeconfiguration.go => forcemergeaction.go} (63%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greaterthanvalidation.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmactions.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/includedinvalidation.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/{modelconfig.go => inferenceendpoint.go} (78%) rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/{modelconfigcontainer.go => inferenceendpointinfo.go} (75%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipelineparams.go delete mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinescript.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lessthanvalidation.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/listtypevalidation.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrateaction.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrole.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryuser.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedatemath.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedouble.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasestring.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexvalidation.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolequerycontainer.go delete mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinescript.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloveraction.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulingconfiguration.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshotaction.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/selectoption.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semanticquery.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semantictextproperty.go rename vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/{shrinkconfiguration.go => setpriorityaction.go} (65%) create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkaction.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorquery.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncjobconnectorreference.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncrulesfeature.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termrangequery.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddecayfunction.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddistancefeaturequery.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypedrangequery.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userquerycontainer.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validation.go create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforsnapshotaction.go delete mode 100644 vendor/github.com/gorilla/websocket/.editorconfig delete mode 100644 vendor/github.com/gorilla/websocket/.golangci.yml create mode 100644 vendor/github.com/gorilla/websocket/AUTHORS delete mode 100644 vendor/github.com/gorilla/websocket/Makefile create mode 100644 vendor/github.com/gorilla/websocket/tls_handshake_116.go create mode 100644 vendor/github.com/gorilla/websocket/x_net_proxy.go create mode 100644 vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/oidc.go diff --git a/go.mod b/go.mod index 1258968877..dee0931ac4 100644 --- a/go.mod +++ b/go.mod @@ -5,13 +5,13 @@ go 1.22 require ( github.com/IBM/sarama v1.43.3 github.com/aws/aws-sdk-go-v2 v1.30.5 - github.com/aws/aws-sdk-go-v2/config v1.27.33 - github.com/aws/aws-sdk-go-v2/credentials v1.17.32 - github.com/aws/aws-sdk-go-v2/service/sns v1.31.7 - github.com/aws/aws-sdk-go-v2/service/sqs v1.34.8 + github.com/aws/aws-sdk-go-v2/config v1.27.35 + github.com/aws/aws-sdk-go-v2/credentials v1.17.33 + github.com/aws/aws-sdk-go-v2/service/sns v1.31.8 + github.com/aws/aws-sdk-go-v2/service/sqs v1.34.9 github.com/eclipse/paho.golang v0.21.0 github.com/elastic/elastic-transport-go/v8 v8.6.0 - github.com/elastic/go-elasticsearch/v8 v8.14.0 + github.com/elastic/go-elasticsearch/v8 v8.15.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 @@ -19,17 +19,17 @@ require ( github.com/redis/go-redis/extra/redisotel/v9 v9.5.3 github.com/redis/go-redis/v9 v9.6.1 github.com/stretchr/testify v1.9.0 - go.mongodb.org/mongo-driver v1.16.1 + go.mongodb.org/mongo-driver v1.17.0 go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.55.0 go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo v0.55.0 - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 go.opentelemetry.io/otel v1.30.0 - go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.29.0 - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.29.0 + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.30.0 + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0 go.opentelemetry.io/otel/metric v1.30.0 go.opentelemetry.io/otel/sdk v1.30.0 - go.opentelemetry.io/otel/sdk/metric v1.29.0 + go.opentelemetry.io/otel/sdk/metric v1.30.0 go.opentelemetry.io/otel/trace v1.30.0 golang.org/x/time v0.6.0 google.golang.org/grpc v1.66.2 @@ -42,13 +42,13 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.17 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.17 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.9 // indirect + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.10 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4 // indirect github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.18 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.19 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.22.7 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.7 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.30.7 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.22.8 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.30.8 // indirect github.com/aws/smithy-go v1.20.4 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect @@ -61,7 +61,7 @@ require ( github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/golang/snappy v0.0.4 // indirect - github.com/gorilla/websocket v1.5.1 // indirect + github.com/gorilla/websocket v1.5.3 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect @@ -82,15 +82,15 @@ require ( github.com/xdg-go/scram v1.1.2 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 // indirect go.opentelemetry.io/proto/otlp v1.3.1 // indirect golang.org/x/crypto v0.27.0 // indirect - golang.org/x/net v0.28.0 // indirect + golang.org/x/net v0.29.0 // indirect golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.25.0 // indirect golang.org/x/text v0.18.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // 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 e5d59f654d..071fd29010 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.30.5 h1:mWSRTwQAb0aLE17dSzztCVJWI9+cRMgqebndjwDyK0g= github.com/aws/aws-sdk-go-v2 v1.30.5/go.mod h1:CT+ZPWXbYrci8chcARI3OmI/qgd+f6WtuLOoaIA8PR0= -github.com/aws/aws-sdk-go-v2/config v1.27.33 h1:Nof9o/MsmH4oa0s2q9a0k7tMz5x/Yj5k06lDODWz3BU= -github.com/aws/aws-sdk-go-v2/config v1.27.33/go.mod h1:kEqdYzRb8dd8Sy2pOdEbExTTF5v7ozEXX0McgPE7xks= -github.com/aws/aws-sdk-go-v2/credentials v1.17.32 h1:7Cxhp/BnT2RcGy4VisJ9miUPecY+lyE9I8JvcZofn9I= -github.com/aws/aws-sdk-go-v2/credentials v1.17.32/go.mod h1:P5/QMF3/DCHbXGEGkdbilXHsyTBX5D3HSwcrSc9p20I= +github.com/aws/aws-sdk-go-v2/config v1.27.35 h1:jeFgiWYNV0vrgdZqB4kZBjYNdy0IKkwrAjr2fwpHIig= +github.com/aws/aws-sdk-go-v2/config v1.27.35/go.mod h1:qnpEvTq8ZfjrCqmJGRfWZuF+lGZ/vG8LK2K0L/TY1gQ= +github.com/aws/aws-sdk-go-v2/credentials v1.17.33 h1:lBHAQQznENv0gLHAZ73ONiTSkCtr8q3pSqWrpbBBZz0= +github.com/aws/aws-sdk-go-v2/credentials v1.17.33/go.mod h1:MBuqCUOT3ChfLuxNDGyra67eskx7ge9e3YKYBce7wpI= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.13 h1:pfQ2sqNpMVK6xz2RbqLEL0GH87JOwSxPV2rzm8Zsb74= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.13/go.mod h1:NG7RXPUlqfsCLLFfi0+IpKN4sCB9D9fw/qTaSB+xRoU= github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.17 h1:pI7Bzt0BJtYA0N/JEC6B8fJ4RBrEMi1LBrkMdFYNSnQ= @@ -16,24 +16,24 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.17 h1:Mqr/V5gvrhA2gvgnF4 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.17/go.mod h1:aLJpZlCmjE+V+KtN1q1uyZkfnUWpQGpbsn89XPKyzfU= 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.34.9 h1:jbqgtdKfAXebx2/l2UhDEe/jmmCIhaCO3HFK71M7VzM= -github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.9/go.mod h1:N3YdUYxyxhiuAelUgCpSVBuBI1klobJxZrDtL+olu10= +github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.10 h1:ozHHSE9Hflrf2DZmJEoqIO+bK6E6rAfID8PSCv2rgG8= +github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.10/go.mod h1:N3YdUYxyxhiuAelUgCpSVBuBI1klobJxZrDtL+olu10= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4 h1:KypMCbLPPHEmf9DgMGw51jMj77VfGPAN2Kv4cfhlfgI= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4/go.mod h1:Vz1JQXliGcQktFTN/LN6uGppAIRoLBR2bMvIMP0gOjc= github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.18 h1:GACdEPdpBE59I7pbfvu0/Mw1wzstlP3QtPHklUxybFE= github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.18/go.mod h1:K+xV06+Wni4TSaOOJ1Y35e5tYOCUBYbebLKmJQQa8yY= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.19 h1:rfprUlsdzgl7ZL2KlXiUAoJnI/VxfHCvDFr2QDFj6u4= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.19/go.mod h1:SCWkEdRq8/7EK60NcvvQ6NXKuTcchAD4ROAsC37VEZE= -github.com/aws/aws-sdk-go-v2/service/sns v1.31.7 h1:3MWDVQ1pS3e/S4ADKg+mMETqIbOuQDY9FqH7XCb5ISA= -github.com/aws/aws-sdk-go-v2/service/sns v1.31.7/go.mod h1:wjhxA9hlVu75dCL/5Wcx8Cwmszvu6t0i8WEDypcB4+s= -github.com/aws/aws-sdk-go-v2/service/sqs v1.34.8 h1:t3TzmBX0lpDNtLhl7vY97VMvLtxp/KTvjjj2X3s6SUQ= -github.com/aws/aws-sdk-go-v2/service/sqs v1.34.8/go.mod h1:zn0Oy7oNni7XIGoAd6bHBTVtX06OrnpvT1kww8jxyi8= -github.com/aws/aws-sdk-go-v2/service/sso v1.22.7 h1:pIaGg+08llrP7Q5aiz9ICWbY8cqhTkyy+0SHvfzQpTc= -github.com/aws/aws-sdk-go-v2/service/sso v1.22.7/go.mod h1:eEygMHnTKH/3kNp9Jr1n3PdejuSNcgwLe1dWgQtO0VQ= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.7 h1:/Cfdu0XV3mONYKaOt1Gr0k1KvQzkzPyiKUdlWJqy+J4= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.7/go.mod h1:bCbAxKDqNvkHxRaIMnyVPXPo+OaPRwvmgzMxbz1VKSA= -github.com/aws/aws-sdk-go-v2/service/sts v1.30.7 h1:NKTa1eqZYw8tiHSRGpP0VtTdub/8KNk8sDkNPFaOKDE= -github.com/aws/aws-sdk-go-v2/service/sts v1.30.7/go.mod h1:NXi1dIAGteSaRLqYgarlhP/Ij0cFT+qmCwiJqWh/U5o= +github.com/aws/aws-sdk-go-v2/service/sns v1.31.8 h1:vRSk062d1SmaEVbiqFePkvYuhCTnW2JnPkUdt19nqeY= +github.com/aws/aws-sdk-go-v2/service/sns v1.31.8/go.mod h1:wjhxA9hlVu75dCL/5Wcx8Cwmszvu6t0i8WEDypcB4+s= +github.com/aws/aws-sdk-go-v2/service/sqs v1.34.9 h1:soISVWbRSqWplczJaEYxj26UrGULnptybx/eA3aGo90= +github.com/aws/aws-sdk-go-v2/service/sqs v1.34.9/go.mod h1:zn0Oy7oNni7XIGoAd6bHBTVtX06OrnpvT1kww8jxyi8= +github.com/aws/aws-sdk-go-v2/service/sso v1.22.8 h1:JRwuL+S1Qe1owZQoxblV7ORgRf2o0SrtzDVIbaVCdQ0= +github.com/aws/aws-sdk-go-v2/service/sso v1.22.8/go.mod h1:eEygMHnTKH/3kNp9Jr1n3PdejuSNcgwLe1dWgQtO0VQ= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.8 h1:+HpGETD9463PFSj7lX5+eq7aLDs85QUIA+NBkeAsscA= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.8/go.mod h1:bCbAxKDqNvkHxRaIMnyVPXPo+OaPRwvmgzMxbz1VKSA= +github.com/aws/aws-sdk-go-v2/service/sts v1.30.8 h1:bAi+4p5EKnni+jrfcAhb7iHFQ24bthOAV9t0taf3DCE= +github.com/aws/aws-sdk-go-v2/service/sts v1.30.8/go.mod h1:NXi1dIAGteSaRLqYgarlhP/Ij0cFT+qmCwiJqWh/U5o= github.com/aws/smithy-go v1.20.4 h1:2HK1zBdPgRbjFOHlfeQZfpC4r72MOb9bZkiFwggKO+4= github.com/aws/smithy-go v1.20.4/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= @@ -59,8 +59,8 @@ github.com/eclipse/paho.golang v0.21.0 h1:cxxEReu+iFbA5RrHfRGxJOh8tXZKDywuehneoe github.com/eclipse/paho.golang v0.21.0/go.mod h1:GHF6vy7SvDbDHBguaUpfuBkEB5G6j0zKxMG4gbh6QRQ= github.com/elastic/elastic-transport-go/v8 v8.6.0 h1:Y2S/FBjx1LlCv5m6pWAF2kDJAHoSjSRSJCApolgfthA= github.com/elastic/elastic-transport-go/v8 v8.6.0/go.mod h1:YLHer5cj0csTzNFXoNQ8qhtGY1GTvSqPnKWKaqQE3Hk= -github.com/elastic/go-elasticsearch/v8 v8.14.0 h1:1ywU8WFReLLcxE1WJqii3hTtbPUE2hc38ZK/j4mMFow= -github.com/elastic/go-elasticsearch/v8 v8.14.0/go.mod h1:WRvnlGkSuZyp83M2U8El/LGXpCjYLrvlkSgkAH4O5I4= +github.com/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/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= @@ -80,8 +80,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= -github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= -github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= +github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= +github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 h1:asbCHRVmodnJTuQ3qamDwqVOIjwqUPTYmYuemVOx+Ys= github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0/go.mod h1:ggCgvZ2r7uOoQjOyu2Y1NhHmEPPzzuhWgcza5M1Ji1I= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -152,30 +152,30 @@ github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gi github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 h1:ilQV1hzziu+LLM3zUTJ0trRztfwgjqKnBWNtSRkbmwM= github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78/go.mod h1:aL8wCCfTfSfmXjznFBSZNN13rSJjlIOI1fUNAtF7rmI= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.mongodb.org/mongo-driver v1.16.1 h1:rIVLL3q0IHM39dvE+z2ulZLp9ENZKThVfuvN/IiN4l8= -go.mongodb.org/mongo-driver v1.16.1/go.mod h1:oB6AhJQvFQL4LEHyXi6aJzQJtBiTQHiAd83l0GdFaiw= +go.mongodb.org/mongo-driver v1.17.0 h1:Hp4q2MCjvY19ViwimTs00wHi7G4yzxh4/2+nTx8r40k= +go.mongodb.org/mongo-driver v1.17.0/go.mod h1:wwWm/+BuOddhcq3n68LKRmgk2wXzmF6s0SFOa0GINL4= go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.55.0 h1:MnAevUB0SFfKALzF5ApgrArdvHZduRT3/e59L/lNYKE= go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.55.0/go.mod h1:MHPbT1EvQOZMGbKeuCovYWcyM9iaxcltRf7+GsU8ziE= go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo v0.55.0 h1:Rsm/r0H30wFPYRe5AQLIdOP0l7aSQyc5sSjPePMCEsw= go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo v0.55.0/go.mod h1:BWhDEM9MUeTMB391QSC+tBQAla6qp+SeFzQI+rfS44w= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 h1:r6I7RJCN86bpD/FQwedZ0vSixDpwuWREjW9oRMsmqDc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0/go.mod h1:B9yO6b04uB80CzjedvewuqDhxJxi11s7/GtiGa8bAjI= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 h1:hCq2hNMwsegUvPzI7sPOvtO9cqyy5GbWt/Ybp2xrx8Q= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0/go.mod h1:LqaApwGx/oUmzsbqxkzuBvyoPpkxk3JQWnqfVrJ3wCA= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 h1:ZIg3ZT/aQ7AfKqdwp7ECpOK6vHqquXXuyTjIO8ZdmPs= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0/go.mod h1:DQAwmETtZV00skUwgD6+0U89g80NKsJE3DCKeLLPQMI= go.opentelemetry.io/otel v1.30.0 h1:F2t8sK4qf1fAmY9ua4ohFS/K+FUuOPemHUIXHtktrts= go.opentelemetry.io/otel v1.30.0/go.mod h1:tFw4Br9b7fOS+uEao81PJjVMjW/5fvNCbpsDIXqP0pc= -go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.29.0 h1:k6fQVDQexDE+3jG2SfCQjnHS7OamcP73YMoxEVq5B6k= -go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.29.0/go.mod h1:t4BrYLHU450Zo9fnydWlIuswB1bm7rM8havDpWOJeDo= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0 h1:dIIDULZJpgdiHz5tXrTgKIMLkus6jEFa7x5SOKcyR7E= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0/go.mod h1:jlRVBe7+Z1wyxFSUs48L6OBQZ5JwH2Hg/Vbl+t9rAgI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.29.0 h1:nSiV3s7wiCam610XcLbYOmMfJxB9gO4uK3Xgv5gmTgg= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.29.0/go.mod h1:hKn/e/Nmd19/x1gvIHwtOwVWM+VhuITSWip3JUDghj0= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.30.0 h1:WypxHH02KX2poqqbaadmkMYalGyy/vil4HE4PM4nRJc= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.30.0/go.mod h1:U79SV99vtvGSEBeeHnpgGJfTsnsdkWLpPN/CcHAzBSI= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 h1:lsInsfvhVIfOI6qHVyysXMNDnjO9Npvl7tlDPJFBVd4= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0/go.mod h1:KQsVNh4OjgjTG0G6EiNi1jVpnaeeKsKMRwbLN+f1+8M= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0 h1:m0yTiGDLUvVYaTFbAvCkVYIYcvwKt3G7OLoN77NUs/8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0/go.mod h1:wBQbT4UekBfegL2nx0Xk1vBcnzyBPsIVm9hRG4fYcr4= go.opentelemetry.io/otel/metric v1.30.0 h1:4xNulvn9gjzo4hjg+wzIKG7iNFEaBMX00Qd4QIZs7+w= go.opentelemetry.io/otel/metric v1.30.0/go.mod h1:aXTfST94tswhWEb+5QjlSqG+cZlmyXy/u8jFpor3WqQ= go.opentelemetry.io/otel/sdk v1.30.0 h1:cHdik6irO49R5IysVhdn8oaiR9m8XluDaJAs4DfOrYE= go.opentelemetry.io/otel/sdk v1.30.0/go.mod h1:p14X4Ok8S+sygzblytT1nqG98QG2KYKv++HE0LY/mhg= -go.opentelemetry.io/otel/sdk/metric v1.29.0 h1:K2CfmJohnRgvZ9UAj2/FhIf/okdWcNdBwe1m8xFXiSY= -go.opentelemetry.io/otel/sdk/metric v1.29.0/go.mod h1:6zZLdCl2fkauYoZIOn/soQIDSWFmNSRcICarHfuhNJQ= +go.opentelemetry.io/otel/sdk/metric v1.30.0 h1:QJLT8Pe11jyHBHfSAgYH7kEmT24eX792jZO1bo4BXkM= +go.opentelemetry.io/otel/sdk/metric v1.30.0/go.mod h1:waS6P3YqFNzeP01kuo/MBBYqaoBJl7efRQHOaydhy1Y= go.opentelemetry.io/otel/trace v1.30.0 h1:7UBkkYzeg3C7kQX8VAidWh2biiQbtAKjyIML8dQ9wmc= go.opentelemetry.io/otel/trace v1.30.0/go.mod h1:5EyKqTzzmyqB9bwtCCq6pDLktPK6fmGf/Dph+8VI02o= go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= @@ -194,8 +194,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= -golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= +golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= @@ -224,10 +224,10 @@ 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-20240822170219-fc7c04adadcd h1:BBOTEWLuuEGQy9n1y9MhVJ9Qt0BDu21X8qZs71/uPZo= -google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd/go.mod h1:fO8wJzT2zbQbAjbIoos1285VfEIYKDDY+Dt+WpTkh6g= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd h1:6TEm2ZxXoQmFWFlt1vNxvVOa1Q0dXFQD1m/rYjXmS0E= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 h1:hjSy6tcFQZ171igDaN5QHOw2n6vx40juYbC/x67CEhc= +google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:qpvKtACPCQhAdu3PyQgV4l3LMXZEtft7y8QcarRsp9I= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.66.2 h1:3QdXkuq3Bkh7w+ywLdLvM56cmGvQHUMZpiCzt6Rqaoo= google.golang.org/grpc v1.66.2/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= 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 8325c8a0be..ec2c4c5f55 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,11 @@ +# v1.27.35 (2024-09-17) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.27.34 (2024-09-16) + +* **Bug Fix**: Read `AWS_CONTAINER_CREDENTIALS_FULL_URI` env variable if set when reading a profile with `credential_source`. Also ensure `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI` is always read before it + # v1.27.33 (2024-09-04) * **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 411bda659d..3bf12e2a8a 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.27.33" +const goModuleVersion = "1.27.35" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go b/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go index 89368520f3..7ae252e2e8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go @@ -162,12 +162,12 @@ func resolveCredsFromProfile(ctx context.Context, cfg *aws.Config, envConfig *En // Get credentials from CredentialProcess err = processCredentials(ctx, cfg, sharedConfig, configs) - case len(envConfig.ContainerCredentialsEndpoint) != 0: - err = resolveLocalHTTPCredProvider(ctx, cfg, envConfig.ContainerCredentialsEndpoint, envConfig.ContainerAuthorizationToken, configs) - case len(envConfig.ContainerCredentialsRelativePath) != 0: err = resolveHTTPCredProvider(ctx, cfg, ecsContainerURI(envConfig.ContainerCredentialsRelativePath), envConfig.ContainerAuthorizationToken, configs) + case len(envConfig.ContainerCredentialsEndpoint) != 0: + err = resolveLocalHTTPCredProvider(ctx, cfg, envConfig.ContainerCredentialsEndpoint, envConfig.ContainerAuthorizationToken, configs) + default: err = resolveEC2RoleCredentials(ctx, cfg, configs) } @@ -355,10 +355,13 @@ func resolveCredsFromSource(ctx context.Context, cfg *aws.Config, envConfig *Env cfg.Credentials = credentials.StaticCredentialsProvider{Value: envConfig.Credentials} case credSourceECSContainer: - if len(envConfig.ContainerCredentialsRelativePath) == 0 { - return fmt.Errorf("EcsContainer was specified as the credential_source, but 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI' was not set") + if len(envConfig.ContainerCredentialsRelativePath) != 0 { + return resolveHTTPCredProvider(ctx, cfg, ecsContainerURI(envConfig.ContainerCredentialsRelativePath), envConfig.ContainerAuthorizationToken, configs) + } + if len(envConfig.ContainerCredentialsEndpoint) != 0 { + return resolveLocalHTTPCredProvider(ctx, cfg, envConfig.ContainerCredentialsEndpoint, envConfig.ContainerAuthorizationToken, configs) } - return resolveHTTPCredProvider(ctx, cfg, ecsContainerURI(envConfig.ContainerCredentialsRelativePath), envConfig.ContainerAuthorizationToken, configs) + return fmt.Errorf("EcsContainer was specified as the credential_source, but neither 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI' or AWS_CONTAINER_CREDENTIALS_FULL_URI' was set") default: return fmt.Errorf("credential_source values must be EcsContainer, Ec2InstanceMetadata, or Environment") 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 dfb3dc94b7..7b8fd32bf9 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.33 (2024-09-17) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.32 (2024-09-04) * **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 e7467a7d98..faf7b0dae7 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.32" +const goModuleVersion = "1.17.33" 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 bc65177ed4..4cbbfa5259 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.34.10 (2024-09-17) + +* **Bug Fix**: **BREAKFIX**: Only generate AccountIDEndpointMode config for services that use it. This is a compiler break, but removes no actual functionality, as no services currently use the account ID in endpoint resolution. + # v1.34.9 (2024-09-09) * **Documentation**: Doc-only update for DynamoDB. Added information about async behavior for TagResource and UntagResource APIs and updated the description of ResourceInUseException. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_client.go index 2bb5801fa2..225de6c65a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_client.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_client.go @@ -253,16 +253,15 @@ func setResolvedDefaultsMode(o *Options) { // NewFromConfig returns a new client from the provided config. func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { opts := Options{ - Region: cfg.Region, - DefaultsMode: cfg.DefaultsMode, - RuntimeEnvironment: cfg.RuntimeEnvironment, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - AppID: cfg.AppID, - AccountIDEndpointMode: cfg.AccountIDEndpointMode, + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, } resolveAWSRetryerProvider(cfg, &opts) resolveAWSRetryMaxAttempts(cfg, &opts) @@ -646,25 +645,6 @@ func initializeTimeOffsetResolver(c *Client) { c.timeOffset = new(atomic.Int64) } -func checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error { - switch mode { - case aws.AccountIDEndpointModeUnset: - case aws.AccountIDEndpointModePreferred: - case aws.AccountIDEndpointModeDisabled: - case aws.AccountIDEndpointModeRequired: - if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok { - return fmt.Errorf("accountID is required but not set") - } else if ca.Credentials.AccountID == "" { - return fmt.Errorf("accountID is required but not set") - } - // default check in case invalid mode is configured through request config - default: - return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode) - } - - return nil -} - func addUserAgentRetryMode(stack *middleware.Stack, options Options) error { ua, err := getOrAddRequestUserAgent(stack) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/endpoints.go index 5c948ddff7..a9d226a346 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/endpoints.go @@ -537,10 +537,6 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid return next.HandleFinalize(ctx, in) } - if err := checkAccountID(getIdentity(ctx), m.options.AccountIDEndpointMode); err != nil { - return out, metadata, fmt.Errorf("invalid accountID set: %w", err) - } - req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) 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 3a1c1e9d63..4365ea3b0b 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.34.9" +const goModuleVersion = "1.34.10" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/options.go b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/options.go index 4380a50265..199f2cf6a5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/options.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/options.go @@ -24,9 +24,6 @@ type Options struct { // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error - // Indicates how aws account ID is applied in endpoint2.0 routing - AccountIDEndpointMode aws.AccountIDEndpointMode - // The optional application specific identifier appended to the User-Agent header. AppID string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/CHANGELOG.md index 72b05e180e..57fad2844d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.31.8 (2024-09-17) + +* **Bug Fix**: **BREAKFIX**: Only generate AccountIDEndpointMode config for services that use it. This is a compiler break, but removes no actual functionality, as no services currently use the account ID in endpoint resolution. + # v1.31.7 (2024-09-04) * No change notes available for this release. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/api_client.go index 62837a3a7a..819e503689 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/api_client.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/api_client.go @@ -238,16 +238,15 @@ func setResolvedDefaultsMode(o *Options) { // NewFromConfig returns a new client from the provided config. func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { opts := Options{ - Region: cfg.Region, - DefaultsMode: cfg.DefaultsMode, - RuntimeEnvironment: cfg.RuntimeEnvironment, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - AppID: cfg.AppID, - AccountIDEndpointMode: cfg.AccountIDEndpointMode, + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, } resolveAWSRetryerProvider(cfg, &opts) resolveAWSRetryMaxAttempts(cfg, &opts) @@ -541,25 +540,6 @@ func initializeTimeOffsetResolver(c *Client) { c.timeOffset = new(atomic.Int64) } -func checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error { - switch mode { - case aws.AccountIDEndpointModeUnset: - case aws.AccountIDEndpointModePreferred: - case aws.AccountIDEndpointModeDisabled: - case aws.AccountIDEndpointModeRequired: - if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok { - return fmt.Errorf("accountID is required but not set") - } else if ca.Credentials.AccountID == "" { - return fmt.Errorf("accountID is required but not set") - } - // default check in case invalid mode is configured through request config - default: - return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode) - } - - return nil -} - func addUserAgentRetryMode(stack *middleware.Stack, options Options) error { ua, err := getOrAddRequestUserAgent(stack) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/endpoints.go index 5fb365aa0e..c4807fa981 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/endpoints.go @@ -513,10 +513,6 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid return next.HandleFinalize(ctx, in) } - if err := checkAccountID(getIdentity(ctx), m.options.AccountIDEndpointMode); err != nil { - return out, metadata, fmt.Errorf("invalid accountID set: %w", err) - } - req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/go_module_metadata.go index fa6ad4924d..5049f1726c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/go_module_metadata.go @@ -3,4 +3,4 @@ package sns // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.7" +const goModuleVersion = "1.31.8" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/options.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/options.go index f97b895eb3..c4945e9ce4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sns/options.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sns/options.go @@ -24,9 +24,6 @@ type Options struct { // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error - // Indicates how aws account ID is applied in endpoint2.0 routing - AccountIDEndpointMode aws.AccountIDEndpointMode - // The optional application specific identifier appended to the User-Agent header. AppID string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/CHANGELOG.md index 343c35bc48..cd6250396a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.34.9 (2024-09-17) + +* **Bug Fix**: **BREAKFIX**: Only generate AccountIDEndpointMode config for services that use it. This is a compiler break, but removes no actual functionality, as no services currently use the account ID in endpoint resolution. + # v1.34.8 (2024-09-04) * No change notes available for this release. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/api_client.go index e6bf506c17..a6485f6f9d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/api_client.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/api_client.go @@ -238,16 +238,15 @@ func setResolvedDefaultsMode(o *Options) { // NewFromConfig returns a new client from the provided config. func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { opts := Options{ - Region: cfg.Region, - DefaultsMode: cfg.DefaultsMode, - RuntimeEnvironment: cfg.RuntimeEnvironment, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - AppID: cfg.AppID, - AccountIDEndpointMode: cfg.AccountIDEndpointMode, + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, } resolveAWSRetryerProvider(cfg, &opts) resolveAWSRetryMaxAttempts(cfg, &opts) @@ -541,25 +540,6 @@ func initializeTimeOffsetResolver(c *Client) { c.timeOffset = new(atomic.Int64) } -func checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error { - switch mode { - case aws.AccountIDEndpointModeUnset: - case aws.AccountIDEndpointModePreferred: - case aws.AccountIDEndpointModeDisabled: - case aws.AccountIDEndpointModeRequired: - if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok { - return fmt.Errorf("accountID is required but not set") - } else if ca.Credentials.AccountID == "" { - return fmt.Errorf("accountID is required but not set") - } - // default check in case invalid mode is configured through request config - default: - return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode) - } - - return nil -} - func addUserAgentRetryMode(stack *middleware.Stack, options Options) error { ua, err := getOrAddRequestUserAgent(stack) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/endpoints.go index 64e7a3fdb9..110fbfc2cc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/endpoints.go @@ -506,10 +506,6 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid return next.HandleFinalize(ctx, in) } - if err := checkAccountID(getIdentity(ctx), m.options.AccountIDEndpointMode); err != nil { - return out, metadata, fmt.Errorf("invalid accountID set: %w", err) - } - req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/go_module_metadata.go index 3da7defdc4..64b6909367 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/go_module_metadata.go @@ -3,4 +3,4 @@ package sqs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.8" +const goModuleVersion = "1.34.9" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/options.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/options.go index 92bc97d725..69d7573fdb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/options.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sqs/options.go @@ -24,9 +24,6 @@ type Options struct { // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error - // Indicates how aws account ID is applied in endpoint2.0 routing - AccountIDEndpointMode aws.AccountIDEndpointMode - // The optional application specific identifier appended to the User-Agent header. AppID string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md index a72bd91dfb..06a0a759f0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.22.8 (2024-09-17) + +* **Bug Fix**: **BREAKFIX**: Only generate AccountIDEndpointMode config for services that use it. This is a compiler break, but removes no actual functionality, as no services currently use the account ID in endpoint resolution. + # v1.22.7 (2024-09-04) * No change notes available for this release. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_client.go index a06c6e738f..68a759dfd4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_client.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_client.go @@ -237,16 +237,15 @@ func setResolvedDefaultsMode(o *Options) { // NewFromConfig returns a new client from the provided config. func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { opts := Options{ - Region: cfg.Region, - DefaultsMode: cfg.DefaultsMode, - RuntimeEnvironment: cfg.RuntimeEnvironment, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - AppID: cfg.AppID, - AccountIDEndpointMode: cfg.AccountIDEndpointMode, + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, } resolveAWSRetryerProvider(cfg, &opts) resolveAWSRetryMaxAttempts(cfg, &opts) @@ -540,25 +539,6 @@ func initializeTimeOffsetResolver(c *Client) { c.timeOffset = new(atomic.Int64) } -func checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error { - switch mode { - case aws.AccountIDEndpointModeUnset: - case aws.AccountIDEndpointModePreferred: - case aws.AccountIDEndpointModeDisabled: - case aws.AccountIDEndpointModeRequired: - if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok { - return fmt.Errorf("accountID is required but not set") - } else if ca.Credentials.AccountID == "" { - return fmt.Errorf("accountID is required but not set") - } - // default check in case invalid mode is configured through request config - default: - return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode) - } - - return nil -} - func addUserAgentRetryMode(stack *middleware.Stack, options Options) error { ua, err := getOrAddRequestUserAgent(stack) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/endpoints.go index 75ae283ef8..af95e21a9b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/endpoints.go @@ -506,10 +506,6 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid return next.HandleFinalize(ctx, in) } - if err := checkAccountID(getIdentity(ctx), m.options.AccountIDEndpointMode); err != nil { - return out, metadata, fmt.Errorf("invalid accountID set: %w", err) - } - req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go index 012580e77f..743d204555 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go @@ -3,4 +3,4 @@ package sso // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.7" +const goModuleVersion = "1.22.8" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/options.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/options.go index 0ba182e976..3561c44308 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sso/options.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sso/options.go @@ -24,9 +24,6 @@ type Options struct { // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error - // Indicates how aws account ID is applied in endpoint2.0 routing - AccountIDEndpointMode aws.AccountIDEndpointMode - // The optional application specific identifier appended to the User-Agent header. AppID string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md index 6924f05836..00c0650003 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.26.8 (2024-09-17) + +* **Bug Fix**: **BREAKFIX**: Only generate AccountIDEndpointMode config for services that use it. This is a compiler break, but removes no actual functionality, as no services currently use the account ID in endpoint resolution. + # v1.26.7 (2024-09-04) * No change notes available for this release. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_client.go index 25cd1c0488..8b6579d8cb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_client.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_client.go @@ -237,16 +237,15 @@ func setResolvedDefaultsMode(o *Options) { // NewFromConfig returns a new client from the provided config. func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { opts := Options{ - Region: cfg.Region, - DefaultsMode: cfg.DefaultsMode, - RuntimeEnvironment: cfg.RuntimeEnvironment, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - AppID: cfg.AppID, - AccountIDEndpointMode: cfg.AccountIDEndpointMode, + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, } resolveAWSRetryerProvider(cfg, &opts) resolveAWSRetryMaxAttempts(cfg, &opts) @@ -540,25 +539,6 @@ func initializeTimeOffsetResolver(c *Client) { c.timeOffset = new(atomic.Int64) } -func checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error { - switch mode { - case aws.AccountIDEndpointModeUnset: - case aws.AccountIDEndpointModePreferred: - case aws.AccountIDEndpointModeDisabled: - case aws.AccountIDEndpointModeRequired: - if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok { - return fmt.Errorf("accountID is required but not set") - } else if ca.Credentials.AccountID == "" { - return fmt.Errorf("accountID is required but not set") - } - // default check in case invalid mode is configured through request config - default: - return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode) - } - - return nil -} - func addUserAgentRetryMode(stack *middleware.Stack, options Options) error { ua, err := getOrAddRequestUserAgent(stack) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/endpoints.go index d7099721fe..7a48f0535a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/endpoints.go @@ -506,10 +506,6 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid return next.HandleFinalize(ctx, in) } - if err := checkAccountID(getIdentity(ctx), m.options.AccountIDEndpointMode); err != nil { - return out, metadata, fmt.Errorf("invalid accountID set: %w", err) - } - req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go index 880f8bbeff..d675038c7c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go @@ -3,4 +3,4 @@ package ssooidc // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.7" +const goModuleVersion = "1.26.8" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/options.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/options.go index a012e4cb8d..69ded47c74 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/options.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/options.go @@ -24,9 +24,6 @@ type Options struct { // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error - // Indicates how aws account ID is applied in endpoint2.0 routing - AccountIDEndpointMode aws.AccountIDEndpointMode - // The optional application specific identifier appended to the User-Agent header. AppID string 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 9bcf2568ed..d97f6c74f5 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.30.8 (2024-09-17) + +* **Bug Fix**: **BREAKFIX**: Only generate AccountIDEndpointMode config for services that use it. This is a compiler break, but removes no actual functionality, as no services currently use the account ID in endpoint resolution. + # v1.30.7 (2024-09-04) * No change notes available for this release. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_client.go index acd2b8e7a1..2994eac824 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_client.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_client.go @@ -241,16 +241,15 @@ func setResolvedDefaultsMode(o *Options) { // NewFromConfig returns a new client from the provided config. func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { opts := Options{ - Region: cfg.Region, - DefaultsMode: cfg.DefaultsMode, - RuntimeEnvironment: cfg.RuntimeEnvironment, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - AppID: cfg.AppID, - AccountIDEndpointMode: cfg.AccountIDEndpointMode, + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, } resolveAWSRetryerProvider(cfg, &opts) resolveAWSRetryMaxAttempts(cfg, &opts) @@ -544,25 +543,6 @@ func initializeTimeOffsetResolver(c *Client) { c.timeOffset = new(atomic.Int64) } -func checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error { - switch mode { - case aws.AccountIDEndpointModeUnset: - case aws.AccountIDEndpointModePreferred: - case aws.AccountIDEndpointModeDisabled: - case aws.AccountIDEndpointModeRequired: - if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok { - return fmt.Errorf("accountID is required but not set") - } else if ca.Credentials.AccountID == "" { - return fmt.Errorf("accountID is required but not set") - } - // default check in case invalid mode is configured through request config - default: - return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode) - } - - return nil -} - func addUserAgentRetryMode(stack *middleware.Stack, options Options) error { ua, err := getOrAddRequestUserAgent(stack) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/endpoints.go index 35305d8976..3a5c71a726 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/endpoints.go @@ -1086,10 +1086,6 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid return next.HandleFinalize(ctx, in) } - if err := checkAccountID(getIdentity(ctx), m.options.AccountIDEndpointMode); err != nil { - return out, metadata, fmt.Errorf("invalid accountID set: %w", err) - } - req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) 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 c3a970dff4..412f5c555f 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.30.7" +const goModuleVersion = "1.30.8" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/options.go b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/options.go index a9a35881af..bb291161aa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/sts/options.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/sts/options.go @@ -24,9 +24,6 @@ type Options struct { // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error - // Indicates how aws account ID is applied in endpoint2.0 routing - AccountIDEndpointMode aws.AccountIDEndpointMode - // The optional application specific identifier appended to the User-Agent header. AppID string diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/Makefile b/vendor/github.com/elastic/go-elasticsearch/v8/Makefile index bbcadb2254..77ed6e728c 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.14.0-SNAPSHOT" +ELASTICSEARCH_DEFAULT_BUILD_VERSION = "8.15.0-SNAPSHOT" ##@ Test test-unit: ## Run unit tests diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/README.md b/vendor/github.com/elastic/go-elasticsearch/v8/README.md index 3cbeeb7f85..25b97af73a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/README.md +++ b/vendor/github.com/elastic/go-elasticsearch/v8/README.md @@ -7,7 +7,7 @@ or **[sign-up](https://cloud.elastic.co/registration?elektra=en-ess-sign-up-page)** **for a free trial of Elastic Cloud**. -[![GoDoc](https://godoc.org/github.com/elastic/go-elasticsearch?status.svg)](https://pkg.go.dev/github.com/elastic/go-elasticsearch/v8) +[![Go Reference](https://pkg.go.dev/github.com/elastic/go-elasticsearch?status.svg)](https://pkg.go.dev/github.com/elastic/go-elasticsearch/v8) [![Go Report Card](https://goreportcard.com/badge/github.com/elastic/go-elasticsearch)](https://goreportcard.com/report/github.com/elastic/go-elasticsearch) [![codecov.io](https://codecov.io/github/elastic/go-elasticsearch/coverage.svg?branch=main)](https://codecov.io/gh/elastic/go-elasticsearch?branch=main) [![Build](https://github.com/elastic/go-elasticsearch/workflows/Build/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3Amain) diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/catalog-info.yaml b/vendor/github.com/elastic/go-elasticsearch/v8/catalog-info.yaml index 83c4a621b2..4635d33be5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/catalog-info.yaml +++ b/vendor/github.com/elastic/go-elasticsearch/v8/catalog-info.yaml @@ -12,8 +12,8 @@ spec: spec: repository: elastic/go-elasticsearch teams: - clients-team: {} + devtools-team: {} everyone: access_level: READ_ONLY - owner: group:clients-team + owner: group:devtools-team type: buildkite-pipeline 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 36f5b53b72..2ecc452aaa 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.14.0 (b0ca71d): DO NOT EDIT +// Code generated from specification version 8.15.0 (4a6bcd8): DO NOT EDIT package esapi @@ -48,6 +48,7 @@ type API struct { AutoscalingGetAutoscalingPolicy AutoscalingGetAutoscalingPolicy AutoscalingPutAutoscalingPolicy AutoscalingPutAutoscalingPolicy Bulk Bulk + Capabilities Capabilities ClearScroll ClearScroll ClosePointInTime ClosePointInTime ConnectorCheckIn ConnectorCheckIn @@ -63,6 +64,7 @@ type API struct { ConnectorSecretPut ConnectorSecretPut ConnectorSyncJobCancel ConnectorSyncJobCancel ConnectorSyncJobCheckIn ConnectorSyncJobCheckIn + ConnectorSyncJobClaim ConnectorSyncJobClaim ConnectorSyncJobDelete ConnectorSyncJobDelete ConnectorSyncJobError ConnectorSyncJobError ConnectorSyncJobGet ConnectorSyncJobGet @@ -73,6 +75,7 @@ type API struct { ConnectorUpdateActiveFiltering ConnectorUpdateActiveFiltering ConnectorUpdateConfiguration ConnectorUpdateConfiguration ConnectorUpdateError ConnectorUpdateError + ConnectorUpdateFeatures ConnectorUpdateFeatures ConnectorUpdateFiltering ConnectorUpdateFiltering ConnectorUpdateFilteringValidation ConnectorUpdateFilteringValidation ConnectorUpdateIndexName ConnectorUpdateIndexName @@ -123,10 +126,10 @@ type API struct { GraphExplore GraphExplore HealthReport HealthReport Index Index - InferenceDeleteModel InferenceDeleteModel - InferenceGetModel InferenceGetModel + InferenceDelete InferenceDelete + InferenceGet InferenceGet InferenceInference InferenceInference - InferencePutModel InferencePutModel + InferencePut InferencePut Info Info KnnSearch KnnSearch LogstashDeletePipeline LogstashDeletePipeline @@ -143,10 +146,13 @@ type API struct { ProfilingStatus ProfilingStatus ProfilingTopnFunctions ProfilingTopnFunctions PutScript PutScript - QueryRulesetDelete QueryRulesetDelete - QueryRulesetGet QueryRulesetGet - QueryRulesetList QueryRulesetList - QueryRulesetPut QueryRulesetPut + QueryRulesDeleteRule QueryRulesDeleteRule + QueryRulesDeleteRuleset QueryRulesDeleteRuleset + QueryRulesGetRule QueryRulesGetRule + QueryRulesGetRuleset QueryRulesGetRuleset + QueryRulesListRulesets QueryRulesListRulesets + QueryRulesPutRule QueryRulesPutRule + QueryRulesPutRuleset QueryRulesPutRuleset RankEval RankEval Reindex Reindex ReindexRethrottle ReindexRethrottle @@ -198,6 +204,7 @@ type API struct { TextStructureFindStructure TextStructureFindStructure TextStructureTestGrokPattern TextStructureTestGrokPattern TransformDeleteTransform TransformDeleteTransform + TransformGetNodeStats TransformGetNodeStats TransformGetTransform TransformGetTransform TransformGetTransformStats TransformGetTransformStats TransformPreviewTransform TransformPreviewTransform @@ -328,12 +335,15 @@ type Indices struct { // Ingest contains the Ingest APIs type Ingest struct { - DeletePipeline IngestDeletePipeline - GeoIPStats IngestGeoIPStats - GetPipeline IngestGetPipeline - ProcessorGrok IngestProcessorGrok - PutPipeline IngestPutPipeline - Simulate IngestSimulate + DeleteGeoipDatabase IngestDeleteGeoipDatabase + DeletePipeline IngestDeletePipeline + GeoIPStats IngestGeoIPStats + GetGeoipDatabase IngestGetGeoipDatabase + GetPipeline IngestGetPipeline + ProcessorGrok IngestProcessorGrok + PutGeoipDatabase IngestPutGeoipDatabase + PutPipeline IngestPutPipeline + Simulate IngestSimulate } // Nodes contains the Nodes APIs @@ -530,6 +540,8 @@ type Rollup struct { type Security struct { ActivateUserProfile SecurityActivateUserProfile Authenticate SecurityAuthenticate + BulkDeleteRole SecurityBulkDeleteRole + BulkPutRole SecurityBulkPutRole BulkUpdateAPIKeys SecurityBulkUpdateAPIKeys ChangePassword SecurityChangePassword ClearAPIKeyCache SecurityClearAPIKeyCache @@ -576,6 +588,7 @@ type Security struct { PutRole SecurityPutRole PutUser SecurityPutUser QueryAPIKeys SecurityQueryAPIKeys + QueryRole SecurityQueryRole QueryUser SecurityQueryUser SamlAuthenticate SecuritySamlAuthenticate SamlCompleteLogout SecuritySamlCompleteLogout @@ -636,6 +649,7 @@ func New(t Transport) *API { AutoscalingGetAutoscalingPolicy: newAutoscalingGetAutoscalingPolicyFunc(t), AutoscalingPutAutoscalingPolicy: newAutoscalingPutAutoscalingPolicyFunc(t), Bulk: newBulkFunc(t), + Capabilities: newCapabilitiesFunc(t), ClearScroll: newClearScrollFunc(t), ClosePointInTime: newClosePointInTimeFunc(t), ConnectorCheckIn: newConnectorCheckInFunc(t), @@ -651,6 +665,7 @@ func New(t Transport) *API { ConnectorSecretPut: newConnectorSecretPutFunc(t), ConnectorSyncJobCancel: newConnectorSyncJobCancelFunc(t), ConnectorSyncJobCheckIn: newConnectorSyncJobCheckInFunc(t), + ConnectorSyncJobClaim: newConnectorSyncJobClaimFunc(t), ConnectorSyncJobDelete: newConnectorSyncJobDeleteFunc(t), ConnectorSyncJobError: newConnectorSyncJobErrorFunc(t), ConnectorSyncJobGet: newConnectorSyncJobGetFunc(t), @@ -661,6 +676,7 @@ func New(t Transport) *API { ConnectorUpdateActiveFiltering: newConnectorUpdateActiveFilteringFunc(t), ConnectorUpdateConfiguration: newConnectorUpdateConfigurationFunc(t), ConnectorUpdateError: newConnectorUpdateErrorFunc(t), + ConnectorUpdateFeatures: newConnectorUpdateFeaturesFunc(t), ConnectorUpdateFiltering: newConnectorUpdateFilteringFunc(t), ConnectorUpdateFilteringValidation: newConnectorUpdateFilteringValidationFunc(t), ConnectorUpdateIndexName: newConnectorUpdateIndexNameFunc(t), @@ -711,10 +727,10 @@ func New(t Transport) *API { GraphExplore: newGraphExploreFunc(t), HealthReport: newHealthReportFunc(t), Index: newIndexFunc(t), - InferenceDeleteModel: newInferenceDeleteModelFunc(t), - InferenceGetModel: newInferenceGetModelFunc(t), + InferenceDelete: newInferenceDeleteFunc(t), + InferenceGet: newInferenceGetFunc(t), InferenceInference: newInferenceInferenceFunc(t), - InferencePutModel: newInferencePutModelFunc(t), + InferencePut: newInferencePutFunc(t), Info: newInfoFunc(t), KnnSearch: newKnnSearchFunc(t), LogstashDeletePipeline: newLogstashDeletePipelineFunc(t), @@ -731,10 +747,13 @@ func New(t Transport) *API { ProfilingStatus: newProfilingStatusFunc(t), ProfilingTopnFunctions: newProfilingTopnFunctionsFunc(t), PutScript: newPutScriptFunc(t), - QueryRulesetDelete: newQueryRulesetDeleteFunc(t), - QueryRulesetGet: newQueryRulesetGetFunc(t), - QueryRulesetList: newQueryRulesetListFunc(t), - QueryRulesetPut: newQueryRulesetPutFunc(t), + QueryRulesDeleteRule: newQueryRulesDeleteRuleFunc(t), + QueryRulesDeleteRuleset: newQueryRulesDeleteRulesetFunc(t), + QueryRulesGetRule: newQueryRulesGetRuleFunc(t), + QueryRulesGetRuleset: newQueryRulesGetRulesetFunc(t), + QueryRulesListRulesets: newQueryRulesListRulesetsFunc(t), + QueryRulesPutRule: newQueryRulesPutRuleFunc(t), + QueryRulesPutRuleset: newQueryRulesPutRulesetFunc(t), RankEval: newRankEvalFunc(t), Reindex: newReindexFunc(t), ReindexRethrottle: newReindexRethrottleFunc(t), @@ -786,6 +805,7 @@ func New(t Transport) *API { TextStructureFindStructure: newTextStructureFindStructureFunc(t), TextStructureTestGrokPattern: newTextStructureTestGrokPatternFunc(t), TransformDeleteTransform: newTransformDeleteTransformFunc(t), + TransformGetNodeStats: newTransformGetNodeStatsFunc(t), TransformGetTransform: newTransformGetTransformFunc(t), TransformGetTransformStats: newTransformGetTransformStatsFunc(t), TransformPreviewTransform: newTransformPreviewTransformFunc(t), @@ -907,12 +927,15 @@ func New(t Transport) *API { ValidateQuery: newIndicesValidateQueryFunc(t), }, Ingest: &Ingest{ - DeletePipeline: newIngestDeletePipelineFunc(t), - GeoIPStats: newIngestGeoIPStatsFunc(t), - GetPipeline: newIngestGetPipelineFunc(t), - ProcessorGrok: newIngestProcessorGrokFunc(t), - PutPipeline: newIngestPutPipelineFunc(t), - Simulate: newIngestSimulateFunc(t), + 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), }, Nodes: &Nodes{ ClearRepositoriesMeteringArchive: newNodesClearRepositoriesMeteringArchiveFunc(t), @@ -1082,6 +1105,8 @@ func New(t Transport) *API { Security: &Security{ ActivateUserProfile: newSecurityActivateUserProfileFunc(t), Authenticate: newSecurityAuthenticateFunc(t), + BulkDeleteRole: newSecurityBulkDeleteRoleFunc(t), + BulkPutRole: newSecurityBulkPutRoleFunc(t), BulkUpdateAPIKeys: newSecurityBulkUpdateAPIKeysFunc(t), ChangePassword: newSecurityChangePasswordFunc(t), ClearAPIKeyCache: newSecurityClearAPIKeyCacheFunc(t), @@ -1128,6 +1153,7 @@ func New(t Transport) *API { PutRole: newSecurityPutRoleFunc(t), PutUser: newSecurityPutUserFunc(t), QueryAPIKeys: newSecurityQueryAPIKeysFunc(t), + QueryRole: newSecurityQueryRoleFunc(t), QueryUser: newSecurityQueryUserFunc(t), SamlAuthenticate: newSecuritySamlAuthenticateFunc(t), SamlCompleteLogout: newSecuritySamlCompleteLogoutFunc(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 8952d23a64..a590c8dd06 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..b9436c1dbe --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.capabilities.go @@ -0,0 +1,266 @@ +// 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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "net/http" + "strings" +) + +func newCapabilitiesFunc(t Transport) Capabilities { + return func(o ...func(*CapabilitiesRequest)) (*Response, error) { + var r = CapabilitiesRequest{} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// Capabilities checks if the specified combination of method, API, parameters, and arbitrary capabilities are supported +// +// This API is experimental. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/capabilities.html. +type Capabilities func(o ...func(*CapabilitiesRequest)) (*Response, error) + +// CapabilitiesRequest configures the Capabilities API request. +type CapabilitiesRequest struct { + Capabilities string + Method string + Parameters string + Path 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 CapabilitiesRequest) 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, "capabilities") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "GET" + + path.Grow(7 + len("/_capabilities")) + path.WriteString("http://") + path.WriteString("/_capabilities") + + params = make(map[string]string) + + if r.Capabilities != "" { + params["capabilities"] = r.Capabilities + } + + if r.Method != "" { + params["method"] = r.Method + } + + if r.Parameters != "" { + params["parameters"] = r.Parameters + } + + if r.Path != "" { + params["path"] = r.Path + } + + 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, "capabilities") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "capabilities") + } + 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 Capabilities) WithContext(v context.Context) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.ctx = v + } +} + +// WithCapabilities - comma-separated list of arbitrary api capabilities to check. +func (f Capabilities) WithCapabilities(v string) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.Capabilities = v + } +} + +// WithMethod - rest method to check. +func (f Capabilities) WithMethod(v string) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.Method = v + } +} + +// WithParameters - comma-separated list of api parameters to check. +func (f Capabilities) WithParameters(v string) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.Parameters = v + } +} + +// WithPath - api path to check. +func (f Capabilities) WithPath(v string) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.Path = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f Capabilities) WithPretty() func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f Capabilities) WithHuman() func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f Capabilities) WithErrorTrace() func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f Capabilities) WithFilterPath(v ...string) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f Capabilities) WithHeader(h map[string]string) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + 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 Capabilities) WithOpaqueID(s string) func(*CapabilitiesRequest) { + return func(r *CapabilitiesRequest) { + 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.cat.aliases.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.aliases.go index 28f7993052..ab02ac1c1b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1e7221ab3a..2302a9b22a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9cdbbed830..48d524f76c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f96d47edb3..b86e5277f8 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3dc35dcecb..ab13fc82ff 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 79ade9baac..e4df856b88 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e825ddbc02..f13d25232d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e8afd12a73..bdac9493e0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5fffb05799..3f088a2e6a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 87b4f484fa..6f09f0d9bf 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6754491e78..c16c071115 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4f971bc65f..82df780d73 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 65db3f794b..a5a9be7c27 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d1b75a53bd..1c35c19a8d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b9234bb53b..84dfe9a20c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 892d38cbc1..b5415a1ec3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 bcb270828f..ed41fff055 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c572a982b1..f21c95774f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8676cf9078..e4bd78109d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e967175a15..d3711fc6f7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 816f6c5a0c..6ad19da78d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e4331102bc..5e77989c0b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 49dcd6d60f..9c5635f2b7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -25,6 +25,7 @@ import ( "net/http" "strconv" "strings" + "time" ) func newClusterAllocationExplainFunc(t Transport) ClusterAllocationExplain { @@ -55,6 +56,7 @@ type ClusterAllocationExplainRequest struct { IncludeDiskInfo *bool IncludeYesDecisions *bool + MasterTimeout time.Duration Pretty bool Human bool @@ -101,6 +103,10 @@ func (r ClusterAllocationExplainRequest) Do(providedCtx context.Context, transpo params["include_yes_decisions"] = strconv.FormatBool(*r.IncludeYesDecisions) } + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -207,6 +213,13 @@ func (f ClusterAllocationExplain) WithIncludeYesDecisions(v bool) func(*ClusterA } } +// WithMasterTimeout - timeout for connection to master node. +func (f ClusterAllocationExplain) WithMasterTimeout(v time.Duration) func(*ClusterAllocationExplainRequest) { + return func(r *ClusterAllocationExplainRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f ClusterAllocationExplain) WithPretty() func(*ClusterAllocationExplainRequest) { return func(r *ClusterAllocationExplainRequest) { 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 3f58f06d8d..833b79c3ff 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a8357ac7f7..4d7479d2d4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4089fde39d..b00cfa6136 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 77071d58ed..8a7876cfcd 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 fd6278d54b..fe025bf8e4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 744348326c..6ac6406454 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6ada054f37..d816f86f56 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 58d9db2a39..91aa0e5721 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6bed21496c..ae27647486 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6a2f38114a..91268937f7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f70f2a7b92..a57953330a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9c30bd4ab4..957beeac6b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c8510e7719..05cadf6218 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1926dd30d5..f0acf517b3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 335cb77003..d9a5c15468 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.check_in.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.check_in.go index 7d0f66a11a..a3ded928e7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f85f0851ab..9e071382f4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6e27967228..7048703e9d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9b39d5b153..55ce3ea43f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 19cc2c8ca9..b9999358a5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e7db223c61..9246573a0a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -27,8 +27,8 @@ import ( ) func newConnectorPostFunc(t Transport) ConnectorPost { - return func(body io.Reader, o ...func(*ConnectorPostRequest)) (*Response, error) { - var r = ConnectorPostRequest{Body: body} + return func(o ...func(*ConnectorPostRequest)) (*Response, error) { + var r = ConnectorPostRequest{} for _, f := range o { f(&r) } @@ -48,7 +48,7 @@ func newConnectorPostFunc(t Transport) ConnectorPost { // This API is experimental. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/create-connector-api.html. -type ConnectorPost func(body io.Reader, o ...func(*ConnectorPostRequest)) (*Response, error) +type ConnectorPost func(o ...func(*ConnectorPostRequest)) (*Response, error) // ConnectorPostRequest configures the Connector Post API request. type ConnectorPostRequest struct { @@ -176,6 +176,13 @@ func (f ConnectorPost) WithContext(v context.Context) func(*ConnectorPostRequest } } +// WithBody - The connector configuration.. +func (f ConnectorPost) WithBody(v io.Reader) func(*ConnectorPostRequest) { + return func(r *ConnectorPostRequest) { + r.Body = v + } +} + // WithPretty makes the response body pretty-printed. func (f ConnectorPost) WithPretty() func(*ConnectorPostRequest) { return func(r *ConnectorPostRequest) { 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 3951115c42..1e9e6b5693 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -27,8 +27,8 @@ import ( ) func newConnectorPutFunc(t Transport) ConnectorPut { - return func(body io.Reader, connector_id string, o ...func(*ConnectorPutRequest)) (*Response, error) { - var r = ConnectorPutRequest{Body: body, ConnectorID: connector_id} + return func(o ...func(*ConnectorPutRequest)) (*Response, error) { + var r = ConnectorPutRequest{} for _, f := range o { f(&r) } @@ -48,7 +48,7 @@ func newConnectorPutFunc(t Transport) ConnectorPut { // This API is experimental. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/create-connector-api.html. -type ConnectorPut func(body io.Reader, connector_id string, o ...func(*ConnectorPutRequest)) (*Response, error) +type ConnectorPut func(o ...func(*ConnectorPutRequest)) (*Response, error) // ConnectorPutRequest configures the Connector Put API request. type ConnectorPutRequest struct { @@ -91,10 +91,12 @@ func (r ConnectorPutRequest) Do(providedCtx context.Context, transport Transport path.WriteString("http://") path.WriteString("/") path.WriteString("_connector") - path.WriteString("/") - path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) + if r.ConnectorID != "" { + path.WriteString("/") + path.WriteString(r.ConnectorID) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) + } } params = make(map[string]string) @@ -184,6 +186,20 @@ func (f ConnectorPut) WithContext(v context.Context) func(*ConnectorPutRequest) } } +// WithBody - The connector configuration.. +func (f ConnectorPut) WithBody(v io.Reader) func(*ConnectorPutRequest) { + return func(r *ConnectorPutRequest) { + r.Body = v + } +} + +// WithConnectorID - the unique identifier of the connector to be created or updated.. +func (f ConnectorPut) WithConnectorID(v string) func(*ConnectorPutRequest) { + return func(r *ConnectorPutRequest) { + r.ConnectorID = v + } +} + // WithPretty makes the response body pretty-printed. func (f ConnectorPut) WithPretty() func(*ConnectorPutRequest) { return func(r *ConnectorPutRequest) { 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 68537ef7f0..d06aebc357 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 952f391a16..145cdd45fe 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 56072b47fe..6ab485fe48 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c2e8e78a95..8660705cbb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 592270c430..d70e4c80f0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3b80b6dcd5..bc55c06a66 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..237efc2986 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_claim.go @@ -0,0 +1,239 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// +// Code generated from specification version 8.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newConnectorSyncJobClaimFunc(t Transport) ConnectorSyncJobClaim { + return func(body io.Reader, connector_sync_job_id string, o ...func(*ConnectorSyncJobClaimRequest)) (*Response, error) { + var r = ConnectorSyncJobClaimRequest{Body: body, ConnectorSyncJobID: connector_sync_job_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 ------------------------------------------------------- + +// ConnectorSyncJobClaim claims a connector sync job. +// +// This API is experimental. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/claim-connector-sync-job-api.html. +type ConnectorSyncJobClaim func(body io.Reader, connector_sync_job_id string, o ...func(*ConnectorSyncJobClaimRequest)) (*Response, error) + +// ConnectorSyncJobClaimRequest configures the Connector Sync Job Claim API request. +type ConnectorSyncJobClaimRequest struct { + Body io.Reader + + ConnectorSyncJobID 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 ConnectorSyncJobClaimRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "connector.sync_job_claim") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_connector") + 1 + len("_sync_job") + 1 + len(r.ConnectorSyncJobID) + 1 + len("_claim")) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + path.WriteString("_sync_job") + path.WriteString("/") + path.WriteString(r.ConnectorSyncJobID) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "connector_sync_job_id", r.ConnectorSyncJobID) + } + path.WriteString("/") + path.WriteString("_claim") + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "connector.sync_job_claim") + if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_claim", r.Body); reader != nil { + req.Body = reader + } + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_claim") + } + 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 ConnectorSyncJobClaim) WithContext(v context.Context) func(*ConnectorSyncJobClaimRequest) { + return func(r *ConnectorSyncJobClaimRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f ConnectorSyncJobClaim) WithPretty() func(*ConnectorSyncJobClaimRequest) { + return func(r *ConnectorSyncJobClaimRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f ConnectorSyncJobClaim) WithHuman() func(*ConnectorSyncJobClaimRequest) { + return func(r *ConnectorSyncJobClaimRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f ConnectorSyncJobClaim) WithErrorTrace() func(*ConnectorSyncJobClaimRequest) { + return func(r *ConnectorSyncJobClaimRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f ConnectorSyncJobClaim) WithFilterPath(v ...string) func(*ConnectorSyncJobClaimRequest) { + return func(r *ConnectorSyncJobClaimRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f ConnectorSyncJobClaim) WithHeader(h map[string]string) func(*ConnectorSyncJobClaimRequest) { + return func(r *ConnectorSyncJobClaimRequest) { + 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 ConnectorSyncJobClaim) WithOpaqueID(s string) func(*ConnectorSyncJobClaimRequest) { + return func(r *ConnectorSyncJobClaimRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_delete.go index 2782f7d002..c089c9a932 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 baab56f5b6..750331c6a3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 17f69db128..17d179eb15 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0b65a2f242..bd4059285d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4b0d133b52..0ae5b80c7f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7a9ff81f34..868669f96c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0d2464eb5e..733c29fb4c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 eb9418703e..17eefd3afe 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a3ee023fbf..4f872c684b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a37abbdaa8..94f8972a62 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..48396f41e4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_features.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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newConnectorUpdateFeaturesFunc(t Transport) ConnectorUpdateFeatures { + return func(body io.Reader, connector_id string, o ...func(*ConnectorUpdateFeaturesRequest)) (*Response, error) { + var r = ConnectorUpdateFeaturesRequest{Body: body, ConnectorID: connector_id} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// ConnectorUpdateFeatures updates the connector features in the connector document. +// +// This API is experimental. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-features-api.html. +type ConnectorUpdateFeatures func(body io.Reader, connector_id string, o ...func(*ConnectorUpdateFeaturesRequest)) (*Response, error) + +// ConnectorUpdateFeaturesRequest configures the Connector Update Features API request. +type ConnectorUpdateFeaturesRequest struct { + Body io.Reader + + ConnectorID string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r ConnectorUpdateFeaturesRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "connector.update_features") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_connector") + 1 + len(r.ConnectorID) + 1 + len("_features")) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + path.WriteString(r.ConnectorID) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) + } + path.WriteString("/") + path.WriteString("_features") + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "connector.update_features") + if reader := instrument.RecordRequestBody(ctx, "connector.update_features", r.Body); reader != nil { + req.Body = reader + } + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "connector.update_features") + } + 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 ConnectorUpdateFeatures) WithContext(v context.Context) func(*ConnectorUpdateFeaturesRequest) { + return func(r *ConnectorUpdateFeaturesRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f ConnectorUpdateFeatures) WithPretty() func(*ConnectorUpdateFeaturesRequest) { + return func(r *ConnectorUpdateFeaturesRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f ConnectorUpdateFeatures) WithHuman() func(*ConnectorUpdateFeaturesRequest) { + return func(r *ConnectorUpdateFeaturesRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f ConnectorUpdateFeatures) WithErrorTrace() func(*ConnectorUpdateFeaturesRequest) { + return func(r *ConnectorUpdateFeaturesRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f ConnectorUpdateFeatures) WithFilterPath(v ...string) func(*ConnectorUpdateFeaturesRequest) { + return func(r *ConnectorUpdateFeaturesRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f ConnectorUpdateFeatures) WithHeader(h map[string]string) func(*ConnectorUpdateFeaturesRequest) { + return func(r *ConnectorUpdateFeaturesRequest) { + 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 ConnectorUpdateFeatures) WithOpaqueID(s string) func(*ConnectorUpdateFeaturesRequest) { + return func(r *ConnectorUpdateFeaturesRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering.go index e8074202d9..27569f07ca 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 73dd11f59a..b642fb1dd9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7855c3eb78..44d5d96fc3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 01c770ff03..6349b5faed 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 914024c950..3498f0c2eb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8c565a8a14..cff2345341 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 dba1f573f1..cf876de5f5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d0d0abc2d1..5672072f19 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 deb3fe0837..1ec5839174 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c4fbbd349c..10c3ce68f5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8520c24906..54dd540494 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 73ae365a64..338dd623d4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b3281b924f..3dc6668bb4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 381f183118..3adaddf449 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 afe2be5b9c..9bbdd2c83c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7119786507..e3811877df 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4e769033dc..3b5c3a78ec 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5959779247..1e0b000da7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1473fba103..405f4cb042 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 04486c912a..56e96cb498 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ebec6fce29..336d45a8bb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 955901cbd5..e916477d1f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2f59a56acc..f665d00255 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newFeaturesResetFeaturesFunc(t Transport) FeaturesResetFeatures { @@ -51,6 +52,8 @@ type FeaturesResetFeatures func(o ...func(*FeaturesResetFeaturesRequest)) (*Resp // FeaturesResetFeaturesRequest configures the Features Reset Features API request. type FeaturesResetFeaturesRequest struct { + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -88,6 +91,10 @@ func (r FeaturesResetFeaturesRequest) Do(providedCtx context.Context, transport params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -166,6 +173,13 @@ func (f FeaturesResetFeatures) WithContext(v context.Context) func(*FeaturesRese } } +// WithMasterTimeout - explicit operation timeout for connection to master node. +func (f FeaturesResetFeatures) WithMasterTimeout(v time.Duration) func(*FeaturesResetFeaturesRequest) { + return func(r *FeaturesResetFeaturesRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f FeaturesResetFeatures) WithPretty() func(*FeaturesResetFeaturesRequest) { return func(r *FeaturesResetFeaturesRequest) { 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 8844d94f80..128dee6a41 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ea600c05a2..14b74425d2 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9dd92c0bfe..0c270c1ca2 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5def5ced62..dbbe9a0040 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8b6e0af20d..aff720ce3b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 318ec212cb..b77503d4c2 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d562518cd2..03e4cc7d9b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 639a90796b..a2fd07e431 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 73c867e7ae..77a14ed95b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d684c48ec0..c9bfa81e4e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1ee8de6b2d..fadb88d332 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 819e1bf4ce..e5d6f8eaa3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ecf7962a89..ebf2f5636e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 346b77bf70..b6c0833feb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 784364cbff..20ecf5a0c2 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 19076d3115..66072ccd13 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f16d9baa25..0b86ecaebd 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7e8e39cad4..556d5f0045 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 80c483f390..c971168359 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 abc47fec55..7011b8469b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f7a6e28153..d27f1ca7ad 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5261165c38..b9d34f743d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 03056e3d8d..b6b4a4e649 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_index_template.go index 66f7eaebcf..329b7702c7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8ce98d4f4d..8c459302ff 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5797aefa64..d25e02531e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ab4027e7a2..595fb79408 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1b4a9aefad..78912b44ec 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4687d76b1b..c44c8c29e8 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9648c333dd..ef9cc60078 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 bfb1b66ced..52199e6ab9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3db5673812..39252a3fc3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.field_usage_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.field_usage_stats.go index ebd34f8707..138615c587 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7035a694c3..4c27e45ab0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 33a931ff87..3c2065e12c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d3c18ccde2..34be93e374 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b5814c9fb5..aa9e704467 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8210a8a697..abb3eb8d82 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_field_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_field_mapping.go index 140a89be9e..533c7f361b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 57af125158..423f2e2c5f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9de47c3f1f..b9b386c5c0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7ee9135489..0d7c5ca1bb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f3642e04e8..8d8fd41522 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8e3a5bdeb9..6a502150f9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 58880388f5..e4e7a08aec 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 461d19f5c8..1f72927377 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 efbe8b33c5..925a2fb14d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_index_template.go index 2095f86639..22de545ae0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3caa804b0b..b6d652d5c0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2f709fa3ac..c0fed00e3a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7fe664efc1..0c8313ebb4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 47c98c089f..090ac2544d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c4d0b52001..7cb5c3f3e9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 865f508d50..0da1eec04c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b7b7cee33c..7c0b952a2a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.rollover.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.rollover.go index f07a017a3a..5137173249 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7a4c641dc0..c58365e3f9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 adf62b94c3..3da39039c1 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 58140aaf18..b562872974 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ed040b8fbf..27732e6110 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 243eb758ac..d5492f7a12 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a64e10c286..7d319e23b5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 14db7ae4ff..6f9d26d28a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 962b263b95..d7dd7a8d04 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4515a90713..818fe0896c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete.go similarity index 64% rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete_model.go rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete.go index 297d45d4e2..4dea425dba 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete_model.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete.go @@ -15,19 +15,20 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi import ( "context" "net/http" + "strconv" "strings" ) -func newInferenceDeleteModelFunc(t Transport) InferenceDeleteModel { - return func(inference_id string, o ...func(*InferenceDeleteModelRequest)) (*Response, error) { - var r = InferenceDeleteModelRequest{InferenceID: inference_id} +func newInferenceDeleteFunc(t Transport) InferenceDelete { + return func(inference_id string, o ...func(*InferenceDeleteRequest)) (*Response, error) { + var r = InferenceDeleteRequest{InferenceID: inference_id} for _, f := range o { f(&r) } @@ -42,18 +43,21 @@ func newInferenceDeleteModelFunc(t Transport) InferenceDeleteModel { // ----- API Definition ------------------------------------------------------- -// InferenceDeleteModel delete model in the Inference API +// InferenceDelete delete an inference endpoint // // This API is experimental. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-inference-api.html. -type InferenceDeleteModel func(inference_id string, o ...func(*InferenceDeleteModelRequest)) (*Response, error) +type InferenceDelete func(inference_id string, o ...func(*InferenceDeleteRequest)) (*Response, error) -// InferenceDeleteModelRequest configures the Inference Delete Model API request. -type InferenceDeleteModelRequest struct { +// InferenceDeleteRequest configures the Inference Delete API request. +type InferenceDeleteRequest struct { InferenceID string TaskType string + DryRun *bool + Force *bool + Pretty bool Human bool ErrorTrace bool @@ -67,7 +71,7 @@ type InferenceDeleteModelRequest struct { } // Do executes the request and returns response or error. -func (r InferenceDeleteModelRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { +func (r InferenceDeleteRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { var ( method string path strings.Builder @@ -76,7 +80,7 @@ func (r InferenceDeleteModelRequest) Do(providedCtx context.Context, transport T ) if instrument, ok := r.instrument.(Instrumentation); ok { - ctx = instrument.Start(providedCtx, "inference.delete_model") + ctx = instrument.Start(providedCtx, "inference.delete") defer instrument.Close(ctx) } if ctx == nil { @@ -104,6 +108,14 @@ func (r InferenceDeleteModelRequest) Do(providedCtx context.Context, transport T params = make(map[string]string) + if r.DryRun != nil { + params["dry_run"] = strconv.FormatBool(*r.DryRun) + } + + if r.Force != nil { + params["force"] = strconv.FormatBool(*r.Force) + } + if r.Pretty { params["pretty"] = "true" } @@ -153,11 +165,11 @@ func (r InferenceDeleteModelRequest) Do(providedCtx context.Context, transport T } if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.BeforeRequest(req, "inference.delete_model") + instrument.BeforeRequest(req, "inference.delete") } res, err := transport.Perform(req) if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.AfterRequest(req, "elasticsearch", "inference.delete_model") + instrument.AfterRequest(req, "elasticsearch", "inference.delete") } if err != nil { if instrument, ok := r.instrument.(Instrumentation); ok { @@ -176,50 +188,64 @@ func (r InferenceDeleteModelRequest) Do(providedCtx context.Context, transport T } // WithContext sets the request context. -func (f InferenceDeleteModel) WithContext(v context.Context) func(*InferenceDeleteModelRequest) { - return func(r *InferenceDeleteModelRequest) { +func (f InferenceDelete) WithContext(v context.Context) func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { r.ctx = v } } // WithTaskType - the task type. -func (f InferenceDeleteModel) WithTaskType(v string) func(*InferenceDeleteModelRequest) { - return func(r *InferenceDeleteModelRequest) { +func (f InferenceDelete) WithTaskType(v string) func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { r.TaskType = v } } +// WithDryRun - if true the endpoint will not be deleted and a list of ingest processors which reference this endpoint will be returned.. +func (f InferenceDelete) WithDryRun(v bool) func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { + r.DryRun = &v + } +} + +// WithForce - if true the endpoint will be forcefully stopped (regardless of whether or not it is referenced by any ingest processors or semantic text fields).. +func (f InferenceDelete) WithForce(v bool) func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { + r.Force = &v + } +} + // WithPretty makes the response body pretty-printed. -func (f InferenceDeleteModel) WithPretty() func(*InferenceDeleteModelRequest) { - return func(r *InferenceDeleteModelRequest) { +func (f InferenceDelete) WithPretty() func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { r.Pretty = true } } // WithHuman makes statistical values human-readable. -func (f InferenceDeleteModel) WithHuman() func(*InferenceDeleteModelRequest) { - return func(r *InferenceDeleteModelRequest) { +func (f InferenceDelete) WithHuman() func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { r.Human = true } } // WithErrorTrace includes the stack trace for errors in the response body. -func (f InferenceDeleteModel) WithErrorTrace() func(*InferenceDeleteModelRequest) { - return func(r *InferenceDeleteModelRequest) { +func (f InferenceDelete) WithErrorTrace() func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { r.ErrorTrace = true } } // WithFilterPath filters the properties of the response body. -func (f InferenceDeleteModel) WithFilterPath(v ...string) func(*InferenceDeleteModelRequest) { - return func(r *InferenceDeleteModelRequest) { +func (f InferenceDelete) WithFilterPath(v ...string) func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { r.FilterPath = v } } // WithHeader adds the headers to the HTTP request. -func (f InferenceDeleteModel) WithHeader(h map[string]string) func(*InferenceDeleteModelRequest) { - return func(r *InferenceDeleteModelRequest) { +func (f InferenceDelete) WithHeader(h map[string]string) func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { if r.Header == nil { r.Header = make(http.Header) } @@ -230,8 +256,8 @@ func (f InferenceDeleteModel) WithHeader(h map[string]string) func(*InferenceDel } // WithOpaqueID adds the X-Opaque-Id header to the HTTP request. -func (f InferenceDeleteModel) WithOpaqueID(s string) func(*InferenceDeleteModelRequest) { - return func(r *InferenceDeleteModelRequest) { +func (f InferenceDelete) WithOpaqueID(s string) func(*InferenceDeleteRequest) { + return func(r *InferenceDeleteRequest) { if r.Header == nil { r.Header = make(http.Header) } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get.go similarity index 69% rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get_model.go rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get.go index 653c50f916..f2b8ff3222 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get_model.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -25,9 +25,9 @@ import ( "strings" ) -func newInferenceGetModelFunc(t Transport) InferenceGetModel { - return func(o ...func(*InferenceGetModelRequest)) (*Response, error) { - var r = InferenceGetModelRequest{} +func newInferenceGetFunc(t Transport) InferenceGet { + return func(o ...func(*InferenceGetRequest)) (*Response, error) { + var r = InferenceGetRequest{} for _, f := range o { f(&r) } @@ -42,15 +42,15 @@ func newInferenceGetModelFunc(t Transport) InferenceGetModel { // ----- API Definition ------------------------------------------------------- -// InferenceGetModel get a model in the Inference API +// InferenceGet get an inference endpoint // // This API is experimental. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/get-inference-api.html. -type InferenceGetModel func(o ...func(*InferenceGetModelRequest)) (*Response, error) +type InferenceGet func(o ...func(*InferenceGetRequest)) (*Response, error) -// InferenceGetModelRequest configures the Inference Get Model API request. -type InferenceGetModelRequest struct { +// InferenceGetRequest configures the Inference Get API request. +type InferenceGetRequest struct { InferenceID string TaskType string @@ -67,7 +67,7 @@ type InferenceGetModelRequest struct { } // Do executes the request and returns response or error. -func (r InferenceGetModelRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { +func (r InferenceGetRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { var ( method string path strings.Builder @@ -76,7 +76,7 @@ func (r InferenceGetModelRequest) Do(providedCtx context.Context, transport Tran ) if instrument, ok := r.instrument.(Instrumentation); ok { - ctx = instrument.Start(providedCtx, "inference.get_model") + ctx = instrument.Start(providedCtx, "inference.get") defer instrument.Close(ctx) } if ctx == nil { @@ -155,11 +155,11 @@ func (r InferenceGetModelRequest) Do(providedCtx context.Context, transport Tran } if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.BeforeRequest(req, "inference.get_model") + instrument.BeforeRequest(req, "inference.get") } res, err := transport.Perform(req) if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.AfterRequest(req, "elasticsearch", "inference.get_model") + instrument.AfterRequest(req, "elasticsearch", "inference.get") } if err != nil { if instrument, ok := r.instrument.(Instrumentation); ok { @@ -178,57 +178,57 @@ func (r InferenceGetModelRequest) Do(providedCtx context.Context, transport Tran } // WithContext sets the request context. -func (f InferenceGetModel) WithContext(v context.Context) func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithContext(v context.Context) func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { r.ctx = v } } // WithInferenceID - the inference ID. -func (f InferenceGetModel) WithInferenceID(v string) func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithInferenceID(v string) func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { r.InferenceID = v } } // WithTaskType - the task type. -func (f InferenceGetModel) WithTaskType(v string) func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithTaskType(v string) func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { r.TaskType = v } } // WithPretty makes the response body pretty-printed. -func (f InferenceGetModel) WithPretty() func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithPretty() func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { r.Pretty = true } } // WithHuman makes statistical values human-readable. -func (f InferenceGetModel) WithHuman() func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithHuman() func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { r.Human = true } } // WithErrorTrace includes the stack trace for errors in the response body. -func (f InferenceGetModel) WithErrorTrace() func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithErrorTrace() func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { r.ErrorTrace = true } } // WithFilterPath filters the properties of the response body. -func (f InferenceGetModel) WithFilterPath(v ...string) func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithFilterPath(v ...string) func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { r.FilterPath = v } } // WithHeader adds the headers to the HTTP request. -func (f InferenceGetModel) WithHeader(h map[string]string) func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithHeader(h map[string]string) func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { if r.Header == nil { r.Header = make(http.Header) } @@ -239,8 +239,8 @@ func (f InferenceGetModel) WithHeader(h map[string]string) func(*InferenceGetMod } // WithOpaqueID adds the X-Opaque-Id header to the HTTP request. -func (f InferenceGetModel) WithOpaqueID(s string) func(*InferenceGetModelRequest) { - return func(r *InferenceGetModelRequest) { +func (f InferenceGet) WithOpaqueID(s string) func(*InferenceGetRequest) { + return func(r *InferenceGetRequest) { if r.Header == nil { r.Header = make(http.Header) } 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 6ab5f93139..9196e297e2 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -43,7 +43,7 @@ func newInferenceInferenceFunc(t Transport) InferenceInference { // ----- API Definition ------------------------------------------------------- -// InferenceInference perform inference on a model +// InferenceInference perform inference // // This API is experimental. // diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put.go similarity index 68% rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put_model.go rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put.go index 81de3264df..3927c12399 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put_model.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -26,9 +26,9 @@ import ( "strings" ) -func newInferencePutModelFunc(t Transport) InferencePutModel { - return func(inference_id string, o ...func(*InferencePutModelRequest)) (*Response, error) { - var r = InferencePutModelRequest{InferenceID: inference_id} +func newInferencePutFunc(t Transport) InferencePut { + return func(inference_id string, o ...func(*InferencePutRequest)) (*Response, error) { + var r = InferencePutRequest{InferenceID: inference_id} for _, f := range o { f(&r) } @@ -43,15 +43,15 @@ func newInferencePutModelFunc(t Transport) InferencePutModel { // ----- API Definition ------------------------------------------------------- -// InferencePutModel configure a model for use in the Inference API +// InferencePut configure an inference endpoint for use in the Inference API // // This API is experimental. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/put-inference-api.html. -type InferencePutModel func(inference_id string, o ...func(*InferencePutModelRequest)) (*Response, error) +type InferencePut func(inference_id string, o ...func(*InferencePutRequest)) (*Response, error) -// InferencePutModelRequest configures the Inference Put Model API request. -type InferencePutModelRequest struct { +// InferencePutRequest configures the Inference Put API request. +type InferencePutRequest struct { Body io.Reader InferenceID string @@ -70,7 +70,7 @@ type InferencePutModelRequest struct { } // Do executes the request and returns response or error. -func (r InferencePutModelRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { +func (r InferencePutRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { var ( method string path strings.Builder @@ -79,7 +79,7 @@ func (r InferencePutModelRequest) Do(providedCtx context.Context, transport Tran ) if instrument, ok := r.instrument.(Instrumentation); ok { - ctx = instrument.Start(providedCtx, "inference.put_model") + ctx = instrument.Start(providedCtx, "inference.put") defer instrument.Close(ctx) } if ctx == nil { @@ -160,14 +160,14 @@ func (r InferencePutModelRequest) Do(providedCtx context.Context, transport Tran } if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.BeforeRequest(req, "inference.put_model") - if reader := instrument.RecordRequestBody(ctx, "inference.put_model", r.Body); reader != nil { + instrument.BeforeRequest(req, "inference.put") + if reader := instrument.RecordRequestBody(ctx, "inference.put", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.AfterRequest(req, "elasticsearch", "inference.put_model") + instrument.AfterRequest(req, "elasticsearch", "inference.put") } if err != nil { if instrument, ok := r.instrument.(Instrumentation); ok { @@ -186,57 +186,57 @@ func (r InferencePutModelRequest) Do(providedCtx context.Context, transport Tran } // WithContext sets the request context. -func (f InferencePutModel) WithContext(v context.Context) func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +func (f InferencePut) WithContext(v context.Context) func(*InferencePutRequest) { + return func(r *InferencePutRequest) { r.ctx = v } } -// WithBody - The model's task and service settings. -func (f InferencePutModel) WithBody(v io.Reader) func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +// WithBody - The inference endpoint's task and service settings. +func (f InferencePut) WithBody(v io.Reader) func(*InferencePutRequest) { + return func(r *InferencePutRequest) { r.Body = v } } // WithTaskType - the task type. -func (f InferencePutModel) WithTaskType(v string) func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +func (f InferencePut) WithTaskType(v string) func(*InferencePutRequest) { + return func(r *InferencePutRequest) { r.TaskType = v } } // WithPretty makes the response body pretty-printed. -func (f InferencePutModel) WithPretty() func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +func (f InferencePut) WithPretty() func(*InferencePutRequest) { + return func(r *InferencePutRequest) { r.Pretty = true } } // WithHuman makes statistical values human-readable. -func (f InferencePutModel) WithHuman() func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +func (f InferencePut) WithHuman() func(*InferencePutRequest) { + return func(r *InferencePutRequest) { r.Human = true } } // WithErrorTrace includes the stack trace for errors in the response body. -func (f InferencePutModel) WithErrorTrace() func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +func (f InferencePut) WithErrorTrace() func(*InferencePutRequest) { + return func(r *InferencePutRequest) { r.ErrorTrace = true } } // WithFilterPath filters the properties of the response body. -func (f InferencePutModel) WithFilterPath(v ...string) func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +func (f InferencePut) WithFilterPath(v ...string) func(*InferencePutRequest) { + return func(r *InferencePutRequest) { r.FilterPath = v } } // WithHeader adds the headers to the HTTP request. -func (f InferencePutModel) WithHeader(h map[string]string) func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +func (f InferencePut) WithHeader(h map[string]string) func(*InferencePutRequest) { + return func(r *InferencePutRequest) { if r.Header == nil { r.Header = make(http.Header) } @@ -247,8 +247,8 @@ func (f InferencePutModel) WithHeader(h map[string]string) func(*InferencePutMod } // WithOpaqueID adds the X-Opaque-Id header to the HTTP request. -func (f InferencePutModel) WithOpaqueID(s string) func(*InferencePutModelRequest) { - return func(r *InferencePutModelRequest) { +func (f InferencePut) WithOpaqueID(s string) func(*InferencePutRequest) { + return func(r *InferencePutRequest) { if r.Header == nil { r.Header = make(http.Header) } 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 fe78275a6d..9c2f237f0c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..a08834feb9 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_geoip_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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "errors" + "net/http" + "strings" +) + +func newIngestDeleteGeoipDatabaseFunc(t Transport) IngestDeleteGeoipDatabase { + return func(id []string, o ...func(*IngestDeleteGeoipDatabaseRequest)) (*Response, error) { + var r = IngestDeleteGeoipDatabaseRequest{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 ------------------------------------------------------- + +// IngestDeleteGeoipDatabase deletes a geoip database configuration +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html. +type IngestDeleteGeoipDatabase func(id []string, o ...func(*IngestDeleteGeoipDatabaseRequest)) (*Response, error) + +// IngestDeleteGeoipDatabaseRequest configures the Ingest Delete Geoip Database API request. +type IngestDeleteGeoipDatabaseRequest 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 IngestDeleteGeoipDatabaseRequest) 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_geoip_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("geoip") + 1 + len("database") + 1 + len(strings.Join(r.DocumentID, ","))) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("geoip") + 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_geoip_database") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "ingest.delete_geoip_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 IngestDeleteGeoipDatabase) WithContext(v context.Context) func(*IngestDeleteGeoipDatabaseRequest) { + return func(r *IngestDeleteGeoipDatabaseRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f IngestDeleteGeoipDatabase) WithPretty() func(*IngestDeleteGeoipDatabaseRequest) { + return func(r *IngestDeleteGeoipDatabaseRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f IngestDeleteGeoipDatabase) WithHuman() func(*IngestDeleteGeoipDatabaseRequest) { + return func(r *IngestDeleteGeoipDatabaseRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f IngestDeleteGeoipDatabase) WithErrorTrace() func(*IngestDeleteGeoipDatabaseRequest) { + return func(r *IngestDeleteGeoipDatabaseRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f IngestDeleteGeoipDatabase) WithFilterPath(v ...string) func(*IngestDeleteGeoipDatabaseRequest) { + return func(r *IngestDeleteGeoipDatabaseRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f IngestDeleteGeoipDatabase) WithHeader(h map[string]string) func(*IngestDeleteGeoipDatabaseRequest) { + return func(r *IngestDeleteGeoipDatabaseRequest) { + 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 IngestDeleteGeoipDatabase) WithOpaqueID(s string) func(*IngestDeleteGeoipDatabaseRequest) { + return func(r *IngestDeleteGeoipDatabaseRequest) { + 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 e280a020ee..aef07fba41 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 db2943056a..71ab02bbd5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..0711e55b70 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_geoip_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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "net/http" + "strings" +) + +func newIngestGetGeoipDatabaseFunc(t Transport) IngestGetGeoipDatabase { + return func(o ...func(*IngestGetGeoipDatabaseRequest)) (*Response, error) { + var r = IngestGetGeoipDatabaseRequest{} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// IngestGetGeoipDatabase returns geoip database configuration. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html. +type IngestGetGeoipDatabase func(o ...func(*IngestGetGeoipDatabaseRequest)) (*Response, error) + +// IngestGetGeoipDatabaseRequest configures the Ingest Get Geoip Database API request. +type IngestGetGeoipDatabaseRequest 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 IngestGetGeoipDatabaseRequest) 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_geoip_database") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "GET" + + path.Grow(7 + 1 + len("_ingest") + 1 + len("geoip") + 1 + len("database") + 1 + len(strings.Join(r.DocumentID, ","))) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("geoip") + 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_geoip_database") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "ingest.get_geoip_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 IngestGetGeoipDatabase) WithContext(v context.Context) func(*IngestGetGeoipDatabaseRequest) { + return func(r *IngestGetGeoipDatabaseRequest) { + r.ctx = v + } +} + +// WithDocumentID - a list of geoip database configurations to get; use `*` to get all geoip database configurations. +func (f IngestGetGeoipDatabase) WithDocumentID(v ...string) func(*IngestGetGeoipDatabaseRequest) { + return func(r *IngestGetGeoipDatabaseRequest) { + r.DocumentID = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f IngestGetGeoipDatabase) WithPretty() func(*IngestGetGeoipDatabaseRequest) { + return func(r *IngestGetGeoipDatabaseRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f IngestGetGeoipDatabase) WithHuman() func(*IngestGetGeoipDatabaseRequest) { + return func(r *IngestGetGeoipDatabaseRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f IngestGetGeoipDatabase) WithErrorTrace() func(*IngestGetGeoipDatabaseRequest) { + return func(r *IngestGetGeoipDatabaseRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f IngestGetGeoipDatabase) WithFilterPath(v ...string) func(*IngestGetGeoipDatabaseRequest) { + return func(r *IngestGetGeoipDatabaseRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f IngestGetGeoipDatabase) WithHeader(h map[string]string) func(*IngestGetGeoipDatabaseRequest) { + return func(r *IngestGetGeoipDatabaseRequest) { + 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 IngestGetGeoipDatabase) WithOpaqueID(s string) func(*IngestGetGeoipDatabaseRequest) { + return func(r *IngestGetGeoipDatabaseRequest) { + 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 9bc9ab42d5..9da536605c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 87e72b6b9e..16b3779ba1 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..a58eec85f0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_geoip_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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newIngestPutGeoipDatabaseFunc(t Transport) IngestPutGeoipDatabase { + return func(id string, body io.Reader, o ...func(*IngestPutGeoipDatabaseRequest)) (*Response, error) { + var r = IngestPutGeoipDatabaseRequest{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 ------------------------------------------------------- + +// 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. +type IngestPutGeoipDatabase func(id string, body io.Reader, o ...func(*IngestPutGeoipDatabaseRequest)) (*Response, error) + +// IngestPutGeoipDatabaseRequest configures the Ingest Put Geoip Database API request. +type IngestPutGeoipDatabaseRequest 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 IngestPutGeoipDatabaseRequest) 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_geoip_database") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_ingest") + 1 + len("geoip") + 1 + len("database") + 1 + len(r.DocumentID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_ingest") + path.WriteString("/") + path.WriteString("geoip") + 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_geoip_database") + if reader := instrument.RecordRequestBody(ctx, "ingest.put_geoip_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_geoip_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 IngestPutGeoipDatabase) WithContext(v context.Context) func(*IngestPutGeoipDatabaseRequest) { + return func(r *IngestPutGeoipDatabaseRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f IngestPutGeoipDatabase) WithPretty() func(*IngestPutGeoipDatabaseRequest) { + return func(r *IngestPutGeoipDatabaseRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f IngestPutGeoipDatabase) WithHuman() func(*IngestPutGeoipDatabaseRequest) { + return func(r *IngestPutGeoipDatabaseRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f IngestPutGeoipDatabase) WithErrorTrace() func(*IngestPutGeoipDatabaseRequest) { + return func(r *IngestPutGeoipDatabaseRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f IngestPutGeoipDatabase) WithFilterPath(v ...string) func(*IngestPutGeoipDatabaseRequest) { + return func(r *IngestPutGeoipDatabaseRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f IngestPutGeoipDatabase) WithHeader(h map[string]string) func(*IngestPutGeoipDatabaseRequest) { + return func(r *IngestPutGeoipDatabaseRequest) { + 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 IngestPutGeoipDatabase) WithOpaqueID(s string) func(*IngestPutGeoipDatabaseRequest) { + return func(r *IngestPutGeoipDatabaseRequest) { + 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 e5ebe9791b..da960fb175 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f5c393aa49..e0bb9da3ef 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8dce408276..6f9ee2a974 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 acd493cd52..6411aa717a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9a6292a020..782a127fe4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ebc6118fcf..9fced95d0b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e7f97eaefc..b093ae15cc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 76c90ee7a4..b2ab32e3ac 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1f5c8241a8..bade77c97e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2c9e25730e..361402b3a7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6c8df20983..64e4b97267 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 903e2118f3..71b51d6e18 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ca8de33b73..bedccf867e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 fb8a922cca..9e12fe91ac 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5dbb0be23e..e5d7d3e393 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 73cce2bbd5..2b3c884185 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 fdb2c60002..e17ec70f47 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 62d80db917..0d90f28eed 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e986601720..9246427c41 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..bbdb2b017e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_rule.go @@ -0,0 +1,231 @@ +// 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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "net/http" + "strings" +) + +func newQueryRulesDeleteRuleFunc(t Transport) QueryRulesDeleteRule { + return func(rule_id string, ruleset_id string, o ...func(*QueryRulesDeleteRuleRequest)) (*Response, error) { + var r = QueryRulesDeleteRuleRequest{RuleID: rule_id, 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 ------------------------------------------------------- + +// QueryRulesDeleteRule deletes an individual query rule within a ruleset. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-query-rule.html. +type QueryRulesDeleteRule func(rule_id string, ruleset_id string, o ...func(*QueryRulesDeleteRuleRequest)) (*Response, error) + +// QueryRulesDeleteRuleRequest configures the Query Rules Delete Rule API request. +type QueryRulesDeleteRuleRequest struct { + RuleID string + 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 QueryRulesDeleteRuleRequest) 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.delete_rule") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "DELETE" + + path.Grow(7 + 1 + len("_query_rules") + 1 + len(r.RulesetID) + 1 + len("_rule") + 1 + len(r.RuleID)) + 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("_rule") + path.WriteString("/") + path.WriteString(r.RuleID) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "rule_id", r.RuleID) + } + + 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, "query_rules.delete_rule") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "query_rules.delete_rule") + } + 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 QueryRulesDeleteRule) WithContext(v context.Context) func(*QueryRulesDeleteRuleRequest) { + return func(r *QueryRulesDeleteRuleRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f QueryRulesDeleteRule) WithPretty() func(*QueryRulesDeleteRuleRequest) { + return func(r *QueryRulesDeleteRuleRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f QueryRulesDeleteRule) WithHuman() func(*QueryRulesDeleteRuleRequest) { + return func(r *QueryRulesDeleteRuleRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f QueryRulesDeleteRule) WithErrorTrace() func(*QueryRulesDeleteRuleRequest) { + return func(r *QueryRulesDeleteRuleRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f QueryRulesDeleteRule) WithFilterPath(v ...string) func(*QueryRulesDeleteRuleRequest) { + return func(r *QueryRulesDeleteRuleRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f QueryRulesDeleteRule) WithHeader(h map[string]string) func(*QueryRulesDeleteRuleRequest) { + return func(r *QueryRulesDeleteRuleRequest) { + 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 QueryRulesDeleteRule) WithOpaqueID(s string) func(*QueryRulesDeleteRuleRequest) { + return func(r *QueryRulesDeleteRuleRequest) { + 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.query_ruleset.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_ruleset.go similarity index 67% rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.delete.go rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_ruleset.go index cd0b8315b2..64de26e979 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.delete.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.delete_ruleset.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -25,9 +25,9 @@ import ( "strings" ) -func newQueryRulesetDeleteFunc(t Transport) QueryRulesetDelete { - return func(ruleset_id string, o ...func(*QueryRulesetDeleteRequest)) (*Response, error) { - var r = QueryRulesetDeleteRequest{RulesetID: ruleset_id} +func newQueryRulesDeleteRulesetFunc(t Transport) QueryRulesDeleteRuleset { + return func(ruleset_id string, o ...func(*QueryRulesDeleteRulesetRequest)) (*Response, error) { + var r = QueryRulesDeleteRulesetRequest{RulesetID: ruleset_id} for _, f := range o { f(&r) } @@ -42,15 +42,13 @@ func newQueryRulesetDeleteFunc(t Transport) QueryRulesetDelete { // ----- API Definition ------------------------------------------------------- -// QueryRulesetDelete deletes a query ruleset. -// -// This API is experimental. +// QueryRulesDeleteRuleset deletes a query ruleset. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-query-ruleset.html. -type QueryRulesetDelete func(ruleset_id string, o ...func(*QueryRulesetDeleteRequest)) (*Response, error) +type QueryRulesDeleteRuleset func(ruleset_id string, o ...func(*QueryRulesDeleteRulesetRequest)) (*Response, error) -// QueryRulesetDeleteRequest configures the Query Ruleset Delete API request. -type QueryRulesetDeleteRequest struct { +// QueryRulesDeleteRulesetRequest configures the Query Rules Delete Ruleset API request. +type QueryRulesDeleteRulesetRequest struct { RulesetID string Pretty bool @@ -66,7 +64,7 @@ type QueryRulesetDeleteRequest struct { } // Do executes the request and returns response or error. -func (r QueryRulesetDeleteRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { +func (r QueryRulesDeleteRulesetRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { var ( method string path strings.Builder @@ -75,7 +73,7 @@ func (r QueryRulesetDeleteRequest) Do(providedCtx context.Context, transport Tra ) if instrument, ok := r.instrument.(Instrumentation); ok { - ctx = instrument.Start(providedCtx, "query_ruleset.delete") + ctx = instrument.Start(providedCtx, "query_rules.delete_ruleset") defer instrument.Close(ctx) } if ctx == nil { @@ -145,11 +143,11 @@ func (r QueryRulesetDeleteRequest) Do(providedCtx context.Context, transport Tra } if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.BeforeRequest(req, "query_ruleset.delete") + instrument.BeforeRequest(req, "query_rules.delete_ruleset") } res, err := transport.Perform(req) if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.AfterRequest(req, "elasticsearch", "query_ruleset.delete") + instrument.AfterRequest(req, "elasticsearch", "query_rules.delete_ruleset") } if err != nil { if instrument, ok := r.instrument.(Instrumentation); ok { @@ -168,43 +166,43 @@ func (r QueryRulesetDeleteRequest) Do(providedCtx context.Context, transport Tra } // WithContext sets the request context. -func (f QueryRulesetDelete) WithContext(v context.Context) func(*QueryRulesetDeleteRequest) { - return func(r *QueryRulesetDeleteRequest) { +func (f QueryRulesDeleteRuleset) WithContext(v context.Context) func(*QueryRulesDeleteRulesetRequest) { + return func(r *QueryRulesDeleteRulesetRequest) { r.ctx = v } } // WithPretty makes the response body pretty-printed. -func (f QueryRulesetDelete) WithPretty() func(*QueryRulesetDeleteRequest) { - return func(r *QueryRulesetDeleteRequest) { +func (f QueryRulesDeleteRuleset) WithPretty() func(*QueryRulesDeleteRulesetRequest) { + return func(r *QueryRulesDeleteRulesetRequest) { r.Pretty = true } } // WithHuman makes statistical values human-readable. -func (f QueryRulesetDelete) WithHuman() func(*QueryRulesetDeleteRequest) { - return func(r *QueryRulesetDeleteRequest) { +func (f QueryRulesDeleteRuleset) WithHuman() func(*QueryRulesDeleteRulesetRequest) { + return func(r *QueryRulesDeleteRulesetRequest) { r.Human = true } } // WithErrorTrace includes the stack trace for errors in the response body. -func (f QueryRulesetDelete) WithErrorTrace() func(*QueryRulesetDeleteRequest) { - return func(r *QueryRulesetDeleteRequest) { +func (f QueryRulesDeleteRuleset) WithErrorTrace() func(*QueryRulesDeleteRulesetRequest) { + return func(r *QueryRulesDeleteRulesetRequest) { r.ErrorTrace = true } } // WithFilterPath filters the properties of the response body. -func (f QueryRulesetDelete) WithFilterPath(v ...string) func(*QueryRulesetDeleteRequest) { - return func(r *QueryRulesetDeleteRequest) { +func (f QueryRulesDeleteRuleset) WithFilterPath(v ...string) func(*QueryRulesDeleteRulesetRequest) { + return func(r *QueryRulesDeleteRulesetRequest) { r.FilterPath = v } } // WithHeader adds the headers to the HTTP request. -func (f QueryRulesetDelete) WithHeader(h map[string]string) func(*QueryRulesetDeleteRequest) { - return func(r *QueryRulesetDeleteRequest) { +func (f QueryRulesDeleteRuleset) WithHeader(h map[string]string) func(*QueryRulesDeleteRulesetRequest) { + return func(r *QueryRulesDeleteRulesetRequest) { if r.Header == nil { r.Header = make(http.Header) } @@ -215,8 +213,8 @@ func (f QueryRulesetDelete) WithHeader(h map[string]string) func(*QueryRulesetDe } // WithOpaqueID adds the X-Opaque-Id header to the HTTP request. -func (f QueryRulesetDelete) WithOpaqueID(s string) func(*QueryRulesetDeleteRequest) { - return func(r *QueryRulesetDeleteRequest) { +func (f QueryRulesDeleteRuleset) WithOpaqueID(s string) func(*QueryRulesDeleteRulesetRequest) { + return func(r *QueryRulesDeleteRulesetRequest) { if r.Header == nil { r.Header = make(http.Header) } 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 new file mode 100644 index 0000000000..1c33d76ef6 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_rule.go @@ -0,0 +1,231 @@ +// 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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "net/http" + "strings" +) + +func newQueryRulesGetRuleFunc(t Transport) QueryRulesGetRule { + return func(rule_id string, ruleset_id string, o ...func(*QueryRulesGetRuleRequest)) (*Response, error) { + var r = QueryRulesGetRuleRequest{RuleID: rule_id, 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 ------------------------------------------------------- + +// QueryRulesGetRule returns the details about an individual query rule within a ruleset. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/get-query-rule.html. +type QueryRulesGetRule func(rule_id string, ruleset_id string, o ...func(*QueryRulesGetRuleRequest)) (*Response, error) + +// QueryRulesGetRuleRequest configures the Query Rules Get Rule API request. +type QueryRulesGetRuleRequest struct { + RuleID string + 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 QueryRulesGetRuleRequest) 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.get_rule") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "GET" + + path.Grow(7 + 1 + len("_query_rules") + 1 + len(r.RulesetID) + 1 + len("_rule") + 1 + len(r.RuleID)) + 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("_rule") + path.WriteString("/") + path.WriteString(r.RuleID) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "rule_id", r.RuleID) + } + + 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, "query_rules.get_rule") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "query_rules.get_rule") + } + 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 QueryRulesGetRule) WithContext(v context.Context) func(*QueryRulesGetRuleRequest) { + return func(r *QueryRulesGetRuleRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f QueryRulesGetRule) WithPretty() func(*QueryRulesGetRuleRequest) { + return func(r *QueryRulesGetRuleRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f QueryRulesGetRule) WithHuman() func(*QueryRulesGetRuleRequest) { + return func(r *QueryRulesGetRuleRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f QueryRulesGetRule) WithErrorTrace() func(*QueryRulesGetRuleRequest) { + return func(r *QueryRulesGetRuleRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f QueryRulesGetRule) WithFilterPath(v ...string) func(*QueryRulesGetRuleRequest) { + return func(r *QueryRulesGetRuleRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f QueryRulesGetRule) WithHeader(h map[string]string) func(*QueryRulesGetRuleRequest) { + return func(r *QueryRulesGetRuleRequest) { + 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 QueryRulesGetRule) WithOpaqueID(s string) func(*QueryRulesGetRuleRequest) { + return func(r *QueryRulesGetRuleRequest) { + 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.query_ruleset.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_ruleset.go similarity index 68% rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.get.go rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_ruleset.go index c14464d2f8..092314442d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.get.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.get_ruleset.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -25,9 +25,9 @@ import ( "strings" ) -func newQueryRulesetGetFunc(t Transport) QueryRulesetGet { - return func(ruleset_id string, o ...func(*QueryRulesetGetRequest)) (*Response, error) { - var r = QueryRulesetGetRequest{RulesetID: ruleset_id} +func newQueryRulesGetRulesetFunc(t Transport) QueryRulesGetRuleset { + return func(ruleset_id string, o ...func(*QueryRulesGetRulesetRequest)) (*Response, error) { + var r = QueryRulesGetRulesetRequest{RulesetID: ruleset_id} for _, f := range o { f(&r) } @@ -42,15 +42,13 @@ func newQueryRulesetGetFunc(t Transport) QueryRulesetGet { // ----- API Definition ------------------------------------------------------- -// QueryRulesetGet returns the details about a query ruleset. -// -// This API is experimental. +// QueryRulesGetRuleset returns the details about a query ruleset. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/get-query-ruleset.html. -type QueryRulesetGet func(ruleset_id string, o ...func(*QueryRulesetGetRequest)) (*Response, error) +type QueryRulesGetRuleset func(ruleset_id string, o ...func(*QueryRulesGetRulesetRequest)) (*Response, error) -// QueryRulesetGetRequest configures the Query Ruleset Get API request. -type QueryRulesetGetRequest struct { +// QueryRulesGetRulesetRequest configures the Query Rules Get Ruleset API request. +type QueryRulesGetRulesetRequest struct { RulesetID string Pretty bool @@ -66,7 +64,7 @@ type QueryRulesetGetRequest struct { } // Do executes the request and returns response or error. -func (r QueryRulesetGetRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { +func (r QueryRulesGetRulesetRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { var ( method string path strings.Builder @@ -75,7 +73,7 @@ func (r QueryRulesetGetRequest) Do(providedCtx context.Context, transport Transp ) if instrument, ok := r.instrument.(Instrumentation); ok { - ctx = instrument.Start(providedCtx, "query_ruleset.get") + ctx = instrument.Start(providedCtx, "query_rules.get_ruleset") defer instrument.Close(ctx) } if ctx == nil { @@ -145,11 +143,11 @@ func (r QueryRulesetGetRequest) Do(providedCtx context.Context, transport Transp } if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.BeforeRequest(req, "query_ruleset.get") + instrument.BeforeRequest(req, "query_rules.get_ruleset") } res, err := transport.Perform(req) if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.AfterRequest(req, "elasticsearch", "query_ruleset.get") + instrument.AfterRequest(req, "elasticsearch", "query_rules.get_ruleset") } if err != nil { if instrument, ok := r.instrument.(Instrumentation); ok { @@ -168,43 +166,43 @@ func (r QueryRulesetGetRequest) Do(providedCtx context.Context, transport Transp } // WithContext sets the request context. -func (f QueryRulesetGet) WithContext(v context.Context) func(*QueryRulesetGetRequest) { - return func(r *QueryRulesetGetRequest) { +func (f QueryRulesGetRuleset) WithContext(v context.Context) func(*QueryRulesGetRulesetRequest) { + return func(r *QueryRulesGetRulesetRequest) { r.ctx = v } } // WithPretty makes the response body pretty-printed. -func (f QueryRulesetGet) WithPretty() func(*QueryRulesetGetRequest) { - return func(r *QueryRulesetGetRequest) { +func (f QueryRulesGetRuleset) WithPretty() func(*QueryRulesGetRulesetRequest) { + return func(r *QueryRulesGetRulesetRequest) { r.Pretty = true } } // WithHuman makes statistical values human-readable. -func (f QueryRulesetGet) WithHuman() func(*QueryRulesetGetRequest) { - return func(r *QueryRulesetGetRequest) { +func (f QueryRulesGetRuleset) WithHuman() func(*QueryRulesGetRulesetRequest) { + return func(r *QueryRulesGetRulesetRequest) { r.Human = true } } // WithErrorTrace includes the stack trace for errors in the response body. -func (f QueryRulesetGet) WithErrorTrace() func(*QueryRulesetGetRequest) { - return func(r *QueryRulesetGetRequest) { +func (f QueryRulesGetRuleset) WithErrorTrace() func(*QueryRulesGetRulesetRequest) { + return func(r *QueryRulesGetRulesetRequest) { r.ErrorTrace = true } } // WithFilterPath filters the properties of the response body. -func (f QueryRulesetGet) WithFilterPath(v ...string) func(*QueryRulesetGetRequest) { - return func(r *QueryRulesetGetRequest) { +func (f QueryRulesGetRuleset) WithFilterPath(v ...string) func(*QueryRulesGetRulesetRequest) { + return func(r *QueryRulesGetRulesetRequest) { r.FilterPath = v } } // WithHeader adds the headers to the HTTP request. -func (f QueryRulesetGet) WithHeader(h map[string]string) func(*QueryRulesetGetRequest) { - return func(r *QueryRulesetGetRequest) { +func (f QueryRulesGetRuleset) WithHeader(h map[string]string) func(*QueryRulesGetRulesetRequest) { + return func(r *QueryRulesGetRulesetRequest) { if r.Header == nil { r.Header = make(http.Header) } @@ -215,8 +213,8 @@ func (f QueryRulesetGet) WithHeader(h map[string]string) func(*QueryRulesetGetRe } // WithOpaqueID adds the X-Opaque-Id header to the HTTP request. -func (f QueryRulesetGet) WithOpaqueID(s string) func(*QueryRulesetGetRequest) { - return func(r *QueryRulesetGetRequest) { +func (f QueryRulesGetRuleset) WithOpaqueID(s string) func(*QueryRulesGetRulesetRequest) { + return func(r *QueryRulesGetRulesetRequest) { if r.Header == nil { r.Header = make(http.Header) } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.list.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.list_rulesets.go similarity index 66% rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.list.go rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.list_rulesets.go index b59e1a7b7a..fe671a8c11 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.list.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.list_rulesets.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -26,9 +26,9 @@ import ( "strings" ) -func newQueryRulesetListFunc(t Transport) QueryRulesetList { - return func(o ...func(*QueryRulesetListRequest)) (*Response, error) { - var r = QueryRulesetListRequest{} +func newQueryRulesListRulesetsFunc(t Transport) QueryRulesListRulesets { + return func(o ...func(*QueryRulesListRulesetsRequest)) (*Response, error) { + var r = QueryRulesListRulesetsRequest{} for _, f := range o { f(&r) } @@ -43,15 +43,13 @@ func newQueryRulesetListFunc(t Transport) QueryRulesetList { // ----- API Definition ------------------------------------------------------- -// QueryRulesetList lists query rulesets. -// -// This API is experimental. +// QueryRulesListRulesets lists query rulesets. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/list-query-rulesets.html. -type QueryRulesetList func(o ...func(*QueryRulesetListRequest)) (*Response, error) +type QueryRulesListRulesets func(o ...func(*QueryRulesListRulesetsRequest)) (*Response, error) -// QueryRulesetListRequest configures the Query Ruleset List API request. -type QueryRulesetListRequest struct { +// QueryRulesListRulesetsRequest configures the Query Rules List Rulesets API request. +type QueryRulesListRulesetsRequest struct { From *int Size *int @@ -68,7 +66,7 @@ type QueryRulesetListRequest struct { } // Do executes the request and returns response or error. -func (r QueryRulesetListRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { +func (r QueryRulesListRulesetsRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { var ( method string path strings.Builder @@ -77,7 +75,7 @@ func (r QueryRulesetListRequest) Do(providedCtx context.Context, transport Trans ) if instrument, ok := r.instrument.(Instrumentation); ok { - ctx = instrument.Start(providedCtx, "query_ruleset.list") + ctx = instrument.Start(providedCtx, "query_rules.list_rulesets") defer instrument.Close(ctx) } if ctx == nil { @@ -149,11 +147,11 @@ func (r QueryRulesetListRequest) Do(providedCtx context.Context, transport Trans } if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.BeforeRequest(req, "query_ruleset.list") + instrument.BeforeRequest(req, "query_rules.list_rulesets") } res, err := transport.Perform(req) if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.AfterRequest(req, "elasticsearch", "query_ruleset.list") + instrument.AfterRequest(req, "elasticsearch", "query_rules.list_rulesets") } if err != nil { if instrument, ok := r.instrument.(Instrumentation); ok { @@ -172,57 +170,57 @@ func (r QueryRulesetListRequest) Do(providedCtx context.Context, transport Trans } // WithContext sets the request context. -func (f QueryRulesetList) WithContext(v context.Context) func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithContext(v context.Context) func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { r.ctx = v } } // WithFrom - starting offset (default: 0). -func (f QueryRulesetList) WithFrom(v int) func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithFrom(v int) func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { r.From = &v } } // WithSize - specifies a max number of results to get (default: 100). -func (f QueryRulesetList) WithSize(v int) func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithSize(v int) func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { r.Size = &v } } // WithPretty makes the response body pretty-printed. -func (f QueryRulesetList) WithPretty() func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithPretty() func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { r.Pretty = true } } // WithHuman makes statistical values human-readable. -func (f QueryRulesetList) WithHuman() func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithHuman() func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { r.Human = true } } // WithErrorTrace includes the stack trace for errors in the response body. -func (f QueryRulesetList) WithErrorTrace() func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithErrorTrace() func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { r.ErrorTrace = true } } // WithFilterPath filters the properties of the response body. -func (f QueryRulesetList) WithFilterPath(v ...string) func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithFilterPath(v ...string) func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { r.FilterPath = v } } // WithHeader adds the headers to the HTTP request. -func (f QueryRulesetList) WithHeader(h map[string]string) func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithHeader(h map[string]string) func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { if r.Header == nil { r.Header = make(http.Header) } @@ -233,8 +231,8 @@ func (f QueryRulesetList) WithHeader(h map[string]string) func(*QueryRulesetList } // WithOpaqueID adds the X-Opaque-Id header to the HTTP request. -func (f QueryRulesetList) WithOpaqueID(s string) func(*QueryRulesetListRequest) { - return func(r *QueryRulesetListRequest) { +func (f QueryRulesListRulesets) WithOpaqueID(s string) func(*QueryRulesListRulesetsRequest) { + return func(r *QueryRulesListRulesetsRequest) { if r.Header == nil { r.Header = make(http.Header) } 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 new file mode 100644 index 0000000000..36b24e8208 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_rule.go @@ -0,0 +1,241 @@ +// 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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newQueryRulesPutRuleFunc(t Transport) QueryRulesPutRule { + return func(body io.Reader, rule_id string, ruleset_id string, o ...func(*QueryRulesPutRuleRequest)) (*Response, error) { + var r = QueryRulesPutRuleRequest{Body: body, RuleID: rule_id, 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 ------------------------------------------------------- + +// QueryRulesPutRule creates or updates a query rule within a ruleset. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/put-query-rule.html. +type QueryRulesPutRule func(body io.Reader, rule_id string, ruleset_id string, o ...func(*QueryRulesPutRuleRequest)) (*Response, error) + +// QueryRulesPutRuleRequest configures the Query Rules Put Rule API request. +type QueryRulesPutRuleRequest struct { + Body io.Reader + + RuleID string + 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 QueryRulesPutRuleRequest) 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.put_rule") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_query_rules") + 1 + len(r.RulesetID) + 1 + len("_rule") + 1 + len(r.RuleID)) + 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("_rule") + path.WriteString("/") + path.WriteString(r.RuleID) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "rule_id", r.RuleID) + } + + 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.put_rule") + if reader := instrument.RecordRequestBody(ctx, "query_rules.put_rule", 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.put_rule") + } + 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 QueryRulesPutRule) WithContext(v context.Context) func(*QueryRulesPutRuleRequest) { + return func(r *QueryRulesPutRuleRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f QueryRulesPutRule) WithPretty() func(*QueryRulesPutRuleRequest) { + return func(r *QueryRulesPutRuleRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f QueryRulesPutRule) WithHuman() func(*QueryRulesPutRuleRequest) { + return func(r *QueryRulesPutRuleRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f QueryRulesPutRule) WithErrorTrace() func(*QueryRulesPutRuleRequest) { + return func(r *QueryRulesPutRuleRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f QueryRulesPutRule) WithFilterPath(v ...string) func(*QueryRulesPutRuleRequest) { + return func(r *QueryRulesPutRuleRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f QueryRulesPutRule) WithHeader(h map[string]string) func(*QueryRulesPutRuleRequest) { + return func(r *QueryRulesPutRuleRequest) { + 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 QueryRulesPutRule) WithOpaqueID(s string) func(*QueryRulesPutRuleRequest) { + return func(r *QueryRulesPutRuleRequest) { + 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.query_ruleset.put.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_ruleset.go similarity index 68% rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.put.go rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_ruleset.go index 2c010ec77e..c33f5b9b85 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.put.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_rules.put_ruleset.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -26,9 +26,9 @@ import ( "strings" ) -func newQueryRulesetPutFunc(t Transport) QueryRulesetPut { - return func(body io.Reader, ruleset_id string, o ...func(*QueryRulesetPutRequest)) (*Response, error) { - var r = QueryRulesetPutRequest{Body: body, RulesetID: ruleset_id} +func newQueryRulesPutRulesetFunc(t Transport) QueryRulesPutRuleset { + return func(body io.Reader, ruleset_id string, o ...func(*QueryRulesPutRulesetRequest)) (*Response, error) { + var r = QueryRulesPutRulesetRequest{Body: body, RulesetID: ruleset_id} for _, f := range o { f(&r) } @@ -43,15 +43,13 @@ func newQueryRulesetPutFunc(t Transport) QueryRulesetPut { // ----- API Definition ------------------------------------------------------- -// QueryRulesetPut creates or updates a query ruleset. -// -// This API is experimental. +// QueryRulesPutRuleset creates or updates a query ruleset. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/put-query-ruleset.html. -type QueryRulesetPut func(body io.Reader, ruleset_id string, o ...func(*QueryRulesetPutRequest)) (*Response, error) +type QueryRulesPutRuleset func(body io.Reader, ruleset_id string, o ...func(*QueryRulesPutRulesetRequest)) (*Response, error) -// QueryRulesetPutRequest configures the Query Ruleset Put API request. -type QueryRulesetPutRequest struct { +// QueryRulesPutRulesetRequest configures the Query Rules Put Ruleset API request. +type QueryRulesPutRulesetRequest struct { Body io.Reader RulesetID string @@ -69,7 +67,7 @@ type QueryRulesetPutRequest struct { } // Do executes the request and returns response or error. -func (r QueryRulesetPutRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { +func (r QueryRulesPutRulesetRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { var ( method string path strings.Builder @@ -78,7 +76,7 @@ func (r QueryRulesetPutRequest) Do(providedCtx context.Context, transport Transp ) if instrument, ok := r.instrument.(Instrumentation); ok { - ctx = instrument.Start(providedCtx, "query_ruleset.put") + ctx = instrument.Start(providedCtx, "query_rules.put_ruleset") defer instrument.Close(ctx) } if ctx == nil { @@ -152,14 +150,14 @@ func (r QueryRulesetPutRequest) Do(providedCtx context.Context, transport Transp } if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.BeforeRequest(req, "query_ruleset.put") - if reader := instrument.RecordRequestBody(ctx, "query_ruleset.put", r.Body); reader != nil { + instrument.BeforeRequest(req, "query_rules.put_ruleset") + if reader := instrument.RecordRequestBody(ctx, "query_rules.put_ruleset", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) if instrument, ok := r.instrument.(Instrumentation); ok { - instrument.AfterRequest(req, "elasticsearch", "query_ruleset.put") + instrument.AfterRequest(req, "elasticsearch", "query_rules.put_ruleset") } if err != nil { if instrument, ok := r.instrument.(Instrumentation); ok { @@ -178,43 +176,43 @@ func (r QueryRulesetPutRequest) Do(providedCtx context.Context, transport Transp } // WithContext sets the request context. -func (f QueryRulesetPut) WithContext(v context.Context) func(*QueryRulesetPutRequest) { - return func(r *QueryRulesetPutRequest) { +func (f QueryRulesPutRuleset) WithContext(v context.Context) func(*QueryRulesPutRulesetRequest) { + return func(r *QueryRulesPutRulesetRequest) { r.ctx = v } } // WithPretty makes the response body pretty-printed. -func (f QueryRulesetPut) WithPretty() func(*QueryRulesetPutRequest) { - return func(r *QueryRulesetPutRequest) { +func (f QueryRulesPutRuleset) WithPretty() func(*QueryRulesPutRulesetRequest) { + return func(r *QueryRulesPutRulesetRequest) { r.Pretty = true } } // WithHuman makes statistical values human-readable. -func (f QueryRulesetPut) WithHuman() func(*QueryRulesetPutRequest) { - return func(r *QueryRulesetPutRequest) { +func (f QueryRulesPutRuleset) WithHuman() func(*QueryRulesPutRulesetRequest) { + return func(r *QueryRulesPutRulesetRequest) { r.Human = true } } // WithErrorTrace includes the stack trace for errors in the response body. -func (f QueryRulesetPut) WithErrorTrace() func(*QueryRulesetPutRequest) { - return func(r *QueryRulesetPutRequest) { +func (f QueryRulesPutRuleset) WithErrorTrace() func(*QueryRulesPutRulesetRequest) { + return func(r *QueryRulesPutRulesetRequest) { r.ErrorTrace = true } } // WithFilterPath filters the properties of the response body. -func (f QueryRulesetPut) WithFilterPath(v ...string) func(*QueryRulesetPutRequest) { - return func(r *QueryRulesetPutRequest) { +func (f QueryRulesPutRuleset) WithFilterPath(v ...string) func(*QueryRulesPutRulesetRequest) { + return func(r *QueryRulesPutRulesetRequest) { r.FilterPath = v } } // WithHeader adds the headers to the HTTP request. -func (f QueryRulesetPut) WithHeader(h map[string]string) func(*QueryRulesetPutRequest) { - return func(r *QueryRulesetPutRequest) { +func (f QueryRulesPutRuleset) WithHeader(h map[string]string) func(*QueryRulesPutRulesetRequest) { + return func(r *QueryRulesPutRulesetRequest) { if r.Header == nil { r.Header = make(http.Header) } @@ -225,8 +223,8 @@ func (f QueryRulesetPut) WithHeader(h map[string]string) func(*QueryRulesetPutRe } // WithOpaqueID adds the X-Opaque-Id header to the HTTP request. -func (f QueryRulesetPut) WithOpaqueID(s string) func(*QueryRulesetPutRequest) { - return func(r *QueryRulesetPutRequest) { +func (f QueryRulesPutRuleset) WithOpaqueID(s string) func(*QueryRulesPutRulesetRequest) { + return func(r *QueryRulesPutRulesetRequest) { if r.Header == nil { r.Header = make(http.Header) } 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 aa71fdd0bd..8692870a11 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ca485df69d..cffffdea21 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 bedc4e7fd7..dc05029812 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5265423ed3..68a4c906b9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0002f43381..51564d530d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 fcf998a2d8..e49674ea4b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 cd4ba2d7a2..0a77bc7bec 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b0c35dd4eb..db519d17a5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6a4ade475c..321123a287 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 85a7ebf7d4..b0ef8a8202 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1d2e41fac1..e3e22935ae 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0ce836b58c..9cb88753d2 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 04fc1a7f9b..8e64f9db10 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 10e3bced48..a65b771723 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f2eb52558d..d826175fca 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 617090526e..83eee21117 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d6c532001f..309ed738f0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b29275d930..475520a77d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7dd05d79bf..dd2aacf4a6 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_template.go index 269583b84b..49996fc2e9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 94db148f13..0b69d626ef 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a8ea5cd4ec..bd309083ee 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newShutdownGetNodeFunc(t Transport) ShutdownGetNode { @@ -51,6 +52,8 @@ type ShutdownGetNode func(o ...func(*ShutdownGetNodeRequest)) (*Response, error) type ShutdownGetNodeRequest struct { NodeID string + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -98,6 +101,10 @@ func (r ShutdownGetNodeRequest) Do(providedCtx context.Context, transport Transp params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -183,6 +190,13 @@ func (f ShutdownGetNode) WithNodeID(v string) func(*ShutdownGetNodeRequest) { } } +// WithMasterTimeout - timeout for processing on master node. +func (f ShutdownGetNode) WithMasterTimeout(v time.Duration) func(*ShutdownGetNodeRequest) { + return func(r *ShutdownGetNodeRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f ShutdownGetNode) WithPretty() func(*ShutdownGetNodeRequest) { return func(r *ShutdownGetNodeRequest) { 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 87f6296588..c41da842df 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f0a3c8d417..87c285998c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6e99023b90..82540c4a1a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 cf21219af1..f063d68c0a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3082947b38..79976a0122 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 295bc6b545..af62049817 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 58f4b2735c..f8f19f3905 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "errors" "net/http" + "strconv" "strings" "time" ) @@ -54,7 +55,8 @@ type SnapshotDeleteRequest struct { Repository string Snapshot []string - MasterTimeout time.Duration + MasterTimeout time.Duration + WaitForCompletion *bool Pretty bool Human bool @@ -112,6 +114,10 @@ func (r SnapshotDeleteRequest) Do(providedCtx context.Context, transport Transpo params["master_timeout"] = formatDuration(r.MasterTimeout) } + if r.WaitForCompletion != nil { + params["wait_for_completion"] = strconv.FormatBool(*r.WaitForCompletion) + } + if r.Pretty { params["pretty"] = "true" } @@ -197,6 +203,13 @@ func (f SnapshotDelete) WithMasterTimeout(v time.Duration) func(*SnapshotDeleteR } } +// WithWaitForCompletion - should this request wait until the operation has completed before returning. +func (f SnapshotDelete) WithWaitForCompletion(v bool) func(*SnapshotDeleteRequest) { + return func(r *SnapshotDeleteRequest) { + r.WaitForCompletion = &v + } +} + // WithPretty makes the response body pretty-printed. func (f SnapshotDelete) WithPretty() func(*SnapshotDeleteRequest) { return func(r *SnapshotDeleteRequest) { 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 1c932ec1eb..32fee65d76 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 23db446462..a7a1bd1919 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 82c4ed6372..3bb23496ba 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 79d876095c..00e303db0f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.restore.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.restore.go index c402746ed7..5091c9e3eb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0844416758..220d54c5dc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 595ba27141..dd0303b799 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 828aeb1392..4d2bcc0340 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0eff28028c..082f8fa2da 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2bb42923f3..355696719f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2fce0e4716..c078771f76 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 eba33df1ee..3074bd0d77 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 837b988544..0d8b2becbd 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 bdea3bf69b..d9426ef807 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 002c42f3db..4553445ada 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9e2a12f406..cda9add11a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6a2da2bfe4..e0cde90ede 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3d24f409fd..0704984d4e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 221c085706..cef3cfca06 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f1a52fa368..bd404a372e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5eab11fc10..93666edd0c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b252953860..01d3d9f984 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 61727ee0e0..d55305ac6c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 40db490bd7..bf474b704e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2c3c03229a..1b229475e1 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a97f56e5be..204669b8dc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 80e1a9da1b..629269060c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newAutoscalingDeleteAutoscalingPolicyFunc(t Transport) AutoscalingDeleteAutoscalingPolicy { @@ -51,6 +52,9 @@ type AutoscalingDeleteAutoscalingPolicy func(name string, o ...func(*Autoscaling type AutoscalingDeleteAutoscalingPolicyRequest struct { Name string + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -96,6 +100,14 @@ func (r AutoscalingDeleteAutoscalingPolicyRequest) Do(providedCtx context.Contex 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 AutoscalingDeleteAutoscalingPolicy) WithContext(v context.Context) func( } } +// WithMasterTimeout - timeout for processing on master node. +func (f AutoscalingDeleteAutoscalingPolicy) WithMasterTimeout(v time.Duration) func(*AutoscalingDeleteAutoscalingPolicyRequest) { + return func(r *AutoscalingDeleteAutoscalingPolicyRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgement of update from all nodes in cluster. +func (f AutoscalingDeleteAutoscalingPolicy) WithTimeout(v time.Duration) func(*AutoscalingDeleteAutoscalingPolicyRequest) { + return func(r *AutoscalingDeleteAutoscalingPolicyRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f AutoscalingDeleteAutoscalingPolicy) WithPretty() func(*AutoscalingDeleteAutoscalingPolicyRequest) { return func(r *AutoscalingDeleteAutoscalingPolicyRequest) { 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 55af74010d..b419c36cfd 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newAutoscalingGetAutoscalingCapacityFunc(t Transport) AutoscalingGetAutoscalingCapacity { @@ -49,6 +50,8 @@ type AutoscalingGetAutoscalingCapacity func(o ...func(*AutoscalingGetAutoscaling // AutoscalingGetAutoscalingCapacityRequest configures the Autoscaling Get Autoscaling Capacity API request. type AutoscalingGetAutoscalingCapacityRequest struct { + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +89,10 @@ func (r AutoscalingGetAutoscalingCapacityRequest) Do(providedCtx context.Context params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -164,6 +171,13 @@ func (f AutoscalingGetAutoscalingCapacity) WithContext(v context.Context) func(* } } +// WithMasterTimeout - timeout for processing on master node. +func (f AutoscalingGetAutoscalingCapacity) WithMasterTimeout(v time.Duration) func(*AutoscalingGetAutoscalingCapacityRequest) { + return func(r *AutoscalingGetAutoscalingCapacityRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f AutoscalingGetAutoscalingCapacity) WithPretty() func(*AutoscalingGetAutoscalingCapacityRequest) { return func(r *AutoscalingGetAutoscalingCapacityRequest) { 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 b287d76cd5..b68ea1babd 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newAutoscalingGetAutoscalingPolicyFunc(t Transport) AutoscalingGetAutoscalingPolicy { @@ -51,6 +52,8 @@ type AutoscalingGetAutoscalingPolicy func(name string, o ...func(*AutoscalingGet type AutoscalingGetAutoscalingPolicyRequest struct { Name string + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -96,6 +99,10 @@ func (r AutoscalingGetAutoscalingPolicyRequest) Do(providedCtx context.Context, 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 AutoscalingGetAutoscalingPolicy) WithContext(v context.Context) func(*Au } } +// WithMasterTimeout - timeout for processing on master node. +func (f AutoscalingGetAutoscalingPolicy) WithMasterTimeout(v time.Duration) func(*AutoscalingGetAutoscalingPolicyRequest) { + return func(r *AutoscalingGetAutoscalingPolicyRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f AutoscalingGetAutoscalingPolicy) WithPretty() func(*AutoscalingGetAutoscalingPolicyRequest) { return func(r *AutoscalingGetAutoscalingPolicyRequest) { 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 cd8cb4159b..a26b3dcefa 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "io" "net/http" "strings" + "time" ) func newAutoscalingPutAutoscalingPolicyFunc(t Transport) AutoscalingPutAutoscalingPolicy { @@ -54,6 +55,9 @@ type AutoscalingPutAutoscalingPolicyRequest struct { Name string + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -99,6 +103,14 @@ func (r AutoscalingPutAutoscalingPolicyRequest) Do(providedCtx context.Context, 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" } @@ -184,6 +196,20 @@ func (f AutoscalingPutAutoscalingPolicy) WithContext(v context.Context) func(*Au } } +// WithMasterTimeout - timeout for processing on master node. +func (f AutoscalingPutAutoscalingPolicy) WithMasterTimeout(v time.Duration) func(*AutoscalingPutAutoscalingPolicyRequest) { + return func(r *AutoscalingPutAutoscalingPolicyRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgement of update from all nodes in cluster. +func (f AutoscalingPutAutoscalingPolicy) WithTimeout(v time.Duration) func(*AutoscalingPutAutoscalingPolicyRequest) { + return func(r *AutoscalingPutAutoscalingPolicyRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f AutoscalingPutAutoscalingPolicy) WithPretty() func(*AutoscalingPutAutoscalingPolicyRequest) { return func(r *AutoscalingPutAutoscalingPolicyRequest) { 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 752e0bac6b..ae4d45915e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 de8dae78a3..386b5a8fbc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b6703af90b..d065190da9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 411ca5bd7d..f1e0bd7a01 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1d43f6ad18..1d6338d2d3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e2129b8d8a..9c0b0d21c8 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 921d528ba6..f7ec7dc003 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 241a999afc..cd2eaaca96 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 448d371f1d..11865018fc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 07686b0edf..aabbb26d85 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5b3aea6090..585cea18d0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a890699ac3..a336b60fd9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4fdc72b039..c1a09751be 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 cfffc10a51..93f71ad15c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 575e82b2f1..c7dcb8bbdf 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 32ba5ad1db..43de1ea569 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5b0e66a78c..8090effdea 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6cf64cf703..fd9d53e267 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d875fca385..9d583a24a4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ab842a6755..75c114e1c6 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newEnrichDeletePolicyFunc(t Transport) EnrichDeletePolicy { @@ -51,6 +52,8 @@ type EnrichDeletePolicy func(name string, o ...func(*EnrichDeletePolicyRequest)) type EnrichDeletePolicyRequest struct { Name string + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -96,6 +99,10 @@ func (r EnrichDeletePolicyRequest) Do(providedCtx context.Context, transport Tra 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 EnrichDeletePolicy) WithContext(v context.Context) func(*EnrichDeletePol } } +// WithMasterTimeout - timeout for processing on master node. +func (f EnrichDeletePolicy) WithMasterTimeout(v time.Duration) func(*EnrichDeletePolicyRequest) { + return func(r *EnrichDeletePolicyRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f EnrichDeletePolicy) WithPretty() func(*EnrichDeletePolicyRequest) { return func(r *EnrichDeletePolicyRequest) { 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 49bce41da1..c87bf71daf 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "net/http" "strconv" "strings" + "time" ) func newEnrichExecutePolicyFunc(t Transport) EnrichExecutePolicy { @@ -52,6 +53,7 @@ type EnrichExecutePolicy func(name string, o ...func(*EnrichExecutePolicyRequest type EnrichExecutePolicyRequest struct { Name string + MasterTimeout time.Duration WaitForCompletion *bool Pretty bool @@ -101,6 +103,10 @@ func (r EnrichExecutePolicyRequest) Do(providedCtx context.Context, transport Tr params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.WaitForCompletion != nil { params["wait_for_completion"] = strconv.FormatBool(*r.WaitForCompletion) } @@ -183,6 +189,13 @@ func (f EnrichExecutePolicy) WithContext(v context.Context) func(*EnrichExecuteP } } +// WithMasterTimeout - timeout for processing on master node. +func (f EnrichExecutePolicy) WithMasterTimeout(v time.Duration) func(*EnrichExecutePolicyRequest) { + return func(r *EnrichExecutePolicyRequest) { + r.MasterTimeout = v + } +} + // WithWaitForCompletion - should the request should block until the execution is complete.. func (f EnrichExecutePolicy) WithWaitForCompletion(v bool) func(*EnrichExecutePolicyRequest) { return func(r *EnrichExecutePolicyRequest) { 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 1401c2f25e..335931c0a4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newEnrichGetPolicyFunc(t Transport) EnrichGetPolicy { @@ -51,6 +52,8 @@ type EnrichGetPolicy func(o ...func(*EnrichGetPolicyRequest)) (*Response, error) type EnrichGetPolicyRequest struct { Name []string + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -98,6 +101,10 @@ func (r EnrichGetPolicyRequest) Do(providedCtx context.Context, transport Transp params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -183,6 +190,13 @@ func (f EnrichGetPolicy) WithName(v ...string) func(*EnrichGetPolicyRequest) { } } +// WithMasterTimeout - timeout for processing on master node. +func (f EnrichGetPolicy) WithMasterTimeout(v time.Duration) func(*EnrichGetPolicyRequest) { + return func(r *EnrichGetPolicyRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f EnrichGetPolicy) WithPretty() func(*EnrichGetPolicyRequest) { return func(r *EnrichGetPolicyRequest) { 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 8b1b8b9b3e..5466ca37d1 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "io" "net/http" "strings" + "time" ) func newEnrichPutPolicyFunc(t Transport) EnrichPutPolicy { @@ -54,6 +55,8 @@ type EnrichPutPolicyRequest struct { Name string + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -99,6 +102,10 @@ func (r EnrichPutPolicyRequest) Do(providedCtx context.Context, transport Transp params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -184,6 +191,13 @@ func (f EnrichPutPolicy) WithContext(v context.Context) func(*EnrichPutPolicyReq } } +// WithMasterTimeout - timeout for processing on master node. +func (f EnrichPutPolicy) WithMasterTimeout(v time.Duration) func(*EnrichPutPolicyRequest) { + return func(r *EnrichPutPolicyRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f EnrichPutPolicy) WithPretty() func(*EnrichPutPolicyRequest) { return func(r *EnrichPutPolicyRequest) { 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 6283c9afb4..72ebfbe157 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newEnrichStatsFunc(t Transport) EnrichStats { @@ -49,6 +50,8 @@ type EnrichStats func(o ...func(*EnrichStatsRequest)) (*Response, error) // EnrichStatsRequest configures the Enrich Stats API request. type EnrichStatsRequest struct { + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +89,10 @@ func (r EnrichStatsRequest) Do(providedCtx context.Context, transport Transport) params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -164,6 +171,13 @@ func (f EnrichStats) WithContext(v context.Context) func(*EnrichStatsRequest) { } } +// WithMasterTimeout - timeout for processing on master node. +func (f EnrichStats) WithMasterTimeout(v time.Duration) func(*EnrichStatsRequest) { + return func(r *EnrichStatsRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f EnrichStats) WithPretty() func(*EnrichStatsRequest) { return func(r *EnrichStatsRequest) { 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 5964d6d21f..54f029be53 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b6e2dcd954..5d3450382e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 94da2eb425..dbb2fa63fc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3c2fcc2e7a..0b7a6ea594 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 249b65de41..dd46a7a628 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e665359cb4..a389c2275d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9405e20625..56a4945285 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5596006ec1..69d614d6e9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 85a096dfdc..a059173c59 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 057139de7f..f1becd01c7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7d418e6e42..a8d5cfba4c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 05fb3acf39..cb6ce76038 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a6c8cb684a..d0c7d4cf24 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 00396f352c..0fe22484e7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4ebe7d3a28..394bb45070 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a684146824..f3b39d9b8e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 bb8db09f78..b86c732ba8 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7972e2d811..34c3b0e72c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 83cf478b94..c5ac80ecd5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b45cb5536d..6ee7ea7dba 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.data_streams_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.data_streams_stats.go index 2bc2b029e2..92d1042208 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e6f88cce4a..8a4a5b8567 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.get_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.get_data_stream.go index 8a2b70f5c3..18f32ffb28 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.migrate_to_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.migrate_to_data_stream.go index 306df6f90d..87fda02d7d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.promote_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.promote_data_stream.go index fc51510728..2c727c3ebb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.reload_search_analyzers.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.reload_search_analyzers.go index d471cdd9a3..1d8da80a84 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e50d6d0e19..c9ae2ae114 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 abbb52902c..93d83e61b3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newLicenseDeleteFunc(t Transport) LicenseDelete { @@ -49,6 +50,9 @@ type LicenseDelete func(o ...func(*LicenseDeleteRequest)) (*Response, error) // LicenseDeleteRequest configures the License Delete API request. type LicenseDeleteRequest struct { + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +90,14 @@ func (r LicenseDeleteRequest) Do(providedCtx context.Context, transport 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" } @@ -164,6 +176,20 @@ func (f LicenseDelete) WithContext(v context.Context) func(*LicenseDeleteRequest } } +// WithMasterTimeout - timeout for processing on master node. +func (f LicenseDelete) WithMasterTimeout(v time.Duration) func(*LicenseDeleteRequest) { + return func(r *LicenseDeleteRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgement of update from all nodes in cluster. +func (f LicenseDelete) WithTimeout(v time.Duration) func(*LicenseDeleteRequest) { + return func(r *LicenseDeleteRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f LicenseDelete) WithPretty() func(*LicenseDeleteRequest) { return func(r *LicenseDeleteRequest) { 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 b13c842000..3f85fcaa8e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f51563a73a..6b61df22db 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 328cf1bf88..53fbccca95 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e30f2b2ebf..157dafe6ca 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -25,6 +25,7 @@ import ( "net/http" "strconv" "strings" + "time" ) func newLicensePostFunc(t Transport) LicensePost { @@ -53,7 +54,9 @@ type LicensePost func(o ...func(*LicensePostRequest)) (*Response, error) type LicensePostRequest struct { Body io.Reader - Acknowledge *bool + Acknowledge *bool + MasterTimeout time.Duration + Timeout time.Duration Pretty bool Human bool @@ -96,6 +99,14 @@ func (r LicensePostRequest) Do(providedCtx context.Context, transport Transport) params["acknowledge"] = strconv.FormatBool(*r.Acknowledge) } + 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" } @@ -195,6 +206,20 @@ func (f LicensePost) WithAcknowledge(v bool) func(*LicensePostRequest) { } } +// WithMasterTimeout - timeout for processing on master node. +func (f LicensePost) WithMasterTimeout(v time.Duration) func(*LicensePostRequest) { + return func(r *LicensePostRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgement of update from all nodes in cluster. +func (f LicensePost) WithTimeout(v time.Duration) func(*LicensePostRequest) { + return func(r *LicensePostRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f LicensePost) WithPretty() func(*LicensePostRequest) { return func(r *LicensePostRequest) { 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 dc2aff5a71..d6f6c2158f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "net/http" "strconv" "strings" + "time" ) func newLicensePostStartBasicFunc(t Transport) LicensePostStartBasic { @@ -50,7 +51,9 @@ type LicensePostStartBasic func(o ...func(*LicensePostStartBasicRequest)) (*Resp // LicensePostStartBasicRequest configures the License Post Start Basic API request. type LicensePostStartBasicRequest struct { - Acknowledge *bool + Acknowledge *bool + MasterTimeout time.Duration + Timeout time.Duration Pretty bool Human bool @@ -93,6 +96,14 @@ func (r LicensePostStartBasicRequest) Do(providedCtx context.Context, transport params["acknowledge"] = strconv.FormatBool(*r.Acknowledge) } + 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" } @@ -178,6 +189,20 @@ func (f LicensePostStartBasic) WithAcknowledge(v bool) func(*LicensePostStartBas } } +// WithMasterTimeout - timeout for processing on master node. +func (f LicensePostStartBasic) WithMasterTimeout(v time.Duration) func(*LicensePostStartBasicRequest) { + return func(r *LicensePostStartBasicRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgement of update from all nodes in cluster. +func (f LicensePostStartBasic) WithTimeout(v time.Duration) func(*LicensePostStartBasicRequest) { + return func(r *LicensePostStartBasicRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f LicensePostStartBasic) WithPretty() func(*LicensePostStartBasicRequest) { return func(r *LicensePostStartBasicRequest) { 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 6bd1eb97fb..1c2967d80b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "net/http" "strconv" "strings" + "time" ) func newLicensePostStartTrialFunc(t Transport) LicensePostStartTrial { @@ -50,8 +51,10 @@ type LicensePostStartTrial func(o ...func(*LicensePostStartTrialRequest)) (*Resp // LicensePostStartTrialRequest configures the License Post Start Trial API request. type LicensePostStartTrialRequest struct { - Acknowledge *bool - DocumentType string + Acknowledge *bool + MasterTimeout time.Duration + Timeout time.Duration + DocumentType string Pretty bool Human bool @@ -94,6 +97,14 @@ func (r LicensePostStartTrialRequest) Do(providedCtx context.Context, transport params["acknowledge"] = strconv.FormatBool(*r.Acknowledge) } + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + + if r.Timeout != 0 { + params["timeout"] = formatDuration(r.Timeout) + } + if r.DocumentType != "" { params["type"] = r.DocumentType } @@ -183,6 +194,20 @@ func (f LicensePostStartTrial) WithAcknowledge(v bool) func(*LicensePostStartTri } } +// WithMasterTimeout - timeout for processing on master node. +func (f LicensePostStartTrial) WithMasterTimeout(v time.Duration) func(*LicensePostStartTrialRequest) { + return func(r *LicensePostStartTrialRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgement of update from all nodes in cluster. +func (f LicensePostStartTrial) WithTimeout(v time.Duration) func(*LicensePostStartTrialRequest) { + return func(r *LicensePostStartTrialRequest) { + r.Timeout = v + } +} + // WithDocumentType - the type of trial license to generate (default: "trial"). func (f LicensePostStartTrial) WithDocumentType(v string) func(*LicensePostStartTrialRequest) { return func(r *LicensePostStartTrialRequest) { 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 c7eb3e4849..35e1372e2e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 eba3e555b9..a576c9e431 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 849cfb6490..6432ca21ee 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 372967f688..e789065e13 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4b76a1bcbd..4463595b55 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 df06c2cc8f..8c27b95be9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c2ffde1af3..1041353587 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 65537098b1..f3b36fe166 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 bd090d9c9b..049818542b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4562aab922..da193d0d46 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 63a71a5c7d..a9cedb97d9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2723219297..ef94fc4166 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1f2307c4fc..1c2bac6ea8 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ccd4b6dd72..bff2f28351 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ddfb85c5f3..e434f77740 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d7132ad170..80e769a209 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6632c8de52..1ba3abe721 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d489e8db05..fad6a752fb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1abe93a31b..f140ce7428 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3229ae90a8..c5237d669c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7b76bd03ca..5595dcd136 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a08de4b6db..73ce6983cf 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 860eab832c..8b7c1c7525 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a76d497ff7..97280d8099 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 737b5f0733..a4c5643b9a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d671264466..42b16fdd78 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 87de19fd1e..e526f9d5f5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2207bd8c51..0e21933eda 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9ac0cbb79e..ea07c0e566 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ef68e97116..0d497bd2c7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5c937156bb..e621a11226 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 bee19c5c53..7eada66764 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b16e787ee3..053546b777 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c673814aa3..2e654353b0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 877f5b0c14..06e50f60f4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c596a2bde1..fc9ab71c80 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ba0a801ba8..639ff703e3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6646333883..d546aa2576 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f71ad28324..7209b72bd1 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b49e1d5090..677337922a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2c3f394b1b..3d34418fa7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 57093fe798..3b028f2901 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a73262bfdc..9547ecd370 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d506053ce6..40800d943b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b9b94dd1bc..9846c64d91 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ea32e94f78..0d6970ca09 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 35b6d75e7f..6ba4b27519 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 725e8906b1..b1681584e3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 840c15dd0e..11116f82a8 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 475cb00feb..bb7c032f5c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 925f2d133e..93cc5aedd6 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0aae0d4289..bd6105ad8d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a396c30b03..f89de7a8a0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1d837e154f..a89ba16aed 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4b5a8d1e65..fd2a1baa4f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9209a584f9..933b7426bc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 944d7d310f..6a2bf3bfd4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8cb4e5fdfd..189ed45397 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e1a1f7a00a..4152cb35dd 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 608870098d..a6fd32adcb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 aadde2c5c2..effcf41842 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4458e35cf6..de57bcb3ca 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 343944f0ed..332f9a8e76 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3cfb610e91..40928d798e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1e6b6eac4f..5512909a26 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1da322db37..f7d4bdf239 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d395539eba..3122db56de 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 40815ffa67..b6101cb0d9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 63de96e2a6..d97c85755d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1bb2278581..299383c030 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 228239352e..23ecd1f828 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 fa847fb4d2..2f052fef78 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 54e5440487..b2dec0e733 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6dad1669f0..23eaca3995 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f53560c0d5..d700fa1b42 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 fc51ea4340..91998bc907 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,12 +23,13 @@ import ( "context" "io" "net/http" + "strconv" "strings" ) func newMLUpdateTrainedModelDeploymentFunc(t Transport) MLUpdateTrainedModelDeployment { - return func(body io.Reader, model_id string, o ...func(*MLUpdateTrainedModelDeploymentRequest)) (*Response, error) { - var r = MLUpdateTrainedModelDeploymentRequest{Body: body, ModelID: model_id} + return func(model_id string, o ...func(*MLUpdateTrainedModelDeploymentRequest)) (*Response, error) { + var r = MLUpdateTrainedModelDeploymentRequest{ModelID: model_id} for _, f := range o { f(&r) } @@ -45,10 +46,8 @@ func newMLUpdateTrainedModelDeploymentFunc(t Transport) MLUpdateTrainedModelDepl // MLUpdateTrainedModelDeployment - Updates certain properties of trained model deployment. // -// This API is beta. -// // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html. -type MLUpdateTrainedModelDeployment func(body io.Reader, model_id string, o ...func(*MLUpdateTrainedModelDeploymentRequest)) (*Response, error) +type MLUpdateTrainedModelDeployment func(model_id string, o ...func(*MLUpdateTrainedModelDeploymentRequest)) (*Response, error) // MLUpdateTrainedModelDeploymentRequest configures the ML Update Trained Model Deployment API request. type MLUpdateTrainedModelDeploymentRequest struct { @@ -56,6 +55,8 @@ type MLUpdateTrainedModelDeploymentRequest struct { ModelID string + NumberOfAllocations *int + Pretty bool Human bool ErrorTrace bool @@ -105,6 +106,10 @@ func (r MLUpdateTrainedModelDeploymentRequest) Do(providedCtx context.Context, t params = make(map[string]string) + if r.NumberOfAllocations != nil { + params["number_of_allocations"] = strconv.FormatInt(int64(*r.NumberOfAllocations), 10) + } + if r.Pretty { params["pretty"] = "true" } @@ -190,6 +195,20 @@ func (f MLUpdateTrainedModelDeployment) WithContext(v context.Context) func(*MLU } } +// WithBody - The updated trained model deployment settings. +func (f MLUpdateTrainedModelDeployment) WithBody(v io.Reader) func(*MLUpdateTrainedModelDeploymentRequest) { + return func(r *MLUpdateTrainedModelDeploymentRequest) { + r.Body = v + } +} + +// WithNumberOfAllocations - update the model deployment to this number of allocations.. +func (f MLUpdateTrainedModelDeployment) WithNumberOfAllocations(v int) func(*MLUpdateTrainedModelDeploymentRequest) { + return func(r *MLUpdateTrainedModelDeploymentRequest) { + r.NumberOfAllocations = &v + } +} + // WithPretty makes the response body pretty-printed. func (f MLUpdateTrainedModelDeployment) WithPretty() func(*MLUpdateTrainedModelDeploymentRequest) { return func(r *MLUpdateTrainedModelDeploymentRequest) { 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 d143298b22..4b8eda6cca 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7ecf3581f3..c37b8bfc54 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e00686a755..8319e9b7d0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1b8a7a9161..e118604c85 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4686175d83..1a655771c4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 65192cd823..1a32904ad3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3cbda6e7b7..e0a42cd65c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 58948907ad..037dd62d0f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 47764467d3..38d827dd04 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c20ec1276b..3c45fd0138 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8e0bd10943..62242b5f7b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b8503737c2..524c36bcc0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 794764e4ba..2a4ca057c7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 46bbbe00b2..47cad52c6b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3c2b550564..d9c7f301d9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 51d7a8f5b9..2c69b3c1be 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 20fc6cffaf..5f8c046f15 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5a664764eb..2ea0c995e0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e7f8976d8b..e1b41309eb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 08b89392f5..ed35cc9754 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..ca3cc4e0a4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_delete_role.go @@ -0,0 +1,238 @@ +// 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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newSecurityBulkDeleteRoleFunc(t Transport) SecurityBulkDeleteRole { + return func(body io.Reader, o ...func(*SecurityBulkDeleteRoleRequest)) (*Response, error) { + var r = SecurityBulkDeleteRoleRequest{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 ------------------------------------------------------- + +// SecurityBulkDeleteRole - Bulk delete roles in the native realm. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-delete-role.html. +type SecurityBulkDeleteRole func(body io.Reader, o ...func(*SecurityBulkDeleteRoleRequest)) (*Response, error) + +// SecurityBulkDeleteRoleRequest configures the Security Bulk Delete Role API request. +type SecurityBulkDeleteRoleRequest struct { + Body io.Reader + + Refresh 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 SecurityBulkDeleteRoleRequest) 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, "security.bulk_delete_role") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "DELETE" + + path.Grow(7 + len("/_security/role")) + path.WriteString("http://") + path.WriteString("/_security/role") + + params = make(map[string]string) + + if r.Refresh != "" { + params["refresh"] = r.Refresh + } + + 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, "security.bulk_delete_role") + if reader := instrument.RecordRequestBody(ctx, "security.bulk_delete_role", r.Body); reader != nil { + req.Body = reader + } + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "security.bulk_delete_role") + } + 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 SecurityBulkDeleteRole) WithContext(v context.Context) func(*SecurityBulkDeleteRoleRequest) { + return func(r *SecurityBulkDeleteRoleRequest) { + r.ctx = v + } +} + +// WithRefresh - if `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.. +func (f SecurityBulkDeleteRole) WithRefresh(v string) func(*SecurityBulkDeleteRoleRequest) { + return func(r *SecurityBulkDeleteRoleRequest) { + r.Refresh = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f SecurityBulkDeleteRole) WithPretty() func(*SecurityBulkDeleteRoleRequest) { + return func(r *SecurityBulkDeleteRoleRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f SecurityBulkDeleteRole) WithHuman() func(*SecurityBulkDeleteRoleRequest) { + return func(r *SecurityBulkDeleteRoleRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f SecurityBulkDeleteRole) WithErrorTrace() func(*SecurityBulkDeleteRoleRequest) { + return func(r *SecurityBulkDeleteRoleRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f SecurityBulkDeleteRole) WithFilterPath(v ...string) func(*SecurityBulkDeleteRoleRequest) { + return func(r *SecurityBulkDeleteRoleRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f SecurityBulkDeleteRole) WithHeader(h map[string]string) func(*SecurityBulkDeleteRoleRequest) { + return func(r *SecurityBulkDeleteRoleRequest) { + 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 SecurityBulkDeleteRole) WithOpaqueID(s string) func(*SecurityBulkDeleteRoleRequest) { + return func(r *SecurityBulkDeleteRoleRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_put_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_put_role.go new file mode 100644 index 0000000000..1d410ccf38 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_put_role.go @@ -0,0 +1,238 @@ +// 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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newSecurityBulkPutRoleFunc(t Transport) SecurityBulkPutRole { + return func(body io.Reader, o ...func(*SecurityBulkPutRoleRequest)) (*Response, error) { + var r = SecurityBulkPutRoleRequest{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 ------------------------------------------------------- + +// SecurityBulkPutRole - Bulk adds and updates roles in the native realm. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-put-role.html. +type SecurityBulkPutRole func(body io.Reader, o ...func(*SecurityBulkPutRoleRequest)) (*Response, error) + +// SecurityBulkPutRoleRequest configures the Security Bulk Put Role API request. +type SecurityBulkPutRoleRequest struct { + Body io.Reader + + Refresh 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 SecurityBulkPutRoleRequest) 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, "security.bulk_put_role") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "POST" + + path.Grow(7 + len("/_security/role")) + path.WriteString("http://") + path.WriteString("/_security/role") + + params = make(map[string]string) + + if r.Refresh != "" { + params["refresh"] = r.Refresh + } + + 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, "security.bulk_put_role") + if reader := instrument.RecordRequestBody(ctx, "security.bulk_put_role", r.Body); reader != nil { + req.Body = reader + } + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "security.bulk_put_role") + } + 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 SecurityBulkPutRole) WithContext(v context.Context) func(*SecurityBulkPutRoleRequest) { + return func(r *SecurityBulkPutRoleRequest) { + r.ctx = v + } +} + +// WithRefresh - if `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.. +func (f SecurityBulkPutRole) WithRefresh(v string) func(*SecurityBulkPutRoleRequest) { + return func(r *SecurityBulkPutRoleRequest) { + r.Refresh = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f SecurityBulkPutRole) WithPretty() func(*SecurityBulkPutRoleRequest) { + return func(r *SecurityBulkPutRoleRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f SecurityBulkPutRole) WithHuman() func(*SecurityBulkPutRoleRequest) { + return func(r *SecurityBulkPutRoleRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f SecurityBulkPutRole) WithErrorTrace() func(*SecurityBulkPutRoleRequest) { + return func(r *SecurityBulkPutRoleRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f SecurityBulkPutRole) WithFilterPath(v ...string) func(*SecurityBulkPutRoleRequest) { + return func(r *SecurityBulkPutRoleRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f SecurityBulkPutRole) WithHeader(h map[string]string) func(*SecurityBulkPutRoleRequest) { + return func(r *SecurityBulkPutRoleRequest) { + 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 SecurityBulkPutRole) WithOpaqueID(s string) func(*SecurityBulkPutRoleRequest) { + return func(r *SecurityBulkPutRoleRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_update_api_keys.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_update_api_keys.go index 16248fbd81..f69330cda4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a8595f4615..37ad40309b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 62e0c7eaef..297abf3268 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9e167dc9d2..ef16182315 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c23acb9456..f5b8fad737 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 415ff4b535..9bac0d9a40 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 aedf4049e0..8e983af4ef 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6fce608d95..0283914d77 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c01210e2f2..626e9625ac 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_service_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_service_token.go index d64c63ee65..5dad9acbc4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 40d73f0a64..75c025d249 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 951d68c534..9c883ec9cd 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5461df38da..ca363013a9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9b7ee6e079..86458a8876 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 dd2478a6d0..c00b5e536a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 93a443e592..327438caea 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3689b7316c..d32cb442d9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 cfd28d8af0..a61f9cdd4a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4f183a812e..b77ea7e711 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9a9559eef1..8d22411504 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b3ccaa7833..43f32e3b2c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 82095354ce..32c2df2479 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 150e358a2a..9031a8b15a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2166306581..6c92241fa7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 a99ab5d669..c25cc8a7be 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c0299e0e70..42d4756e56 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f8d6dd6b1e..d3373e45a3 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e44d76cef2..f84c8a4122 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 305762deec..6646256842 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newSecurityGetSettingsFunc(t Transport) SecurityGetSettings { @@ -49,6 +50,8 @@ type SecurityGetSettings func(o ...func(*SecurityGetSettingsRequest)) (*Response // SecurityGetSettingsRequest configures the Security Get Settings API request. type SecurityGetSettingsRequest struct { + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +89,10 @@ func (r SecurityGetSettingsRequest) Do(providedCtx context.Context, transport Tr params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -164,6 +171,13 @@ func (f SecurityGetSettings) WithContext(v context.Context) func(*SecurityGetSet } } +// WithMasterTimeout - timeout for connection to master. +func (f SecurityGetSettings) WithMasterTimeout(v time.Duration) func(*SecurityGetSettingsRequest) { + return func(r *SecurityGetSettingsRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f SecurityGetSettings) WithPretty() func(*SecurityGetSettingsRequest) { return func(r *SecurityGetSettingsRequest) { 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 d04994024a..694b9f5bbc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 cad6440667..f77081c002 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 424eba52c3..991d0a1254 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9fdede7bb2..41a1331abc 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6e9994a760..6fa939574a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2d619da2be..3556bdb063 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 dee1e51d0a..eb89dafda5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b04072abe7..927ad263f5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5616273564..16c492fac5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 1c740bdb5b..a41284c811 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 81fa6e28a1..7fb1294bf6 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ddec3997bc..104079f498 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2d955484c0..23c6303905 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -85,9 +85,9 @@ func (r SecurityPutPrivilegesRequest) Do(providedCtx context.Context, transport method = "PUT" - path.Grow(7 + len("/_security/privilege/")) + path.Grow(7 + len("/_security/privilege")) path.WriteString("http://") - path.WriteString("/_security/privilege/") + path.WriteString("/_security/privilege") params = make(map[string]string) 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 87ca84e05e..ad81b7eb12 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f9313cee47..3bd2bd4dd1 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 90ae9013c9..a155afb603 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 cee3da6d0b..fa26fce632 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..8c35accc8e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_role.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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newSecurityQueryRoleFunc(t Transport) SecurityQueryRole { + return func(o ...func(*SecurityQueryRoleRequest)) (*Response, error) { + var r = SecurityQueryRoleRequest{} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// SecurityQueryRole - Retrieves information for Roles using a subset of query DSL +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-role.html. +type SecurityQueryRole func(o ...func(*SecurityQueryRoleRequest)) (*Response, error) + +// SecurityQueryRoleRequest configures the Security Query Role API request. +type SecurityQueryRoleRequest struct { + Body io.Reader + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r SecurityQueryRoleRequest) 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, "security.query_role") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "POST" + + path.Grow(7 + len("/_security/_query/role")) + path.WriteString("http://") + path.WriteString("/_security/_query/role") + + 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, "security.query_role") + if reader := instrument.RecordRequestBody(ctx, "security.query_role", r.Body); reader != nil { + req.Body = reader + } + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "security.query_role") + } + 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 SecurityQueryRole) WithContext(v context.Context) func(*SecurityQueryRoleRequest) { + return func(r *SecurityQueryRoleRequest) { + r.ctx = v + } +} + +// WithBody - From, size, query, sort and search_after. +func (f SecurityQueryRole) WithBody(v io.Reader) func(*SecurityQueryRoleRequest) { + return func(r *SecurityQueryRoleRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f SecurityQueryRole) WithPretty() func(*SecurityQueryRoleRequest) { + return func(r *SecurityQueryRoleRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f SecurityQueryRole) WithHuman() func(*SecurityQueryRoleRequest) { + return func(r *SecurityQueryRoleRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f SecurityQueryRole) WithErrorTrace() func(*SecurityQueryRoleRequest) { + return func(r *SecurityQueryRoleRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f SecurityQueryRole) WithFilterPath(v ...string) func(*SecurityQueryRoleRequest) { + return func(r *SecurityQueryRoleRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f SecurityQueryRole) WithHeader(h map[string]string) func(*SecurityQueryRoleRequest) { + return func(r *SecurityQueryRoleRequest) { + 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 SecurityQueryRole) WithOpaqueID(s string) func(*SecurityQueryRoleRequest) { + return func(r *SecurityQueryRoleRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_user.go index 99746bf7c1..aa31295a85 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 ba4d41fba5..ec89dc5249 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4c62869ffa..78c887bdd7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7941e86e8b..7907abe8e0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5f7b6e934d..7fa66cd55c 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3cb5e33751..06cf0b482e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 434b73ca79..99bd572179 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 59e065d557..60203d7821 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 175fb4b9d2..a9f39c49b9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 46f405f692..acce0439fa 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_settings.go index 380fe76f2c..672ee890ab 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "io" "net/http" "strings" + "time" ) func newSecurityUpdateSettingsFunc(t Transport) SecurityUpdateSettings { @@ -52,6 +53,9 @@ type SecurityUpdateSettings func(body io.Reader, o ...func(*SecurityUpdateSettin type SecurityUpdateSettingsRequest struct { Body io.Reader + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -89,6 +93,14 @@ func (r SecurityUpdateSettingsRequest) Do(providedCtx context.Context, transport params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + + if r.Timeout != 0 { + params["timeout"] = formatDuration(r.Timeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -174,6 +186,20 @@ func (f SecurityUpdateSettings) WithContext(v context.Context) func(*SecurityUpd } } +// WithMasterTimeout - timeout for connection to master. +func (f SecurityUpdateSettings) WithMasterTimeout(v time.Duration) func(*SecurityUpdateSettingsRequest) { + return func(r *SecurityUpdateSettingsRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgements from all nodes. +func (f SecurityUpdateSettings) WithTimeout(v time.Duration) func(*SecurityUpdateSettingsRequest) { + return func(r *SecurityUpdateSettingsRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f SecurityUpdateSettings) WithPretty() func(*SecurityUpdateSettingsRequest) { return func(r *SecurityUpdateSettingsRequest) { 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 4b387d5a11..699ea576a6 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4065375fa6..8a0f9c4e76 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8075665e5c..e01db94a16 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f3c3cc3c43..57f67aa388 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 c5352af2d1..b6bbe74707 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 266b886170..7f5dbe6151 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 2bb8dab6fe..5698accf81 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 d0af4bec3a..bf9cc75ed2 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0a96dcfa03..9e3d5a4f80 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newSlmStartFunc(t Transport) SlmStart { @@ -49,6 +50,9 @@ type SlmStart func(o ...func(*SlmStartRequest)) (*Response, error) // SlmStartRequest configures the Slm Start API request. type SlmStartRequest struct { + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +90,14 @@ func (r SlmStartRequest) Do(providedCtx context.Context, transport Transport) (* params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + + if r.Timeout != 0 { + params["timeout"] = formatDuration(r.Timeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -164,6 +176,20 @@ func (f SlmStart) WithContext(v context.Context) func(*SlmStartRequest) { } } +// WithMasterTimeout - timeout for processing on master node. +func (f SlmStart) WithMasterTimeout(v time.Duration) func(*SlmStartRequest) { + return func(r *SlmStartRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgement of update from all nodes in cluster. +func (f SlmStart) WithTimeout(v time.Duration) func(*SlmStartRequest) { + return func(r *SlmStartRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f SlmStart) WithPretty() func(*SlmStartRequest) { return func(r *SlmStartRequest) { 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 512e139da2..1275af8398 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newSlmStopFunc(t Transport) SlmStop { @@ -49,6 +50,9 @@ type SlmStop func(o ...func(*SlmStopRequest)) (*Response, error) // SlmStopRequest configures the Slm Stop API request. type SlmStopRequest struct { + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +90,14 @@ func (r SlmStopRequest) Do(providedCtx context.Context, transport Transport) (*R params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + + if r.Timeout != 0 { + params["timeout"] = formatDuration(r.Timeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -164,6 +176,20 @@ func (f SlmStop) WithContext(v context.Context) func(*SlmStopRequest) { } } +// WithMasterTimeout - timeout for processing on master node. +func (f SlmStop) WithMasterTimeout(v time.Duration) func(*SlmStopRequest) { + return func(r *SlmStopRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - timeout for acknowledgement of update from all nodes in cluster. +func (f SlmStop) WithTimeout(v time.Duration) func(*SlmStopRequest) { + return func(r *SlmStopRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f SlmStop) WithPretty() func(*SlmStopRequest) { return func(r *SlmStopRequest) { 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 647d8d47fd..675be47472 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 81596101b7..f3578c3cbe 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 7e8e14a7e8..5cfa1d7701 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 dc77e73f65..88e9dae041 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 f80ab0d02d..050afc16ab 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 72bd212ced..0ca4ed9d1e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 852121348d..c20d3bc296 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 277e58a985..3c9788c94a 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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{Field: field, Index: index} + var r = TextStructureFindFieldStructureRequest{Index: index, Field: field} for _, f := range o { f(&r) } @@ -47,7 +47,7 @@ func newTextStructureFindFieldStructureFunc(t Transport) TextStructureFindFieldS // TextStructureFindFieldStructure - Finds the structure of a text field in an index. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html. -type TextStructureFindFieldStructure func(field string, index string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error) +type TextStructureFindFieldStructure func(index string, field string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error) // TextStructureFindFieldStructureRequest configures the Text Structure Find Field Structure API request. type TextStructureFindFieldStructureRequest struct { 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 397c29aad4..d2d30b3b9d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9862bb680f..1bebb32da9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 93b2ce78db..03db27f3ee 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8e6d94a484..96864b4fce 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 new file mode 100644 index 0000000000..9f4b6519e6 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_node_stats.go @@ -0,0 +1,215 @@ +// 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.15.0: DO NOT EDIT + +package esapi + +import ( + "context" + "net/http" + "strings" +) + +func newTransformGetNodeStatsFunc(t Transport) TransformGetNodeStats { + return func(o ...func(*TransformGetNodeStatsRequest)) (*Response, error) { + var r = TransformGetNodeStatsRequest{} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// TransformGetNodeStats - Retrieves transform usage information for transform nodes. +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-node-stats.html. +type TransformGetNodeStats func(o ...func(*TransformGetNodeStatsRequest)) (*Response, error) + +// TransformGetNodeStatsRequest configures the Transform Get Node Stats API request. +type TransformGetNodeStatsRequest struct { + 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 TransformGetNodeStatsRequest) 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, "transform.get_node_stats") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "GET" + + path.Grow(7 + len("/_transform/_node_stats")) + path.WriteString("http://") + path.WriteString("/_transform/_node_stats") + + 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, "transform.get_node_stats") + } + res, err := transport.Perform(req) + if instrument, ok := r.instrument.(Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "transform.get_node_stats") + } + 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 TransformGetNodeStats) WithContext(v context.Context) func(*TransformGetNodeStatsRequest) { + return func(r *TransformGetNodeStatsRequest) { + r.ctx = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f TransformGetNodeStats) WithPretty() func(*TransformGetNodeStatsRequest) { + return func(r *TransformGetNodeStatsRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f TransformGetNodeStats) WithHuman() func(*TransformGetNodeStatsRequest) { + return func(r *TransformGetNodeStatsRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f TransformGetNodeStats) WithErrorTrace() func(*TransformGetNodeStatsRequest) { + return func(r *TransformGetNodeStatsRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f TransformGetNodeStats) WithFilterPath(v ...string) func(*TransformGetNodeStatsRequest) { + return func(r *TransformGetNodeStatsRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f TransformGetNodeStats) WithHeader(h map[string]string) func(*TransformGetNodeStatsRequest) { + return func(r *TransformGetNodeStatsRequest) { + 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 TransformGetNodeStats) WithOpaqueID(s string) func(*TransformGetNodeStatsRequest) { + return func(r *TransformGetNodeStatsRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform.go index 58c370390f..ad1a8f738f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 179d59180e..8f523fc9a6 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5e48c742cb..ea7a0622e1 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 cff70888b8..6b4efd5f65 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 43278dc9bc..a64e0d3cdb 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 4031fc5c5e..aaf069cf77 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 6419026f6c..e7a412d4a2 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 24c4097914..6a56235de0 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9e40e9f5c7..919bd49888 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 0e89ce10a5..f3e1a005c9 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 94b723f4c6..15e6cde81d 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 e6cfa58c65..eae2a9a6a5 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 217992055d..497fa13b6e 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 9194f80d80..1cc889f991 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 afddb02848..5c6277dc03 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 3a55b46d1e..934d875af7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newWatcherGetSettingsFunc(t Transport) WatcherGetSettings { @@ -49,6 +50,8 @@ type WatcherGetSettings func(o ...func(*WatcherGetSettingsRequest)) (*Response, // WatcherGetSettingsRequest configures the Watcher Get Settings API request. type WatcherGetSettingsRequest struct { + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +89,10 @@ func (r WatcherGetSettingsRequest) Do(providedCtx context.Context, transport Tra params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -164,6 +171,13 @@ func (f WatcherGetSettings) WithContext(v context.Context) func(*WatcherGetSetti } } +// WithMasterTimeout - specify timeout for connection to master. +func (f WatcherGetSettings) WithMasterTimeout(v time.Duration) func(*WatcherGetSettingsRequest) { + return func(r *WatcherGetSettingsRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f WatcherGetSettings) WithPretty() func(*WatcherGetSettingsRequest) { return func(r *WatcherGetSettingsRequest) { 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 b831ac6d2d..c98c963e60 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 b5af1bebae..c2089be98b 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 18d069d092..f804c7d3d4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8bc9025e6c..ea82cffdc7 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newWatcherStartFunc(t Transport) WatcherStart { @@ -49,6 +50,8 @@ type WatcherStart func(o ...func(*WatcherStartRequest)) (*Response, error) // WatcherStartRequest configures the Watcher Start API request. type WatcherStartRequest struct { + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +89,10 @@ func (r WatcherStartRequest) Do(providedCtx context.Context, transport Transport params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -164,6 +171,13 @@ func (f WatcherStart) WithContext(v context.Context) func(*WatcherStartRequest) } } +// WithMasterTimeout - specify timeout for connection to master. +func (f WatcherStart) WithMasterTimeout(v time.Duration) func(*WatcherStartRequest) { + return func(r *WatcherStartRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f WatcherStart) WithPretty() func(*WatcherStartRequest) { return func(r *WatcherStartRequest) { 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 86d60e2b83..99534c64c4 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 8db72d3e27..caa1dc74ff 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -23,6 +23,7 @@ import ( "context" "net/http" "strings" + "time" ) func newWatcherStopFunc(t Transport) WatcherStop { @@ -49,6 +50,8 @@ type WatcherStop func(o ...func(*WatcherStopRequest)) (*Response, error) // WatcherStopRequest configures the Watcher Stop API request. type WatcherStopRequest struct { + MasterTimeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -86,6 +89,10 @@ func (r WatcherStopRequest) Do(providedCtx context.Context, transport Transport) params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -164,6 +171,13 @@ func (f WatcherStop) WithContext(v context.Context) func(*WatcherStopRequest) { } } +// WithMasterTimeout - specify timeout for connection to master. +func (f WatcherStop) WithMasterTimeout(v time.Duration) func(*WatcherStopRequest) { + return func(r *WatcherStopRequest) { + r.MasterTimeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f WatcherStop) WithPretty() func(*WatcherStopRequest) { return func(r *WatcherStopRequest) { 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 824473b910..c8a2e5fb21 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi @@ -24,6 +24,7 @@ import ( "io" "net/http" "strings" + "time" ) func newWatcherUpdateSettingsFunc(t Transport) WatcherUpdateSettings { @@ -52,6 +53,9 @@ type WatcherUpdateSettings func(body io.Reader, o ...func(*WatcherUpdateSettings type WatcherUpdateSettingsRequest struct { Body io.Reader + MasterTimeout time.Duration + Timeout time.Duration + Pretty bool Human bool ErrorTrace bool @@ -89,6 +93,14 @@ func (r WatcherUpdateSettingsRequest) Do(providedCtx context.Context, transport params = make(map[string]string) + if r.MasterTimeout != 0 { + params["master_timeout"] = formatDuration(r.MasterTimeout) + } + + if r.Timeout != 0 { + params["timeout"] = formatDuration(r.Timeout) + } + if r.Pretty { params["pretty"] = "true" } @@ -174,6 +186,20 @@ func (f WatcherUpdateSettings) WithContext(v context.Context) func(*WatcherUpdat } } +// WithMasterTimeout - specify timeout for connection to master. +func (f WatcherUpdateSettings) WithMasterTimeout(v time.Duration) func(*WatcherUpdateSettingsRequest) { + return func(r *WatcherUpdateSettingsRequest) { + r.MasterTimeout = v + } +} + +// WithTimeout - specify timeout for waiting for acknowledgement from all nodes. +func (f WatcherUpdateSettings) WithTimeout(v time.Duration) func(*WatcherUpdateSettingsRequest) { + return func(r *WatcherUpdateSettingsRequest) { + r.Timeout = v + } +} + // WithPretty makes the response body pretty-printed. func (f WatcherUpdateSettings) WithPretty() func(*WatcherUpdateSettingsRequest) { return func(r *WatcherUpdateSettingsRequest) { 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 cdabb4b93a..4cb3a0e41f 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.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 5f39648cb8..6519295e40 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.14.0: DO NOT EDIT +// Code generated from specification version 8.15.0: DO NOT EDIT package esapi diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/doc.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/doc.go index 73d4788c4e..d573b88b46 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/doc.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/doc.go @@ -73,7 +73,7 @@ It has a minor overhead compared to using a struct directly; refer to the esapi_benchmark_test.go suite for concrete numbers. See the documentation for each API function or struct at -https://godoc.org/github.com/elastic/go-elasticsearch, +https://pkg.go.dev/github.com/elastic/go-elasticsearch, or locally by: go doc github.com/elastic/go-elasticsearch/v8/esapi Index 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 b038c2a2cc..2a607e5ca8 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.14.0" +const Client = "8.15.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 87292a6790..8dad1e538f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package typedapi @@ -30,6 +30,7 @@ import ( autoscaling_get_autoscaling_capacity "github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity" autoscaling_get_autoscaling_policy "github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy" autoscaling_put_autoscaling_policy "github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy" + capabilities "github.com/elastic/go-elasticsearch/v8/typedapi/capabilities" cat_aliases "github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases" cat_allocation "github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation" cat_component_templates "github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates" @@ -85,6 +86,32 @@ import ( cluster_reroute "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute" cluster_state "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state" cluster_stats "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats" + connector_check_in "github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin" + connector_delete "github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete" + connector_get "github.com/elastic/go-elasticsearch/v8/typedapi/connector/get" + connector_last_sync "github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync" + connector_list "github.com/elastic/go-elasticsearch/v8/typedapi/connector/list" + connector_post "github.com/elastic/go-elasticsearch/v8/typedapi/connector/post" + connector_put "github.com/elastic/go-elasticsearch/v8/typedapi/connector/put" + connector_secret_post "github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost" + connector_sync_job_cancel "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel" + connector_sync_job_delete "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete" + connector_sync_job_get "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget" + connector_sync_job_list "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist" + connector_sync_job_post "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost" + connector_update_active_filtering "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering" + connector_update_api_key_id "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid" + connector_update_configuration "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration" + connector_update_error "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror" + connector_update_filtering "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering" + connector_update_filtering_validation "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation" + connector_update_index_name "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname" + connector_update_name "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename" + connector_update_native "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative" + connector_update_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline" + connector_update_scheduling "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling" + connector_update_service_type "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype" + connector_update_status "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus" core_bulk "github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk" core_clear_scroll "github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll" core_close_point_in_time "github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime" @@ -141,6 +168,7 @@ import ( eql_get "github.com/elastic/go-elasticsearch/v8/typedapi/eql/get" eql_get_status "github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus" eql_search "github.com/elastic/go-elasticsearch/v8/typedapi/eql/search" + esql_async_query "github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery" esql_query "github.com/elastic/go-elasticsearch/v8/typedapi/esql/query" features_get_features "github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures" features_reset_features "github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures" @@ -219,10 +247,10 @@ import ( indices_unfreeze "github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze" indices_update_aliases "github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases" indices_validate_query "github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery" - inference_delete_model "github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel" - inference_get_model "github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel" + inference_delete "github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete" + inference_get "github.com/elastic/go-elasticsearch/v8/typedapi/inference/get" inference_inference "github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference" - inference_put_model "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel" + inference_put "github.com/elastic/go-elasticsearch/v8/typedapi/inference/put" 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_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline" @@ -323,10 +351,17 @@ import ( nodes_reload_secure_settings "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings" nodes_stats "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats" nodes_usage "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage" - query_ruleset_delete "github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete" - query_ruleset_get "github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get" - query_ruleset_list "github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list" - query_ruleset_put "github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put" + profiling_flamegraph "github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph" + profiling_stacktraces "github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces" + profiling_status "github.com/elastic/go-elasticsearch/v8/typedapi/profiling/status" + profiling_topn_functions "github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions" + query_rules_delete_rule "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule" + query_rules_delete_ruleset "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset" + query_rules_get_rule "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule" + query_rules_get_ruleset "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset" + 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" 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" @@ -349,6 +384,8 @@ import ( search_application_search "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search" security_activate_user_profile "github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile" security_authenticate "github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate" + security_bulk_delete_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole" + security_bulk_put_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole" security_bulk_update_api_keys "github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkupdateapikeys" security_change_password "github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword" security_clear_api_key_cache "github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache" @@ -395,6 +432,8 @@ import ( security_put_role_mapping "github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping" security_put_user "github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser" security_query_api_keys "github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys" + security_query_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole" + security_query_user "github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser" security_saml_authenticate "github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate" security_saml_complete_logout "github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout" security_saml_invalidate "github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate" @@ -445,9 +484,12 @@ import ( tasks_cancel "github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel" tasks_get "github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get" tasks_list "github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list" + text_structure_find_field_structure "github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findfieldstructure" + text_structure_find_message_structure "github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure" text_structure_find_structure "github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure" text_structure_test_grok_pattern "github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern" transform_delete_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform" + transform_get_node_stats "github.com/elastic/go-elasticsearch/v8/typedapi/transform/getnodestats" transform_get_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform" transform_get_transform_stats "github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats" transform_preview_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform" @@ -476,19 +518,40 @@ import ( ) type AsyncSearch struct { - // Deletes an async search by ID. If the search is still running, the search - // request will be cancelled. Otherwise, the saved search results are deleted. + // Deletes an async search by identifier. + // If the search is still running, the search request will be 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 + // the original search request; users that have the `cancel_task` cluster + // 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 ID. + // its identifier. + // 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 - // ID. + // 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 - // Executes a search request asynchronously. + // Runs a search request asynchronously. + // 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. + // 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 Submit async_search_submit.NewSubmit } @@ -513,91 +576,224 @@ type Autoscaling struct { PutAutoscalingPolicy autoscaling_put_autoscaling_policy.NewPutAutoscalingPolicy } +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 + Capabilities capabilities.NewCapabilities +} + type Cat struct { - // Shows information about currently configured aliases to indices including - // filter and routing infos. + // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html Aliases cat_aliases.NewAliases - // Provides a snapshot of how many shards are allocated to each data node and - // how much disk space they are using. + // Provides a snapshot of the number of shards allocated to each data node and + // their disk space. + // IMPORTANT: cat APIs are only intended for human consumption using the command + // 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 - // Returns information about existing component_templates 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. + // 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 - // Provides quick access to the document count of the entire cluster, or - // individual indices. + // 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. + // 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 Count cat_count.NewCount - // Shows how much heap memory is currently being used by fielddata on every data - // node in the cluster. + // Returns the amount of heap memory currently used by the field data cache on + // every data node in the cluster. + // 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 nodes stats API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-fielddata.html Fielddata cat_fielddata.NewFielddata - // Returns a concise representation of the cluster health. + // 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 + // line or Kibana console. + // They are not intended for use by applications. For application consumption, + // use the cluster health API. + // This API is often used to check malfunctioning clusters. + // To help you track cluster health alongside log files and alerting systems, + // the API returns timestamps in two formats: + // `HH:MM:SS`, which is human-readable but includes no date information; + // `Unix epoch time`, which is machine-sortable and includes date information. + // The latter format is useful for cluster recoveries that take multiple days. + // You can use the cat health API to verify cluster health across multiple + // nodes. + // You also can use the API to track the recovery of a large cluster over a + // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html Help cat_help.NewHelp - // Returns information about indices: number of primaries and replicas, document - // counts, disk size, ... + // 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. + // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html Indices cat_indices.NewIndices - // Returns information about the master node. + // Returns information about the master node, including the ID, bound IP + // address, and name. + // 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 nodes info API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-master.html Master cat_master.NewMaster - // Gets configuration and usage information about 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 + // 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 - // Gets configuration and usage information about 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 + // 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 - // Gets configuration and usage information about 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 + // 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 - // Gets configuration and usage information about inference trained models. + // Returns configuration and usage information about inference trained models. + // + // IMPORTANT: 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 MlTrainedModels cat_ml_trained_models.NewMlTrainedModels // Returns information about custom node attributes. + // 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 nodes info API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodeattrs.html Nodeattrs cat_nodeattrs.NewNodeattrs - // Returns basic statistics about performance of cluster nodes. + // Returns information about the nodes in a cluster. + // 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 nodes info API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodes.html Nodes cat_nodes.NewNodes - // Returns a concise representation of the cluster pending tasks. + // Returns cluster-level changes that have not yet been executed. + // 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 pending cluster tasks API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-pending-tasks.html PendingTasks cat_pending_tasks.NewPendingTasks - // Returns information about installed plugins across nodes node. + // Returns a list of plugins running on each node of a cluster. + // 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 nodes info API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html Plugins cat_plugins.NewPlugins - // Returns information about index shard recoveries, both on-going completed. + // Returns information about ongoing and completed shard recoveries. + // Shard recovery is the process of initializing a shard copy, such as restoring + // a primary shard from a snapshot or syncing a replica shard from a primary + // shard. When a shard recovery completes, the recovered shard is available for + // search and indexing. + // For data streams, the API returns information about the stream’s backing + // indices. + // 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 index recovery API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-recovery.html Recovery cat_recovery.NewRecovery - // Returns information about snapshot repositories registered in the cluster. + // Returns the snapshot repositories for a cluster. + // 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 snapshot repository API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-repositories.html Repositories cat_repositories.NewRepositories - // Provides low-level information about the segments in the shards of an index. + // Returns low-level information about the Lucene segments in index shards. + // For data streams, the API returns information about the backing indices. + // 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 index segments API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-segments.html Segments cat_segments.NewSegments - // Provides a detailed view of shard allocation on nodes. + // Returns information about the shards in a cluster. + // For data streams, the API returns information about the backing indices. + // IMPORTANT: cat APIs are only intended for human consumption using the command + // line or Kibana console. They are not intended for use by applications. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html Shards cat_shards.NewShards - // Returns all snapshots in a specific repository. + // Returns information about the snapshots stored in one or more repositories. + // A snapshot is a backup of an index or running Elasticsearch cluster. + // 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 snapshot API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html Snapshots cat_snapshots.NewSnapshots - // Returns information about the tasks currently executing on one or more nodes - // in the cluster. + // Returns information about tasks currently executing in the cluster. + // 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 task management API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html Tasks cat_tasks.NewTasks - // Returns information about existing templates. + // Returns information about index templates in a cluster. + // You can use index templates to apply index settings and field mappings to new + // indices at creation. + // 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 template API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-templates.html Templates cat_templates.NewTemplates - // Returns cluster-wide thread pool statistics per node. - // By default the active, queue and rejected statistics are returned for all - // thread pools. + // Returns thread pool statistics for each node in a cluster. + // Returned information includes all built-in thread pools and custom thread + // pools. + // 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 nodes info API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html ThreadPool cat_thread_pool.NewThreadPool - // Gets configuration and usage information about transforms. + // Returns configuration and usage information about transforms. + // + // IMPORTANT: 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 Transforms cat_transforms.NewTransforms } @@ -656,7 +852,9 @@ 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 - // Deletes a component template + // Deletes component templates. + // Component templates are building blocks for constructing index templates that + // specify index mappings, settings, and aliases. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html DeleteComponentTemplate cluster_delete_component_template.NewDeleteComponentTemplate // Clears cluster voting config exclusions. @@ -665,33 +863,73 @@ type Cluster struct { // Returns information about whether a particular component template exist // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html ExistsComponentTemplate cluster_exists_component_template.NewExistsComponentTemplate - // Returns one or more 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 - // Returns cluster settings. + // Returns cluster-wide settings. + // By default, it returns only settings that have been explicitly defined. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-get-settings.html GetSettings cluster_get_settings.NewGetSettings - // Returns basic information about the health of the cluster. + // 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 + // streams and indices. For data streams, the API retrieves the health status of + // the stream’s backing indices. + // The cluster health status is: green, yellow or red. On the shard level, a red + // status indicates that the specific shard is not allocated in the cluster, + // yellow means that the primary shard is allocated but replicas are not, and + // green means that all shards are allocated. The index level status is + // controlled by the worst shard status. The cluster status is controlled by the + // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-info.html Info cluster_info.NewInfo - // Returns a list of any cluster-level changes (e.g. create index, update - // mapping, - // allocate or fail shard) which have not yet been executed. + // Returns cluster-level changes (such as create index, update mapping, allocate + // or fail shard) that have not yet been executed. + // NOTE: This API returns a list of any pending updates to the cluster state. + // These are distinct from the tasks reported by the Task Management API which + // include periodic tasks and tasks initiated by the user, such as node stats, + // search queries, or create index requests. + // However, if a user-initiated task such as a create index command causes a + // cluster state update, the activity of this task might be reported by both + // task api and pending cluster tasks API. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-pending.html PendingTasks cluster_pending_tasks.NewPendingTasks // 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 - // Creates or updates 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. + // + // An index template can be composed of multiple component templates. + // To use a component template, specify it in an index template’s `composed_of` + // list. + // Component templates are only applied to new data streams and indices as part + // of a matching index template. + // + // Settings and mappings specified directly in the index template or the create + // index request override any settings or mappings specified in a component + // template. + // + // Component templates are only used during index creation. + // For data streams, this includes data stream creation and the creation of a + // stream’s backing indices. + // Changes to component templates do not affect existing indices, including a + // stream’s backing indices. + // + // You can use C-style `/* *\/` block comments in component templates. + // You can include comments anywhere in the request body except before the + // opening curly bracket. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html PutComponentTemplate cluster_put_component_template.NewPutComponentTemplate // Updates the cluster settings. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html PutSettings cluster_put_settings.NewPutSettings - // Returns the information about configured remote clusters. + // The cluster remote info API allows you to retrieve all of the configured + // remote cluster information. It returns connection and endpoint information + // keyed by the configured remote cluster alias. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-remote-info.html RemoteInfo cluster_remote_info.NewRemoteInfo // Allows to manually change the allocation of individual shards in the cluster. @@ -700,61 +938,151 @@ type Cluster struct { // Returns a comprehensive information about the state of the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-state.html State cluster_state.NewState - // Returns high-level overview of cluster statistics. + // Returns cluster statistics. + // It returns basic index metrics (shard numbers, store size, memory usage) and + // information about the current nodes that form the cluster (number, roles, os, + // jvm versions, memory usage, cpu and installed plugins). // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html Stats cluster_stats.NewStats } +type Connector struct { + // Updates the last_seen field in the connector, and sets it to current + // timestamp + // https://www.elastic.co/guide/en/elasticsearch/reference/current/check-in-connector-api.html + CheckIn connector_check_in.NewCheckIn + // Deletes a connector. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-api.html + Delete connector_delete.NewDelete + // Retrieves 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 + // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-last-sync-api.html + LastSync connector_last_sync.NewLastSync + // Returns existing connectors. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-api.html + List connector_list.NewList + // Creates a connector. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html + Post connector_post.NewPost + // Creates or updates 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. + // 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. + // 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. + // 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. + // 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. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-sync-job-api.html + SyncJobPost connector_sync_job_post.NewSyncJobPost + // 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 + // 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 + // 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 + // 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 + // 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. + // 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 + // 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 + // 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 + // 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 + // 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 + // 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 + // 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 + // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-status-api.html + UpdateStatus connector_update_status.NewUpdateStatus +} + type Core struct { - // Allows to perform multiple index/update/delete operations in a single - // request. + // 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 - // Explicitly clears the search context for a scroll. + // Clears 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 - // Close a point in time + // Closes a point-in-time. // 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 - // Creates a new document in the index. - // - // Returns a 409 response when a document with a same ID already exists in the - // index. + // 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 - // Removes a document from the index. + // Removes a JSON document from the specified index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html Delete core_delete.NewDelete - // Deletes documents matching the provided query. + // 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 // operation. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html DeleteByQueryRethrottle core_delete_by_query_rethrottle.NewDeleteByQueryRethrottle - // Deletes a script. + // Deletes a stored script or search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html DeleteScript core_delete_script.NewDeleteScript - // Returns information about whether a document exists in an index. + // Checks if a document in an index exists. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html Exists core_exists.NewExists - // Returns information about whether a document source exists in an index. + // 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 matches (or doesn't match) a query. + // 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 - // Returns the information about the capabilities of fields among multiple - // indices. + // 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://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html FieldCaps core_field_caps.NewFieldCaps // Returns a document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html Get core_get.NewGet - // Returns a script. + // 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. @@ -769,7 +1097,10 @@ type Core struct { // Returns the health of the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html HealthReport core_health_report.NewHealthReport - // Creates or updates a document in an index. + // 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 // Returns basic information about the cluster. @@ -784,23 +1115,33 @@ type Core struct { // Allows to execute several search operations in one request. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html Msearch core_msearch.NewMsearch - // Allows to execute several search template operations in one request. + // Runs multiple templated searches with a single request. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html MsearchTemplate core_msearch_template.NewMsearchTemplate // Returns multiple termvectors in one request. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-termvectors.html Mtermvectors core_mtermvectors.NewMtermvectors - // Open a point in time that can be used in subsequent searches + // A search request by default executes 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 + // to perform multiple + // search requests using the same point in time. For example, if refreshes + // happen between + // `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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html OpenPointInTime core_open_point_in_time.NewOpenPointInTime // Returns whether the cluster is running. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html Ping core_ping.NewPing - // Creates or updates a script. + // 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 - // Allows to evaluate the quality of ranked search results over a set of typical - // search queries + // Enables you to 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 @@ -810,19 +1151,22 @@ type Core struct { // documents from a remote cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html Reindex core_reindex.NewReindex - // Changes the number of requests per second for a particular Reindex operation. + // Copies documents from a source to a destination. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html ReindexRethrottle core_reindex_rethrottle.NewReindexRethrottle - // Allows to use the Mustache language to pre-render a search definition. + // Renders 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 - // Allows an arbitrary script to be executed and a result to be returned + // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-scroll Scroll core_scroll.NewScroll - // Returns results matching a query. + // Returns 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 @@ -833,7 +1177,7 @@ type Core struct { // be executed against. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html SearchShards core_search_shards.NewSearchShards - // Allows to use the Mustache language to pre-render a search definition. + // Runs 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 @@ -848,10 +1192,10 @@ type Core struct { // Updates a document with a script or partial document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html Update core_update.NewUpdate - // Updates documents that match the specified query. If no query is specified, - // performs an update on every document in the index without changing the - // source, - // for example to pick up a mapping change. + // 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 @@ -879,29 +1223,29 @@ type Enrich struct { // 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 - // Gets information about 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 - // Creates a new 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 - // Gets enrich coordinator statistics and information about enrich policies that - // are currently executing. + // 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 Stats enrich_stats.NewStats } type Eql struct { - // Deletes an async EQL search by ID. If the search is still running, the search - // request will be cancelled. Otherwise, the saved search results are deleted. + // Deletes an async EQL search or a stored synchronous EQL search. + // The API also deletes results for the search. // https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html Delete eql_delete.NewDelete - // Returns async results from previously executed Event Query Language (EQL) - // search + // Returns the current status and available results for an async EQL search or a + // stored synchronous EQL search. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-search-api.html Get eql_get.NewGet - // Returns the status of a previously submitted async or stored Event Query - // Language (EQL) search + // Returns the current status for an async EQL search or a stored synchronous + // EQL search without returning results. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-status-api.html GetStatus eql_get_status.NewGetStatus // Returns results matching a query expressed in Event Query Language (EQL) @@ -910,7 +1254,10 @@ type Eql struct { } type Esql struct { - // Executes an ESQL request + // Executes an ESQL request asynchronously + // https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-api.html + AsyncQuery esql_async_query.NewAsyncQuery + // Executes an ES|QL request // https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-rest.html Query esql_query.NewQuery } @@ -930,52 +1277,64 @@ type Fleet struct { // internal use by the fleet server project. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-global-checkpoints.html GlobalCheckpoints fleet_global_checkpoints.NewGlobalCheckpoints - // Multi Search API where the search will only be executed after specified - // checkpoints are available due to a refresh. This API is designed for internal - // use by the fleet server project. + // Executes several [fleet + // searches](https://www.elastic.co/guide/en/elasticsearch/reference/current/fleet-search.html) + // with a single API request. + // The API follows the same structure as the [multi + // search](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html) + // API. However, similar to the fleet search API, it + // supports the wait_for_checkpoints parameter. // Msearch fleet_msearch.NewMsearch // Creates a secret stored by Fleet. // PostSecret fleet_post_secret.NewPostSecret - // Search API where the search will only be executed after specified checkpoints - // are available due to a refresh. This API is designed for internal use by the - // fleet server project. + // The purpose of the fleet search api is to provide a search api where the + // search will only be executed + // after provided checkpoint has been processed and is visible for searches + // inside of Elasticsearch. // Search fleet_search.NewSearch } type Graph struct { - // Explore extracted and summarized information about the documents and terms in - // an index. + // Extracts and summarizes information about the documents and terms in an + // Elasticsearch data stream or index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html Explore graph_explore.NewExplore } type Ilm struct { - // Deletes the specified lifecycle policy definition. A currently used policy - // cannot be deleted. + // 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, + // the request fails and returns an error. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html DeleteLifecycle ilm_delete_lifecycle.NewDeleteLifecycle - // Retrieves information about the index's current lifecycle state, such as the - // currently executing phase, action, and step. + // Retrieves information about the index’s current lifecycle state, such as the + // currently executing phase, action, and step. Shows when the index entered + // each one, the definition of the running phase, and information about any + // failures. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html ExplainLifecycle ilm_explain_lifecycle.NewExplainLifecycle - // Returns the specified policy definition. Includes the policy version and last - // modified date. + // Retrieves a lifecycle policy. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html GetLifecycle ilm_get_lifecycle.NewGetLifecycle // Retrieves the current index lifecycle management (ILM) status. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html GetStatus ilm_get_status.NewGetStatus - // Migrates the indices and ILM policies away from custom node attribute - // allocation routing to data tiers routing + // Switches the indices, ILM policies, and legacy, composable and component + // templates from using custom node attributes and + // attribute-based allocation filters to using data tiers, and optionally + // deletes one legacy index template.+ + // Using node roles enables ILM to automatically move the indices between data + // tiers. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-migrate-to-data-tiers.html MigrateToDataTiers ilm_migrate_to_data_tiers.NewMigrateToDataTiers // Manually moves an index into the specified step and executes that step. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html MoveToStep ilm_move_to_step.NewMoveToStep - // Creates a lifecycle policy + // Creates a lifecycle policy. If the specified policy exists, the policy is + // replaced and the policy version is incremented. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html PutLifecycle ilm_put_lifecycle.NewPutLifecycle // Removes the assigned lifecycle policy and stops managing the specified index @@ -997,61 +1356,71 @@ type Indices struct { // Adds a block to an index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-blocks.html AddBlock indices_add_block.NewAddBlock - // Performs the analysis process on a text and return the tokens breakdown of - // the text. + // Performs analysis 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 all or specific caches for one or more indices. + // Clears the caches of one or more indices. + // For data streams, the API clears the caches of the stream’s backing indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html ClearCache indices_clear_cache.NewClearCache - // Clones an index + // Clones an existing index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clone-index.html Clone indices_clone.NewClone // Closes an index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-close.html Close indices_close.NewClose - // Creates an index with optional settings and mappings. + // Creates a new index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html Create indices_create.NewCreate - // Creates 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 - // Provides statistics on operations happening in a data stream. + // 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 - // Deletes an index. + // Deletes one or more indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html Delete indices_delete.NewDelete - // Deletes 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 - // Deletes the data stream lifecycle of the selected data streams. + // Removes the data 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 - // Deletes a data stream. + // 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 - // Deletes an index template. + // Delete an index template. + // The provided may contain multiple template names separated + // by a comma. If multiple template + // names are specified then there is no wildcard support and the provided names + // should match completely with + // existing templates. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-template.html DeleteIndexTemplate indices_delete_index_template.NewDeleteIndexTemplate - // Deletes an index template. + // Deletes a legacy index template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-template-v1.html DeleteTemplate indices_delete_template.NewDeleteTemplate - // Analyzes the disk usage of each field of an index or data stream + // Analyzes the disk usage of each field of an index or data stream. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-disk-usage.html DiskUsage indices_disk_usage.NewDiskUsage - // Downsample an index + // Aggregates a time series (TSDS) index and stores pre-computed statistical + // summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each metric + // 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 - // Returns information about whether a particular index exists. + // Checks if a data stream, index, or alias exists. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html Exists indices_exists.NewExists - // Returns information about whether a particular alias exists. + // Checks if an alias exists. // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index-templates.html ExistsIndexTemplate indices_exists_index_template.NewExistsIndexTemplate + // Check existence of index templates. // 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 @@ -1059,160 +1428,213 @@ type Indices struct { // as any potential encountered error, time since creation etc. // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html ExplainDataLifecycle indices_explain_data_lifecycle.NewExplainDataLifecycle - // Returns the field usage stats for each field of an index + // Returns field usage information for each shard and field of an index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/field-usage-stats.html FieldUsageStats indices_field_usage_stats.NewFieldUsageStats - // Performs the flush operation on one or more indices. + // Flushes one or more data streams or indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html Flush indices_flush.NewFlush // 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 - // Returns information about one or more indices. + // 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 - // Returns an alias. + // Retrieves information for one or more aliases. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html GetAlias indices_get_alias.NewGetAlias - // Returns the data stream lifecycle of the selected data streams. + // 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 - // Returns 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 - // Returns mapping for one or more fields. + // Retrieves mapping definitions for one or more fields. + // For data streams, the API retrieves field mappings for the stream’s backing + // indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html GetFieldMapping indices_get_field_mapping.NewGetFieldMapping - // Returns an index template. + // Get index templates. + // 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 - // Returns mappings for one or more indices. + // 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 - // Returns settings for one or more indices. + // 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 GetSettings indices_get_settings.NewGetSettings - // Returns an index template. + // Get index templates. + // 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 - // Migrates an 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: + // The alias must have a write index; + // All indices for the alias must have a `@timestamp` field mapping of a `date` + // or `date_nanos` field type; + // The alias must not have any filters; + // The alias must not use custom routing. + // If successful, the request removes the alias and creates a data stream with + // the same name. + // The indices for the alias become hidden backing indices for the stream. + // 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 - // Modifies a data stream + // 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 ModifyDataStream indices_modify_data_stream.NewModifyDataStream - // Opens an index. + // Opens a closed index. + // For data streams, the API opens any closed backing indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html Open indices_open.NewOpen // Promotes a data stream from a replicated data stream managed by CCR to a // regular data stream // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html PromoteDataStream indices_promote_data_stream.NewPromoteDataStream - // Creates or updates 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 - // Updates the data stream lifecycle of the selected data streams. + // Update the data 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 - // Creates or updates an index template. + // Create or update an index template. + // Index templates define settings, mappings, and aliases that can be applied + // automatically to new indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-template.html PutIndexTemplate indices_put_index_template.NewPutIndexTemplate - // Updates the index 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 - // Updates the index settings. + // Changes a dynamic index setting 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 - // Creates or updates an index template. + // Create or update an index template. + // Index templates define settings, mappings, and aliases that can be applied + // automatically to new indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html PutTemplate indices_put_template.NewPutTemplate - // Returns information about ongoing index shard recoveries. + // Returns information about ongoing and completed shard recoveries for one or + // more indices. + // For data streams, the API returns information for the stream’s backing + // indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-recovery.html Recovery indices_recovery.NewRecovery - // Performs the refresh operation in one or more indices. + // 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 + // indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html Refresh indices_refresh.NewRefresh // Reloads an index's search analyzers and their resources. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-reload-analyzers.html ReloadSearchAnalyzers indices_reload_search_analyzers.NewReloadSearchAnalyzers // Resolves the specified index expressions to return information about each - // cluster, including the local cluster, if included. + // cluster, including + // the local cluster, if included. + // Multiple patterns and remote clusters are supported. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-resolve-cluster-api.html ResolveCluster indices_resolve_cluster.NewResolveCluster - // Returns information about any matching indices, aliases, and data streams + // Resolves the specified name(s) and/or index patterns for indices, aliases, + // and data streams. + // 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 - // Updates an alias to point to a new index when the existing index - // is considered to be too large or too old. + // 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 - // Provides low-level information about segments in a Lucene index. + // Returns low-level information about the Lucene segments in index shards. + // For data streams, the API returns information about the stream’s backing + // indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-segments.html Segments indices_segments.NewSegments - // Provides store information for shard copies of indices. + // Retrieves store information about replica shards in one or more indices. + // For data streams, the API retrieves store information for the stream’s + // backing indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shards-stores.html ShardStores indices_shard_stores.NewShardStores - // Allow to shrink an existing index into a new index with fewer primary shards. + // Shrinks an existing index into a new index with fewer primary shards. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html Shrink indices_shrink.NewShrink - // Simulate matching the given index name against the index templates in the - // system + // Simulate an index. + // Returns the index configuration that would be applied to the specified index + // from an existing index template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-simulate-index.html SimulateIndexTemplate indices_simulate_index_template.NewSimulateIndexTemplate - // Simulate resolving the given template name or body + // Simulate an index template. + // Returns the index configuration that would be applied by a particular index + // template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-simulate-template.html SimulateTemplate indices_simulate_template.NewSimulateTemplate - // Allows you to split an existing index into a new index with more primary - // shards. + // Splits an existing index into a new index with more primary shards. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html Split indices_split.NewSplit - // Provides statistics on operations happening in an index. + // Returns statistics for one or more indices. + // For data streams, the API retrieves statistics for the stream’s backing + // indices. // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html Stats indices_stats.NewStats - // Unfreezes an index. When a frozen index is unfrozen, the index goes through - // the normal recovery process and becomes writeable again. + // Unfreezes an index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html Unfreeze indices_unfreeze.NewUnfreeze - // Updates index aliases. + // 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 - // Allows a user to validate a potentially expensive query without executing it. + // Validates a potentially expensive query without executing it. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-validate.html ValidateQuery indices_validate_query.NewValidateQuery } type Inference struct { - // Delete model in the Inference API + // Delete an inference endpoint // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html - DeleteModel inference_delete_model.NewDeleteModel - // Get a model in the Inference API + Delete inference_delete.NewDelete + // Get an inference endpoint // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-api.html - GetModel inference_get_model.NewGetModel - // Perform inference on a model + Get inference_get.NewGet + // Perform inference on the service // https://www.elastic.co/guide/en/elasticsearch/reference/current/post-inference-api.html Inference inference_inference.NewInference - // Configure a model for use in the Inference API + // Create an inference endpoint // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html - PutModel inference_put_model.NewPutModel + Put inference_put.NewPut } type Ingest struct { - // Deletes a pipeline. + // 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 - // Returns statistical information about geoip databases + // 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 a pipeline. + // 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 GetPipeline ingest_get_pipeline.NewGetPipeline - // Returns a list of the built-in patterns. + // 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 + // pattern you expect will match. + // A grok pattern is like a regular expression that supports aliased expressions + // that can be reused. // https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html ProcessorGrok ingest_processor_grok.NewProcessorGrok - // Creates or updates a pipeline. + // 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 PutPipeline ingest_put_pipeline.NewPutPipeline - // Allows to simulate a pipeline with example documents. + // Executes an ingest pipeline against a set of provided documents. // https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-pipeline-api.html Simulate ingest_simulate.NewSimulate } @@ -1221,7 +1643,10 @@ 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 - // Retrieves licensing information for the cluster + // 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. // 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. @@ -1233,22 +1658,29 @@ type License struct { // Updates the license for the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-license.html Post license_post.NewPost - // Starts an indefinite basic license. + // 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 + // support all of the features that are available with your current license, + // however, you are notified in the response. You must then re-submit the API + // request with the acknowledge parameter set to true. + // To check the status of your basic license, use the following API: [Get basic + // status](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-basic-status.html). // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-basic.html PostStartBasic license_post_start_basic.NewPostStartBasic - // starts a limited time trial license. + // The start trial API enables you to start a 30-day trial, which gives access + // to all subscription features. // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trial.html PostStartTrial license_post_start_trial.NewPostStartTrial } type Logstash struct { - // Deletes Logstash Pipelines used by Central Management + // Deletes a pipeline used for Logstash Central Management. // https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html DeletePipeline logstash_delete_pipeline.NewDeletePipeline - // Retrieves Logstash Pipelines used by Central Management + // Retrieves pipelines used for Logstash Central Management. // https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html GetPipeline logstash_get_pipeline.NewGetPipeline - // Adds and updates Logstash Pipelines used for Central Management + // Creates or updates a pipeline used for Logstash Central Management. // https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html PutPipeline logstash_put_pipeline.NewPutPipeline } @@ -1268,14 +1700,34 @@ type Migration struct { } type Ml struct { - // Clear the cached results from a trained model deployment + // Clears a trained model deployment cache 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 - // Closes one or more anomaly detection jobs. A job can be opened and closed - // multiple times throughout its lifecycle. + // 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. + // When you close a job, it runs housekeeping tasks such as pruning the model + // history, flushing buffers, calculating final results and persisting the model + // snapshots. Depending upon the size of the job, it could take several minutes + // to close and the equivalent time to re-open. After it is closed, the job has + // a minimal overhead on the cluster except for maintaining its meta data. + // Therefore it is a best practice to close jobs that are no longer required to + // process data. + // If you close an anomaly detection job whose datafeed is running, the request + // first tries to stop the datafeed. This behavior is equivalent to calling stop + // datafeed API with the same timeout and force parameters as the close job + // request. + // When a datafeed that has a specified end date stops, it automatically closes + // its associated job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html CloseJob ml_close_job.NewCloseJob - // Deletes 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. @@ -1284,51 +1736,105 @@ type Ml struct { // Deletes anomaly detection 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 an existing data frame analytics job. + // Deletes 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. // 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. + // 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. + // You can limit the request to a single or set of anomaly detection jobs by + // using a job identifier, a group name, a comma-separated list of jobs, or a + // wildcard expression. You can delete expired data 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-delete-expired-data.html DeleteExpiredData ml_delete_expired_data.NewDeleteExpiredData // Deletes 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. + // 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 existing anomaly detection job. + // Deletes 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 + // first tries to delete the datafeed. This behavior is equivalent to calling + // the delete datafeed API with the same timeout and force parameters as the + // 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. + // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html DeleteTrainedModel ml_delete_trained_model.NewDeleteTrainedModel - // Deletes a model alias that refers to the trained model + // Deletes 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 - // Estimates the model memory + // 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. + // 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. + // 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: + // * which fields are included or not in the analysis and why, + // * how much memory is estimated to be required. The estimate can be used when + // deciding the appropriate value for model_memory_limit setting later on. + // If you have object fields or fields that are excluded via source filtering, + // 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. + // 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 + // similar, however the flush is more efficient if you are expecting to send + // more data for analysis. When flushing, the job remains open and is available + // to continue analyzing data. A close operation additionally prunes and + // persists the model state to disk and the job must be opened again before + // 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. + // + // 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. // 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. + // 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. @@ -1341,34 +1847,58 @@ type Ml struct { // 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. + // 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. // 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. + // 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 + // ``, or by omitting the ``. If the datafeed is stopped, the + // only information you receive is the `datafeed_id` and the `state`. + // 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. + // 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 + // ``, or by omitting the ``. + // 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. + // 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. + // 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. // 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. + // 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 - // Returns information on how ML is using memory. + // 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 - // Gets stats for anomaly detection job model snapshot upgrades that are in - // progress. + // Retrieves usage information for anomaly detection job model snapshot + // upgrades. // 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. @@ -1376,104 +1906,267 @@ type Ml struct { GetModelSnapshots ml_get_model_snapshots.NewGetModelSnapshots // Retrieves 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 + // buckets within the overall bucket span. First, the maximum + // `anomaly_score` per anomaly detection job in the overall bucket is + // calculated. Then the `top_n` of those scores are averaged to result in + // the `overall_score`. This means that you can fine-tune the + // `overall_score` so that it is more or less sensitive to the number of + // jobs that detect an anomaly at the same time. For example, if you set + // `top_n` to `1`, the `overall_score` is the maximum bucket score in the + // overall bucket. Alternatively, if you set `top_n` to the number of jobs, + // the `overall_score` is high only when all jobs detect anomalies in that + // overall bucket. If you set the `bucket_span` parameter (to a value + // greater than its default), the `overall_score` is the maximum + // `overall_score` of the overall buckets that have a span equal to the + // 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. + // Records contain the detailed analytical results. They describe the anomalous + // activity that has been identified in the input data based on the detector + // configuration. + // There can be many anomaly records depending on the characteristics and size + // of the input data. In practice, there are often too many to be able to + // manually process them. The machine learning features therefore perform a + // sophisticated aggregation of the anomaly records into buckets. + // The number of record results depends on the number of anomalies found in each + // bucket, which relates to the number of time series being modeled and the + // 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 inference model. + // Retrieves configuration information for a trained model. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html GetTrainedModels ml_get_trained_models.NewGetTrainedModels - // Retrieves usage information for trained inference models. + // Retrieves usage information for trained models. 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 - // Evaluate a trained model. + // Evaluates a trained model. // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-trained-model.html InferTrainedModel ml_infer_trained_model.NewInferTrainedModel // 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 + // specified, meaning that the defaults should be used. This endpoint may be + // used to find out what those defaults are. It also provides information about + // the maximum size of machine learning jobs that could run in the current + // 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. + // 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 - // Posts scheduled events in a calendar. + // Adds scheduled events to a 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. + // + // IMPORTANT: For each job, data can be accepted from only a single connection + // at a time. + // It is not currently possible to post data to multiple jobs using wildcards or + // a comma-separated list. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html PostData ml_post_data.NewPostData - // Previews that will be analyzed given a data frame analytics config. + // 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. + // 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 + // and anomaly detection job in the API. The preview shows the structure of the + // data + // that will be passed to the anomaly detection engine. + // IMPORTANT: When Elasticsearch security features are enabled, the preview uses + // the credentials of the user that + // called the API. However, when the datafeed starts it uses the roles of the + // last user that created or updated the + // datafeed. To get a preview that accurately reflects the behavior of the + // datafeed, use the appropriate credentials. + // 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 - // Instantiates a calendar. + // Creates 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. // 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. + // 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. + // Datafeeds retrieve data from Elasticsearch for analysis by an anomaly + // detection job. + // You can associate only one datafeed with each anomaly detection job. + // The datafeed contains a query that runs at a defined interval (`frequency`). + // If you are concerned about delayed data, you can add a delay (`query_delay') + // at each interval. + // When Elasticsearch security features are enabled, your datafeed remembers + // which roles the user who created it had + // at the time of creation and runs the query using those same roles. If you + // provide secondary authorization headers, + // those credentials are used instead. + // You must use Kibana, this API, or the create anomaly detection jobs API to + // create a datafeed. Do not add a datafeed + // directly to the `.ml-config` index. Do not give users `write` privileges on + // 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. + // 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. + // Instantiates 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 - // Creates an inference trained model. + // Enables 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 a new model alias (or reassigns an existing one) to refer to the - // trained model + // Creates or updates 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. + // An alias must be unique and refer to only a single trained model. However, + // you can have multiple aliases for each trained model. + // If you use this API to update an alias such that it references a different + // trained model ID and the model uses a different type of data frame analytics, + // an error occurs. For example, this situation occurs if you have a trained + // model for regression analysis and a trained model for classification + // analysis; you cannot reassign an alias from one type of trained model to + // another. + // If you use this API to update an alias and there are very few input fields in + // common between the old and new trained models for the model alias, the API + // 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 + // Creates 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 + // Creates 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 existing anomaly detection job. + // Resets 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. + // 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 + // or a one-off event. In the case where this anomalous input is known to be a + // one-off, then it might be appropriate to reset the model state to a time + // before this event. For example, you might consider reverting to a saved + // 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 // 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 + // nodes and reindex your machine learning indices. In those circumstances, + // there must be no machine learning jobs running. You can close the machine + // learning jobs, do the upgrade, then open all the jobs again. Alternatively, + // you can use this API to temporarily halt tasks associated with the jobs and + // datafeeds and prevent new jobs from opening. You can also use this API + // during upgrades that do not require you to reindex your machine learning + // indices, though stopping jobs is not a requirement in that case. + // You can see the current value for the upgrade_mode setting by using the get + // 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. + // 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 + // first time you start the data frame analytics job. The + // `index.number_of_shards` and `index.number_of_replicas` settings for the + // destination index are copied from the source index. If there are multiple + // source indices, the destination index copies the highest setting values. The + // mappings for the destination index are also copied from the source indices. + // If there are any mapping conflicts, the job fails to start. + // If the destination index exists, it is used as is. You can therefore set up + // 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. + // + // A datafeed must be started in order to retrieve data from Elasticsearch. A + // datafeed can be started and stopped + // multiple times throughout its lifecycle. + // + // Before you can start a datafeed, the anomaly detection job must be open. + // Otherwise, an error occurs. + // + // If you restart a stopped datafeed, it continues processing input data from + // the next millisecond after it was stopped. + // If new data was indexed for that exact millisecond between stopping and + // starting, it will be ignored. + // + // When Elasticsearch security features are enabled, your datafeed remembers + // which roles the last user to create or + // update it had at the time of creation or update and runs the query using + // those same roles. If you provided secondary + // authorization headers when you created or updated the datafeed, those + // credentials are used instead. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html StartDatafeed ml_start_datafeed.NewStartDatafeed - // Start a trained model deployment. + // Starts a trained model deployment, which 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. + // 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. + // 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 - // Stop a trained model deployment. + // Stops 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 certain properties of a data frame analytics job. + // Updates an existing data frame analytics job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html UpdateDataFrameAnalytics ml_update_data_frame_analytics.NewUpdateDataFrameAnalytics - // Updates certain properties of a datafeed. + // Updates the properties of 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 + // the time of the update and runs the query using those same roles. If you + // provide secondary authorization headers, + // those credentials are used instead. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html UpdateDatafeed ml_update_datafeed.NewUpdateDatafeed - // Updates the description of a filter, adds items, or removes items. + // 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 // Updates certain properties of an anomaly detection job. @@ -1482,10 +2175,19 @@ type Ml struct { // Updates certain properties of a snapshot. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html UpdateModelSnapshot ml_update_model_snapshot.NewUpdateModelSnapshot - // Updates certain properties of trained model deployment. + // Starts a trained model deployment, which allocates the model to every machine + // learning node. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html UpdateTrainedModelDeployment ml_update_trained_model_deployment.NewUpdateTrainedModelDeployment - // Upgrades a given job snapshot to the current major version. + // 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 + // major version. + // This API provides a means to upgrade a snapshot to the current major version. + // This aids in preparing the cluster for an upgrade to the next major version. + // Only one snapshot per anomaly detection job can be upgraded at a time and the + // upgraded snapshot cannot be the current snapshot of the anomaly detection + // job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html UpgradeJobSnapshot ml_upgrade_job_snapshot.NewUpgradeJobSnapshot // Validates an anomaly detection job. @@ -1503,43 +2205,76 @@ type Monitoring struct { } type Nodes struct { - // Removes the archived repositories metering information present in the - // cluster. + // You can use this API to clear the archived repositories metering information + // in the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html ClearRepositoriesMeteringArchive nodes_clear_repositories_metering_archive.NewClearRepositoriesMeteringArchive - // Returns cluster repositories metering information. + // You can use the cluster repositories metering API to retrieve repositories + // metering information in a cluster. + // This API exposes monotonically non-decreasing counters and it’s expected that + // clients would durably store the + // information needed to compute aggregations over a period of time. + // Additionally, the information exposed by this + // API is volatile, meaning that it won’t be present after node restarts. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html GetRepositoriesMeteringInfo nodes_get_repositories_metering_info.NewGetRepositoriesMeteringInfo - // Returns information about hot threads on each node in the cluster. + // This API yields a breakdown of the hot threads on each selected node in the + // cluster. + // The output is plain text with a breakdown of each node’s top hot threads. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html HotThreads nodes_hot_threads.NewHotThreads - // Returns information about nodes in the cluster. + // Returns cluster nodes information. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html Info nodes_info.NewInfo - // Reloads secure settings. + // Reloads the keystore on nodes in the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-settings.html#reloadable-secure-settings ReloadSecureSettings nodes_reload_secure_settings.NewReloadSecureSettings - // Returns statistical information about nodes in the cluster. + // Returns cluster nodes statistics. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html Stats nodes_stats.NewStats - // Returns low-level information about REST actions usage on nodes. + // Returns information on the usage of features. // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-usage.html Usage nodes_usage.NewUsage } -type QueryRuleset struct { +type Profiling struct { + // Extracts a UI-optimized structure to render flamegraphs from Universal + // Profiling. + // https://www.elastic.co/guide/en/observability/current/universal-profiling.html + Flamegraph profiling_flamegraph.NewFlamegraph + // Extracts raw stacktrace information from Universal Profiling. + // https://www.elastic.co/guide/en/observability/current/universal-profiling.html + Stacktraces profiling_stacktraces.NewStacktraces + // Returns basic information about the status of Universal Profiling. + // https://www.elastic.co/guide/en/observability/current/universal-profiling.html + Status profiling_status.NewStatus + // Extracts a list of topN functions from Universal Profiling. + // https://www.elastic.co/guide/en/observability/current/universal-profiling.html + TopnFunctions profiling_topn_functions.NewTopnFunctions +} + +type QueryRules struct { + // Deletes a query rule within a query ruleset. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-query-rule.html + DeleteRule query_rules_delete_rule.NewDeleteRule // Deletes a query ruleset. // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-query-ruleset.html - Delete query_ruleset_delete.NewDelete - // Returns the details about a query ruleset. + DeleteRuleset query_rules_delete_ruleset.NewDeleteRuleset + // Returns the details about a query rule within a query ruleset + // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-query-rule.html + GetRule query_rules_get_rule.NewGetRule + // Returns the details about a query ruleset // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-query-ruleset.html - Get query_ruleset_get.NewGet - // Lists query rulesets. + GetRuleset query_rules_get_ruleset.NewGetRuleset + // Returns summarized information about existing query rulesets. // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-query-rulesets.html - List query_ruleset_list.NewList + ListRulesets query_rules_list_rulesets.NewListRulesets + // Creates or updates a query rule within a query ruleset. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-query-rule.html + PutRule query_rules_put_rule.NewPutRule // Creates or updates a query ruleset. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-query-ruleset.html - Put query_ruleset_put.NewPut + PutRuleset query_rules_put_ruleset.NewPutRuleset } type Rollup struct { @@ -1553,14 +2288,14 @@ type Rollup struct { // specific index or index pattern. // https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-rollup-caps.html GetRollupCaps rollup_get_rollup_caps.NewGetRollupCaps - // Returns the rollup capabilities of all jobs inside of a rollup index (e.g. - // the index where rollup data is stored). + // Returns the rollup capabilities of all jobs inside of a rollup index (for + // example, the index where rollup data is stored). // https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-rollup-index-caps.html GetRollupIndexCaps rollup_get_rollup_index_caps.NewGetRollupIndexCaps // Creates a rollup job. // https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-put-job.html PutJob rollup_put_job.NewPutJob - // Enables searching rolled-up data using the standard query DSL. + // Enables searching rolled-up data using the standard Query DSL. // https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-search.html RollupSearch rollup_rollup_search.NewRollupSearch // Starts an existing, stopped rollup job. @@ -1578,7 +2313,7 @@ type SearchApplication struct { // Delete a behavioral analytics collection. // 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. + // Returns the details about a search application // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-search-application.html Get search_application_get.NewGet // Returns the existing behavioral analytics collections. @@ -1593,7 +2328,7 @@ type SearchApplication struct { // Creates 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 + // Perform a search against a search application. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-application-search.html Search search_application_search.NewSearch } @@ -1614,20 +2349,39 @@ type SearchableSnapshots struct { } type Security struct { - // Creates or updates the user profile on behalf of another user. + // Creates or updates 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 authentication as a user and retrieve information about the - // authenticated user. + // Enables you to submit a request with a basic auth header to authenticate a + // user and retrieve information about the authenticated user. + // 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 + // the user. + // 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 + // 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 + // 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 + // roles files. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-put-role.html + BulkPutRole security_bulk_put_role.NewBulkPutRole // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html ChangePassword security_change_password.NewChangePassword - // Clear a subset or all entries from the API key cache. + // Evicts 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. @@ -1644,12 +2398,18 @@ type Security struct { // 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. + // 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 + // milliseconds. + // NOTE: By default, API keys never expire. You can specify expiration + // information when you create the API keys. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html CreateApiKey security_create_api_key.NewCreateApiKey // 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 account token for access without requiring basic + // Creates 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 @@ -1680,14 +2440,19 @@ type Security struct { // Enables a user profile so it's 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 - // Allows a kibana instance to configure itself to communicate with a secured - // elasticsearch cluster. + // Enables 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 enroll to an existing cluster with security enabled. + // Allows a new node 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 // 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. + // If you have `read_security`, `manage_api_key` or greater privileges + // (including `manage_security`), this API returns all API keys regardless of + // 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 @@ -1697,13 +2462,16 @@ type Security struct { // Retrieves application privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html GetPrivileges security_get_privileges.NewGetPrivileges - // Retrieves 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html GetRoleMapping security_get_role_mapping.NewGetRoleMapping - // Retrieves information about service accounts. + // This API returns a list of service accounts that match the provided path + // parameter(s). // 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. @@ -1721,10 +2489,32 @@ type Security struct { // Retrieves security privileges for the logged in user. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html GetUserPrivileges security_get_user_privileges.NewGetUserPrivileges - // Retrieves user profiles for the given unique ID(s). + // Retrieves 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. + // 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. + // It is not possible to use this API to create an API key without that user’s + // credentials. + // The user, for whom the authentication credentials is provided, can optionally + // "run as" (impersonate) another user. + // In this case, the API key will be created on behalf of the impersonated user. + // + // This API is intended be used by applications that need to create and manage + // API keys for end users, but cannot guarantee that those users have permission + // to create API keys on their own behalf. + // + // A successful grant API key API call 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 + // milliseconds. + // + // By default, API keys never expire. You can specify expiration information + // 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. @@ -1735,6 +2525,15 @@ type Security struct { // 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. + // 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. + // In addition, with the `manage_own_api_key` privilege, an invalidation request + // 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. // 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. @@ -1754,7 +2553,10 @@ type Security struct { // Adds or updates application privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html PutPrivileges security_put_privileges.NewPutPrivileges - // Adds and updates 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 create or update roles API cannot update roles that are defined in roles + // files. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html PutRole security_put_role.NewPutRole // Creates and updates role mappings. @@ -1764,39 +2566,71 @@ type Security struct { // to as native users. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html PutUser security_put_user.NewPutUser - // Retrieves information for API keys using a subset of query DSL + // Retrieves information for API keys 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-api-key.html QueryApiKeys security_query_api_keys.NewQueryApiKeys - // Exchanges a SAML Response message for an Elasticsearch access token and - // refresh token pair + // Retrieves 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. + // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-authenticate.html SamlAuthenticate security_saml_authenticate.NewSamlAuthenticate - // Verifies the logout response sent from the SAML IdP + // 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 - // Consumes a SAML LogoutRequest + // 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 - // Invalidates an access token and a refresh token that were generated via the - // SAML Authenticate API + // 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 + // 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 - // Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider + // 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 // 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 // Updates attributes of an existing API key. + // Users can only update API keys that they created or that were granted to + // them. + // Use this API to update API keys created by the create API Key or grant API + // Key APIs. + // If you need to apply the same update to many API keys, you can use bulk + // update API Keys to reduce overhead. + // It’s not possible to update expired API keys, or API keys that have been + // invalidated by invalidate API Key. + // This API supports updates to an API key’s access scope and metadata. + // The access scope of an API key is derived from the `role_descriptors` you + // specify in the request, and a snapshot of the owner user’s permissions at the + // time of the request. + // The snapshot of the owner’s permissions is updated automatically on every + // call. + // If you don’t specify `role_descriptors` in the request, a call to this API + // might still change the API key’s access scope. + // This change can occur if the owner user’s permissions have changed since the + // API key was created or last modified. + // To update another user’s API key, use the `run_as` feature to submit a + // request on behalf of another user. + // IMPORTANT: It’s not possible to use an API key as the authentication + // credential for this API. + // To update an API key, the owner user’s credentials are required. // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-api-key.html UpdateApiKey security_update_api_key.NewUpdateApiKey // 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 - // Update application specific data for the user profile of the given unique ID. + // Updates specific data for the user profile that's associated with the + // specified 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 } @@ -1852,7 +2686,8 @@ type Slm struct { } type Snapshot struct { - // Removes stale data from repository. + // Triggers the review of a snapshot repository’s contents and deletes any stale + // data not referenced by existing snapshots. // https://www.elastic.co/guide/en/elasticsearch/reference/current/clean-up-snapshot-repo-api.html CleanupRepository snapshot_cleanup_repository.NewCleanupRepository // Clones indices from one snapshot into another snapshot in the same @@ -1935,7 +2770,7 @@ type Synonyms struct { // Retrieves a summary of all defined synonym sets // https://www.elastic.co/guide/en/elasticsearch/reference/current/list-synonyms-sets.html GetSynonymsSets synonyms_get_synonyms_sets.NewGetSynonymsSets - // Creates or updates a synonyms set + // Creates or updates a synonym set. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-synonyms-set.html PutSynonym synonyms_put_synonym.NewPutSynonym // Creates or updates a synonym rule in a synonym set @@ -1950,12 +2785,20 @@ type Tasks struct { // Returns information about a task. // https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html Get tasks_get.NewGet - // Returns a list of tasks. + // The task management API returns information about tasks currently executing + // on one or more nodes in the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html List tasks_list.NewList } type TextStructure struct { + // Finds the structure of a text field in an index. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html + FindFieldStructure text_structure_find_field_structure.NewFindFieldStructure + // Finds the structure of a list of messages. The messages must contain data + // that is suitable to be ingested into Elasticsearch. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/find-message-structure.html + FindMessageStructure text_structure_find_message_structure.NewFindMessageStructure // Finds the structure of a text file. The text file must contain data that is // suitable to be ingested into Elasticsearch. // https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html @@ -1966,9 +2809,12 @@ type TextStructure struct { } type Transform struct { - // Deletes an existing 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 // Retrieves configuration information for transforms. // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html GetTransform transform_get_transform.NewGetTransform @@ -1976,27 +2822,122 @@ type Transform struct { // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html GetTransformStats transform_get_transform_stats.NewGetTransformStats // Previews a transform. + // + // It returns a maximum of 100 results. The calculations are based on all the + // current data in the source index. It also + // generates a list of mappings and settings for the destination index. These + // values are determined based on the field + // 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 - // Instantiates a transform. + // Creates a transform. + // + // A transform copies data from source indices, transforms it, and persists it + // into an entity-centric destination index. You can also think of the + // destination index as a two-dimensional tabular data structure (known as + // a data frame). The ID for each document in the data frame is generated from a + // hash of the entity, so there is a + // unique row per entity. + // + // You must choose either the latest or pivot method for your transform; you + // cannot use both in a single transform. If + // you choose to use the pivot method for your transform, the entities are + // defined by the set of `group_by` fields in + // the pivot object. If you choose to use the latest method, the entities are + // defined by the `unique_key` field values + // in the latest object. + // + // You must have `create_index`, `index`, and `read` privileges on the + // destination index and `read` and + // `view_index_metadata` privileges on the source indices. When Elasticsearch + // security features are enabled, the + // transform remembers which roles the user that created it had at the time of + // creation and uses those same roles. If + // those roles do not have the required privileges on the source and destination + // indices, the transform fails when it + // attempts unauthorized operations. + // + // NOTE: You must use Kibana or this API to create a transform. Do not add a + // transform directly into any + // `.transform-internal*` indices using the Elasticsearch index API. If + // Elasticsearch security features are enabled, do + // not give users any privileges on `.transform-internal*` indices. If you used + // transforms prior to 7.5, also do not + // 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 - // Resets an existing 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. + // + // If you _schedule_now a transform, it will process the new data instantly, + // without waiting for the configured frequency interval. After _schedule_now + // API is called, + // the transform will be processed again at now + frequency unless _schedule_now + // API + // 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 - // Starts one or more transforms. + // Starts a transform. + // + // When you start a transform, it creates the destination index if it does not + // already exist. The `number_of_shards` is + // set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot + // transform, it deduces the mapping + // definitions for the destination index from the source indices and the + // transform aggregations. If fields in the + // destination index are derived from scripts (as in the case of + // `scripted_metric` or `bucket_script` aggregations), + // the transform uses dynamic mappings unless an index template exists. If it is + // a latest transform, it does not deduce + // mapping definitions; it uses dynamic mappings. To use explicit mappings, + // create the destination index before you + // start the transform. Alternatively, you can create an index template, though + // it does not affect the deduced mappings + // in a pivot transform. + // + // When the transform starts, a series of validations occur to ensure its + // success. If you deferred validation when you + // created the transform, they occur when you start the transform—​with the + // exception of privilege checks. When + // Elasticsearch security features are enabled, the transform remembers which + // roles the user that created it had at the + // time of creation and uses those same roles. If those roles do not have the + // required privileges on the source and + // destination indices, the transform fails when it attempts unauthorized + // operations. // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html StartTransform transform_start_transform.NewStartTransform // Stops one or more transforms. // https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html StopTransform transform_stop_transform.NewStopTransform // Updates certain properties of a transform. + // + // All updated properties except `description` do not take effect until after + // the transform starts the next checkpoint, + // thus there is data consistency in each checkpoint. To use this API, you must + // have `read` and `view_index_metadata` + // privileges for the source indices. You must also have `index` and `read` + // privileges for the destination index. When + // Elasticsearch security features are enabled, the transform remembers which + // roles the user who updated it had at the + // time of update and runs with those privileges. // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html UpdateTransform transform_update_transform.NewUpdateTransform // Upgrades all transforms. + // This API identifies transforms that have a legacy configuration format and + // upgrades them to the latest version. It + // also cleans up the internal data structures that store the transform state + // and checkpoints. The upgrade does not + // affect the source and destination indices. The upgrade also does not affect + // the roles that transforms use when + // Elasticsearch security features are enabled; the role used to read source + // data and write to the destination index + // remains unchanged. // https://www.elastic.co/guide/en/elasticsearch/reference/current/upgrade-transforms.html UpgradeTransforms transform_upgrade_transforms.NewUpgradeTransforms } @@ -2015,7 +2956,13 @@ type Watcher struct { // Removes a watch from Watcher. // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html DeleteWatch watcher_delete_watch.NewDeleteWatch - // Forces the execution of a stored watch. + // 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. + // For testing and debugging purposes, you also have fine-grained control on how + // the watch runs. You can execute the watch without executing all of its + // actions or alternatively by simulating them. You can also force execution by + // ignoring the watch condition and control whether a watch record would be + // written to the watch history after execution. // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ExecuteWatch watcher_execute_watch.NewExecuteWatch // Retrieve settings for the watcher system index @@ -2045,10 +2992,11 @@ type Watcher struct { } type Xpack struct { - // Retrieves information about the installed X-Pack features. + // Provides general information about the installed X-Pack features. // https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html Info xpack_info.NewInfo - // Retrieves usage information about the installed X-Pack features. + // This API provides information about which features are currently enabled and + // available under the current license and some usage statistics. // https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html Usage xpack_usage.NewUsage } @@ -2056,9 +3004,11 @@ type Xpack struct { type API struct { AsyncSearch AsyncSearch Autoscaling Autoscaling + Capabilities Capabilities Cat Cat Ccr Ccr Cluster Cluster + Connector Connector Core Core DanglingIndices DanglingIndices Enrich Enrich @@ -2077,7 +3027,8 @@ type API struct { Ml Ml Monitoring Monitoring Nodes Nodes - QueryRuleset QueryRuleset + Profiling Profiling + QueryRules QueryRules Rollup Rollup SearchApplication SearchApplication SearchableSnapshots SearchableSnapshots @@ -2094,55 +3045,60 @@ type API struct { Watcher Watcher Xpack Xpack - // Allows to perform multiple index/update/delete operations in a single - // request. + // 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 - // Explicitly clears the search context for a scroll. + // Clears 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 - // Close a point in time + // Closes a point-in-time. // 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 - // Creates a new document in the index. - // - // Returns a 409 response when a document with a same ID already exists in the - // index. + // 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 - // Removes a document from the index. + // Removes a JSON document from the specified index. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html Delete core_delete.NewDelete - // Deletes documents matching the provided query. + // 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 // operation. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html DeleteByQueryRethrottle core_delete_by_query_rethrottle.NewDeleteByQueryRethrottle - // Deletes a script. + // Deletes a stored script or search template. // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html DeleteScript core_delete_script.NewDeleteScript - // Returns information about whether a document exists in an index. + // Checks if a document in an index exists. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html Exists core_exists.NewExists - // Returns information about whether a document source exists in an index. + // 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 matches (or doesn't match) a query. + // 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 - // Returns the information about the capabilities of fields among multiple - // indices. + // 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://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html FieldCaps core_field_caps.NewFieldCaps // Returns a document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html Get core_get.NewGet - // Returns a script. + // 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. @@ -2157,7 +3113,10 @@ type API struct { // Returns the health of the cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html HealthReport core_health_report.NewHealthReport - // Creates or updates a document in an index. + // 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 // Returns basic information about the cluster. @@ -2172,23 +3131,33 @@ type API struct { // Allows to execute several search operations in one request. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html Msearch core_msearch.NewMsearch - // Allows to execute several search template operations in one request. + // Runs multiple templated searches with a single request. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html MsearchTemplate core_msearch_template.NewMsearchTemplate // Returns multiple termvectors in one request. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-termvectors.html Mtermvectors core_mtermvectors.NewMtermvectors - // Open a point in time that can be used in subsequent searches + // A search request by default executes 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 + // to perform multiple + // search requests using the same point in time. For example, if refreshes + // happen between + // `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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html OpenPointInTime core_open_point_in_time.NewOpenPointInTime // Returns whether the cluster is running. // https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html Ping core_ping.NewPing - // Creates or updates a script. + // 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 - // Allows to evaluate the quality of ranked search results over a set of typical - // search queries + // Enables you to 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 @@ -2198,19 +3167,22 @@ type API struct { // documents from a remote cluster. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html Reindex core_reindex.NewReindex - // Changes the number of requests per second for a particular Reindex operation. + // Copies documents from a source to a destination. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html ReindexRethrottle core_reindex_rethrottle.NewReindexRethrottle - // Allows to use the Mustache language to pre-render a search definition. + // Renders 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 - // Allows an arbitrary script to be executed and a result to be returned + // 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. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-scroll Scroll core_scroll.NewScroll - // Returns results matching a query. + // Returns 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 @@ -2221,7 +3193,7 @@ type API struct { // be executed against. // https://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html SearchShards core_search_shards.NewSearchShards - // Allows to use the Mustache language to pre-render a search definition. + // Runs 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 @@ -2236,10 +3208,10 @@ type API struct { // Updates a document with a script or partial document. // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html Update core_update.NewUpdate - // Updates documents that match the specified query. If no query is specified, - // performs an update on every document in the index without changing the - // source, - // for example to pick up a mapping change. + // 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 @@ -2266,6 +3238,11 @@ func New(tp elastictransport.Interface) *API { PutAutoscalingPolicy: autoscaling_put_autoscaling_policy.NewPutAutoscalingPolicyFunc(tp), }, + // Capabilities + Capabilities: Capabilities{ + Capabilities: capabilities.NewCapabilitiesFunc(tp), + }, + // Cat Cat: Cat{ Aliases: cat_aliases.NewAliasesFunc(tp), @@ -2333,6 +3310,36 @@ func New(tp elastictransport.Interface) *API { Stats: cluster_stats.NewStatsFunc(tp), }, + // Connector + Connector: Connector{ + CheckIn: connector_check_in.NewCheckInFunc(tp), + Delete: connector_delete.NewDeleteFunc(tp), + Get: connector_get.NewGetFunc(tp), + LastSync: connector_last_sync.NewLastSyncFunc(tp), + List: connector_list.NewListFunc(tp), + Post: connector_post.NewPostFunc(tp), + Put: connector_put.NewPutFunc(tp), + SecretPost: connector_secret_post.NewSecretPostFunc(tp), + SyncJobCancel: connector_sync_job_cancel.NewSyncJobCancelFunc(tp), + SyncJobDelete: connector_sync_job_delete.NewSyncJobDeleteFunc(tp), + SyncJobGet: connector_sync_job_get.NewSyncJobGetFunc(tp), + SyncJobList: connector_sync_job_list.NewSyncJobListFunc(tp), + SyncJobPost: connector_sync_job_post.NewSyncJobPostFunc(tp), + UpdateActiveFiltering: connector_update_active_filtering.NewUpdateActiveFilteringFunc(tp), + UpdateApiKeyId: connector_update_api_key_id.NewUpdateApiKeyIdFunc(tp), + UpdateConfiguration: connector_update_configuration.NewUpdateConfigurationFunc(tp), + UpdateError: connector_update_error.NewUpdateErrorFunc(tp), + UpdateFiltering: connector_update_filtering.NewUpdateFilteringFunc(tp), + UpdateFilteringValidation: connector_update_filtering_validation.NewUpdateFilteringValidationFunc(tp), + UpdateIndexName: connector_update_index_name.NewUpdateIndexNameFunc(tp), + UpdateName: connector_update_name.NewUpdateNameFunc(tp), + UpdateNative: connector_update_native.NewUpdateNativeFunc(tp), + UpdatePipeline: connector_update_pipeline.NewUpdatePipelineFunc(tp), + UpdateScheduling: connector_update_scheduling.NewUpdateSchedulingFunc(tp), + UpdateServiceType: connector_update_service_type.NewUpdateServiceTypeFunc(tp), + UpdateStatus: connector_update_status.NewUpdateStatusFunc(tp), + }, + // Core Core: Core{ Bulk: core_bulk.NewBulkFunc(tp), @@ -2407,7 +3414,8 @@ func New(tp elastictransport.Interface) *API { // Esql Esql: Esql{ - Query: esql_query.NewQueryFunc(tp), + AsyncQuery: esql_async_query.NewAsyncQueryFunc(tp), + Query: esql_query.NewQueryFunc(tp), }, // Features @@ -2509,10 +3517,10 @@ func New(tp elastictransport.Interface) *API { // Inference Inference: Inference{ - DeleteModel: inference_delete_model.NewDeleteModelFunc(tp), - GetModel: inference_get_model.NewGetModelFunc(tp), - Inference: inference_inference.NewInferenceFunc(tp), - PutModel: inference_put_model.NewPutModelFunc(tp), + Delete: inference_delete.NewDeleteFunc(tp), + Get: inference_get.NewGetFunc(tp), + Inference: inference_inference.NewInferenceFunc(tp), + Put: inference_put.NewPutFunc(tp), }, // Ingest @@ -2643,12 +3651,23 @@ func New(tp elastictransport.Interface) *API { Usage: nodes_usage.NewUsageFunc(tp), }, - // QueryRuleset - QueryRuleset: QueryRuleset{ - Delete: query_ruleset_delete.NewDeleteFunc(tp), - Get: query_ruleset_get.NewGetFunc(tp), - List: query_ruleset_list.NewListFunc(tp), - Put: query_ruleset_put.NewPutFunc(tp), + // Profiling + Profiling: Profiling{ + Flamegraph: profiling_flamegraph.NewFlamegraphFunc(tp), + Stacktraces: profiling_stacktraces.NewStacktracesFunc(tp), + Status: profiling_status.NewStatusFunc(tp), + TopnFunctions: profiling_topn_functions.NewTopnFunctionsFunc(tp), + }, + + // QueryRules + QueryRules: QueryRules{ + DeleteRule: query_rules_delete_rule.NewDeleteRuleFunc(tp), + DeleteRuleset: query_rules_delete_ruleset.NewDeleteRulesetFunc(tp), + GetRule: query_rules_get_rule.NewGetRuleFunc(tp), + GetRuleset: query_rules_get_ruleset.NewGetRulesetFunc(tp), + ListRulesets: query_rules_list_rulesets.NewListRulesetsFunc(tp), + PutRule: query_rules_put_rule.NewPutRuleFunc(tp), + PutRuleset: query_rules_put_ruleset.NewPutRulesetFunc(tp), }, // Rollup @@ -2687,6 +3706,8 @@ func New(tp elastictransport.Interface) *API { Security: Security{ ActivateUserProfile: security_activate_user_profile.NewActivateUserProfileFunc(tp), Authenticate: security_authenticate.NewAuthenticateFunc(tp), + BulkDeleteRole: security_bulk_delete_role.NewBulkDeleteRoleFunc(tp), + BulkPutRole: security_bulk_put_role.NewBulkPutRoleFunc(tp), BulkUpdateApiKeys: security_bulk_update_api_keys.NewBulkUpdateApiKeysFunc(tp), ChangePassword: security_change_password.NewChangePasswordFunc(tp), ClearApiKeyCache: security_clear_api_key_cache.NewClearApiKeyCacheFunc(tp), @@ -2733,6 +3754,8 @@ func New(tp elastictransport.Interface) *API { PutRoleMapping: security_put_role_mapping.NewPutRoleMappingFunc(tp), PutUser: security_put_user.NewPutUserFunc(tp), QueryApiKeys: security_query_api_keys.NewQueryApiKeysFunc(tp), + QueryRole: security_query_role.NewQueryRoleFunc(tp), + QueryUser: security_query_user.NewQueryUserFunc(tp), SamlAuthenticate: security_saml_authenticate.NewSamlAuthenticateFunc(tp), SamlCompleteLogout: security_saml_complete_logout.NewSamlCompleteLogoutFunc(tp), SamlInvalidate: security_saml_invalidate.NewSamlInvalidateFunc(tp), @@ -2815,13 +3838,16 @@ func New(tp elastictransport.Interface) *API { // TextStructure TextStructure: TextStructure{ - FindStructure: text_structure_find_structure.NewFindStructureFunc(tp), - TestGrokPattern: text_structure_test_grok_pattern.NewTestGrokPatternFunc(tp), + FindFieldStructure: text_structure_find_field_structure.NewFindFieldStructureFunc(tp), + FindMessageStructure: text_structure_find_message_structure.NewFindMessageStructureFunc(tp), + FindStructure: text_structure_find_structure.NewFindStructureFunc(tp), + TestGrokPattern: text_structure_test_grok_pattern.NewTestGrokPatternFunc(tp), }, // Transform Transform: Transform{ DeleteTransform: transform_delete_transform.NewDeleteTransformFunc(tp), + GetNodeStats: transform_get_node_stats.NewGetNodeStatsFunc(tp), GetTransform: transform_get_transform.NewGetTransformFunc(tp), GetTransformStats: transform_get_transform_stats.NewGetTransformStatsFunc(tp), PreviewTransform: transform_preview_transform.NewPreviewTransformFunc(tp), diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/delete.go index a2f7ab9252..759997d184 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,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Deletes an async search by ID. If the search is still running, the search -// request will be cancelled. Otherwise, the saved search results are deleted. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Deletes an async search by identifier. +// If the search is still running, the search request will be 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 +// the original search request; users that have the `cancel_task` cluster +// privilege. package delete import ( @@ -77,8 +82,13 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } -// Deletes an async search by ID. If the search is still running, the search -// request will be cancelled. Otherwise, the saved search results are deleted. +// Deletes an async search by identifier. +// If the search is still running, the search request will be 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 +// the original search request; users that have the `cancel_task` cluster +// privilege. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html func New(tp elastictransport.Interface) *Delete { 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 c763781a91..3ce66d3ec7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/delete/AsyncSearchDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 187aae2075..e86b2c94dd 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,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves the results of a previously submitted async search request given -// its ID. +// its identifier. +// 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. package get import ( @@ -78,7 +81,10 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } // Retrieves the results of a previously submitted async search request given -// its ID. +// its identifier. +// 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 func New(tp elastictransport.Interface) *Get { 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 de62377048..504a5ffbdf 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,17 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package get import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L24 type Response struct { // CompletionTime Indicates when the async search completed. Only present @@ -56,3 +63,90 @@ func NewResponse() *Response { r := &Response{} return r } + +func (s *Response) 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 "completion_time": + if err := dec.Decode(&s.CompletionTime); err != nil { + return fmt.Errorf("%s | %w", "CompletionTime", err) + } + + case "completion_time_in_millis": + if err := dec.Decode(&s.CompletionTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "CompletionTimeInMillis", err) + } + + case "expiration_time": + if err := dec.Decode(&s.ExpirationTime); err != nil { + return fmt.Errorf("%s | %w", "ExpirationTime", err) + } + + case "expiration_time_in_millis": + if err := dec.Decode(&s.ExpirationTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "ExpirationTimeInMillis", err) + } + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "is_partial": + 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", "IsPartial", err) + } + s.IsPartial = value + case bool: + s.IsPartial = v + } + + case "is_running": + 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", "IsRunning", err) + } + s.IsRunning = value + case bool: + s.IsRunning = v + } + + case "response": + if err := dec.Decode(&s.Response); err != nil { + return fmt.Errorf("%s | %w", "Response", err) + } + + case "start_time": + if err := dec.Decode(&s.StartTime); err != nil { + return fmt.Errorf("%s | %w", "StartTime", err) + } + + case "start_time_in_millis": + if err := dec.Decode(&s.StartTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "StartTimeInMillis", err) + } + + } + } + return nil +} 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 6a0896b2f7..1dc7fe01f3 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,17 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package status import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L41 type Response struct { // Clusters_ Metadata about clusters involved in the cross-cluster search. @@ -65,3 +72,111 @@ func NewResponse() *Response { r := &Response{} return r } + +func (s *Response) 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 "_clusters": + if err := dec.Decode(&s.Clusters_); err != nil { + return fmt.Errorf("%s | %w", "Clusters_", err) + } + + case "completion_status": + + 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", "CompletionStatus", err) + } + s.CompletionStatus = &value + case float64: + f := int(v) + s.CompletionStatus = &f + } + + case "completion_time": + if err := dec.Decode(&s.CompletionTime); err != nil { + return fmt.Errorf("%s | %w", "CompletionTime", err) + } + + case "completion_time_in_millis": + if err := dec.Decode(&s.CompletionTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "CompletionTimeInMillis", err) + } + + case "expiration_time": + if err := dec.Decode(&s.ExpirationTime); err != nil { + return fmt.Errorf("%s | %w", "ExpirationTime", err) + } + + case "expiration_time_in_millis": + if err := dec.Decode(&s.ExpirationTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "ExpirationTimeInMillis", err) + } + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "is_partial": + 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", "IsPartial", err) + } + s.IsPartial = value + case bool: + s.IsPartial = v + } + + case "is_running": + 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", "IsRunning", err) + } + s.IsRunning = value + case bool: + s.IsRunning = v + } + + case "_shards": + if err := dec.Decode(&s.Shards_); err != nil { + return fmt.Errorf("%s | %w", "Shards_", err) + } + + case "start_time": + if err := dec.Decode(&s.StartTime); err != nil { + return fmt.Errorf("%s | %w", "StartTime", err) + } + + case "start_time_in_millis": + if err := dec.Decode(&s.StartTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "StartTimeInMillis", err) + } + + } + } + return nil +} 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 4bf69c66bc..d05bd22e7b 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,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// Get async search status // Retrieves the status of a previously submitted async search request given its -// ID. +// identifier, without retrieving search results. +// If the Elasticsearch security features are enabled, use of this API is +// restricted to the `monitoring_user` role. package status import ( @@ -77,8 +80,11 @@ func NewStatusFunc(tp elastictransport.Interface) NewStatus { } } +// Get async search status // Retrieves the status of a previously submitted async search request given its -// ID. +// 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 func New(tp elastictransport.Interface) *Status { 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 7d69036b80..b2c8e9927d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package submit @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L55-L286 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L55-L286 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` @@ -379,9 +379,40 @@ func (s *Request) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := types.NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } case "stats": if err := dec.Decode(&s.Stats); err != nil { 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 eb74be966e..60ec59c468 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,17 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package submit import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) // Response holds the response body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24 type Response struct { // CompletionTime Indicates when the async search completed. Only present @@ -56,3 +63,90 @@ func NewResponse() *Response { r := &Response{} return r } + +func (s *Response) 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 "completion_time": + if err := dec.Decode(&s.CompletionTime); err != nil { + return fmt.Errorf("%s | %w", "CompletionTime", err) + } + + case "completion_time_in_millis": + if err := dec.Decode(&s.CompletionTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "CompletionTimeInMillis", err) + } + + case "expiration_time": + if err := dec.Decode(&s.ExpirationTime); err != nil { + return fmt.Errorf("%s | %w", "ExpirationTime", err) + } + + case "expiration_time_in_millis": + if err := dec.Decode(&s.ExpirationTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "ExpirationTimeInMillis", err) + } + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "is_partial": + 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", "IsPartial", err) + } + s.IsPartial = value + case bool: + s.IsPartial = v + } + + case "is_running": + 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", "IsRunning", err) + } + s.IsRunning = value + case bool: + s.IsRunning = v + } + + case "response": + if err := dec.Decode(&s.Response); err != nil { + return fmt.Errorf("%s | %w", "Response", err) + } + + case "start_time": + if err := dec.Decode(&s.StartTime); err != nil { + return fmt.Errorf("%s | %w", "StartTime", err) + } + + case "start_time_in_millis": + if err := dec.Decode(&s.StartTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "StartTimeInMillis", err) + } + + } + } + return nil +} 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 2d0258340e..171f249182 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,9 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Executes a search request asynchronously. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Runs a search request asynchronously. +// 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. +// 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 import ( @@ -83,7 +93,17 @@ func NewSubmitFunc(tp elastictransport.Interface) NewSubmit { } } -// Executes a search request asynchronously. +// Runs a search request asynchronously. +// 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. +// 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 func New(tp elastictransport.Interface) *Submit { 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 17f7eeb798..8d101b8ef9 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes an autoscaling policy. 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/autoscaling/deleteautoscalingpolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/response.go index bf7f211053..87a7fa344d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteautoscalingpolicy // Response holds the response body struct for the package deleteautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6b7b848eff..63b3ccaccc 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Gets the current autoscaling capacity based on the configured autoscaling // policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not 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 1ade4e8880..029f17e4c5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getautoscalingcapacity @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautoscalingcapacity // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b59b98558a..2df9f99afc 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves an autoscaling policy. 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/autoscaling/getautoscalingpolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/response.go index 413b824e68..223168e348 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getautoscalingpolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24 type Response struct { // Deciders Decider settings diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go index 461ba26654..cc072bc98a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Creates a new autoscaling policy. 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/autoscaling/putautoscalingpolicy/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/request.go index 66047dabde..243a1ac2b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putautoscalingpolicy @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L35 type Request = types.AutoscalingPolicy // NewRequest returns a Request diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/response.go index b5556f48eb..e54f3447bd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putautoscalingpolicy // Response holds the response body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..0d8c7b3b8a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/capabilities/capabilities.go @@ -0,0 +1,225 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Checks if the specified combination of method, API, parameters, and arbitrary +// capabilities are supported +package capabilities + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 Capabilities struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewCapabilities type alias for index. +type NewCapabilities func() *Capabilities + +// NewCapabilitiesFunc returns a new instance of Capabilities with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewCapabilitiesFunc(tp elastictransport.Interface) NewCapabilities { + return func() *Capabilities { + n := New(tp) + + return n + } +} + +// 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 +func New(tp elastictransport.Interface) *Capabilities { + r := &Capabilities{ + 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 *Capabilities) 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("_capabilities") + + 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 Capabilities) 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, "capabilities") + 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, "capabilities") + if reader := instrument.RecordRequestBody(ctx, "capabilities", 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", "capabilities") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the Capabilities 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 capabilities.Response +func (r Capabilities) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 Capabilities) 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, "capabilities") + 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 Capabilities 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 Capabilities headers map. +func (r *Capabilities) Header(key, value string) *Capabilities { + r.headers.Set(key, value) + + return r +} 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 89ea6883c7..0557a6cfd0 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,10 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Shows information about currently configured aliases to indices including -// filter and routing infos. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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. package aliases import ( @@ -76,8 +80,12 @@ func NewAliasesFunc(tp elastictransport.Interface) NewAliases { } } -// Shows information about currently configured aliases to indices including -// filter and routing infos. +// 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. // // 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 5c7e1b742e..6798a3640b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package aliases @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package aliases // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/aliases/CatAliasesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 68111a392d..37fc3b8366 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Provides a snapshot of how many shards are allocated to each data node and -// how much disk space they are using. +// Provides a snapshot of the number of shards allocated to each data node and +// their disk space. +// IMPORTANT: cat APIs are only intended for human consumption using the command +// line or Kibana console. They are not intended for use by applications. package allocation import ( @@ -76,8 +78,10 @@ func NewAllocationFunc(tp elastictransport.Interface) NewAllocation { } } -// Provides a snapshot of how many shards are allocated to each data node and -// how much disk space they are using. +// Provides a snapshot of the number of shards allocated to each data node and +// their disk space. +// IMPORTANT: cat APIs are only intended for human consumption using the command +// line or Kibana console. They are not intended for use by applications. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html func New(tp elastictransport.Interface) *Allocation { 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 ad780ed9d2..f859148edc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package allocation @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package allocation // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/allocation/CatAllocationResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 44a447b2f6..5b57632f18 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns information about existing component_templates templates. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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. +// They are not intended for use by applications. For application consumption, +// use the get component template API. package componenttemplates import ( @@ -74,7 +80,13 @@ func NewComponentTemplatesFunc(tp elastictransport.Interface) NewComponentTempla } } -// Returns information about existing component_templates 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. +// 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 func New(tp elastictransport.Interface) *ComponentTemplates { 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 f2273f0cdf..f0dac0878c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package componenttemplates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package componenttemplates // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fb259694e1..3899f39544 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,10 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Provides quick access to the document count of the entire cluster, or -// individual indices. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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. +// They are not intended for use by applications. For application consumption, +// use the count API. package count import ( @@ -75,8 +81,14 @@ func NewCountFunc(tp elastictransport.Interface) NewCount { } } -// Provides quick access to the document count of the entire cluster, or -// individual indices. +// 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. +// 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 func New(tp elastictransport.Interface) *Count { 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 af5a9656d3..9e59274d00 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package count @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/count/CatCountResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 722273eba8..8019714376 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,10 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Shows how much heap memory is currently being used by fielddata on every data -// node in the cluster. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns the amount of heap memory currently used by the field data cache on +// every data node in the cluster. +// 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 nodes stats API. package fielddata import ( @@ -76,8 +80,12 @@ func NewFielddataFunc(tp elastictransport.Interface) NewFielddata { } } -// Shows how much heap memory is currently being used by fielddata on every data -// node in the cluster. +// Returns the amount of heap memory currently used by the field data cache on +// every data node in the cluster. +// 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 nodes stats API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-fielddata.html func New(tp elastictransport.Interface) *Fielddata { 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 89d8592138..a42552e1df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package fielddata @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package fielddata // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/fielddata/CatFielddataResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7cfb28b5f1..e4062aaf90 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,9 +16,23 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns a concise representation of the cluster health. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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 +// line or Kibana console. +// They are not intended for use by applications. For application consumption, +// use the cluster health API. +// This API is often used to check malfunctioning clusters. +// To help you track cluster health alongside log files and alerting systems, +// the API returns timestamps in two formats: +// `HH:MM:SS`, which is human-readable but includes no date information; +// `Unix epoch time`, which is machine-sortable and includes date information. +// The latter format is useful for cluster recoveries that take multiple days. +// You can use the cat health API to verify cluster health across multiple +// nodes. +// You also can use the API to track the recovery of a large cluster over a +// longer period of time. package health import ( @@ -69,7 +83,21 @@ func NewHealthFunc(tp elastictransport.Interface) NewHealth { } } -// Returns a concise representation of the cluster health. +// 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 +// line or Kibana console. +// They are not intended for use by applications. For application consumption, +// use the cluster health API. +// This API is often used to check malfunctioning clusters. +// To help you track cluster health alongside log files and alerting systems, +// the API returns timestamps in two formats: +// `HH:MM:SS`, which is human-readable but includes no date information; +// `Unix epoch time`, which is machine-sortable and includes date information. +// The latter format is useful for cluster recoveries that take multiple days. +// You can use the cat health API to verify cluster health across multiple +// nodes. +// You also can use the API to track the recovery of a large cluster over a +// longer period of time. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-health.html func New(tp elastictransport.Interface) *Health { 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 bd1aeec0d9..bcd55db38a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package health @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/health/CatHealthResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3c4336109d..cd623798a9 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/help.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/help.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns help for the Cat APIs. package 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 88890f0d78..5da7e93a84 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package help @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package help // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/help/CatHelpResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e0b703e01b..23e72b0be9 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,10 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns information about indices: number of primaries and replicas, document -// counts, disk size, ... +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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. +// 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. package indices import ( @@ -79,8 +91,20 @@ func NewIndicesFunc(tp elastictransport.Interface) NewIndices { } } -// Returns information about indices: number of primaries and replicas, document -// counts, disk size, ... +// 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. +// 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. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html func New(tp elastictransport.Interface) *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 fc2c6a2f2a..d78a8c560e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package indices @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package indices // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/indices/CatIndicesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2f57f39a84..c359dc42fd 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,9 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about the master node. +// Returns information about the master node, including the ID, bound IP +// address, and name. +// 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 nodes info API. package master import ( @@ -68,7 +72,11 @@ func NewMasterFunc(tp elastictransport.Interface) NewMaster { } } -// Returns information about the master node. +// Returns information about the master node, including the ID, bound IP +// address, and name. +// 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 nodes info API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-master.html func New(tp elastictransport.Interface) *Master { 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 7e766d7548..848c579eb7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package master @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package master // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/master/CatMasterResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a96be4a15a..fda796aa30 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,9 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Gets configuration and usage information about 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 +// console or command line. They are not intended for use by applications. For +// application consumption, use the get datafeed statistics API. package mldatafeeds import ( @@ -76,7 +84,15 @@ func NewMlDatafeedsFunc(tp elastictransport.Interface) NewMlDatafeeds { } } -// Gets configuration and usage information about 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 +// 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 func New(tp elastictransport.Interface) *MlDatafeeds { 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 e158aa4049..3b487b4ff1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mldatafeeds @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mldatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d4e2efc3d7..8e3bf0ed16 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,9 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Gets configuration and usage information about 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 +// console or command line. They are not intended for use by applications. For +// application consumption, use the get data frame analytics jobs statistics +// API. package mldataframeanalytics import ( @@ -76,7 +81,12 @@ func NewMlDataFrameAnalyticsFunc(tp elastictransport.Interface) NewMlDataFrameAn } } -// Gets configuration and usage information about 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 +// 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 func New(tp elastictransport.Interface) *MlDataFrameAnalytics { 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 5dd86fa733..b34a13df86 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mldataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mldataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 46c792f4eb..5409efc941 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,9 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Gets configuration and usage information about 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 +// 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 import ( @@ -77,7 +85,15 @@ func NewMlJobsFunc(tp elastictransport.Interface) NewMlJobs { } } -// Gets configuration and usage information about 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 +// 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 func New(tp elastictransport.Interface) *MlJobs { 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 6dd8e7c3e9..13d58f018d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mljobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mljobs // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 65f6b5ddbd..dfcb1e3e15 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,9 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Gets configuration and usage information about inference trained models. +// Returns configuration and usage information about inference trained models. +// +// IMPORTANT: 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 import ( @@ -76,7 +80,11 @@ func NewMlTrainedModelsFunc(tp elastictransport.Interface) NewMlTrainedModels { } } -// Gets configuration and usage information about inference trained models. +// Returns configuration and usage information about inference trained models. +// +// IMPORTANT: 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 func New(tp elastictransport.Interface) *MlTrainedModels { 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 3bd063c697..efff866e19 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mltrainedmodels @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mltrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5db2dffb7a..62463c5d89 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns information about custom node attributes. +// 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 nodes info API. package nodeattrs import ( @@ -69,6 +72,9 @@ func NewNodeattrsFunc(tp elastictransport.Interface) NewNodeattrs { } // Returns information about custom node attributes. +// 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 nodes info API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodeattrs.html func New(tp elastictransport.Interface) *Nodeattrs { 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 2b0a90f4c1..cbceaa6704 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package nodeattrs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package nodeattrs // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 baf009c7a9..716e9ef175 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns basic statistics about performance of cluster nodes. +// Returns information about the nodes in a cluster. +// 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 nodes info API. package nodes import ( @@ -69,7 +72,10 @@ func NewNodesFunc(tp elastictransport.Interface) NewNodes { } } -// Returns basic statistics about performance of cluster nodes. +// Returns information about the nodes in a cluster. +// 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 nodes info API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodes.html func New(tp elastictransport.Interface) *Nodes { 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 8bebfe799f..0a01e22315 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package nodes @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package nodes // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/nodes/CatNodesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ba7e7dd4a7..1e64fcfd06 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns a concise representation of the cluster pending tasks. +// Returns cluster-level changes that have not yet been executed. +// 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 pending cluster tasks API. package pendingtasks import ( @@ -68,7 +71,10 @@ func NewPendingTasksFunc(tp elastictransport.Interface) NewPendingTasks { } } -// Returns a concise representation of the cluster pending tasks. +// Returns cluster-level changes that have not yet been executed. +// 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 pending cluster tasks API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-pending-tasks.html func New(tp elastictransport.Interface) *PendingTasks { 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 c61a65d636..84fabd174b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package pendingtasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0c486aaac7..e2b469654f 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about installed plugins across nodes node. +// Returns a list of plugins running on each node of a cluster. +// 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 nodes info API. package plugins import ( @@ -68,7 +71,10 @@ func NewPluginsFunc(tp elastictransport.Interface) NewPlugins { } } -// Returns information about installed plugins across nodes node. +// Returns a list of plugins running on each node of a cluster. +// 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 nodes info API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html func New(tp elastictransport.Interface) *Plugins { 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 173ebcf1f1..d04651f0ac 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package plugins @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package plugins // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/plugins/CatPluginsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 53f1ca8449..0983f81edb 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,9 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns information about index shard recoveries, both on-going completed. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns information about ongoing and completed shard recoveries. +// Shard recovery is the process of initializing a shard copy, such as restoring +// a primary shard from a snapshot or syncing a replica shard from a primary +// shard. When a shard recovery completes, the recovered shard is available for +// search and indexing. +// For data streams, the API returns information about the stream’s backing +// indices. +// 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 index recovery API. package recovery import ( @@ -75,7 +84,16 @@ func NewRecoveryFunc(tp elastictransport.Interface) NewRecovery { } } -// Returns information about index shard recoveries, both on-going completed. +// Returns information about ongoing and completed shard recoveries. +// Shard recovery is the process of initializing a shard copy, such as restoring +// a primary shard from a snapshot or syncing a replica shard from a primary +// shard. When a shard recovery completes, the recovered shard is available for +// search and indexing. +// For data streams, the API returns information about the stream’s backing +// indices. +// 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 index recovery API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-recovery.html func New(tp elastictransport.Interface) *Recovery { 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 49ac15aa06..9aed77ce83 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package recovery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/recovery/CatRecoveryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 87706a5ff9..da8d1da726 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about snapshot repositories registered in the cluster. +// Returns the snapshot repositories for a cluster. +// 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 snapshot repository API. package repositories import ( @@ -68,7 +71,10 @@ func NewRepositoriesFunc(tp elastictransport.Interface) NewRepositories { } } -// Returns information about snapshot repositories registered in the cluster. +// Returns the snapshot repositories for a cluster. +// 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 snapshot repository API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-repositories.html func New(tp elastictransport.Interface) *Repositories { 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 e4ce4ac3f2..92c84abea3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package repositories @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositories // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 94e2faf3fd..fee9d3bae9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package segments @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/segments/CatSegmentsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ec0de1b4ce..41d20b3d42 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,9 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Provides low-level information about the segments in the shards of an index. +// Returns low-level information about the Lucene segments in index shards. +// For data streams, the API returns information about the backing indices. +// 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 index segments API. package segments import ( @@ -75,7 +79,11 @@ func NewSegmentsFunc(tp elastictransport.Interface) NewSegments { } } -// Provides low-level information about the segments in the shards of an index. +// Returns low-level information about the Lucene segments in index shards. +// For data streams, the API returns information about the backing indices. +// 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 index segments API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-segments.html func New(tp elastictransport.Interface) *Segments { 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 3d84d1d8c2..40b320308d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package shards @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package shards // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/shards/CatShardsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1ab817f44d..6bca35ea6e 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Provides a detailed view of shard allocation on nodes. +// Returns information about the shards in a cluster. +// For data streams, the API returns information about the backing indices. +// IMPORTANT: cat APIs are only intended for human consumption using the command +// line or Kibana console. They are not intended for use by applications. package shards import ( @@ -75,7 +78,10 @@ func NewShardsFunc(tp elastictransport.Interface) NewShards { } } -// Provides a detailed view of shard allocation on nodes. +// Returns information about the shards in a cluster. +// For data streams, the API returns information about the backing indices. +// IMPORTANT: cat APIs are only intended for human consumption using the command +// line or Kibana console. They are not intended for use by applications. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html func New(tp elastictransport.Interface) *Shards { 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 8f012c3950..dc923d2b65 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package snapshots @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package snapshots // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c49901dc23..02e0e5c70c 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,9 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns all snapshots in a specific repository. +// Returns information about the snapshots stored in one or more repositories. +// A snapshot is a backup of an index or running Elasticsearch cluster. +// 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 snapshot API. package snapshots import ( @@ -74,7 +78,11 @@ func NewSnapshotsFunc(tp elastictransport.Interface) NewSnapshots { } } -// Returns all snapshots in a specific repository. +// Returns information about the snapshots stored in one or more repositories. +// A snapshot is a backup of an index or running Elasticsearch cluster. +// 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 snapshot API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html func New(tp elastictransport.Interface) *Snapshots { 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 5e50135abf..6d1c31d3c8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package tasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package tasks // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/tasks/CatTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c8f36d4f9d..01137c2fb3 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about the tasks currently executing on one or more nodes -// in the cluster. +// Returns information about tasks currently executing in the cluster. +// 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 task management API. package tasks import ( @@ -69,8 +71,10 @@ func NewTasksFunc(tp elastictransport.Interface) NewTasks { } } -// Returns information about the tasks currently executing on one or more nodes -// in the cluster. +// Returns information about tasks currently executing in the cluster. +// 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 task management API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html func New(tp elastictransport.Interface) *Tasks { 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 feabf6251e..cf15d87393 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package templates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package templates // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/templates/CatTemplatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 91708fac9f..3c362825ce 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,9 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns information about existing templates. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns information about index templates in a cluster. +// You can use index templates to apply index settings and field mappings to new +// indices at creation. +// 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 template API. package templates import ( @@ -74,7 +79,12 @@ func NewTemplatesFunc(tp elastictransport.Interface) NewTemplates { } } -// Returns information about existing templates. +// Returns information about index templates in a cluster. +// You can use index templates to apply index settings and field mappings to new +// indices at creation. +// 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 template API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-templates.html func New(tp elastictransport.Interface) *Templates { 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 86364ae5cd..febd28fe33 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package threadpool @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package threadpool // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cebcff3517..6ac5eac456 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,11 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns cluster-wide thread pool statistics per node. -// By default the active, queue and rejected statistics are returned for all -// thread pools. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns thread pool statistics for each node in a cluster. +// Returned information includes all built-in thread pools and custom thread +// pools. +// 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 nodes info API. package threadpool import ( @@ -77,9 +80,12 @@ func NewThreadPoolFunc(tp elastictransport.Interface) NewThreadPool { } } -// Returns cluster-wide thread pool statistics per node. -// By default the active, queue and rejected statistics are returned for all -// thread pools. +// Returns thread pool statistics for each node in a cluster. +// Returned information includes all built-in thread pools and custom thread +// pools. +// 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 nodes info API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html func New(tp elastictransport.Interface) *ThreadPool { 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 ba1c0a24e0..54a2eb72d2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package transforms @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package transforms // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/transforms/CatTransformsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7894838b44..527d7a8456 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,9 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Gets configuration and usage information about transforms. +// Returns configuration and usage information about transforms. +// +// IMPORTANT: 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 import ( @@ -76,7 +80,11 @@ func NewTransformsFunc(tp elastictransport.Interface) NewTransforms { } } -// Gets configuration and usage information about transforms. +// Returns configuration and usage information about transforms. +// +// IMPORTANT: 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 func New(tp elastictransport.Interface) *Transforms { 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 8074b354b1..84596100e2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 5849edba2a..b09344c20c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteautofollowpattern // Response holds the response body struct for the package deleteautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1fd6c1ce52..5ad9b6c4aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 d7fe8e1937..dc7f840f43 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package follow @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow/CreateFollowIndexRequest.ts#L25-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4f27378cc9..89d612d864 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package follow // Response holds the response body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow/CreateFollowIndexResponse.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3e7a7585f9..b3b0b05348 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 13fbc9cc9b..e75492b24c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package followinfo @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package followinfo // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_info/FollowInfoResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 19920330b6..f33b6090dd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 6e5e9f168b..5414f3e4a6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package followstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package followstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3c6dedaa7c..7dc0a02001 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 ac21f05881..bcc105861d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package forgetfollower @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b0a8aa7942..53c2563817 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package forgetfollower @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9569d2b024..7570747d9b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 d5ebfdd943..fc515f3765 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getautofollowpattern @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cc7eca1b0f..1104ac5c4d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 0f5ed12566..7faebe1dd2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package pauseautofollowpattern // Response holds the response body struct for the package pauseautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2d1f046008..10061fec46 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 b75e7bb691..1d461f9dae 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package pausefollow // Response holds the response body struct for the package pausefollow // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8c92d5641a..524f3099f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 85160f7378..59000e36db 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putautofollowpattern @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L112 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 163556f4b6..8e97dad6ca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putautofollowpattern // Response holds the response body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 67d7f9b059..679f3f5a44 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package resumeautofollowpattern // Response holds the response body struct for the package resumeautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 49fb271e9c..4d746c6800 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 9b1e599e95..d436510094 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package resumefollow @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d108bd1ae0..45fc2446eb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package resumefollow // Response holds the response body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2e0a96f6ba..a1fa95f8aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 4546029db1..cc16554ad5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/stats/CcrStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9842be356a..ae732ad42f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 0766b3361e..a8fc9539a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package unfollow // Response holds the response body struct for the package unfollow // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/unfollow/UnfollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 75396ea8f7..4369b93a86 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 90ea7669c4..1b87eed221 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 d1d0927233..0a3e5dd241 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package allocationexplain @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L24-L61 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f57fea33f0..18b6272589 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package allocationexplain @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2e48a90ce7..0a92255546 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes a component template +// Deletes component templates. +// Component templates are building blocks for constructing index templates that +// specify index mappings, settings, and aliases. package deletecomponenttemplate import ( @@ -76,7 +78,9 @@ func NewDeleteComponentTemplateFunc(tp elastictransport.Interface) NewDeleteComp } } -// Deletes a component template +// Deletes component templates. +// Component templates are building blocks for constructing index templates that +// specify index mappings, settings, and aliases. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html func New(tp elastictransport.Interface) *DeleteComponentTemplate { 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 4f40c920d5..36d3fe7237 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletecomponenttemplate // Response holds the response body struct for the package deletecomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 660c156a11..49e49f92d9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 c2975f043f..61386be70e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/existscomponenttemplate/exists_component_template.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/existscomponenttemplate/exists_component_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns information about whether a particular component template exist package 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 46ca8752f5..d4d2be8cf9 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns one or more component templates +// Retrieves information about component templates. package getcomponenttemplate import ( @@ -74,7 +74,7 @@ func NewGetComponentTemplateFunc(tp elastictransport.Interface) NewGetComponentT } } -// Returns one or more component templates +// Retrieves information about component templates. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html func New(tp elastictransport.Interface) *GetComponentTemplate { 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 f28da66616..e45d31a18b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getcomponenttemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 00466d3ec3..def7d75012 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns cluster settings. +// Returns cluster-wide settings. +// By default, it returns only settings that have been explicitly defined. package getsettings import ( @@ -68,7 +69,8 @@ func NewGetSettingsFunc(tp elastictransport.Interface) NewGetSettings { } } -// Returns cluster settings. +// Returns cluster-wide settings. +// By default, it returns only settings that have been explicitly defined. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-get-settings.html func New(tp elastictransport.Interface) *GetSettings { 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 74a05f3c1b..3f338011c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 779558d2d6..f2409c8a84 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,9 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns basic information about the health of the cluster. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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 +// streams and indices. For data streams, the API retrieves the health status of +// the stream’s backing indices. +// The cluster health status is: green, yellow or red. On the shard level, a red +// status indicates that the specific shard is not allocated in the cluster, +// yellow means that the primary shard is allocated but replicas are not, and +// green means that all shards are allocated. The index level status is +// controlled by the worst shard status. The cluster status is controlled by the +// worst index status. package health import ( @@ -79,7 +88,16 @@ func NewHealthFunc(tp elastictransport.Interface) NewHealth { } } -// Returns basic information about the health of the cluster. +// 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 +// streams and indices. For data streams, the API retrieves the health status of +// the stream’s backing indices. +// The cluster health status is: green, yellow or red. On the shard level, a red +// status indicates that the specific shard is not allocated in the cluster, +// yellow means that the primary shard is allocated but replicas are not, and +// green means that all shards are allocated. The index level status is +// controlled by the worst shard status. The cluster status is controlled by the +// worst index status. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html func New(tp elastictransport.Interface) *Health { @@ -337,8 +355,9 @@ func (r *Health) Header(key, value string) *Health { } // Index Comma-separated list of data streams, indices, and index aliases used to -// limit the request. Wildcard expressions (*) are supported. To target all data -// streams and indices in a cluster, omit this parameter or use _all or *. +// limit the request. Wildcard expressions (`*`) are supported. To target all +// data streams and indices in a cluster, omit this parameter or use _all or +// `*`. // API Name: index func (r *Health) Index(index string) *Health { r.paramSet |= indexMask 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 224cc41d51..172b8af91f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package health @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/health/ClusterHealthResponse.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/health/ClusterHealthResponse.ts#L26-L37 type Response struct { // ActivePrimaryShards The number of active primary shards. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/info.go index ecae25fce3..7ce613ca52 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/info.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/info.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns different information about the cluster. package 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 5b7647f11e..87857c7037 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/info/ClusterInfoResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2b59903c05..195b838514 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,11 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns a list of any cluster-level changes (e.g. create index, update -// mapping, -// allocate or fail shard) which have not yet been executed. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns cluster-level changes (such as create index, update mapping, allocate +// or fail shard) that have not yet been executed. +// NOTE: This API returns a list of any pending updates to the cluster state. +// These are distinct from the tasks reported by the Task Management API which +// include periodic tasks and tasks initiated by the user, such as node stats, +// search queries, or create index requests. +// However, if a user-initiated task such as a create index command causes a +// cluster state update, the activity of this task might be reported by both +// task api and pending cluster tasks API. package pendingtasks import ( @@ -70,9 +76,15 @@ func NewPendingTasksFunc(tp elastictransport.Interface) NewPendingTasks { } } -// Returns a list of any cluster-level changes (e.g. create index, update -// mapping, -// allocate or fail shard) which have not yet been executed. +// Returns cluster-level changes (such as create index, update mapping, allocate +// or fail shard) that have not yet been executed. +// NOTE: This API returns a list of any pending updates to the cluster state. +// These are distinct from the tasks reported by the Task Management API which +// include periodic tasks and tasks initiated by the user, such as node stats, +// search queries, or create index requests. +// However, if a user-initiated task such as a create index command causes a +// cluster state update, the activity of this task might be reported by both +// task api and pending cluster tasks API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-pending.html func New(tp elastictransport.Interface) *PendingTasks { 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 19f9cce827..4a4ae1a049 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package pendingtasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 610e081d31..e0017a0ace 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 524ae766a2..7f2c5723b4 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,9 +16,31 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates 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. +// +// An index template can be composed of multiple component templates. +// To use a component template, specify it in an index template’s `composed_of` +// list. +// Component templates are only applied to new data streams and indices as part +// of a matching index template. +// +// Settings and mappings specified directly in the index template or the create +// index request override any settings or mappings specified in a component +// template. +// +// Component templates are only used during index creation. +// For data streams, this includes data stream creation and the creation of a +// stream’s backing indices. +// Changes to component templates do not affect existing indices, including a +// stream’s backing indices. +// +// You can use C-style `/* *\/` block comments in component templates. +// You can include comments anywhere in the request body except before the +// opening curly bracket. package putcomponenttemplate import ( @@ -81,7 +103,29 @@ func NewPutComponentTemplateFunc(tp elastictransport.Interface) NewPutComponentT } } -// Creates or updates 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. +// +// An index template can be composed of multiple component templates. +// To use a component template, specify it in an index template’s `composed_of` +// list. +// Component templates are only applied to new data streams and indices as part +// of a matching index template. +// +// Settings and mappings specified directly in the index template or the create +// index request override any settings or mappings specified in a component +// template. +// +// Component templates are only used during index creation. +// For data streams, this includes data stream creation and the creation of a +// stream’s backing indices. +// Changes to component templates do not affect existing indices, including a +// stream’s backing indices. +// +// You can use C-style `/* *\/` block comments in component templates. +// You can include comments anywhere in the request body except before the +// opening curly bracket. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html func New(tp elastictransport.Interface) *PutComponentTemplate { 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 d136bcdd08..1df0847341 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putcomponenttemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L93 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L93 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 18a895da8f..500647e592 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putcomponenttemplate // Response holds the response body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 26cc1a3428..15f7fda15d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 9fe5cbeda2..09cbb48fea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putsettings @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0a4c729256..d6895b394f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a106933af1..867f446937 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns the information about configured remote clusters. +// The cluster remote info API allows you to retrieve all of the configured +// remote cluster information. It returns connection and endpoint information +// keyed by the configured remote cluster alias. package remoteinfo import ( @@ -68,7 +70,9 @@ func NewRemoteInfoFunc(tp elastictransport.Interface) NewRemoteInfo { } } -// Returns the information about configured remote clusters. +// The cluster remote info API allows you to retrieve all of the configured +// remote cluster information. It returns connection and endpoint information +// keyed by the configured remote cluster alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-remote-info.html func New(tp elastictransport.Interface) *RemoteInfo { 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 6b2cb5dbc3..7fa2c64602 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package remoteinfo @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package remoteinfo // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 de14a71790..98de9c15ea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package reroute @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3aa54fa77e..33dfc54a68 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 d145ff5aa7..07d3480146 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package reroute @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/ClusterRerouteResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e6c38aeea6..78095673e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package state @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package state // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/state/ClusterStateResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f25798ff45..f648a87351 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 5c0f01a7d1..75f9364581 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stats @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/ClusterStatsResponse.ts#L53-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 eb75244ae4..830c881131 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns high-level overview of cluster statistics. +// Returns cluster statistics. +// It returns basic index metrics (shard numbers, store size, memory usage) and +// information about the current nodes that form the cluster (number, roles, os, +// jvm versions, memory usage, cpu and installed plugins). package stats import ( @@ -74,7 +77,10 @@ func NewStatsFunc(tp elastictransport.Interface) NewStats { } } -// Returns high-level overview of cluster statistics. +// Returns cluster statistics. +// It returns basic index metrics (shard numbers, store size, memory usage) and +// information about the current nodes that form the cluster (number, roles, os, +// jvm versions, memory usage, cpu and installed plugins). // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html func New(tp elastictransport.Interface) *Stats { 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 new file mode 100644 index 0000000000..22a3c8490f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/check_in.go @@ -0,0 +1,346 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the last_seen field in the connector, and sets it to current +// timestamp +package checkin + +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 ( + connectoridMask = 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 CheckIn struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewCheckIn type alias for index. +type NewCheckIn func(connectorid string) *CheckIn + +// NewCheckInFunc returns a new instance of CheckIn with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewCheckInFunc(tp elastictransport.Interface) NewCheckIn { + return func(connectorid string) *CheckIn { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the last_seen field in the connector, and sets it to current +// timestamp +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/check-in-connector-api.html +func New(tp elastictransport.Interface) *CheckIn { + r := &CheckIn{ + 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 *CheckIn) 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 == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_check_in") + + 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("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 CheckIn) 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, "connector.check_in") + 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, "connector.check_in") + if reader := instrument.RecordRequestBody(ctx, "connector.check_in", 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", "connector.check_in") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the CheckIn 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 checkin.Response +func (r CheckIn) 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, "connector.check_in") + 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 CheckIn) 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, "connector.check_in") + 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 CheckIn 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 CheckIn headers map. +func (r *CheckIn) Header(key, value string) *CheckIn { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be checked in +// API Name: connectorid +func (r *CheckIn) _connectorid(connectorid string) *CheckIn { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *CheckIn) ErrorTrace(errortrace bool) *CheckIn { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *CheckIn) FilterPath(filterpaths ...string) *CheckIn { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *CheckIn) Human(human bool) *CheckIn { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *CheckIn) Pretty(pretty bool) *CheckIn { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} 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 new file mode 100644 index 0000000000..29f6331a23 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin/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/19027dbdd366978ccae41842a040a636730e7c10 + +package checkin + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/delete.go similarity index 85% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/delete.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/delete.go index a0a59f09e5..33bdb3396f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/delete.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/delete.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes a query ruleset. +// Deletes a connector. package delete import ( @@ -37,7 +37,7 @@ import ( ) const ( - rulesetidMask = iota + 1 + connectoridMask = iota + 1 ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -54,7 +54,7 @@ type Delete struct { paramSet int - rulesetid string + connectorid string spanStarted bool @@ -62,23 +62,23 @@ type Delete struct { } // NewDelete type alias for index. -type NewDelete func(rulesetid string) *Delete +type NewDelete func(connectorid string) *Delete // NewDeleteFunc returns a new instance of Delete with the provided transport. // Used in the index of the library this allows to retrieve every apis in once place. func NewDeleteFunc(tp elastictransport.Interface) NewDelete { - return func(rulesetid string) *Delete { + return func(connectorid string) *Delete { n := New(tp) - n._rulesetid(rulesetid) + n._connectorid(connectorid) return n } } -// Deletes a query ruleset. +// Deletes a connector. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-query-ruleset.html +// https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-api.html func New(tp elastictransport.Interface) *Delete { r := &Delete{ transport: tp, @@ -107,15 +107,15 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { r.path.Scheme = "http" switch { - case r.paramSet == rulesetidMask: + case r.paramSet == connectoridMask: path.WriteString("/") - path.WriteString("_query_rules") + path.WriteString("_connector") path.WriteString("/") if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordPathPart(ctx, "rulesetid", r.rulesetid) + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) } - path.WriteString(r.rulesetid) + path.WriteString(r.connectorid) method = http.MethodDelete } @@ -151,7 +151,7 @@ func (r Delete) 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_ruleset.delete") + ctx := instrument.Start(providedCtx, "connector.delete") defer instrument.Close(ctx) } } @@ -168,14 +168,14 @@ func (r Delete) Perform(providedCtx context.Context) (*http.Response, error) { } if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.BeforeRequest(req, "query_ruleset.delete") - if reader := instrument.RecordRequestBody(ctx, "query_ruleset.delete", r.raw); reader != nil { + instrument.BeforeRequest(req, "connector.delete") + if reader := instrument.RecordRequestBody(ctx, "connector.delete", 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_ruleset.delete") + instrument.AfterRequest(req, "elasticsearch", "connector.delete") } if err != nil { localErr := fmt.Errorf("an error happened during the Delete query execution: %w", err) @@ -193,7 +193,7 @@ func (r Delete) 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_ruleset.delete") + ctx = instrument.Start(providedCtx, "connector.delete") defer instrument.Close(ctx) } if ctx == nil { @@ -248,7 +248,7 @@ func (r Delete) 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, "query_ruleset.delete") + ctx = instrument.Start(providedCtx, "connector.delete") defer instrument.Close(ctx) } if ctx == nil { @@ -288,11 +288,20 @@ func (r *Delete) Header(key, value string) *Delete { return r } -// RulesetId The unique identifier of the query ruleset to delete -// API Name: rulesetid -func (r *Delete) _rulesetid(rulesetid string) *Delete { - r.paramSet |= rulesetidMask - r.rulesetid = rulesetid +// ConnectorId The unique identifier of the connector to be deleted +// API Name: connectorid +func (r *Delete) _connectorid(connectorid string) *Delete { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// DeleteSyncJobs A flag indicating if associated sync jobs should be also removed. Defaults to +// false. +// API name: delete_sync_jobs +func (r *Delete) DeleteSyncJobs(deletesyncjobs bool) *Delete { + r.values.Set("delete_sync_jobs", strconv.FormatBool(deletesyncjobs)) return r } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/response.go similarity index 81% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/response.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete/response.go index 09bef6e6c7..31a728bd2e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/delete/QueryRulesetDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/queryruleset/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/get.go similarity index 87% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/get.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/get.go index 599f312421..fdfbe631d2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/get.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns the details about a query ruleset. +// Retrieves a connector. package get import ( @@ -37,7 +37,7 @@ import ( ) const ( - rulesetidMask = iota + 1 + connectoridMask = iota + 1 ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -54,7 +54,7 @@ type Get struct { paramSet int - rulesetid string + connectorid string spanStarted bool @@ -62,23 +62,23 @@ type Get struct { } // NewGet type alias for index. -type NewGet func(rulesetid string) *Get +type NewGet func(connectorid string) *Get // NewGetFunc returns a new instance of Get with the provided transport. // Used in the index of the library this allows to retrieve every apis in once place. func NewGetFunc(tp elastictransport.Interface) NewGet { - return func(rulesetid string) *Get { + return func(connectorid string) *Get { n := New(tp) - n._rulesetid(rulesetid) + n._connectorid(connectorid) return n } } -// Returns the details about a query ruleset. +// Retrieves a connector. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/get-query-ruleset.html +// https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-api.html func New(tp elastictransport.Interface) *Get { r := &Get{ transport: tp, @@ -107,15 +107,15 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { r.path.Scheme = "http" switch { - case r.paramSet == rulesetidMask: + case r.paramSet == connectoridMask: path.WriteString("/") - path.WriteString("_query_rules") + path.WriteString("_connector") path.WriteString("/") if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordPathPart(ctx, "rulesetid", r.rulesetid) + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) } - path.WriteString(r.rulesetid) + path.WriteString(r.connectorid) method = http.MethodGet } @@ -151,7 +151,7 @@ func (r Get) 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_ruleset.get") + ctx := instrument.Start(providedCtx, "connector.get") defer instrument.Close(ctx) } } @@ -168,14 +168,14 @@ func (r Get) Perform(providedCtx context.Context) (*http.Response, error) { } if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.BeforeRequest(req, "query_ruleset.get") - if reader := instrument.RecordRequestBody(ctx, "query_ruleset.get", r.raw); reader != nil { + instrument.BeforeRequest(req, "connector.get") + if reader := instrument.RecordRequestBody(ctx, "connector.get", 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_ruleset.get") + instrument.AfterRequest(req, "elasticsearch", "connector.get") } if err != nil { localErr := fmt.Errorf("an error happened during the Get query execution: %w", err) @@ -193,7 +193,7 @@ func (r Get) 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_ruleset.get") + ctx = instrument.Start(providedCtx, "connector.get") defer instrument.Close(ctx) } if ctx == nil { @@ -248,7 +248,7 @@ func (r Get) 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, "query_ruleset.get") + ctx = instrument.Start(providedCtx, "connector.get") defer instrument.Close(ctx) } if ctx == nil { @@ -288,11 +288,11 @@ func (r *Get) Header(key, value string) *Get { return r } -// RulesetId The unique identifier of the query ruleset -// API Name: rulesetid -func (r *Get) _rulesetid(rulesetid string) *Get { - r.paramSet |= rulesetidMask - r.rulesetid = rulesetid +// ConnectorId The unique identifier of the connector +// API Name: connectorid +func (r *Get) _connectorid(connectorid string) *Get { + r.paramSet |= connectoridMask + r.connectorid = connectorid return r } 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 new file mode 100644 index 0000000000..8c3e60c693 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/get/response.go @@ -0,0 +1,346 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package get + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" +) + +// 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 +type Response struct { + ApiKeyId *string `json:"api_key_id,omitempty"` + ApiKeySecretId *string `json:"api_key_secret_id,omitempty"` + Configuration types.ConnectorConfiguration `json:"configuration"` + CustomScheduling types.ConnectorCustomScheduling `json:"custom_scheduling"` + Description *string `json:"description,omitempty"` + Error *string `json:"error,omitempty"` + Features *types.ConnectorFeatures `json:"features,omitempty"` + Filtering []types.FilteringConfig `json:"filtering"` + Id *string `json:"id,omitempty"` + IndexName *string `json:"index_name,omitempty"` + IsNative bool `json:"is_native"` + Language *string `json:"language,omitempty"` + LastAccessControlSyncError *string `json:"last_access_control_sync_error,omitempty"` + LastAccessControlSyncScheduledAt types.DateTime `json:"last_access_control_sync_scheduled_at,omitempty"` + LastAccessControlSyncStatus *syncstatus.SyncStatus `json:"last_access_control_sync_status,omitempty"` + LastDeletedDocumentCount *int64 `json:"last_deleted_document_count,omitempty"` + LastIncrementalSyncScheduledAt types.DateTime `json:"last_incremental_sync_scheduled_at,omitempty"` + LastIndexedDocumentCount *int64 `json:"last_indexed_document_count,omitempty"` + LastSeen types.DateTime `json:"last_seen,omitempty"` + LastSyncError *string `json:"last_sync_error,omitempty"` + LastSyncScheduledAt types.DateTime `json:"last_sync_scheduled_at,omitempty"` + LastSyncStatus *syncstatus.SyncStatus `json:"last_sync_status,omitempty"` + LastSynced types.DateTime `json:"last_synced,omitempty"` + Name *string `json:"name,omitempty"` + Pipeline *types.IngestPipelineParams `json:"pipeline,omitempty"` + Scheduling types.SchedulingConfiguration `json:"scheduling"` + ServiceType *string `json:"service_type,omitempty"` + Status connectorstatus.ConnectorStatus `json:"status"` + SyncCursor json.RawMessage `json:"sync_cursor,omitempty"` + SyncNow bool `json:"sync_now"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} + +func (s *Response) 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 "api_key_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKeyId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKeyId = &o + + case "api_key_secret_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKeySecretId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKeySecretId = &o + + case "configuration": + if err := dec.Decode(&s.Configuration); err != nil { + return fmt.Errorf("%s | %w", "Configuration", err) + } + + case "custom_scheduling": + if err := dec.Decode(&s.CustomScheduling); err != nil { + return fmt.Errorf("%s | %w", "CustomScheduling", 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 "error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Error", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Error = &o + + case "features": + if err := dec.Decode(&s.Features); err != nil { + return fmt.Errorf("%s | %w", "Features", err) + } + + case "filtering": + if err := dec.Decode(&s.Filtering); err != nil { + return fmt.Errorf("%s | %w", "Filtering", err) + } + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "index_name": + if err := dec.Decode(&s.IndexName); err != nil { + return fmt.Errorf("%s | %w", "IndexName", err) + } + + case "is_native": + 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", "IsNative", err) + } + s.IsNative = value + case bool: + s.IsNative = v + } + + case "language": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Language", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Language = &o + + case "last_access_control_sync_error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncError", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.LastAccessControlSyncError = &o + + case "last_access_control_sync_scheduled_at": + if err := dec.Decode(&s.LastAccessControlSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncScheduledAt", err) + } + + case "last_access_control_sync_status": + if err := dec.Decode(&s.LastAccessControlSyncStatus); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncStatus", err) + } + + case "last_deleted_document_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", "LastDeletedDocumentCount", err) + } + s.LastDeletedDocumentCount = &value + case float64: + f := int64(v) + s.LastDeletedDocumentCount = &f + } + + case "last_incremental_sync_scheduled_at": + if err := dec.Decode(&s.LastIncrementalSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastIncrementalSyncScheduledAt", err) + } + + case "last_indexed_document_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", "LastIndexedDocumentCount", err) + } + s.LastIndexedDocumentCount = &value + case float64: + f := int64(v) + s.LastIndexedDocumentCount = &f + } + + case "last_seen": + if err := dec.Decode(&s.LastSeen); err != nil { + return fmt.Errorf("%s | %w", "LastSeen", err) + } + + case "last_sync_error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "LastSyncError", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.LastSyncError = &o + + case "last_sync_scheduled_at": + if err := dec.Decode(&s.LastSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastSyncScheduledAt", err) + } + + case "last_sync_status": + if err := dec.Decode(&s.LastSyncStatus); err != nil { + return fmt.Errorf("%s | %w", "LastSyncStatus", err) + } + + case "last_synced": + if err := dec.Decode(&s.LastSynced); err != nil { + return fmt.Errorf("%s | %w", "LastSynced", 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 "pipeline": + if err := dec.Decode(&s.Pipeline); err != nil { + return fmt.Errorf("%s | %w", "Pipeline", err) + } + + case "scheduling": + if err := dec.Decode(&s.Scheduling); err != nil { + return fmt.Errorf("%s | %w", "Scheduling", err) + } + + case "service_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceType = &o + + case "status": + if err := dec.Decode(&s.Status); err != nil { + return fmt.Errorf("%s | %w", "Status", err) + } + + case "sync_cursor": + if err := dec.Decode(&s.SyncCursor); err != nil { + return fmt.Errorf("%s | %w", "SyncCursor", err) + } + + case "sync_now": + 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", "SyncNow", err) + } + s.SyncNow = value + case bool: + s.SyncNow = v + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..03501f3649 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/last_sync.go @@ -0,0 +1,465 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates last sync stats in the connector document +package lastsync + +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" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" +) + +const ( + connectoridMask = 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 LastSync 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewLastSync type alias for index. +type NewLastSync func(connectorid string) *LastSync + +// NewLastSyncFunc returns a new instance of LastSync with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewLastSyncFunc(tp elastictransport.Interface) NewLastSync { + return func(connectorid string) *LastSync { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates last sync stats in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-last-sync-api.html +func New(tp elastictransport.Interface) *LastSync { + r := &LastSync{ + 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 *LastSync) Raw(raw io.Reader) *LastSync { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *LastSync) Request(req *Request) *LastSync { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *LastSync) 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 LastSync: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_last_sync") + + 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 LastSync) 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, "connector.last_sync") + 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, "connector.last_sync") + if reader := instrument.RecordRequestBody(ctx, "connector.last_sync", 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", "connector.last_sync") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the LastSync 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 lastsync.Response +func (r LastSync) 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, "connector.last_sync") + 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 LastSync headers map. +func (r *LastSync) Header(key, value string) *LastSync { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *LastSync) _connectorid(connectorid string) *LastSync { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *LastSync) ErrorTrace(errortrace bool) *LastSync { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *LastSync) FilterPath(filterpaths ...string) *LastSync { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *LastSync) Human(human bool) *LastSync { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *LastSync) Pretty(pretty bool) *LastSync { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: last_access_control_sync_error +func (r *LastSync) LastAccessControlSyncError(lastaccesscontrolsyncerror string) *LastSync { + + r.req.LastAccessControlSyncError = &lastaccesscontrolsyncerror + + return r +} + +// API name: last_access_control_sync_scheduled_at +func (r *LastSync) LastAccessControlSyncScheduledAt(datetime types.DateTime) *LastSync { + r.req.LastAccessControlSyncScheduledAt = datetime + + return r +} + +// API name: last_access_control_sync_status +func (r *LastSync) LastAccessControlSyncStatus(lastaccesscontrolsyncstatus syncstatus.SyncStatus) *LastSync { + r.req.LastAccessControlSyncStatus = &lastaccesscontrolsyncstatus + + return r +} + +// API name: last_deleted_document_count +func (r *LastSync) LastDeletedDocumentCount(lastdeleteddocumentcount int64) *LastSync { + + r.req.LastDeletedDocumentCount = &lastdeleteddocumentcount + + return r +} + +// API name: last_incremental_sync_scheduled_at +func (r *LastSync) LastIncrementalSyncScheduledAt(datetime types.DateTime) *LastSync { + r.req.LastIncrementalSyncScheduledAt = datetime + + return r +} + +// API name: last_indexed_document_count +func (r *LastSync) LastIndexedDocumentCount(lastindexeddocumentcount int64) *LastSync { + + r.req.LastIndexedDocumentCount = &lastindexeddocumentcount + + return r +} + +// API name: last_seen +func (r *LastSync) LastSeen(datetime types.DateTime) *LastSync { + r.req.LastSeen = datetime + + return r +} + +// API name: last_sync_error +func (r *LastSync) LastSyncError(lastsyncerror string) *LastSync { + + r.req.LastSyncError = &lastsyncerror + + return r +} + +// API name: last_sync_scheduled_at +func (r *LastSync) LastSyncScheduledAt(datetime types.DateTime) *LastSync { + r.req.LastSyncScheduledAt = datetime + + return r +} + +// API name: last_sync_status +func (r *LastSync) LastSyncStatus(lastsyncstatus syncstatus.SyncStatus) *LastSync { + r.req.LastSyncStatus = &lastsyncstatus + + return r +} + +// API name: last_synced +func (r *LastSync) LastSynced(datetime types.DateTime) *LastSync { + r.req.LastSynced = datetime + + return r +} + +// API name: sync_cursor +// +// synccursor should be a json.RawMessage or a structure +// if a structure is provided, the client will defer a json serialization +// prior to sending the payload to Elasticsearch. +func (r *LastSync) SyncCursor(synccursor any) *LastSync { + switch casted := synccursor.(type) { + case json.RawMessage: + r.req.SyncCursor = casted + default: + r.deferred = append(r.deferred, func(request *Request) error { + data, err := json.Marshal(synccursor) + if err != nil { + return err + } + r.req.SyncCursor = data + return nil + }) + } + + return r +} 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 new file mode 100644 index 0000000000..61de91ee8a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/request.go @@ -0,0 +1,183 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package lastsync + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" +) + +// 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 +type Request struct { + LastAccessControlSyncError *string `json:"last_access_control_sync_error,omitempty"` + LastAccessControlSyncScheduledAt types.DateTime `json:"last_access_control_sync_scheduled_at,omitempty"` + LastAccessControlSyncStatus *syncstatus.SyncStatus `json:"last_access_control_sync_status,omitempty"` + LastDeletedDocumentCount *int64 `json:"last_deleted_document_count,omitempty"` + LastIncrementalSyncScheduledAt types.DateTime `json:"last_incremental_sync_scheduled_at,omitempty"` + LastIndexedDocumentCount *int64 `json:"last_indexed_document_count,omitempty"` + LastSeen types.DateTime `json:"last_seen,omitempty"` + LastSyncError *string `json:"last_sync_error,omitempty"` + LastSyncScheduledAt types.DateTime `json:"last_sync_scheduled_at,omitempty"` + LastSyncStatus *syncstatus.SyncStatus `json:"last_sync_status,omitempty"` + LastSynced types.DateTime `json:"last_synced,omitempty"` + SyncCursor json.RawMessage `json:"sync_cursor,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 Lastsync 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 "last_access_control_sync_error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncError", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.LastAccessControlSyncError = &o + + case "last_access_control_sync_scheduled_at": + if err := dec.Decode(&s.LastAccessControlSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncScheduledAt", err) + } + + case "last_access_control_sync_status": + if err := dec.Decode(&s.LastAccessControlSyncStatus); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncStatus", err) + } + + case "last_deleted_document_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", "LastDeletedDocumentCount", err) + } + s.LastDeletedDocumentCount = &value + case float64: + f := int64(v) + s.LastDeletedDocumentCount = &f + } + + case "last_incremental_sync_scheduled_at": + if err := dec.Decode(&s.LastIncrementalSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastIncrementalSyncScheduledAt", err) + } + + case "last_indexed_document_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", "LastIndexedDocumentCount", err) + } + s.LastIndexedDocumentCount = &value + case float64: + f := int64(v) + s.LastIndexedDocumentCount = &f + } + + case "last_seen": + if err := dec.Decode(&s.LastSeen); err != nil { + return fmt.Errorf("%s | %w", "LastSeen", err) + } + + case "last_sync_error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "LastSyncError", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.LastSyncError = &o + + case "last_sync_scheduled_at": + if err := dec.Decode(&s.LastSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastSyncScheduledAt", err) + } + + case "last_sync_status": + if err := dec.Decode(&s.LastSyncStatus); err != nil { + return fmt.Errorf("%s | %w", "LastSyncStatus", err) + } + + case "last_synced": + if err := dec.Decode(&s.LastSynced); err != nil { + return fmt.Errorf("%s | %w", "LastSynced", err) + } + + case "sync_cursor": + if err := dec.Decode(&s.SyncCursor); err != nil { + return fmt.Errorf("%s | %w", "SyncCursor", err) + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..b12d36c1ec --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync/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/19027dbdd366978ccae41842a040a636730e7c10 + +package lastsync + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/list.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/list.go similarity index 83% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/list.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/list.go index 5d7e2de650..7952131bf1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/list.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/list.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Lists query rulesets. +// Returns existing connectors. package list import ( @@ -68,9 +68,9 @@ func NewListFunc(tp elastictransport.Interface) NewList { } } -// Lists query rulesets. +// Returns existing connectors. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/list-query-rulesets.html +// https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-api.html func New(tp elastictransport.Interface) *List { r := &List{ transport: tp, @@ -101,7 +101,7 @@ func (r *List) HttpRequest(ctx context.Context) (*http.Request, error) { switch { case r.paramSet == 0: path.WriteString("/") - path.WriteString("_query_rules") + path.WriteString("_connector") method = http.MethodGet } @@ -137,7 +137,7 @@ func (r List) 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_ruleset.list") + ctx := instrument.Start(providedCtx, "connector.list") defer instrument.Close(ctx) } } @@ -154,14 +154,14 @@ func (r List) Perform(providedCtx context.Context) (*http.Response, error) { } if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.BeforeRequest(req, "query_ruleset.list") - if reader := instrument.RecordRequestBody(ctx, "query_ruleset.list", r.raw); reader != nil { + instrument.BeforeRequest(req, "connector.list") + if reader := instrument.RecordRequestBody(ctx, "connector.list", 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_ruleset.list") + instrument.AfterRequest(req, "elasticsearch", "connector.list") } if err != nil { localErr := fmt.Errorf("an error happened during the List query execution: %w", err) @@ -179,7 +179,7 @@ func (r List) 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_ruleset.list") + ctx = instrument.Start(providedCtx, "connector.list") defer instrument.Close(ctx) } if ctx == nil { @@ -234,7 +234,7 @@ func (r List) 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, "query_ruleset.list") + ctx = instrument.Start(providedCtx, "connector.list") defer instrument.Close(ctx) } if ctx == nil { @@ -282,7 +282,7 @@ func (r *List) From(from int) *List { return r } -// Size specifies a max number of results to get +// Size Specifies a max number of results to get // API name: size func (r *List) Size(size int) *List { r.values.Set("size", strconv.Itoa(size)) @@ -290,6 +290,41 @@ func (r *List) Size(size int) *List { return r } +// IndexName A comma-separated list of connector index names to fetch connector documents +// for +// API name: index_name +func (r *List) IndexName(indices ...string) *List { + r.values.Set("index_name", strings.Join(indices, ",")) + + return r +} + +// ConnectorName A comma-separated list of connector names to fetch connector documents for +// API name: connector_name +func (r *List) ConnectorName(names ...string) *List { + r.values.Set("connector_name", strings.Join(names, ",")) + + return r +} + +// ServiceType A comma-separated list of connector service types to fetch connector +// documents for +// API name: service_type +func (r *List) ServiceType(names ...string) *List { + r.values.Set("service_type", strings.Join(names, ",")) + + return r +} + +// Query A wildcard query string that filters connectors with matching name, +// description or index name +// API name: query +func (r *List) Query(query string) *List { + r.values.Set("query", query) + + 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/connector/list/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/response.go new file mode 100644 index 0000000000..2f46119e45 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/list/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/19027dbdd366978ccae41842a040a636730e7c10 + +package list + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Response struct { + Count int64 `json:"count"` + Results []types.Connector `json:"results"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..c27c0ae42c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/post.go @@ -0,0 +1,381 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Creates a connector. +package post + +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" +) + +// 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 Post 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 + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPost type alias for index. +type NewPost func() *Post + +// NewPostFunc returns a new instance of Post with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPostFunc(tp elastictransport.Interface) NewPost { + return func() *Post { + n := New(tp) + + return n + } +} + +// Creates a connector. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html +func New(tp elastictransport.Interface) *Post { + r := &Post{ + 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 *Post) Raw(raw io.Reader) *Post { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *Post) Request(req *Request) *Post { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *Post) 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 Post: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_connector") + + 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 Post) 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, "connector.post") + 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, "connector.post") + if reader := instrument.RecordRequestBody(ctx, "connector.post", 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", "connector.post") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the Post 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 post.Response +func (r Post) 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, "connector.post") + 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 Post headers map. +func (r *Post) Header(key, value string) *Post { + r.headers.Set(key, value) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *Post) ErrorTrace(errortrace bool) *Post { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *Post) FilterPath(filterpaths ...string) *Post { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *Post) Human(human bool) *Post { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *Post) Pretty(pretty bool) *Post { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: description +func (r *Post) Description(description string) *Post { + + r.req.Description = &description + + return r +} + +// API name: index_name +func (r *Post) IndexName(indexname string) *Post { + r.req.IndexName = &indexname + + return r +} + +// API name: is_native +func (r *Post) IsNative(isnative bool) *Post { + r.req.IsNative = &isnative + + return r +} + +// API name: language +func (r *Post) Language(language string) *Post { + + r.req.Language = &language + + return r +} + +// API name: name +func (r *Post) Name(name string) *Post { + + r.req.Name = &name + + return r +} + +// API name: service_type +func (r *Post) ServiceType(servicetype string) *Post { + + r.req.ServiceType = &servicetype + + return r +} 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 new file mode 100644 index 0000000000..396a35ebe7 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/request.go @@ -0,0 +1,147 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package post + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// 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 +type Request struct { + Description *string `json:"description,omitempty"` + IndexName *string `json:"index_name,omitempty"` + IsNative *bool `json:"is_native,omitempty"` + Language *string `json:"language,omitempty"` + Name *string `json:"name,omitempty"` + ServiceType *string `json:"service_type,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 Post 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 "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 "index_name": + if err := dec.Decode(&s.IndexName); err != nil { + return fmt.Errorf("%s | %w", "IndexName", err) + } + + case "is_native": + 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", "IsNative", err) + } + s.IsNative = &value + case bool: + s.IsNative = &v + } + + case "language": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Language", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Language = &o + + case "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 "service_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceType = &o + + } + } + return nil +} 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 new file mode 100644 index 0000000000..4f8008932a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/post/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/19027dbdd366978ccae41842a040a636730e7c10 + +package post + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Id string `json:"id"` + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/put.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/put.go similarity index 81% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/put.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/put.go index 9e1feab9f5..6dd31c08de 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates a query ruleset. +// Creates or updates a connector. package put import ( @@ -38,7 +38,7 @@ import ( ) const ( - rulesetidMask = iota + 1 + connectoridMask = iota + 1 ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -59,7 +59,7 @@ type Put struct { paramSet int - rulesetid string + connectorid string spanStarted bool @@ -67,23 +67,21 @@ type Put struct { } // NewPut type alias for index. -type NewPut func(rulesetid string) *Put +type NewPut func() *Put // NewPutFunc returns a new instance of Put with the provided transport. // Used in the index of the library this allows to retrieve every apis in once place. func NewPutFunc(tp elastictransport.Interface) NewPut { - return func(rulesetid string) *Put { + return func() *Put { n := New(tp) - n._rulesetid(rulesetid) - return n } } -// Creates or updates a query ruleset. +// Creates or updates a connector. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/put-query-ruleset.html +// https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html func New(tp elastictransport.Interface) *Put { r := &Put{ transport: tp, @@ -156,15 +154,20 @@ func (r *Put) HttpRequest(ctx context.Context) (*http.Request, error) { r.path.Scheme = "http" switch { - case r.paramSet == rulesetidMask: + case r.paramSet == connectoridMask: path.WriteString("/") - path.WriteString("_query_rules") + path.WriteString("_connector") path.WriteString("/") if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordPathPart(ctx, "rulesetid", r.rulesetid) + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) } - path.WriteString(r.rulesetid) + path.WriteString(r.connectorid) + + method = http.MethodPut + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_connector") method = http.MethodPut } @@ -206,7 +209,7 @@ func (r Put) 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_ruleset.put") + ctx := instrument.Start(providedCtx, "connector.put") defer instrument.Close(ctx) } } @@ -223,14 +226,14 @@ func (r Put) Perform(providedCtx context.Context) (*http.Response, error) { } if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.BeforeRequest(req, "query_ruleset.put") - if reader := instrument.RecordRequestBody(ctx, "query_ruleset.put", r.raw); reader != nil { + instrument.BeforeRequest(req, "connector.put") + if reader := instrument.RecordRequestBody(ctx, "connector.put", 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_ruleset.put") + instrument.AfterRequest(req, "elasticsearch", "connector.put") } if err != nil { localErr := fmt.Errorf("an error happened during the Put query execution: %w", err) @@ -248,7 +251,7 @@ func (r Put) 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_ruleset.put") + ctx = instrument.Start(providedCtx, "connector.put") defer instrument.Close(ctx) } if ctx == nil { @@ -304,11 +307,12 @@ func (r *Put) Header(key, value string) *Put { return r } -// RulesetId The unique identifier of the query ruleset to be created or updated -// API Name: rulesetid -func (r *Put) _rulesetid(rulesetid string) *Put { - r.paramSet |= rulesetidMask - r.rulesetid = rulesetid +// ConnectorId The unique identifier of the connector to be created or updated. ID is +// auto-generated if not provided. +// API Name: connectorid +func (r *Put) ConnectorId(connectorid string) *Put { + r.paramSet |= connectoridMask + r.connectorid = connectorid return r } @@ -357,9 +361,48 @@ func (r *Put) Pretty(pretty bool) *Put { return r } -// API name: rules -func (r *Put) Rules(rules ...types.QueryRule) *Put { - r.req.Rules = rules +// API name: description +func (r *Put) Description(description string) *Put { + + r.req.Description = &description + + return r +} + +// API name: index_name +func (r *Put) IndexName(indexname string) *Put { + r.req.IndexName = &indexname + + return r +} + +// API name: is_native +func (r *Put) IsNative(isnative bool) *Put { + r.req.IsNative = &isnative + + return r +} + +// API name: language +func (r *Put) Language(language string) *Put { + + r.req.Language = &language + + return r +} + +// API name: name +func (r *Put) Name(name string) *Put { + + r.req.Name = &name + + return r +} + +// API name: service_type +func (r *Put) ServiceType(servicetype string) *Put { + + r.req.ServiceType = &servicetype return r } 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 new file mode 100644 index 0000000000..016ebfed3f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/request.go @@ -0,0 +1,147 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package put + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// 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 +type Request struct { + Description *string `json:"description,omitempty"` + IndexName *string `json:"index_name,omitempty"` + IsNative *bool `json:"is_native,omitempty"` + Language *string `json:"language,omitempty"` + Name *string `json:"name,omitempty"` + ServiceType *string `json:"service_type,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 Put 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 "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 "index_name": + if err := dec.Decode(&s.IndexName); err != nil { + return fmt.Errorf("%s | %w", "IndexName", err) + } + + case "is_native": + 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", "IsNative", err) + } + s.IsNative = &value + case bool: + s.IsNative = &v + } + + case "language": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Language", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Language = &o + + case "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 "service_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceType = &o + + } + } + return nil +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/response.go similarity index 79% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/response.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/put/response.go index 1cce282c31..a07fa49863 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package put @@ -26,8 +26,9 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/put/QueryRulesetPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..e90c19fc23 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost/secret_post.go @@ -0,0 +1,223 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Creates a secret for a Connector. +package secretpost + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 SecretPost struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewSecretPost type alias for index. +type NewSecretPost func() *SecretPost + +// NewSecretPostFunc returns a new instance of SecretPost with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewSecretPostFunc(tp elastictransport.Interface) NewSecretPost { + return func() *SecretPost { + n := New(tp) + + return n + } +} + +// Creates a secret for a Connector. +func New(tp elastictransport.Interface) *SecretPost { + r := &SecretPost{ + 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 *SecretPost) 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("_connector") + path.WriteString("/") + path.WriteString("_secret") + + 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 SecretPost) 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, "connector.secret_post") + 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, "connector.secret_post") + if reader := instrument.RecordRequestBody(ctx, "connector.secret_post", 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", "connector.secret_post") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the SecretPost 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 secretpost.Response +func (r SecretPost) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 SecretPost) 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, "connector.secret_post") + 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 SecretPost 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 SecretPost headers map. +func (r *SecretPost) Header(key, value string) *SecretPost { + r.headers.Set(key, value) + + return r +} 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 new file mode 100644 index 0000000000..46e0990093 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/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/19027dbdd366978ccae41842a040a636730e7c10 + +package syncjobcancel + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..79bdeb69fc --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel/sync_job_cancel.go @@ -0,0 +1,346 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Cancels a connector sync job. +package syncjobcancel + +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 ( + connectorsyncjobidMask = 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 SyncJobCancel struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + connectorsyncjobid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewSyncJobCancel type alias for index. +type NewSyncJobCancel func(connectorsyncjobid string) *SyncJobCancel + +// NewSyncJobCancelFunc returns a new instance of SyncJobCancel with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewSyncJobCancelFunc(tp elastictransport.Interface) NewSyncJobCancel { + return func(connectorsyncjobid string) *SyncJobCancel { + n := New(tp) + + n._connectorsyncjobid(connectorsyncjobid) + + return n + } +} + +// Cancels a connector sync job. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/cancel-connector-sync-job-api.html +func New(tp elastictransport.Interface) *SyncJobCancel { + r := &SyncJobCancel{ + 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 *SyncJobCancel) 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 == connectorsyncjobidMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + path.WriteString("_sync_job") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorsyncjobid", r.connectorsyncjobid) + } + path.WriteString(r.connectorsyncjobid) + path.WriteString("/") + path.WriteString("_cancel") + + 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("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 SyncJobCancel) 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, "connector.sync_job_cancel") + 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, "connector.sync_job_cancel") + if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_cancel", 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", "connector.sync_job_cancel") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the SyncJobCancel 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 syncjobcancel.Response +func (r SyncJobCancel) 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, "connector.sync_job_cancel") + 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 SyncJobCancel) 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, "connector.sync_job_cancel") + 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 SyncJobCancel 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 SyncJobCancel headers map. +func (r *SyncJobCancel) Header(key, value string) *SyncJobCancel { + r.headers.Set(key, value) + + return r +} + +// ConnectorSyncJobId The unique identifier of the connector sync job +// API Name: connectorsyncjobid +func (r *SyncJobCancel) _connectorsyncjobid(connectorsyncjobid string) *SyncJobCancel { + r.paramSet |= connectorsyncjobidMask + r.connectorsyncjobid = connectorsyncjobid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *SyncJobCancel) ErrorTrace(errortrace bool) *SyncJobCancel { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *SyncJobCancel) FilterPath(filterpaths ...string) *SyncJobCancel { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *SyncJobCancel) Human(human bool) *SyncJobCancel { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *SyncJobCancel) Pretty(pretty bool) *SyncJobCancel { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} 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 new file mode 100644 index 0000000000..dba8a22406 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/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/19027dbdd366978ccae41842a040a636730e7c10 + +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 +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/connector/syncjobdelete/sync_job_delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/sync_job_delete.go new file mode 100644 index 0000000000..888438aee1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete/sync_job_delete.go @@ -0,0 +1,344 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Deletes a connector sync job. +package syncjobdelete + +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 ( + connectorsyncjobidMask = 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 SyncJobDelete struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + connectorsyncjobid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewSyncJobDelete type alias for index. +type NewSyncJobDelete func(connectorsyncjobid string) *SyncJobDelete + +// NewSyncJobDeleteFunc returns a new instance of SyncJobDelete with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewSyncJobDeleteFunc(tp elastictransport.Interface) NewSyncJobDelete { + return func(connectorsyncjobid string) *SyncJobDelete { + n := New(tp) + + n._connectorsyncjobid(connectorsyncjobid) + + return n + } +} + +// Deletes a connector sync job. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-sync-job-api.html +func New(tp elastictransport.Interface) *SyncJobDelete { + r := &SyncJobDelete{ + 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 *SyncJobDelete) 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 == connectorsyncjobidMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + path.WriteString("_sync_job") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorsyncjobid", r.connectorsyncjobid) + } + path.WriteString(r.connectorsyncjobid) + + 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 SyncJobDelete) 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, "connector.sync_job_delete") + 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, "connector.sync_job_delete") + if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_delete", 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", "connector.sync_job_delete") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the SyncJobDelete 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 syncjobdelete.Response +func (r SyncJobDelete) 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, "connector.sync_job_delete") + 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 SyncJobDelete) 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, "connector.sync_job_delete") + 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 SyncJobDelete 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 SyncJobDelete headers map. +func (r *SyncJobDelete) Header(key, value string) *SyncJobDelete { + r.headers.Set(key, value) + + return r +} + +// ConnectorSyncJobId The unique identifier of the connector sync job to be deleted +// API Name: connectorsyncjobid +func (r *SyncJobDelete) _connectorsyncjobid(connectorsyncjobid string) *SyncJobDelete { + r.paramSet |= connectorsyncjobidMask + r.connectorsyncjobid = connectorsyncjobid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *SyncJobDelete) ErrorTrace(errortrace bool) *SyncJobDelete { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *SyncJobDelete) FilterPath(filterpaths ...string) *SyncJobDelete { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *SyncJobDelete) Human(human bool) *SyncJobDelete { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *SyncJobDelete) Pretty(pretty bool) *SyncJobDelete { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} 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 new file mode 100644 index 0000000000..5d52bfdb19 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/response.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/19027dbdd366978ccae41842a040a636730e7c10 + +package syncjobget + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" +) + +// 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 +type Response struct { + CancelationRequestedAt types.DateTime `json:"cancelation_requested_at,omitempty"` + CanceledAt types.DateTime `json:"canceled_at,omitempty"` + CompletedAt types.DateTime `json:"completed_at,omitempty"` + Connector types.SyncJobConnectorReference `json:"connector"` + CreatedAt types.DateTime `json:"created_at"` + DeletedDocumentCount int64 `json:"deleted_document_count"` + Error *string `json:"error,omitempty"` + Id string `json:"id"` + IndexedDocumentCount int64 `json:"indexed_document_count"` + IndexedDocumentVolume int64 `json:"indexed_document_volume"` + JobType syncjobtype.SyncJobType `json:"job_type"` + LastSeen types.DateTime `json:"last_seen,omitempty"` + Metadata map[string]json.RawMessage `json:"metadata"` + StartedAt types.DateTime `json:"started_at,omitempty"` + Status syncstatus.SyncStatus `json:"status"` + TotalDocumentCount int64 `json:"total_document_count"` + TriggerMethod syncjobtriggermethod.SyncJobTriggerMethod `json:"trigger_method"` + WorkerHostname *string `json:"worker_hostname,omitempty"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{ + Metadata: make(map[string]json.RawMessage, 0), + } + return r +} + +func (s *Response) 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 "cancelation_requested_at": + if err := dec.Decode(&s.CancelationRequestedAt); err != nil { + return fmt.Errorf("%s | %w", "CancelationRequestedAt", err) + } + + case "canceled_at": + if err := dec.Decode(&s.CanceledAt); err != nil { + return fmt.Errorf("%s | %w", "CanceledAt", err) + } + + case "completed_at": + if err := dec.Decode(&s.CompletedAt); err != nil { + return fmt.Errorf("%s | %w", "CompletedAt", err) + } + + case "connector": + if err := dec.Decode(&s.Connector); err != nil { + return fmt.Errorf("%s | %w", "Connector", err) + } + + case "created_at": + if err := dec.Decode(&s.CreatedAt); err != nil { + return fmt.Errorf("%s | %w", "CreatedAt", err) + } + + case "deleted_document_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", "DeletedDocumentCount", err) + } + s.DeletedDocumentCount = value + case float64: + f := int64(v) + s.DeletedDocumentCount = f + } + + case "error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Error", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Error = &o + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "indexed_document_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", "IndexedDocumentCount", err) + } + s.IndexedDocumentCount = value + case float64: + f := int64(v) + s.IndexedDocumentCount = f + } + + case "indexed_document_volume": + 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", "IndexedDocumentVolume", err) + } + s.IndexedDocumentVolume = value + case float64: + f := int64(v) + s.IndexedDocumentVolume = f + } + + case "job_type": + if err := dec.Decode(&s.JobType); err != nil { + return fmt.Errorf("%s | %w", "JobType", err) + } + + case "last_seen": + if err := dec.Decode(&s.LastSeen); err != nil { + return fmt.Errorf("%s | %w", "LastSeen", err) + } + + case "metadata": + if s.Metadata == nil { + s.Metadata = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.Metadata); err != nil { + return fmt.Errorf("%s | %w", "Metadata", err) + } + + case "started_at": + if err := dec.Decode(&s.StartedAt); err != nil { + return fmt.Errorf("%s | %w", "StartedAt", err) + } + + case "status": + if err := dec.Decode(&s.Status); err != nil { + return fmt.Errorf("%s | %w", "Status", err) + } + + case "total_document_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", "TotalDocumentCount", err) + } + s.TotalDocumentCount = value + case float64: + f := int64(v) + s.TotalDocumentCount = f + } + + case "trigger_method": + if err := dec.Decode(&s.TriggerMethod); err != nil { + return fmt.Errorf("%s | %w", "TriggerMethod", err) + } + + case "worker_hostname": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "WorkerHostname", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.WorkerHostname = &o + + } + } + return nil +} 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 new file mode 100644 index 0000000000..bd91d400a2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget/sync_job_get.go @@ -0,0 +1,344 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Retrieves a connector sync job. +package syncjobget + +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 ( + connectorsyncjobidMask = 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 SyncJobGet struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + connectorsyncjobid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewSyncJobGet type alias for index. +type NewSyncJobGet func(connectorsyncjobid string) *SyncJobGet + +// NewSyncJobGetFunc returns a new instance of SyncJobGet with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewSyncJobGetFunc(tp elastictransport.Interface) NewSyncJobGet { + return func(connectorsyncjobid string) *SyncJobGet { + n := New(tp) + + n._connectorsyncjobid(connectorsyncjobid) + + return n + } +} + +// Retrieves 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 { + r := &SyncJobGet{ + 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 *SyncJobGet) 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 == connectorsyncjobidMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + path.WriteString("_sync_job") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorsyncjobid", r.connectorsyncjobid) + } + path.WriteString(r.connectorsyncjobid) + + 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 SyncJobGet) 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, "connector.sync_job_get") + 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, "connector.sync_job_get") + if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_get", 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", "connector.sync_job_get") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the SyncJobGet 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 syncjobget.Response +func (r SyncJobGet) 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, "connector.sync_job_get") + 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 SyncJobGet) 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, "connector.sync_job_get") + 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 SyncJobGet 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 SyncJobGet headers map. +func (r *SyncJobGet) Header(key, value string) *SyncJobGet { + r.headers.Set(key, value) + + return r +} + +// ConnectorSyncJobId The unique identifier of the connector sync job +// API Name: connectorsyncjobid +func (r *SyncJobGet) _connectorsyncjobid(connectorsyncjobid string) *SyncJobGet { + r.paramSet |= connectorsyncjobidMask + r.connectorsyncjobid = connectorsyncjobid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *SyncJobGet) ErrorTrace(errortrace bool) *SyncJobGet { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *SyncJobGet) FilterPath(filterpaths ...string) *SyncJobGet { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *SyncJobGet) Human(human bool) *SyncJobGet { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *SyncJobGet) Pretty(pretty bool) *SyncJobGet { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} 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 new file mode 100644 index 0000000000..f73277453a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/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/19027dbdd366978ccae41842a040a636730e7c10 + +package syncjoblist + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Response struct { + Count int64 `json:"count"` + Results []types.ConnectorSyncJob `json:"results"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..ddc0b2ed54 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist/sync_job_list.go @@ -0,0 +1,367 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Lists connector sync jobs. +package syncjoblist + +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" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" +) + +// 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 SyncJobList struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewSyncJobList type alias for index. +type NewSyncJobList func() *SyncJobList + +// NewSyncJobListFunc returns a new instance of SyncJobList with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewSyncJobListFunc(tp elastictransport.Interface) NewSyncJobList { + return func() *SyncJobList { + n := New(tp) + + return n + } +} + +// Lists connector sync jobs. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-sync-jobs-api.html +func New(tp elastictransport.Interface) *SyncJobList { + r := &SyncJobList{ + 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 *SyncJobList) 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("_connector") + path.WriteString("/") + path.WriteString("_sync_job") + + 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 SyncJobList) 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, "connector.sync_job_list") + 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, "connector.sync_job_list") + if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_list", 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", "connector.sync_job_list") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the SyncJobList 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 syncjoblist.Response +func (r SyncJobList) 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, "connector.sync_job_list") + 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 SyncJobList) 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, "connector.sync_job_list") + 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 SyncJobList 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 SyncJobList headers map. +func (r *SyncJobList) Header(key, value string) *SyncJobList { + r.headers.Set(key, value) + + return r +} + +// From Starting offset (default: 0) +// API name: from +func (r *SyncJobList) From(from int) *SyncJobList { + r.values.Set("from", strconv.Itoa(from)) + + return r +} + +// Size Specifies a max number of results to get +// API name: size +func (r *SyncJobList) Size(size int) *SyncJobList { + r.values.Set("size", strconv.Itoa(size)) + + return r +} + +// Status A sync job status to fetch connector sync jobs for +// API name: status +func (r *SyncJobList) Status(status syncstatus.SyncStatus) *SyncJobList { + r.values.Set("status", status.String()) + + return r +} + +// ConnectorId A connector id to fetch connector sync jobs for +// API name: connector_id +func (r *SyncJobList) ConnectorId(id string) *SyncJobList { + r.values.Set("connector_id", id) + + return r +} + +// JobType A comma-separated list of job types to fetch the sync jobs for +// API name: job_type +func (r *SyncJobList) JobType(jobtypes ...syncjobtype.SyncJobType) *SyncJobList { + tmp := []string{} + for _, item := range jobtypes { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("job_type", strings.Join(tmp, ",")) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *SyncJobList) ErrorTrace(errortrace bool) *SyncJobList { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *SyncJobList) FilterPath(filterpaths ...string) *SyncJobList { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *SyncJobList) Human(human bool) *SyncJobList { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *SyncJobList) Pretty(pretty bool) *SyncJobList { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} 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 new file mode 100644 index 0000000000..938663b138 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/request.go @@ -0,0 +1,96 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package syncjobpost + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" +) + +// 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 +type Request struct { + + // Id The id of the associated connector + Id string `json:"id"` + JobType *syncjobtype.SyncJobType `json:"job_type,omitempty"` + TriggerMethod *syncjobtriggermethod.SyncJobTriggerMethod `json:"trigger_method,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 Syncjobpost 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 "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "job_type": + if err := dec.Decode(&s.JobType); err != nil { + return fmt.Errorf("%s | %w", "JobType", err) + } + + case "trigger_method": + if err := dec.Decode(&s.TriggerMethod); err != nil { + return fmt.Errorf("%s | %w", "TriggerMethod", err) + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..87c3f71bed --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/response.go @@ -0,0 +1,34 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +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 +type Response struct { + Id string `json:"id"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..b869e3281d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost/sync_job_post.go @@ -0,0 +1,361 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Creates a connector sync job. +package syncjobpost + +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" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" +) + +// 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 SyncJobPost 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 + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewSyncJobPost type alias for index. +type NewSyncJobPost func() *SyncJobPost + +// NewSyncJobPostFunc returns a new instance of SyncJobPost with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewSyncJobPostFunc(tp elastictransport.Interface) NewSyncJobPost { + return func() *SyncJobPost { + n := New(tp) + + return n + } +} + +// Creates a connector sync job. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-sync-job-api.html +func New(tp elastictransport.Interface) *SyncJobPost { + r := &SyncJobPost{ + 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 *SyncJobPost) Raw(raw io.Reader) *SyncJobPost { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *SyncJobPost) Request(req *Request) *SyncJobPost { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *SyncJobPost) 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 SyncJobPost: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + path.WriteString("_sync_job") + + 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 SyncJobPost) 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, "connector.sync_job_post") + 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, "connector.sync_job_post") + if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_post", 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", "connector.sync_job_post") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the SyncJobPost 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 syncjobpost.Response +func (r SyncJobPost) 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, "connector.sync_job_post") + 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 SyncJobPost headers map. +func (r *SyncJobPost) Header(key, value string) *SyncJobPost { + r.headers.Set(key, value) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *SyncJobPost) ErrorTrace(errortrace bool) *SyncJobPost { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *SyncJobPost) FilterPath(filterpaths ...string) *SyncJobPost { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *SyncJobPost) Human(human bool) *SyncJobPost { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *SyncJobPost) Pretty(pretty bool) *SyncJobPost { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// Id The id of the associated connector +// API name: id +func (r *SyncJobPost) Id(id string) *SyncJobPost { + r.req.Id = id + + return r +} + +// API name: job_type +func (r *SyncJobPost) JobType(jobtype syncjobtype.SyncJobType) *SyncJobPost { + r.req.JobType = &jobtype + + return r +} + +// API name: trigger_method +func (r *SyncJobPost) TriggerMethod(triggermethod syncjobtriggermethod.SyncJobTriggerMethod) *SyncJobPost { + r.req.TriggerMethod = &triggermethod + + return r +} 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 new file mode 100644 index 0000000000..8939a99813 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateactivefiltering + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..b50b0a0e36 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering/update_active_filtering.go @@ -0,0 +1,352 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Activates the valid draft filtering for a connector. +package updateactivefiltering + +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 ( + connectoridMask = 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 UpdateActiveFiltering struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateActiveFiltering type alias for index. +type NewUpdateActiveFiltering func(connectorid string) *UpdateActiveFiltering + +// NewUpdateActiveFilteringFunc returns a new instance of UpdateActiveFiltering with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateActiveFilteringFunc(tp elastictransport.Interface) NewUpdateActiveFiltering { + return func(connectorid string) *UpdateActiveFiltering { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Activates the valid draft filtering for a connector. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html +func New(tp elastictransport.Interface) *UpdateActiveFiltering { + r := &UpdateActiveFiltering{ + 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 *UpdateActiveFiltering) 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 == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_filtering") + path.WriteString("/") + path.WriteString("_activate") + + 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 UpdateActiveFiltering) 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, "connector.update_active_filtering") + 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, "connector.update_active_filtering") + if reader := instrument.RecordRequestBody(ctx, "connector.update_active_filtering", 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", "connector.update_active_filtering") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateActiveFiltering 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 updateactivefiltering.Response +func (r UpdateActiveFiltering) 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, "connector.update_active_filtering") + 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 UpdateActiveFiltering) 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, "connector.update_active_filtering") + 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 UpdateActiveFiltering 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 UpdateActiveFiltering headers map. +func (r *UpdateActiveFiltering) Header(key, value string) *UpdateActiveFiltering { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateActiveFiltering) _connectorid(connectorid string) *UpdateActiveFiltering { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateActiveFiltering) ErrorTrace(errortrace bool) *UpdateActiveFiltering { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateActiveFiltering) FilterPath(filterpaths ...string) *UpdateActiveFiltering { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateActiveFiltering) Human(human bool) *UpdateActiveFiltering { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateActiveFiltering) Pretty(pretty bool) *UpdateActiveFiltering { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} 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 new file mode 100644 index 0000000000..60079c944b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/request.go @@ -0,0 +1,53 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateapikeyid + +import ( + "encoding/json" + "fmt" +) + +// 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 +type Request struct { + ApiKeyId *string `json:"api_key_id,omitempty"` + ApiKeySecretId *string `json:"api_key_secret_id,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 Updateapikeyid request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..24cd1d566a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateapikeyid + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..3c8fbfa9b0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid/update_api_key_id.go @@ -0,0 +1,376 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the API key id in the connector document +package updateapikeyid + +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 ( + connectoridMask = 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 UpdateApiKeyId 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateApiKeyId type alias for index. +type NewUpdateApiKeyId func(connectorid string) *UpdateApiKeyId + +// NewUpdateApiKeyIdFunc returns a new instance of UpdateApiKeyId with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateApiKeyIdFunc(tp elastictransport.Interface) NewUpdateApiKeyId { + return func(connectorid string) *UpdateApiKeyId { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the API key id in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-api-key-id-api.html +func New(tp elastictransport.Interface) *UpdateApiKeyId { + r := &UpdateApiKeyId{ + 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 *UpdateApiKeyId) Raw(raw io.Reader) *UpdateApiKeyId { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateApiKeyId) Request(req *Request) *UpdateApiKeyId { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateApiKeyId) 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 UpdateApiKeyId: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_api_key_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 UpdateApiKeyId) 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, "connector.update_api_key_id") + 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, "connector.update_api_key_id") + if reader := instrument.RecordRequestBody(ctx, "connector.update_api_key_id", 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", "connector.update_api_key_id") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateApiKeyId 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 updateapikeyid.Response +func (r UpdateApiKeyId) 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, "connector.update_api_key_id") + 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 UpdateApiKeyId headers map. +func (r *UpdateApiKeyId) Header(key, value string) *UpdateApiKeyId { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateApiKeyId) _connectorid(connectorid string) *UpdateApiKeyId { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateApiKeyId) ErrorTrace(errortrace bool) *UpdateApiKeyId { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateApiKeyId) FilterPath(filterpaths ...string) *UpdateApiKeyId { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateApiKeyId) Human(human bool) *UpdateApiKeyId { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateApiKeyId) Pretty(pretty bool) *UpdateApiKeyId { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: api_key_id +func (r *UpdateApiKeyId) ApiKeyId(apikeyid string) *UpdateApiKeyId { + + r.req.ApiKeyId = &apikeyid + + return r +} + +// API name: api_key_secret_id +func (r *UpdateApiKeyId) ApiKeySecretId(apikeysecretid string) *UpdateApiKeyId { + + r.req.ApiKeySecretId = &apikeysecretid + + return r +} 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 new file mode 100644 index 0000000000..a23b78243f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/request.go @@ -0,0 +1,92 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateconfiguration + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Request struct { + Configuration types.ConnectorConfiguration `json:"configuration,omitempty"` + Values map[string]json.RawMessage `json:"values,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{ + Values: 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 Updateconfiguration 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 "configuration": + if err := dec.Decode(&s.Configuration); err != nil { + return fmt.Errorf("%s | %w", "Configuration", err) + } + + case "values": + if s.Values == nil { + s.Values = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.Values); err != nil { + return fmt.Errorf("%s | %w", "Values", err) + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..0d11463cd4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateconfiguration + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..8e1d12da31 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration/update_configuration.go @@ -0,0 +1,375 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the configuration field in the connector document +package updateconfiguration + +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 ( + connectoridMask = 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 UpdateConfiguration 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateConfiguration type alias for index. +type NewUpdateConfiguration func(connectorid string) *UpdateConfiguration + +// NewUpdateConfigurationFunc returns a new instance of UpdateConfiguration with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateConfigurationFunc(tp elastictransport.Interface) NewUpdateConfiguration { + return func(connectorid string) *UpdateConfiguration { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates 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 { + r := &UpdateConfiguration{ + 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 *UpdateConfiguration) Raw(raw io.Reader) *UpdateConfiguration { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateConfiguration) Request(req *Request) *UpdateConfiguration { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateConfiguration) 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 UpdateConfiguration: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_configuration") + + 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 UpdateConfiguration) 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, "connector.update_configuration") + 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, "connector.update_configuration") + if reader := instrument.RecordRequestBody(ctx, "connector.update_configuration", 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", "connector.update_configuration") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateConfiguration 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 updateconfiguration.Response +func (r UpdateConfiguration) 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, "connector.update_configuration") + 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 UpdateConfiguration headers map. +func (r *UpdateConfiguration) Header(key, value string) *UpdateConfiguration { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateConfiguration) _connectorid(connectorid string) *UpdateConfiguration { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateConfiguration) ErrorTrace(errortrace bool) *UpdateConfiguration { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateConfiguration) FilterPath(filterpaths ...string) *UpdateConfiguration { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateConfiguration) Human(human bool) *UpdateConfiguration { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateConfiguration) Pretty(pretty bool) *UpdateConfiguration { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: configuration +func (r *UpdateConfiguration) Configuration(connectorconfiguration types.ConnectorConfiguration) *UpdateConfiguration { + r.req.Configuration = connectorconfiguration + + return r +} + +// API name: values +func (r *UpdateConfiguration) Values(values map[string]json.RawMessage) *UpdateConfiguration { + + r.req.Values = values + + return r +} 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 new file mode 100644 index 0000000000..62b121baa7 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/request.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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateerror + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// 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 +type Request struct { + Error any `json:"error"` +} + +// 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 Updateerror 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 "error": + if err := dec.Decode(&s.Error); err != nil { + return fmt.Errorf("%s | %w", "Error", err) + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..d025544549 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateerror + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..a0569acd12 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror/update_error.go @@ -0,0 +1,367 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the filtering field in the connector document +package updateerror + +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 ( + connectoridMask = 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 UpdateError 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateError type alias for index. +type NewUpdateError func(connectorid string) *UpdateError + +// NewUpdateErrorFunc returns a new instance of UpdateError with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateErrorFunc(tp elastictransport.Interface) NewUpdateError { + return func(connectorid string) *UpdateError { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the filtering field in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-error-api.html +func New(tp elastictransport.Interface) *UpdateError { + r := &UpdateError{ + 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 *UpdateError) Raw(raw io.Reader) *UpdateError { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateError) Request(req *Request) *UpdateError { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateError) 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 UpdateError: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_error") + + 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 UpdateError) 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, "connector.update_error") + 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, "connector.update_error") + if reader := instrument.RecordRequestBody(ctx, "connector.update_error", 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", "connector.update_error") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateError 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 updateerror.Response +func (r UpdateError) 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, "connector.update_error") + 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 UpdateError headers map. +func (r *UpdateError) Header(key, value string) *UpdateError { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateError) _connectorid(connectorid string) *UpdateError { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateError) ErrorTrace(errortrace bool) *UpdateError { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateError) FilterPath(filterpaths ...string) *UpdateError { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateError) Human(human bool) *UpdateError { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateError) Pretty(pretty bool) *UpdateError { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: error +func (r *UpdateError) Error(error any) *UpdateError { + r.req.Error = error + + return r +} 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 new file mode 100644 index 0000000000..1bda1e550e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/request.go @@ -0,0 +1,56 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatefiltering + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Request struct { + AdvancedSnippet *types.FilteringAdvancedSnippet `json:"advanced_snippet,omitempty"` + Filtering []types.FilteringConfig `json:"filtering,omitempty"` + Rules []types.FilteringRule `json:"rules,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 Updatefiltering request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..8f1b22af34 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatefiltering + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..1330ef0e51 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering/update_filtering.go @@ -0,0 +1,382 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the filtering field in the connector document +package updatefiltering + +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 ( + connectoridMask = 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 UpdateFiltering 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateFiltering type alias for index. +type NewUpdateFiltering func(connectorid string) *UpdateFiltering + +// NewUpdateFilteringFunc returns a new instance of UpdateFiltering with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateFilteringFunc(tp elastictransport.Interface) NewUpdateFiltering { + return func(connectorid string) *UpdateFiltering { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the filtering field in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html +func New(tp elastictransport.Interface) *UpdateFiltering { + r := &UpdateFiltering{ + 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 *UpdateFiltering) Raw(raw io.Reader) *UpdateFiltering { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateFiltering) Request(req *Request) *UpdateFiltering { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateFiltering) 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 UpdateFiltering: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_filtering") + + 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 UpdateFiltering) 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, "connector.update_filtering") + 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, "connector.update_filtering") + if reader := instrument.RecordRequestBody(ctx, "connector.update_filtering", 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", "connector.update_filtering") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateFiltering 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 updatefiltering.Response +func (r UpdateFiltering) 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, "connector.update_filtering") + 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 UpdateFiltering headers map. +func (r *UpdateFiltering) Header(key, value string) *UpdateFiltering { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateFiltering) _connectorid(connectorid string) *UpdateFiltering { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateFiltering) ErrorTrace(errortrace bool) *UpdateFiltering { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateFiltering) FilterPath(filterpaths ...string) *UpdateFiltering { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateFiltering) Human(human bool) *UpdateFiltering { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateFiltering) Pretty(pretty bool) *UpdateFiltering { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: advanced_snippet +func (r *UpdateFiltering) AdvancedSnippet(advancedsnippet *types.FilteringAdvancedSnippet) *UpdateFiltering { + + r.req.AdvancedSnippet = advancedsnippet + + return r +} + +// API name: filtering +func (r *UpdateFiltering) Filtering(filterings ...types.FilteringConfig) *UpdateFiltering { + r.req.Filtering = filterings + + return r +} + +// API name: rules +func (r *UpdateFiltering) Rules(rules ...types.FilteringRule) *UpdateFiltering { + r.req.Rules = rules + + return r +} 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 new file mode 100644 index 0000000000..6c3f955aa9 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatefilteringvalidation + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Request struct { + Validation types.FilteringRulesValidation `json:"validation"` +} + +// 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 Updatefilteringvalidation request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..52e9a5d59e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatefilteringvalidation + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..f5253afdf5 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go @@ -0,0 +1,370 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the draft filtering validation info for a connector. +package updatefilteringvalidation + +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 ( + connectoridMask = 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 UpdateFilteringValidation 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateFilteringValidation type alias for index. +type NewUpdateFilteringValidation func(connectorid string) *UpdateFilteringValidation + +// NewUpdateFilteringValidationFunc returns a new instance of UpdateFilteringValidation with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateFilteringValidationFunc(tp elastictransport.Interface) NewUpdateFilteringValidation { + return func(connectorid string) *UpdateFilteringValidation { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates 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 { + r := &UpdateFilteringValidation{ + 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 *UpdateFilteringValidation) Raw(raw io.Reader) *UpdateFilteringValidation { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateFilteringValidation) Request(req *Request) *UpdateFilteringValidation { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateFilteringValidation) 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 UpdateFilteringValidation: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_filtering") + path.WriteString("/") + path.WriteString("_validation") + + 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 UpdateFilteringValidation) 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, "connector.update_filtering_validation") + 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, "connector.update_filtering_validation") + if reader := instrument.RecordRequestBody(ctx, "connector.update_filtering_validation", 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", "connector.update_filtering_validation") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateFilteringValidation 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 updatefilteringvalidation.Response +func (r UpdateFilteringValidation) 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, "connector.update_filtering_validation") + 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 UpdateFilteringValidation headers map. +func (r *UpdateFilteringValidation) Header(key, value string) *UpdateFilteringValidation { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateFilteringValidation) _connectorid(connectorid string) *UpdateFilteringValidation { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateFilteringValidation) ErrorTrace(errortrace bool) *UpdateFilteringValidation { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateFilteringValidation) FilterPath(filterpaths ...string) *UpdateFilteringValidation { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateFilteringValidation) Human(human bool) *UpdateFilteringValidation { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateFilteringValidation) Pretty(pretty bool) *UpdateFilteringValidation { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: validation +func (r *UpdateFilteringValidation) Validation(validation *types.FilteringRulesValidation) *UpdateFilteringValidation { + + r.req.Validation = *validation + + return r +} 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 new file mode 100644 index 0000000000..172f3dd45b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/request.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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateindexname + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// 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 +type Request struct { + IndexName any `json:"index_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 Updateindexname 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 "index_name": + if err := dec.Decode(&s.IndexName); err != nil { + return fmt.Errorf("%s | %w", "IndexName", err) + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..2c99c5d9a9 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateindexname + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..86d1221fc8 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname/update_index_name.go @@ -0,0 +1,367 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the index_name in the connector document +package updateindexname + +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 ( + connectoridMask = 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 UpdateIndexName 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateIndexName type alias for index. +type NewUpdateIndexName func(connectorid string) *UpdateIndexName + +// NewUpdateIndexNameFunc returns a new instance of UpdateIndexName with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateIndexNameFunc(tp elastictransport.Interface) NewUpdateIndexName { + return func(connectorid string) *UpdateIndexName { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the index_name in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-index-name-api.html +func New(tp elastictransport.Interface) *UpdateIndexName { + r := &UpdateIndexName{ + 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 *UpdateIndexName) Raw(raw io.Reader) *UpdateIndexName { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateIndexName) Request(req *Request) *UpdateIndexName { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateIndexName) 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 UpdateIndexName: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_index_name") + + 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 UpdateIndexName) 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, "connector.update_index_name") + 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, "connector.update_index_name") + if reader := instrument.RecordRequestBody(ctx, "connector.update_index_name", 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", "connector.update_index_name") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateIndexName 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 updateindexname.Response +func (r UpdateIndexName) 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, "connector.update_index_name") + 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 UpdateIndexName headers map. +func (r *UpdateIndexName) Header(key, value string) *UpdateIndexName { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateIndexName) _connectorid(connectorid string) *UpdateIndexName { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateIndexName) ErrorTrace(errortrace bool) *UpdateIndexName { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateIndexName) FilterPath(filterpaths ...string) *UpdateIndexName { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateIndexName) Human(human bool) *UpdateIndexName { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateIndexName) Pretty(pretty bool) *UpdateIndexName { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: index_name +func (r *UpdateIndexName) IndexName(indexname any) *UpdateIndexName { + r.req.IndexName = indexname + + return r +} 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 new file mode 100644 index 0000000000..40a483d1ab --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/request.go @@ -0,0 +1,53 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatename + +import ( + "encoding/json" + "fmt" +) + +// 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 +type Request struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,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 Updatename request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..6942b6d095 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatename + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..1dffa13a1d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename/update_name.go @@ -0,0 +1,376 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the name and description fields in the connector document +package updatename + +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 ( + connectoridMask = 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 UpdateName 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateName type alias for index. +type NewUpdateName func(connectorid string) *UpdateName + +// NewUpdateNameFunc returns a new instance of UpdateName with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateNameFunc(tp elastictransport.Interface) NewUpdateName { + return func(connectorid string) *UpdateName { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the name and description fields in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-name-description-api.html +func New(tp elastictransport.Interface) *UpdateName { + r := &UpdateName{ + 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 *UpdateName) Raw(raw io.Reader) *UpdateName { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateName) Request(req *Request) *UpdateName { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateName) 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 UpdateName: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_name") + + 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 UpdateName) 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, "connector.update_name") + 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, "connector.update_name") + if reader := instrument.RecordRequestBody(ctx, "connector.update_name", 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", "connector.update_name") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateName 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 updatename.Response +func (r UpdateName) 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, "connector.update_name") + 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 UpdateName headers map. +func (r *UpdateName) Header(key, value string) *UpdateName { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateName) _connectorid(connectorid string) *UpdateName { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateName) ErrorTrace(errortrace bool) *UpdateName { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateName) FilterPath(filterpaths ...string) *UpdateName { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateName) Human(human bool) *UpdateName { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateName) Pretty(pretty bool) *UpdateName { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: description +func (r *UpdateName) Description(description string) *UpdateName { + + r.req.Description = &description + + return r +} + +// API name: name +func (r *UpdateName) Name(name string) *UpdateName { + + r.req.Name = &name + + return r +} 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 new file mode 100644 index 0000000000..0a78a90dfd --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/request.go @@ -0,0 +1,52 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatenative + +import ( + "encoding/json" + "fmt" +) + +// 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 +type Request struct { + IsNative bool `json:"is_native"` +} + +// 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 Updatenative request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..ee3ac5509c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatenative + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..3817b21a07 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative/update_native.go @@ -0,0 +1,367 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the is_native flag in the connector document +package updatenative + +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 ( + connectoridMask = 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 UpdateNative 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateNative type alias for index. +type NewUpdateNative func(connectorid string) *UpdateNative + +// NewUpdateNativeFunc returns a new instance of UpdateNative with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateNativeFunc(tp elastictransport.Interface) NewUpdateNative { + return func(connectorid string) *UpdateNative { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the is_native flag in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-native-api.html +func New(tp elastictransport.Interface) *UpdateNative { + r := &UpdateNative{ + 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 *UpdateNative) Raw(raw io.Reader) *UpdateNative { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateNative) Request(req *Request) *UpdateNative { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateNative) 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 UpdateNative: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_native") + + 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 UpdateNative) 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, "connector.update_native") + 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, "connector.update_native") + if reader := instrument.RecordRequestBody(ctx, "connector.update_native", 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", "connector.update_native") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateNative 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 updatenative.Response +func (r UpdateNative) 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, "connector.update_native") + 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 UpdateNative headers map. +func (r *UpdateNative) Header(key, value string) *UpdateNative { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateNative) _connectorid(connectorid string) *UpdateNative { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateNative) ErrorTrace(errortrace bool) *UpdateNative { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateNative) FilterPath(filterpaths ...string) *UpdateNative { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateNative) Human(human bool) *UpdateNative { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateNative) Pretty(pretty bool) *UpdateNative { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: is_native +func (r *UpdateNative) IsNative(isnative bool) *UpdateNative { + r.req.IsNative = isnative + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/request.go similarity index 71% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/request.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/request.go index 071df71a1f..6d638012ec 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/request.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -package put +package updatepipeline import ( "encoding/json" @@ -27,11 +27,11 @@ import ( "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) -// Request holds the request body struct for the package put +// Request holds the request body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/put/QueryRulesetPutRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L44 type Request struct { - Rules []types.QueryRule `json:"rules"` + Pipeline types.IngestPipelineParams `json:"pipeline"` } // NewRequest returns a Request @@ -47,7 +47,7 @@ func (r *Request) FromJSON(data string) (*Request, error) { err := json.Unmarshal([]byte(data), &req) if err != nil { - return nil, fmt.Errorf("could not deserialise json into Put request: %w", err) + return nil, fmt.Errorf("could not deserialise json into Updatepipeline request: %w", err) } return &req, nil 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 new file mode 100644 index 0000000000..07f4c2193a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatepipeline + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..6760310a7b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline/update_pipeline.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the pipeline field in the connector document +package updatepipeline + +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 ( + connectoridMask = 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 UpdatePipeline 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdatePipeline type alias for index. +type NewUpdatePipeline func(connectorid string) *UpdatePipeline + +// NewUpdatePipelineFunc returns a new instance of UpdatePipeline with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdatePipelineFunc(tp elastictransport.Interface) NewUpdatePipeline { + return func(connectorid string) *UpdatePipeline { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the pipeline field in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-pipeline-api.html +func New(tp elastictransport.Interface) *UpdatePipeline { + r := &UpdatePipeline{ + 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 *UpdatePipeline) Raw(raw io.Reader) *UpdatePipeline { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdatePipeline) Request(req *Request) *UpdatePipeline { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdatePipeline) 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 UpdatePipeline: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_pipeline") + + 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 UpdatePipeline) 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, "connector.update_pipeline") + 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, "connector.update_pipeline") + if reader := instrument.RecordRequestBody(ctx, "connector.update_pipeline", 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", "connector.update_pipeline") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdatePipeline 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 updatepipeline.Response +func (r UpdatePipeline) 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, "connector.update_pipeline") + 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 UpdatePipeline headers map. +func (r *UpdatePipeline) Header(key, value string) *UpdatePipeline { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdatePipeline) _connectorid(connectorid string) *UpdatePipeline { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdatePipeline) ErrorTrace(errortrace bool) *UpdatePipeline { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdatePipeline) FilterPath(filterpaths ...string) *UpdatePipeline { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdatePipeline) Human(human bool) *UpdatePipeline { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdatePipeline) Pretty(pretty bool) *UpdatePipeline { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: pipeline +func (r *UpdatePipeline) Pipeline(pipeline *types.IngestPipelineParams) *UpdatePipeline { + + r.req.Pipeline = *pipeline + + return r +} 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 new file mode 100644 index 0000000000..c2d8bb01c7 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatescheduling + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Request struct { + Scheduling types.SchedulingConfiguration `json:"scheduling"` +} + +// 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 Updatescheduling request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..cb3348ce66 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatescheduling + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..62478f8bae --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling/update_scheduling.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the scheduling field in the connector document +package updatescheduling + +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 ( + connectoridMask = 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 UpdateScheduling 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateScheduling type alias for index. +type NewUpdateScheduling func(connectorid string) *UpdateScheduling + +// NewUpdateSchedulingFunc returns a new instance of UpdateScheduling with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateSchedulingFunc(tp elastictransport.Interface) NewUpdateScheduling { + return func(connectorid string) *UpdateScheduling { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the scheduling field in the connector document +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-scheduling-api.html +func New(tp elastictransport.Interface) *UpdateScheduling { + r := &UpdateScheduling{ + 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 *UpdateScheduling) Raw(raw io.Reader) *UpdateScheduling { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateScheduling) Request(req *Request) *UpdateScheduling { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateScheduling) 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 UpdateScheduling: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_scheduling") + + 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 UpdateScheduling) 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, "connector.update_scheduling") + 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, "connector.update_scheduling") + if reader := instrument.RecordRequestBody(ctx, "connector.update_scheduling", 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", "connector.update_scheduling") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateScheduling 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 updatescheduling.Response +func (r UpdateScheduling) 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, "connector.update_scheduling") + 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 UpdateScheduling headers map. +func (r *UpdateScheduling) Header(key, value string) *UpdateScheduling { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateScheduling) _connectorid(connectorid string) *UpdateScheduling { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateScheduling) ErrorTrace(errortrace bool) *UpdateScheduling { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateScheduling) FilterPath(filterpaths ...string) *UpdateScheduling { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateScheduling) Human(human bool) *UpdateScheduling { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateScheduling) Pretty(pretty bool) *UpdateScheduling { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: scheduling +func (r *UpdateScheduling) Scheduling(scheduling *types.SchedulingConfiguration) *UpdateScheduling { + + r.req.Scheduling = *scheduling + + return r +} 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 new file mode 100644 index 0000000000..ed01933851 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/request.go @@ -0,0 +1,52 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateservicetype + +import ( + "encoding/json" + "fmt" +) + +// 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 +type Request struct { + ServiceType string `json:"service_type"` +} + +// 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 Updateservicetype request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..0fec82e203 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updateservicetype + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..606b027ad0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype/update_service_type.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the service type of the connector +package updateservicetype + +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 ( + connectoridMask = 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 UpdateServiceType 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateServiceType type alias for index. +type NewUpdateServiceType func(connectorid string) *UpdateServiceType + +// NewUpdateServiceTypeFunc returns a new instance of UpdateServiceType with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateServiceTypeFunc(tp elastictransport.Interface) NewUpdateServiceType { + return func(connectorid string) *UpdateServiceType { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the service type of the connector +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-service-type-api.html +func New(tp elastictransport.Interface) *UpdateServiceType { + r := &UpdateServiceType{ + 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 *UpdateServiceType) Raw(raw io.Reader) *UpdateServiceType { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateServiceType) Request(req *Request) *UpdateServiceType { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateServiceType) 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 UpdateServiceType: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_service_type") + + 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 UpdateServiceType) 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, "connector.update_service_type") + 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, "connector.update_service_type") + if reader := instrument.RecordRequestBody(ctx, "connector.update_service_type", 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", "connector.update_service_type") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateServiceType 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 updateservicetype.Response +func (r UpdateServiceType) 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, "connector.update_service_type") + 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 UpdateServiceType headers map. +func (r *UpdateServiceType) Header(key, value string) *UpdateServiceType { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateServiceType) _connectorid(connectorid string) *UpdateServiceType { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateServiceType) ErrorTrace(errortrace bool) *UpdateServiceType { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateServiceType) FilterPath(filterpaths ...string) *UpdateServiceType { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateServiceType) Human(human bool) *UpdateServiceType { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateServiceType) Pretty(pretty bool) *UpdateServiceType { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: service_type +func (r *UpdateServiceType) ServiceType(servicetype string) *UpdateServiceType { + + r.req.ServiceType = servicetype + + return r +} 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 new file mode 100644 index 0000000000..07132d7f39 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatestatus + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus" +) + +// 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 +type Request struct { + Status connectorstatus.ConnectorStatus `json:"status"` +} + +// 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 Updatestatus request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..185683a3f5 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/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/19027dbdd366978ccae41842a040a636730e7c10 + +package updatestatus + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..ff19e3aae2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus/update_status.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the status of the connector +package updatestatus + +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" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus" +) + +const ( + connectoridMask = 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 UpdateStatus 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 + + connectorid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewUpdateStatus type alias for index. +type NewUpdateStatus func(connectorid string) *UpdateStatus + +// NewUpdateStatusFunc returns a new instance of UpdateStatus with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewUpdateStatusFunc(tp elastictransport.Interface) NewUpdateStatus { + return func(connectorid string) *UpdateStatus { + n := New(tp) + + n._connectorid(connectorid) + + return n + } +} + +// Updates the status of the connector +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-status-api.html +func New(tp elastictransport.Interface) *UpdateStatus { + r := &UpdateStatus{ + 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 *UpdateStatus) Raw(raw io.Reader) *UpdateStatus { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *UpdateStatus) Request(req *Request) *UpdateStatus { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *UpdateStatus) 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 UpdateStatus: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == connectoridMask: + path.WriteString("/") + path.WriteString("_connector") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "connectorid", r.connectorid) + } + path.WriteString(r.connectorid) + path.WriteString("/") + path.WriteString("_status") + + 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 UpdateStatus) 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, "connector.update_status") + 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, "connector.update_status") + if reader := instrument.RecordRequestBody(ctx, "connector.update_status", 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", "connector.update_status") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the UpdateStatus 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 updatestatus.Response +func (r UpdateStatus) 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, "connector.update_status") + 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 UpdateStatus headers map. +func (r *UpdateStatus) Header(key, value string) *UpdateStatus { + r.headers.Set(key, value) + + return r +} + +// ConnectorId The unique identifier of the connector to be updated +// API Name: connectorid +func (r *UpdateStatus) _connectorid(connectorid string) *UpdateStatus { + r.paramSet |= connectoridMask + r.connectorid = connectorid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *UpdateStatus) ErrorTrace(errortrace bool) *UpdateStatus { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *UpdateStatus) FilterPath(filterpaths ...string) *UpdateStatus { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *UpdateStatus) Human(human bool) *UpdateStatus { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *UpdateStatus) Pretty(pretty bool) *UpdateStatus { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: status +func (r *UpdateStatus) Status(status connectorstatus.ConnectorStatus) *UpdateStatus { + r.req.Status = status + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/bulk.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/bulk.go index 8c22ee739e..ab001a149d 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows to perform multiple index/update/delete operations in a single -// request. +// Performs multiple indexing or delete operations in a single API call. +// This reduces overhead and can greatly increase indexing speed. package bulk import ( @@ -81,8 +81,8 @@ func NewBulkFunc(tp elastictransport.Interface) NewBulk { } } -// Allows to perform multiple index/update/delete operations in a single -// request. +// 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 func New(tp elastictransport.Interface) *Bulk { 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 5e4428a24f..ade2ddad4d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/BulkRequest.ts#L32-L103 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/bulk/BulkRequest.ts#L32-L103 type Request = []any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/response.go index 88c5b1e679..9e1b2b03ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package bulk @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/BulkResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4ef8fce44c..bb7aa7d594 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Explicitly clears the search context for a scroll. +// Clears the search context and results for a scrolling search. package clearscroll import ( @@ -75,7 +75,7 @@ func NewClearScrollFunc(tp elastictransport.Interface) NewClearScroll { } } -// Explicitly clears the search context for a scroll. +// Clears 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 230849b6dd..5cfeb173c2 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,18 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearscroll import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" ) // Request holds the request body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L45 type Request struct { // ScrollId Scroll IDs to clear. @@ -53,3 +56,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 "scroll_id": + 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", "ScrollId", err) + } + + s.ScrollId = append(s.ScrollId, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.ScrollId); err != nil { + return fmt.Errorf("%s | %w", "ScrollId", err) + } + } + + } + } + return nil +} 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 cf22e13745..855f95d14c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearscroll // Response holds the response body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/clear_scroll/ClearScrollResponse.ts#L22-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5f0ba84064..28af1df26d 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Close a point in time +// Closes a point-in-time. package closepointintime import ( @@ -73,7 +73,7 @@ func NewClosePointInTimeFunc(tp elastictransport.Interface) NewClosePointInTime } } -// Close a point in time +// Closes a point-in-time. // // 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 3a781a7298..d765b8af1c 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,18 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package closepointintime import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" ) // Request holds the request body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L37 type Request struct { // Id The ID of the point-in-time. @@ -52,3 +55,27 @@ 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 "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + } + } + return nil +} 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 f79ac633d4..2e51e37303 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package closepointintime // Response holds the response body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 85e16f6f13..9f1840d152 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 7bee8f7ad8..578d23319c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package count @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/count/CountRequest.ts#L26-L120 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/count/CountRequest.ts#L26-L120 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 205e0695b9..27d5212064 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package count @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/count/CountResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f822769138..4b5fb95dde 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,12 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates a new document in the index. -// -// Returns a 409 response when a document with a same ID already exists in the -// index. +// 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. package create import ( @@ -91,10 +91,10 @@ func NewCreateFunc(tp elastictransport.Interface) NewCreate { } } -// Creates a new document in the index. -// -// Returns a 409 response when a document with a same ID already exists in the -// index. +// 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 func New(tp elastictransport.Interface) *Create { 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 a39affef97..186fe272f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package create @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/create/CreateRequest.ts#L32-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/create/CreateRequest.ts#L32-L95 type Request = json.RawMessage // NewRequest returns a Request diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/response.go index 674136c7ac..d6903a6553 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package create @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/create/CreateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e36afb7424..72c38d48e7 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Removes a document from the index. +// Removes a JSON document from the specified index. package delete import ( @@ -84,7 +84,7 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } -// Removes a document from the index. +// Removes a JSON document from the specified index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html func New(tp elastictransport.Interface) *Delete { 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 f09c08175a..e8a7d0a230 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package delete @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete/DeleteResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5a2fa9a8d0..f4060a7628 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes documents matching the provided query. +// Deletes documents that match the specified query. package deletebyquery import ( @@ -85,7 +85,7 @@ func NewDeleteByQueryFunc(tp elastictransport.Interface) NewDeleteByQuery { } } -// Deletes documents matching the provided query. +// Deletes documents that match the specified query. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html func New(tp elastictransport.Interface) *DeleteByQuery { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/request.go index 2f2780761d..c0109b3295 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletebyquery @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L209 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L209 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 b03fef3f69..2cdddd1144 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletebyquery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete_by_query/DeleteByQueryResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e836fce695..3265a22cd2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Changes the number of requests per second for a particular Delete By Query // operation. 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 43f99b4f08..d76a955e4e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletebyqueryrethrottle @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package deletebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 961c4ec898..51ca47b866 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes a script. +// Deletes a stored script or search template. package deletescript import ( @@ -76,7 +76,7 @@ func NewDeleteScriptFunc(tp elastictransport.Interface) NewDeleteScript { } } -// Deletes a script. +// Deletes a stored script or search template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html func New(tp elastictransport.Interface) *DeleteScript { 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 0536098470..5ac945d21a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletescript // Response holds the response body struct for the package deletescript // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete_script/DeleteScriptResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5935e52af6..0400053489 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about whether a document exists in an index. +// Checks if a document in an index exists. package exists import ( @@ -80,7 +80,7 @@ func NewExistsFunc(tp elastictransport.Interface) NewExists { } } -// Returns information about whether a document exists in an index. +// Checks if a document in an index 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 af808c1e9b..caeeb3835b 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about whether a document source exists in an index. +// Checks if a document's `_source` is stored. package existssource import ( @@ -80,7 +80,7 @@ func NewExistsSourceFunc(tp elastictransport.Interface) NewExistsSource { } } -// Returns information about whether a document source exists in an index. +// Checks if a document's `_source` is stored. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html func New(tp elastictransport.Interface) *ExistsSource { 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 9625cb5245..13af7aeb4a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about why a specific matches (or doesn't match) a query. +// Returns information about why a specific document matches (or doesn’t match) +// a query. package explain import ( @@ -87,7 +88,8 @@ func NewExplainFunc(tp elastictransport.Interface) NewExplain { } } -// Returns information about why a specific matches (or doesn't match) a query. +// 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 func New(tp elastictransport.Interface) *Explain { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/request.go index 7d7ac90440..6a003c8b0f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package explain @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/explain/ExplainRequest.ts#L26-L105 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/explain/ExplainRequest.ts#L26-L105 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 f2721f8960..88c473aa8b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package explain @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/explain/ExplainResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 87daa2828d..adbc69a074 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,10 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns the information about the capabilities of fields among multiple -// indices. +// 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. package fieldcaps import ( @@ -81,8 +85,12 @@ func NewFieldCapsFunc(tp elastictransport.Interface) NewFieldCaps { } } -// Returns the information about the capabilities of fields among multiple -// indices. +// 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://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 bbf71f686c..68b64bc13a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package fieldcaps @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L106 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L106 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 7c581f6567..c89c77ca0c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package fieldcaps @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/field_caps/FieldCapabilitiesResponse.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e14589abfc..205e525985 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/get.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/get.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns a document. package 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 cbec93ff44..bf9bcc1224 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get/GetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get/GetResponse.ts#L23-L34 type Response struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/get_script.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/get_script.go index 6425842ce1..ef05eac3d5 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns a script. +// Retrieves a stored script or search template. package getscript import ( @@ -76,7 +76,7 @@ func NewGetScriptFunc(tp elastictransport.Interface) NewGetScript { } } -// Returns a script. +// Retrieves a stored script or search template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html func New(tp elastictransport.Interface) *GetScript { 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 2761aa1678..bf51150890 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getscript @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscript // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script/GetScriptResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 371b812750..c901de4832 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/get_script_context.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/get_script_context.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns all script contexts. package 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 d66eba94e4..adae4e9f50 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getscriptcontext @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscriptcontext // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_context/GetScriptContextResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fe69c352f3..cd68577052 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/get_script_languages.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/get_script_languages.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns available script types, languages and contexts package 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 0105577b3d..fd4148921f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getscriptlanguages @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscriptlanguages // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2199feb370..c60e2bce29 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/get_source.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/get_source.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns the source of a document. package getsource 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 0b0174e0ec..abaf775ed2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getsource @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsource // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_source/SourceResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cf38228697..6a90ca7e0f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 181a5f7f97..83053d04d6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package healthreport @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package healthreport // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d333ff5702..c4b6d86d78 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates a document in an index. +// 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. package index import ( @@ -87,7 +90,10 @@ func NewIndexFunc(tp elastictransport.Interface) NewIndex { } } -// Creates or updates a document in an index. +// 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 func New(tp elastictransport.Interface) *Index { 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 8149ee5233..a5fba1e17c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package index @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/index/IndexRequest.ts#L35-L117 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/index/IndexRequest.ts#L35-L117 type Request = json.RawMessage // NewRequest returns a Request diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/response.go index 68a2211f10..7ee6579f7d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package index @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/index/IndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6d7e895293..424312940f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/info.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/info.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns basic information about the cluster. package info 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 ead1257f98..3740d0544a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/info/RootNodeInfoResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 340514f2cb..e2a3cae235 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/knn_search.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/knn_search.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Performs a kNN search. package 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 6f29658e86..1e6206ed51 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package knnsearch @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package knnsearch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/knn_search/KnnSearchRequest.ts#L27-L80 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/knn_search/KnnSearchRequest.ts#L27-L80 type Request struct { // DocvalueFields The request returns doc values for field names matching these patterns @@ -138,9 +138,40 @@ func (s *Request) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := types.NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } case "stored_fields": rawMsg := json.RawMessage{} 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 7a29d92f82..73137931f3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package knnsearch @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package knnsearch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/knn_search/KnnSearchResponse.ts#L26-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4557e72eab..88806c3d9e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/mget.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/mget.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Allows to get multiple documents in one request. package 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 b39e414897..9d25130aa5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mget @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/MultiGetRequest.ts#L25-L98 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mget/MultiGetRequest.ts#L25-L98 type Request struct { // Docs The documents you want to retrieve. Required if no index is specified in the 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 c6eb6dfd1e..38ce14e6cc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mget @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/MultiGetResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mget/MultiGetResponse.ts#L22-L26 type Response struct { Docs []types.MgetResponseItem `json:"docs"` } @@ -62,7 +62,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { if err := dec.Decode(&messageArray); err != nil { return fmt.Errorf("%s | %w", "Docs", err) } - docs: + docs_field: for _, message := range messageArray { keyDec := json.NewDecoder(bytes.NewReader(message)) for { @@ -83,7 +83,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Docs", err) } s.Docs = append(s.Docs, o) - continue docs + continue docs_field case "error": o := types.NewMultiGetError() @@ -92,10 +92,17 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Docs", err) } s.Docs = append(s.Docs, o) - continue docs + continue docs_field } } + + var o any + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Docs", err) + } + s.Docs = append(s.Docs, o) } } 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 a749b4d382..0123e8c0cf 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/msearch.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/msearch.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Allows to execute several search operations in one request. package msearch @@ -374,6 +374,21 @@ func (r *Msearch) IgnoreUnavailable(ignoreunavailable bool) *Msearch { return r } +// IncludeNamedQueriesScore Indicates whether hit.matched_queries should be rendered as a map that +// includes +// the name of the matched query associated with its score (true) +// or as an array containing the name of the matched queries (false) +// This functionality reruns each named query on every hit in a search response. +// Typically, this adds a small overhead to a request. +// However, using computationally expensive named queries on a large number of +// hits may add significant overhead. +// API name: include_named_queries_score +func (r *Msearch) IncludeNamedQueriesScore(includenamedqueriesscore bool) *Msearch { + r.values.Set("include_named_queries_score", strconv.FormatBool(includenamedqueriesscore)) + + return r +} + // MaxConcurrentSearches Maximum number of concurrent searches the multi search API can execute. // API name: max_concurrent_searches func (r *Msearch) MaxConcurrentSearches(maxconcurrentsearches string) *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 8f131ecfdd..31082e31de 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package msearch @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/MultiSearchRequest.ts#L25-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/MultiSearchRequest.ts#L25-L106 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 60cf065fed..6e3bcd78da 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package msearch @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/MultiSearchResponse.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/MultiSearchResponse.ts#L25-L27 type Response struct { Responses []types.MsearchResponseItem `json:"responses"` Took int64 `json:"took"` @@ -64,7 +64,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { if err := dec.Decode(&messageArray); err != nil { return fmt.Errorf("%s | %w", "Responses", err) } - responses: + responses_field: for _, message := range messageArray { keyDec := json.NewDecoder(bytes.NewReader(message)) for { @@ -85,7 +85,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Responses", err) } s.Responses = append(s.Responses, o) - continue responses + continue responses_field case "error": o := types.NewErrorResponseBase() @@ -94,10 +94,17 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Responses", err) } s.Responses = append(s.Responses, o) - continue responses + continue responses_field } } + + var o any + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Responses", err) + } + s.Responses = append(s.Responses, o) } case "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 168571e1fb..27f2266a2a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows to execute several search template operations in one request. +// Runs multiple templated searches with a single request. package msearchtemplate import ( @@ -80,7 +80,7 @@ func NewMsearchTemplateFunc(tp elastictransport.Interface) NewMsearchTemplate { } } -// Allows to execute several search template operations in one request. +// Runs multiple templated searches with a single request. // // 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 99ef75c8f9..c4a288c9de 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package msearchtemplate @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L70 type Request = []types.RequestItem diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/response.go index 9e8004d67c..02a0bd2ca0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package msearchtemplate @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24 type Response struct { Responses []types.MsearchResponseItem `json:"responses"` Took int64 `json:"took"` @@ -64,7 +64,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { if err := dec.Decode(&messageArray); err != nil { return fmt.Errorf("%s | %w", "Responses", err) } - responses: + responses_field: for _, message := range messageArray { keyDec := json.NewDecoder(bytes.NewReader(message)) for { @@ -85,7 +85,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Responses", err) } s.Responses = append(s.Responses, o) - continue responses + continue responses_field case "error": o := types.NewErrorResponseBase() @@ -94,10 +94,17 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Responses", err) } s.Responses = append(s.Responses, o) - continue responses + continue responses_field } } + + var o any + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Responses", err) + } + s.Responses = append(s.Responses, o) } case "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 a4ac54f0ca..84cb95c521 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/mtermvectors.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/mtermvectors.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns multiple termvectors in one request. package 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 b6b23e2c48..d2fe7c7667 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mtermvectors @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L109 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L109 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 82a95d7114..6ee7417297 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mtermvectors @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ab58c5ecd..d4e78547f3 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,9 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Open a point in time that can be used in subsequent searches +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// A search request by default executes 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 +// to perform multiple +// search requests using the same point in time. For example, if refreshes +// happen between +// `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. package openpointintime import ( @@ -77,7 +87,17 @@ func NewOpenPointInTimeFunc(tp elastictransport.Interface) NewOpenPointInTime { } } -// Open a point in time that can be used in subsequent searches +// A search request by default executes 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 +// to perform multiple +// search requests using the same point in time. For example, if refreshes +// happen between +// `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. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html func New(tp elastictransport.Interface) *OpenPointInTime { @@ -136,6 +156,12 @@ func (r *OpenPointInTime) HttpRequest(ctx context.Context) (*http.Request, error 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") } 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 2ea9946b60..ce9d1bae62 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package openpointintime // Response holds the response body struct for the package openpointintime // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L22-L24 type Response struct { Id string `json:"id"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/ping/ping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/ping/ping.go index 0207eda330..a68ecad3f3 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/ping/ping.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/ping/ping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns whether the cluster is running. package ping 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 68e1e7d146..28e554f105 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates a script. +// Creates or updates a stored script or search template. package putscript import ( @@ -84,7 +84,7 @@ func NewPutScriptFunc(tp elastictransport.Interface) NewPutScript { } } -// Creates or updates a script. +// Creates or updates a stored script or search template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html func New(tp elastictransport.Interface) *PutScript { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/request.go index 88d2deaacc..c680adb53f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putscript @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/put_script/PutScriptRequest.ts#L25-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/put_script/PutScriptRequest.ts#L25-L64 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 8208514d80..db500769b6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putscript // Response holds the response body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/put_script/PutScriptResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2828c3c5c1..83d2e69c3a 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,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows to evaluate the quality of ranked search results over a set of typical -// search queries +// Enables you to evaluate the quality of ranked search results over a set of +// typical search queries. package rankeval import ( @@ -81,8 +81,8 @@ func NewRankEvalFunc(tp elastictransport.Interface) NewRankEval { } } -// Allows to evaluate the quality of ranked search results over a set of typical -// search queries +// Enables you to 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 dcf660475e..63111c7998 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package rankeval @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/RankEvalRequest.ts#L24-L61 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/RankEvalRequest.ts#L24-L61 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 fbe1e76c8e..ddf4307d6f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package rankeval @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/RankEvalResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4c35da39b0..4a0f5d199b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/reindex.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/reindex.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Allows to copy documents from one index to another, optionally filtering the // source @@ -443,7 +443,8 @@ func (r *Reindex) MaxDocs(maxdocs int64) *Reindex { // Script The script to run to update the document source or metadata when reindexing. // API name: script -func (r *Reindex) Script(script types.Script) *Reindex { +func (r *Reindex) Script(script *types.Script) *Reindex { + r.req.Script = script return r 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 d4f2e0b1b8..660db16498 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,17 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package reindex import ( - "bytes" "encoding/json" - "errors" "fmt" - "io" - "strconv" "github.com/elastic/go-elasticsearch/v8/typedapi/types" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts" @@ -34,7 +30,7 @@ import ( // Request holds the request body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/ReindexRequest.ts#L27-L101 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/reindex/ReindexRequest.ts#L27-L101 type Request struct { // Conflicts Set to proceed to continue reindexing even if there are conflicts. @@ -44,8 +40,8 @@ type Request struct { // MaxDocs The maximum number of documents to reindex. MaxDocs *int64 `json:"max_docs,omitempty"` // Script The script to run to update the document source or metadata when reindexing. - Script types.Script `json:"script,omitempty"` - Size *int64 `json:"size,omitempty"` + Script *types.Script `json:"script,omitempty"` + Size *int64 `json:"size,omitempty"` // Source The source you are copying from. Source types.ReindexSource `json:"source"` } @@ -68,103 +64,3 @@ 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 "conflicts": - if err := dec.Decode(&s.Conflicts); err != nil { - return fmt.Errorf("%s | %w", "Conflicts", err) - } - - case "dest": - if err := dec.Decode(&s.Dest); err != nil { - return fmt.Errorf("%s | %w", "Dest", err) - } - - case "max_docs": - 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", "MaxDocs", err) - } - s.MaxDocs = &value - case float64: - f := int64(v) - s.MaxDocs = &f - } - - case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := types.NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := types.NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } - - case "size": - 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", "Size", err) - } - s.Size = &value - case float64: - f := int64(v) - s.Size = &f - } - - case "source": - if err := dec.Decode(&s.Source); err != nil { - return fmt.Errorf("%s | %w", "Source", err) - } - - } - } - return nil -} 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 7820193402..00c8aef42c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package reindex @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/ReindexResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fbfd9e865f..8761859073 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Changes the number of requests per second for a particular Reindex operation. +// Copies documents from a source to a destination. package reindexrethrottle import ( @@ -76,7 +76,7 @@ func NewReindexRethrottleFunc(tp elastictransport.Interface) NewReindexRethrottl } } -// Changes the number of requests per second for a particular Reindex operation. +// Copies documents from a source to a destination. // // 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 683eacb3f1..ea9e282365 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package reindexrethrottle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reindexrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dbb912a715..cf1cfe78fc 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows to use the Mustache language to pre-render a search definition. +// Renders a search template as a search request body. package rendersearchtemplate import ( @@ -79,7 +79,7 @@ func NewRenderSearchTemplateFunc(tp elastictransport.Interface) NewRenderSearchT } } -// Allows to use the Mustache language to pre-render a search definition. +// Renders 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 c764358c7b..c3866c6c91 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package rendersearchtemplate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L55 type Request struct { File *string `json:"file,omitempty"` // Params Key-value pairs used to replace Mustache variables in the template. 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 8e13856cc5..a4e1047e08 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package rendersearchtemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2e5e806746..d643904b19 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package scriptspainlessexecute @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L46 type Request struct { // Context The context that the script should run in. @@ -37,7 +37,7 @@ type Request struct { // ContextSetup Additional parameters for the `context`. ContextSetup *types.PainlessContextSetup `json:"context_setup,omitempty"` // Script The Painless script to execute. - Script *types.InlineScript `json:"script,omitempty"` + Script *types.Script `json:"script,omitempty"` } // NewRequest returns a Request 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 7ea34bed04..54dc1c5760 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package scriptspainlessexecute @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 912a2b25bc..169d1f6ccd 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows an arbitrary script to be executed and a result to be returned +// Runs a script and returns a result. package scriptspainlessexecute import ( @@ -73,7 +73,7 @@ func NewScriptsPainlessExecuteFunc(tp elastictransport.Interface) NewScriptsPain } } -// Allows an arbitrary script to be executed and a result to be returned +// Runs a script and returns a result. // // https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html func New(tp elastictransport.Interface) *ScriptsPainlessExecute { @@ -358,7 +358,7 @@ func (r *ScriptsPainlessExecute) ContextSetup(contextsetup *types.PainlessContex // Script The Painless script to execute. // API name: script -func (r *ScriptsPainlessExecute) Script(script *types.InlineScript) *ScriptsPainlessExecute { +func (r *ScriptsPainlessExecute) Script(script *types.Script) *ScriptsPainlessExecute { r.req.Script = script 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 ba712bc42f..4ac3294f8c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package scroll @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scroll/ScrollRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scroll/ScrollRequest.ts#L24-L59 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 e288567063..4e9c5d7a0e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package scroll @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scroll/ScrollResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scroll/ScrollResponse.ts#L22-L24 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` 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 084700afcf..b28d9bc821 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/scroll.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/scroll.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Allows to retrieve a large numbers of results from a single search request. package 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 ce5d22dd06..24c7bcd7a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package search @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/SearchRequest.ts#L54-L520 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/SearchRequest.ts#L54-L530 type Request struct { // Aggregations Defines the aggregations that are run as part of the search request. @@ -423,9 +423,40 @@ func (s *Request) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := types.NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } case "stats": if err := dec.Decode(&s.Stats); err != nil { 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 280da5ec29..be47d2e076 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/SearchResponse.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/SearchResponse.ts#L34-L36 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` 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 5cf78db03a..9293eccfc2 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,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns results matching a query. +// Returns 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. package search import ( @@ -83,7 +86,10 @@ func NewSearchFunc(tp elastictransport.Interface) NewSearch { } } -// Returns results matching a query. +// Returns 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 func New(tp elastictransport.Interface) *Search { @@ -439,6 +445,21 @@ func (r *Search) IgnoreUnavailable(ignoreunavailable bool) *Search { return r } +// IncludeNamedQueriesScore Indicates whether hit.matched_queries should be rendered as a map that +// includes +// the name of the matched query associated with its score (true) +// or as an array containing the name of the matched queries (false) +// This functionality reruns each named query on every hit in a search response. +// Typically, this adds a small overhead to a request. +// However, using computationally expensive named queries on a large number of +// hits may add significant overhead. +// API name: include_named_queries_score +func (r *Search) IncludeNamedQueriesScore(includenamedqueriesscore bool) *Search { + r.values.Set("include_named_queries_score", strconv.FormatBool(includenamedqueriesscore)) + + return r +} + // Lenient If `true`, format-based query failures (such as providing text to a numeric // field) in the query string will be ignored. // This parameter can only be used when the `q` query string parameter is 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 56222ddca2..7d3ee97ca2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package searchmvt @@ -35,7 +35,7 @@ import ( // Request holds the request body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L188 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L188 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 c6ef89081f..fa5efe558b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package searchmvt // Response holds the response body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_mvt/SearchMvtResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6b41af6524..c575543463 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/search_mvt.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/search_mvt.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Searches a vector tile for geospatial values. Returns results as a binary // Mapbox vector tile. 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 ae5bb16992..0e934b95b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package searchshards @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package searchshards // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_shards/SearchShardsResponse.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_shards/SearchShardsResponse.ts#L25-L31 type Response struct { Indices map[string]types.ShardStoreIndex `json:"indices"` Nodes map[string]types.NodeAttributes `json:"nodes"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/search_shards.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/search_shards.go index e86786341c..147a70f8dc 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/search_shards.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/search_shards.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns information about the indices and shards that a search request would // be executed against. 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 3cbbf4d9ff..d54a106bce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package searchtemplate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_template/SearchTemplateRequest.ts#L32-L134 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_template/SearchTemplateRequest.ts#L32-L134 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 b6722f283c..84acbc1133 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package searchtemplate @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_template/SearchTemplateResponse.ts#L30-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` 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 a28aa60129..0358512203 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows to use the Mustache language to pre-render a search definition. +// Runs a search with a search template. package searchtemplate import ( @@ -81,7 +81,7 @@ func NewSearchTemplateFunc(tp elastictransport.Interface) NewSearchTemplate { } } -// Allows to use the Mustache language to pre-render a search definition. +// Runs 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 3d8bf932c1..af727ddc71 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package termsenum @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L65 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 4c1b1e520a..164fcbe9f1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package termsenum @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/terms_enum/TermsEnumResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 69a4aca58c..c9f150fd7a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/terms_enum.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/terms_enum.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 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 b8b065c967..1169606def 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package termvectors @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/TermVectorsRequest.ts#L33-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/TermVectorsRequest.ts#L33-L118 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 50d2264538..e5c577412b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package termvectors @@ -26,10 +26,10 @@ import ( // Response holds the response body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34 type Response struct { Found bool `json:"found"` - Id_ string `json:"_id"` + Id_ *string `json:"_id,omitempty"` Index_ string `json:"_index"` TermVectors map[string]types.TermVector `json:"term_vectors,omitempty"` Took int64 `json:"took"` 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 04a2de9e14..9845e19e5c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/termvectors.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/termvectors.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns information and statistics about terms in the fields of a particular // document. 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 d0986f8e3f..845cf9e6d5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package update @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update/UpdateRequest.ts#L38-L151 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/update/UpdateRequest.ts#L38-L151 type Request struct { // DetectNoop Set to false to disable setting 'result' in the response @@ -44,7 +44,7 @@ type Request struct { // DocAsUpsert Set to true to use the contents of 'doc' as the value of 'upsert' DocAsUpsert *bool `json:"doc_as_upsert,omitempty"` // Script Script to execute to update the document. - Script types.Script `json:"script,omitempty"` + Script *types.Script `json:"script,omitempty"` // ScriptedUpsert Set to true to execute the script whether or not the document exists. ScriptedUpsert *bool `json:"scripted_upsert,omitempty"` // Source_ Set to false to disable source retrieval. You can also specify a @@ -124,58 +124,58 @@ func (s *Request) UnmarshalJSON(data []byte) error { } case "script": + if err := dec.Decode(&s.Script); err != nil { + return fmt.Errorf("%s | %w", "Script", err) + } + + case "scripted_upsert": + 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", "ScriptedUpsert", err) + } + s.ScriptedUpsert = &value + case bool: + s.ScriptedUpsert = &v + } + + case "_source": message := json.RawMessage{} if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Source_", err) } keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: for { t, err := keyDec.Token() if err != nil { if errors.Is(err, io.EOF) { break } - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Source_", err) } switch t { - case "lang", "options", "source": - o := types.NewInlineScript() + case "excludes", "includes": + o := types.NewSourceFilter() localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Source_", err) } - s.Script = o - - case "id": - o := types.NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o + s.Source_ = o + break source__field } } - - case "scripted_upsert": - 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", "ScriptedUpsert", err) + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) } - s.ScriptedUpsert = &value - case bool: - s.ScriptedUpsert = &v - } - - case "_source": - if err := dec.Decode(&s.Source_); err != nil { - return fmt.Errorf("%s | %w", "Source_", err) } case "upsert": 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 d47f6c5457..6974504a6b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package update @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update/UpdateResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8ee384b02e..9f65164ab1 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/update.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/update.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Updates a document with a script or partial document. package update @@ -519,7 +519,8 @@ func (r *Update) DocAsUpsert(docasupsert bool) *Update { // Script Script to execute to update the document. // API name: script -func (r *Update) Script(script types.Script) *Update { +func (r *Update) Script(script *types.Script) *Update { + r.req.Script = script return r 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 68a18022ad..9cc73cc8ae 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,17 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatebyquery import ( - "bytes" "encoding/json" - "errors" "fmt" - "io" - "strconv" "github.com/elastic/go-elasticsearch/v8/typedapi/types" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts" @@ -34,7 +30,7 @@ import ( // Request holds the request body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L221 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L221 type Request struct { // Conflicts What to do if update by query hits version conflicts: `abort` or `proceed`. @@ -44,7 +40,7 @@ type Request struct { // Query Specifies the documents to update using the Query DSL. Query *types.Query `json:"query,omitempty"` // Script The script to run to update the document source or metadata when updating. - Script types.Script `json:"script,omitempty"` + Script *types.Script `json:"script,omitempty"` // Slice Slice the request manually using the provided slice ID and total number of // slices. Slice *types.SlicedScroll `json:"slice,omitempty"` @@ -68,88 +64,3 @@ 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 "conflicts": - if err := dec.Decode(&s.Conflicts); err != nil { - return fmt.Errorf("%s | %w", "Conflicts", err) - } - - case "max_docs": - 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", "MaxDocs", err) - } - s.MaxDocs = &value - case float64: - f := int64(v) - s.MaxDocs = &f - } - - case "query": - if err := dec.Decode(&s.Query); err != nil { - return fmt.Errorf("%s | %w", "Query", err) - } - - case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := types.NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := types.NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } - - case "slice": - if err := dec.Decode(&s.Slice); err != nil { - return fmt.Errorf("%s | %w", "Slice", err) - } - - } - } - return nil -} 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 0d408e8031..48a80cc656 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatebyquery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update_by_query/UpdateByQueryResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2af65239fd..d44baedda6 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,14 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates documents that match the specified query. If no query is specified, -// -// performs an update on every document in the index without changing the -// -// source, -// for example to pick up a mapping change. +// 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. package updatebyquery import ( @@ -90,12 +88,10 @@ func NewUpdateByQueryFunc(tp elastictransport.Interface) NewUpdateByQuery { } } -// Updates documents that match the specified query. If no query is specified, -// -// performs an update on every document in the index without changing the -// -// source, -// for example to pick up a mapping change. +// 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 func New(tp elastictransport.Interface) *UpdateByQuery { @@ -667,7 +663,8 @@ func (r *UpdateByQuery) Query(query *types.Query) *UpdateByQuery { // Script The script to run to update the document source or metadata when updating. // API name: script -func (r *UpdateByQuery) Script(script types.Script) *UpdateByQuery { +func (r *UpdateByQuery) Script(script *types.Script) *UpdateByQuery { + r.req.Script = script return r 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 51e6360d9e..d546ce631c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatebyqueryrethrottle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 84420e6445..1bbc0fd163 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Changes the number of requests per second for a particular Update By Query // operation. 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 a41cf8b8ec..2125f23bdc 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes the specified dangling index package deletedanglingindex 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 649af920ae..9df6d79ec0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletedanglingindex // Response holds the response body struct for the package deletedanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fabdb86c1b..4bc4563cd5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/import_dangling_index.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/import_dangling_index.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Imports the specified dangling index package importdanglingindex 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 ef5dfc75fc..adb9f31470 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package importdanglingindex // Response holds the response body struct for the package importdanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 21655e4052..7f997b3a19 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns all dangling indices. package 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 081def4a0f..e0aec9baf0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package listdanglingindices @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package listdanglingindices // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 03b1b9d497..6dcd11945e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/delete_policy.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/delete_policy.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes an existing enrich policy and its enrich index. package deletepolicy 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 d1f9944699..09979048d4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletepolicy // Response holds the response body struct for the package deletepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b98bc2552f..00631db7ca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 8ee0bbd3c5..7ef8abcc80 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package executepolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package executepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7905a354b4..f39f156b24 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Gets information about an enrich policy. +// Returns information about an enrich policy. package getpolicy import ( @@ -74,7 +74,7 @@ func NewGetPolicyFunc(tp elastictransport.Interface) NewGetPolicy { } } -// Gets information about an enrich policy. +// Returns information about an enrich policy. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html func New(tp elastictransport.Interface) *GetPolicy { 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 27c53d7f5d..6e876c6cdc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getpolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1703cbda93..90bde035fd 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates a new enrich policy. +// Creates an enrich policy. package putpolicy import ( @@ -81,7 +81,7 @@ func NewPutPolicyFunc(tp elastictransport.Interface) NewPutPolicy { } } -// Creates a new enrich policy. +// Creates an enrich policy. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html func New(tp elastictransport.Interface) *PutPolicy { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/request.go index 451e7b8d30..8d37d77d91 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putpolicy @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L52 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 16e8892d58..db3b053cb7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putpolicy // Response holds the response body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bd40363ac6..f986264829 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/stats/EnrichStatsResponse.ts#L22-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9e3baa718c..ba684b22ee 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Gets enrich coordinator statistics and information about enrich policies that -// are currently executing. +// Returns enrich coordinator statistics and information about enrich policies +// that are currently executing. package stats import ( @@ -69,8 +69,8 @@ func NewStatsFunc(tp elastictransport.Interface) NewStats { } } -// Gets enrich coordinator statistics and information about enrich policies that -// are currently executing. +// 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 func New(tp elastictransport.Interface) *Stats { 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 fddd5ede0e..a8f9772075 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes an async EQL search by ID. If the search is still running, the search -// request will be cancelled. Otherwise, the saved search results are deleted. +// Deletes an async EQL search or a stored synchronous EQL search. +// The API also deletes results for the search. package delete import ( @@ -77,8 +77,8 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } -// Deletes an async EQL search by ID. If the search is still running, the search -// request will be cancelled. Otherwise, the saved search results are deleted. +// Deletes an async EQL search or a stored synchronous EQL search. +// The API also deletes results for the search. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html func New(tp elastictransport.Interface) *Delete { 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 caf4d998de..286edf6b36 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/delete/EqlDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ea07c43f7..d08198b01f 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns async results from previously executed Event Query Language (EQL) -// search +// Returns the current status and available results for an async EQL search or a +// stored synchronous EQL search. package get import ( @@ -77,8 +77,8 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Returns async results from previously executed Event Query Language (EQL) -// search +// Returns the current status and available results for an async EQL search or a +// stored synchronous EQL search. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-search-api.html func New(tp elastictransport.Interface) *Get { 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 642f8282bb..fb35c8cf05 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/get/EqlGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d2e5b4c40d..9f4f3a08f5 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns the status of a previously submitted async or stored Event Query -// Language (EQL) search +// Returns the current status for an async EQL search or a stored synchronous +// EQL search without returning results. package getstatus import ( @@ -77,8 +77,8 @@ func NewGetStatusFunc(tp elastictransport.Interface) NewGetStatus { } } -// Returns the status of a previously submitted async or stored Event Query -// Language (EQL) search +// Returns the current status for an async EQL search or a stored synchronous +// EQL search without returning results. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-status-api.html func New(tp elastictransport.Interface) *GetStatus { 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 64fc566933..1282f9a1e0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getstatus // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/get_status/EqlGetStatusResponse.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8658f42812..14cd837234 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package search @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/search/EqlSearchRequest.ts#L28-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 177501ff2e..123eccc86d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package search @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/search/EqlSearchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2c7baed93d..77282c598f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 new file mode 100644 index 0000000000..f9e02fd3a0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery/async_query.go @@ -0,0 +1,231 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Executes an ESQL request asynchronously +package asyncquery + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 AsyncQuery struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewAsyncQuery type alias for index. +type NewAsyncQuery func() *AsyncQuery + +// NewAsyncQueryFunc returns a new instance of AsyncQuery with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewAsyncQueryFunc(tp elastictransport.Interface) NewAsyncQuery { + return func() *AsyncQuery { + n := New(tp) + + return n + } +} + +// Executes an ESQL request asynchronously +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-api.html +func New(tp elastictransport.Interface) *AsyncQuery { + r := &AsyncQuery{ + 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 *AsyncQuery) 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("_query") + path.WriteString("/") + path.WriteString("async") + + 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 AsyncQuery) 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, "esql.async_query") + 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, "esql.async_query") + if reader := instrument.RecordRequestBody(ctx, "esql.async_query", 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", "esql.async_query") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the AsyncQuery 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 asyncquery.Response +func (r AsyncQuery) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 AsyncQuery) 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, "esql.async_query") + 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 AsyncQuery 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 AsyncQuery headers map. +func (r *AsyncQuery) Header(key, value string) *AsyncQuery { + r.headers.Set(key, value) + + return r +} 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 bbb7e87b07..c52ec887b7 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Executes an ESQL request +// Executes an ES|QL request package query import ( @@ -73,7 +73,7 @@ func NewQueryFunc(tp elastictransport.Interface) NewQuery { } } -// Executes an ESQL request +// Executes an ES|QL request // // https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-rest.html func New(tp elastictransport.Interface) *Query { 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 461ab7e72f..f30ccca055 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package query @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/esql/query/QueryRequest.ts#L24-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/esql/query/QueryRequest.ts#L24-L65 type Request struct { // Columnar By default, ES|QL returns results as rows. For example, FROM returns each 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 1e059a2a1c..0bdb67a818 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package query // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/esql/query/QueryResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b25578a985..6e1c1df594 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 980aaef61f..8eb1463002 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getfeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/features/get_features/GetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5ffc6d519d..52ed76523a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 8f3d5616e4..d15dab1131 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package resetfeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resetfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/features/reset_features/ResetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 91b4a760c4..a41557cd53 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 0e77e3d1a2..454f48ffc1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package globalcheckpoints // Response holds the response body struct for the package globalcheckpoints // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f2d15427f4..c18bc4b1d6 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,11 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Multi Search API where the search will only be executed after specified -// checkpoints are available due to a refresh. This API is designed for internal -// use by the fleet server project. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Executes several [fleet +// searches](https://www.elastic.co/guide/en/elasticsearch/reference/current/fleet-search.html) +// with a single API request. +// The API follows the same structure as the [multi +// search](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html) +// API. However, similar to the fleet search API, it +// supports the wait_for_checkpoints parameter. package msearch import ( @@ -83,9 +87,13 @@ func NewMsearchFunc(tp elastictransport.Interface) NewMsearch { } } -// Multi Search API where the search will only be executed after specified -// checkpoints are available due to a refresh. This API is designed for internal -// use by the fleet server project. +// Executes several [fleet +// searches](https://www.elastic.co/guide/en/elasticsearch/reference/current/fleet-search.html) +// with a single API request. +// The API follows the same structure as the [multi +// search](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html) +// API. However, similar to the fleet search API, it +// supports the wait_for_checkpoints parameter. func New(tp elastictransport.Interface) *Msearch { r := &Msearch{ transport: tp, 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 a43d240843..c158475489 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package msearch @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/msearch/MultiSearchRequest.ts#L32-L115 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/msearch/MultiSearchRequest.ts#L32-L115 type Request = []types.MsearchRequestItem diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/response.go index a9aad198c9..ff76ebb984 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package msearch @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29 type Response struct { Docs []types.MsearchResponseItem `json:"docs"` } @@ -62,7 +62,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { if err := dec.Decode(&messageArray); err != nil { return fmt.Errorf("%s | %w", "Docs", err) } - docs: + docs_field: for _, message := range messageArray { keyDec := json.NewDecoder(bytes.NewReader(message)) for { @@ -83,7 +83,7 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Docs", err) } s.Docs = append(s.Docs, o) - continue docs + continue docs_field case "error": o := types.NewErrorResponseBase() @@ -92,10 +92,17 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Docs", err) } s.Docs = append(s.Docs, o) - continue docs + continue docs_field } } + + var o any + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Docs", err) + } + s.Docs = append(s.Docs, o) } } 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 db2ee87034..52aaee37dc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 a6b7aff310..eb0b97f8bb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package search @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/search/SearchRequest.ts#L55-L260 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/search/SearchRequest.ts#L55-L260 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` @@ -361,9 +361,40 @@ func (s *Request) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := types.NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } case "stats": if err := dec.Decode(&s.Stats); err != nil { 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 4f3f3c35f0..61b51f4be3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/search/SearchResponse.ts#L33-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/fleet/search/SearchResponse.ts#L33-L50 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` 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 f4fed3a438..d49034761e 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,11 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Search API where the search will only be executed after specified checkpoints -// are available due to a refresh. This API is designed for internal use by the -// fleet server project. +// The purpose of the fleet search api is to provide a search api where the +// search will only be executed +// after provided checkpoint has been processed and is visible for searches +// inside of Elasticsearch. package search import ( @@ -87,9 +88,10 @@ func NewSearchFunc(tp elastictransport.Interface) NewSearch { } } -// Search API where the search will only be executed after specified checkpoints -// are available due to a refresh. This API is designed for internal use by the -// fleet server project. +// The purpose of the fleet search api is to provide a search api where the +// search will only be executed +// after provided checkpoint has been processed and is visible for searches +// inside of Elasticsearch. func New(tp elastictransport.Interface) *Search { r := &Search{ transport: tp, 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 d79fdf516c..d104457f33 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Explore extracted and summarized information about the documents and terms in -// an index. +// Extracts and summarizes information about the documents and terms in an +// Elasticsearch data stream or index. package explore import ( @@ -82,8 +82,8 @@ func NewExploreFunc(tp elastictransport.Interface) NewExplore { } } -// Explore extracted and summarized information about the documents and terms in -// an index. +// Extracts and summarizes information about the documents and terms in an +// Elasticsearch data stream or index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html func New(tp elastictransport.Interface) *Explore { 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 3a07b6d445..be50687138 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package explore @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/explore/GraphExploreRequest.ts#L28-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f3266a5ca2..c34f36c641 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package explore @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/explore/GraphExploreResponse.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 17fec1f80d..00b9db732f 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes the specified lifecycle policy definition. A currently used policy -// cannot be deleted. +// 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, +// the request fails and returns an error. package deletelifecycle import ( @@ -77,8 +78,9 @@ func NewDeleteLifecycleFunc(tp elastictransport.Interface) NewDeleteLifecycle { } } -// Deletes the specified lifecycle policy definition. A currently used policy -// cannot be deleted. +// 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, +// the request fails and returns an error. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html func New(tp elastictransport.Interface) *DeleteLifecycle { 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 9e5c2658ed..a054e629f4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 40cdee95f7..835e385b61 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves information about the index's current lifecycle state, such as the -// currently executing phase, action, and step. +// Retrieves information about the index’s current lifecycle state, such as the +// currently executing phase, action, and step. Shows when the index entered +// each one, the definition of the running phase, and information about any +// failures. package explainlifecycle import ( @@ -77,8 +79,10 @@ func NewExplainLifecycleFunc(tp elastictransport.Interface) NewExplainLifecycle } } -// Retrieves information about the index's current lifecycle state, such as the -// currently executing phase, action, and step. +// Retrieves information about the index’s current lifecycle state, such as the +// currently executing phase, action, and step. Shows when the index entered +// each one, the definition of the running phase, and information about any +// failures. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html func New(tp elastictransport.Interface) *ExplainLifecycle { 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 fe12882dfc..85be0b0293 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package explainlifecycle @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package explainlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 430748d63b..82f4e2d30f 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns the specified policy definition. Includes the policy version and last -// modified date. +// Retrieves a lifecycle policy. package getlifecycle import ( @@ -75,8 +74,7 @@ func NewGetLifecycleFunc(tp elastictransport.Interface) NewGetLifecycle { } } -// Returns the specified policy definition. Includes the policy version and last -// modified date. +// Retrieves a lifecycle policy. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html func New(tp elastictransport.Interface) *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 a655194f28..8fdea6ccf3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getlifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c32116706e..b13578bea8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 63f02be748..68b5dc0546 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getstatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/get_status/GetIlmStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0837a51285..030f0b4338 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,10 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Migrates the indices and ILM policies away from custom node attribute -// allocation routing to data tiers routing +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Switches the indices, ILM policies, and legacy, composable and component +// templates from using custom node attributes and +// attribute-based allocation filters to using data tiers, and optionally +// deletes one legacy index template.+ +// Using node roles enables ILM to automatically move the indices between data +// tiers. package migratetodatatiers import ( @@ -74,8 +78,12 @@ func NewMigrateToDataTiersFunc(tp elastictransport.Interface) NewMigrateToDataTi } } -// Migrates the indices and ILM policies away from custom node attribute -// allocation routing to data tiers routing +// Switches the indices, ILM policies, and legacy, composable and component +// templates from using custom node attributes and +// attribute-based allocation filters to using data tiers, and optionally +// deletes one legacy index template.+ +// Using node roles enables ILM to automatically move the indices between data +// tiers. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-migrate-to-data-tiers.html func New(tp elastictransport.Interface) *MigrateToDataTiers { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/request.go index f56c99b54c..fac0110ded 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package migratetodatatiers @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/migrate_to_data_tiers/Request.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4353657937..2e0aa9244c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package migratetodatatiers @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6fba838a41..2c524e0a0f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Manually moves an index into the specified step and executes that step. package movetostep diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/request.go index 9fb71ebcf6..3a099e0999 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package movetostep @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/move_to_step/MoveToStepRequest.ts#L24-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` 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 165ad658f4..4cb2d71e0b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package movetostep // Response holds the response body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/move_to_step/MoveToStepResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 88b12d911c..22109b5c14 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates a lifecycle policy +// Creates a lifecycle policy. If the specified policy exists, the policy is +// replaced and the policy version is incremented. package putlifecycle import ( @@ -81,7 +82,8 @@ func NewPutLifecycleFunc(tp elastictransport.Interface) NewPutLifecycle { } } -// Creates a lifecycle policy +// Creates a lifecycle policy. If the specified policy exists, the policy is +// replaced and the policy version is incremented. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html func New(tp elastictransport.Interface) *PutLifecycle { 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 6b1ade5caf..36d5bdd062 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putlifecycle @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1720c899e2..989d0102a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f2dc9b5b8f..b84a0a53ea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 c8b29c31e7..bd2cb7aaec 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package removepolicy // Response holds the response body struct for the package removepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/remove_policy/RemovePolicyResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 61af27d8fb..57c0ab1046 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package retry // Response holds the response body struct for the package retry // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/retry/RetryIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ed8ace12a3..e3aee370a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 a66f2a34b1..c2adb699a0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/start/StartIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6f13c1c64f..d5478111b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 8880f2a01a..b776011433 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/stop/StopIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 107c1228bb..fc094070c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 6f799e3415..2199fdea65 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/add_block.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/add_block.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Adds a block to an index. package 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 ad8b08f89d..1d0a037258 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package addblock @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package addblock // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/add_block/IndicesAddBlockResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7c6cad638f..0de7c3d354 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Performs the analysis process on a text and return the tokens breakdown of -// the text. +// Performs analysis on a text string and returns the resulting tokens. package analyze import ( @@ -80,8 +79,7 @@ func NewAnalyzeFunc(tp elastictransport.Interface) NewAnalyze { } } -// Performs the analysis process on a text and return the tokens breakdown of -// the text. +// Performs analysis 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 3710c50cae..75ef68c688 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package analyze @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L92 type Request struct { // Analyzer The name of the analyzer that should be applied to the provided `text`. @@ -119,59 +119,48 @@ func (s *Request) UnmarshalJSON(data []byte) error { dec.Decode(&buf) for _, rawMsg := range buf { - switch rawMsg[0] { - case '{': - - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - kind := make(map[string]string, 0) - localDec.Decode(&kind) - source.Seek(0, io.SeekStart) - - switch kind["type"] { - - case "html_strip": - o := types.NewHtmlStripCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - case "mapping": - o := types.NewMappingCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - case "pattern_replace": - o := types.NewPatternReplaceCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - case "icu_normalizer": - o := types.NewIcuNormalizationCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - case "kuromoji_iteration_mark": - o := types.NewKuromojiIterationMarkCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - default: - o := new(any) - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) + source := bytes.NewReader(rawMsg) + localDec := json.NewDecoder(source) + kind := make(map[string]string, 0) + localDec.Decode(&kind) + source.Seek(0, io.SeekStart) + + switch kind["type"] { + + case "html_strip": + o := types.NewHtmlStripCharFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.CharFilter = append(s.CharFilter, *o) + case "mapping": + o := types.NewMappingCharFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.CharFilter = append(s.CharFilter, *o) + case "pattern_replace": + o := types.NewPatternReplaceCharFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.CharFilter = append(s.CharFilter, *o) + case "icu_normalizer": + o := types.NewIcuNormalizationCharFilter() + if err := localDec.Decode(&o); err != nil { + return err } + s.CharFilter = append(s.CharFilter, *o) + case "kuromoji_iteration_mark": + o := types.NewKuromojiIterationMarkCharFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.CharFilter = append(s.CharFilter, *o) default: - source := bytes.NewReader(rawMsg) o := new(any) - if err := json.NewDecoder(source).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "CharFilter", err) + if err := localDec.Decode(&o); err != nil { + return err } s.CharFilter = append(s.CharFilter, *o) } @@ -202,451 +191,432 @@ func (s *Request) UnmarshalJSON(data []byte) error { dec.Decode(&buf) for _, rawMsg := range buf { - switch rawMsg[0] { - case '{': - - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - kind := make(map[string]string, 0) - localDec.Decode(&kind) - source.Seek(0, io.SeekStart) - - switch kind["type"] { - - case "asciifolding": - o := types.NewAsciiFoldingTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "common_grams": - o := types.NewCommonGramsTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "condition": - o := types.NewConditionTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "delimited_payload": - o := types.NewDelimitedPayloadTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "edge_ngram": - o := types.NewEdgeNGramTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "elision": - o := types.NewElisionTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "fingerprint": - o := types.NewFingerprintTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "hunspell": - o := types.NewHunspellTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "hyphenation_decompounder": - o := types.NewHyphenationDecompounderTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "keep_types": - o := types.NewKeepTypesTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "keep": - o := types.NewKeepWordsTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "keyword_marker": - o := types.NewKeywordMarkerTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "kstem": - o := types.NewKStemTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "length": - o := types.NewLengthTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "limit": - o := types.NewLimitTokenCountTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "lowercase": - o := types.NewLowercaseTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "multiplexer": - o := types.NewMultiplexerTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "ngram": - o := types.NewNGramTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "nori_part_of_speech": - o := types.NewNoriPartOfSpeechTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "pattern_capture": - o := types.NewPatternCaptureTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "pattern_replace": - o := types.NewPatternReplaceTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "porter_stem": - o := types.NewPorterStemTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "predicate_token_filter": - o := types.NewPredicateTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "remove_duplicates": - o := types.NewRemoveDuplicatesTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "reverse": - o := types.NewReverseTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "shingle": - o := types.NewShingleTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "snowball": - o := types.NewSnowballTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "stemmer_override": - o := types.NewStemmerOverrideTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "stemmer": - o := types.NewStemmerTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "stop": - o := types.NewStopTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "synonym_graph": - o := types.NewSynonymGraphTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "synonym": - o := types.NewSynonymTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "trim": - o := types.NewTrimTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "truncate": - o := types.NewTruncateTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "unique": - o := types.NewUniqueTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "uppercase": - o := types.NewUppercaseTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "word_delimiter_graph": - o := types.NewWordDelimiterGraphTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "word_delimiter": - o := types.NewWordDelimiterTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "kuromoji_stemmer": - o := types.NewKuromojiStemmerTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "kuromoji_readingform": - o := types.NewKuromojiReadingFormTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "kuromoji_part_of_speech": - o := types.NewKuromojiPartOfSpeechTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "icu_collation": - o := types.NewIcuCollationTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "icu_folding": - o := types.NewIcuFoldingTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "icu_normalizer": - o := types.NewIcuNormalizationTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "icu_transform": - o := types.NewIcuTransformTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "phonetic": - o := types.NewPhoneticTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "dictionary_decompounder": - o := types.NewDictionaryDecompounderTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - default: - o := new(any) - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - } - default: - source := bytes.NewReader(rawMsg) - o := new(any) - if err := json.NewDecoder(source).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Filter", err) - } - s.Filter = append(s.Filter, *o) - } - } - - case "normalizer": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "Normalizer", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Normalizer = &o - - case "text": - 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", "Text", err) - } - - s.Text = append(s.Text, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Text); err != nil { - return fmt.Errorf("%s | %w", "Text", err) - } - } - - case "tokenizer": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - + source := bytes.NewReader(rawMsg) + localDec := json.NewDecoder(source) kind := make(map[string]string, 0) localDec.Decode(&kind) source.Seek(0, io.SeekStart) switch kind["type"] { - case "char_group": - o := types.NewCharGroupTokenizer() + case "asciifolding": + o := types.NewAsciiFoldingTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o + s.Filter = append(s.Filter, *o) + case "common_grams": + o := types.NewCommonGramsTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "condition": + o := types.NewConditionTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "delimited_payload": + o := types.NewDelimitedPayloadTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) case "edge_ngram": - o := types.NewEdgeNGramTokenizer() + o := types.NewEdgeNGramTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "elision": + o := types.NewElisionTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "fingerprint": + o := types.NewFingerprintTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "hunspell": + o := types.NewHunspellTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "hyphenation_decompounder": + o := types.NewHyphenationDecompounderTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "keep_types": + o := types.NewKeepTypesTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "keyword": - o := types.NewKeywordTokenizer() + s.Filter = append(s.Filter, *o) + case "keep": + o := types.NewKeepWordsTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "letter": - o := types.NewLetterTokenizer() + s.Filter = append(s.Filter, *o) + case "keyword_marker": + o := types.NewKeywordMarkerTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o + s.Filter = append(s.Filter, *o) + case "kstem": + o := types.NewKStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "length": + o := types.NewLengthTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "limit": + o := types.NewLimitTokenCountTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) case "lowercase": - o := types.NewLowercaseTokenizer() + o := types.NewLowercaseTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "multiplexer": + o := types.NewMultiplexerTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o + s.Filter = append(s.Filter, *o) case "ngram": - o := types.NewNGramTokenizer() + o := types.NewNGramTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "nori_tokenizer": - o := types.NewNoriTokenizer() + s.Filter = append(s.Filter, *o) + case "nori_part_of_speech": + o := types.NewNoriPartOfSpeechTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "path_hierarchy": - o := types.NewPathHierarchyTokenizer() + s.Filter = append(s.Filter, *o) + case "pattern_capture": + o := types.NewPatternCaptureTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "standard": - o := types.NewStandardTokenizer() + s.Filter = append(s.Filter, *o) + case "pattern_replace": + o := types.NewPatternReplaceTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "uax_url_email": - o := types.NewUaxEmailUrlTokenizer() + s.Filter = append(s.Filter, *o) + case "porter_stem": + o := types.NewPorterStemTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "whitespace": - o := types.NewWhitespaceTokenizer() + s.Filter = append(s.Filter, *o) + case "predicate_token_filter": + o := types.NewPredicateTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "kuromoji_tokenizer": - o := types.NewKuromojiTokenizer() + s.Filter = append(s.Filter, *o) + case "remove_duplicates": + o := types.NewRemoveDuplicatesTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "reverse": + o := types.NewReverseTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "pattern": - o := types.NewPatternTokenizer() + s.Filter = append(s.Filter, *o) + case "shingle": + o := types.NewShingleTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "icu_tokenizer": - o := types.NewIcuTokenizer() + s.Filter = append(s.Filter, *o) + case "snowball": + o := types.NewSnowballTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o + s.Filter = append(s.Filter, *o) + case "stemmer_override": + o := types.NewStemmerOverrideTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "stemmer": + o := types.NewStemmerTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "stop": + o := types.NewStopTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "synonym_graph": + o := types.NewSynonymGraphTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "synonym": + o := types.NewSynonymTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "trim": + o := types.NewTrimTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "truncate": + o := types.NewTruncateTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "unique": + o := types.NewUniqueTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "uppercase": + o := types.NewUppercaseTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "word_delimiter_graph": + o := types.NewWordDelimiterGraphTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "word_delimiter": + o := types.NewWordDelimiterTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "kuromoji_stemmer": + o := types.NewKuromojiStemmerTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "kuromoji_readingform": + o := types.NewKuromojiReadingFormTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "kuromoji_part_of_speech": + o := types.NewKuromojiPartOfSpeechTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "icu_collation": + o := types.NewIcuCollationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "icu_folding": + o := types.NewIcuFoldingTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "icu_normalizer": + o := types.NewIcuNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "icu_transform": + o := types.NewIcuTransformTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "phonetic": + o := types.NewPhoneticTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "dictionary_decompounder": + o := types.NewDictionaryDecompounderTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) default: - if err := localDec.Decode(&s.Tokenizer); err != nil { + o := new(any) + if err := localDec.Decode(&o); err != nil { return err } + s.Filter = append(s.Filter, *o) + } + } + + case "normalizer": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Normalizer", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Normalizer = &o + + case "text": + 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", "Text", err) + } + + s.Text = append(s.Text, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Text); err != nil { + return fmt.Errorf("%s | %w", "Text", err) + } + } + + case "tokenizer": + + 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) + + switch kind["type"] { + + case "char_group": + o := types.NewCharGroupTokenizer() + 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 { + return err + } + s.Tokenizer = *o + case "keyword": + o := types.NewKeywordTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "letter": + o := types.NewLetterTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "lowercase": + o := types.NewLowercaseTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "ngram": + o := types.NewNGramTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "nori_tokenizer": + o := types.NewNoriTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "path_hierarchy": + o := types.NewPathHierarchyTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "standard": + o := types.NewStandardTokenizer() + 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 { + return err + } + s.Tokenizer = *o + case "whitespace": + o := types.NewWhitespaceTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "kuromoji_tokenizer": + o := types.NewKuromojiTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "pattern": + o := types.NewPatternTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "icu_tokenizer": + o := types.NewIcuTokenizer() + if err := localDec.Decode(&o); err != nil { + return err } + s.Tokenizer = *o default: if err := localDec.Decode(&s.Tokenizer); err != nil { - return fmt.Errorf("%s | %w", "Tokenizer", err) + 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 72c3268792..9a3b838f85 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package analyze @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/IndicesAnalyzeResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c170b2c879..1bc84299ca 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Clears all or specific caches for one or more indices. +// Clears the caches of one or more indices. +// For data streams, the API clears the caches of the stream’s backing indices. package clearcache import ( @@ -75,7 +76,8 @@ func NewClearCacheFunc(tp elastictransport.Interface) NewClearCache { } } -// Clears all or specific caches for one or more indices. +// Clears the caches of one or more indices. +// For data streams, the API clears the caches of the stream’s backing indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html func New(tp elastictransport.Interface) *ClearCache { 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 4cb6dc4823..11e410a602 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearcache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24 type Response struct { Shards_ types.ShardStatistics `json:"_shards"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/clone.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/clone.go index 80e3dfdea0..b12d530b1b 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Clones an index +// Clones an existing index. package clone import ( @@ -86,7 +86,7 @@ func NewCloneFunc(tp elastictransport.Interface) NewClone { } } -// Clones an index +// Clones an existing index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clone-index.html func New(tp elastictransport.Interface) *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 345939ddfd..4b2cb4db9e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clone @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/clone/IndicesCloneRequest.ts#L27-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dc07239193..c9f34440af 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/clone/IndicesCloneResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 71d3235d98..14a0d9fe44 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 37dcb14323..54511ca710 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package close @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package close // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/close/CloseIndexResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4958008058..60be215727 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates an index with optional settings and mappings. +// Creates a new index. package create import ( @@ -81,7 +81,7 @@ func NewCreateFunc(tp elastictransport.Interface) NewCreate { } } -// Creates an index with optional settings and mappings. +// Creates a new index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html func New(tp elastictransport.Interface) *Create { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/request.go index e82fc88a74..1f38f0d3be 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package create @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/create/IndicesCreateRequest.ts#L28-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/create/IndicesCreateRequest.ts#L28-L81 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 2f2e8466b3..b21089fb14 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package create // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/create/IndicesCreateResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ab5f7bf44e..187625cc03 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates a data stream +// Creates a data stream. +// You must have a matching index template with data stream enabled. package createdatastream import ( @@ -76,7 +77,8 @@ func NewCreateDataStreamFunc(tp elastictransport.Interface) NewCreateDataStream } } -// Creates 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 func New(tp elastictransport.Interface) *CreateDataStream { 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 ab61cd6a1b..7e84784e9b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package createdatastream // Response holds the response body struct for the package createdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c25f919d09..6833533831 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Provides statistics on operations happening in a data stream. +// Retrieves statistics for one or more data streams. package datastreamsstats import ( @@ -75,7 +75,7 @@ func NewDataStreamsStatsFunc(tp elastictransport.Interface) NewDataStreamsStats } } -// Provides statistics on operations happening in a data stream. +// Retrieves statistics for one or more data streams. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html func New(tp elastictransport.Interface) *DataStreamsStats { 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 fb7a7a10c0..b142f446f4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package datastreamsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package datastreamsstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b0d0708614..15a81f074e 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes an index. +// Deletes one or more indices. package delete import ( @@ -77,7 +77,7 @@ func NewDeleteFunc(tp elastictransport.Interface) NewDelete { } } -// Deletes an index. +// Deletes one or more indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html func New(tp elastictransport.Interface) *Delete { 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 05eb2b176d..9d14b787ef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package delete @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete/IndicesDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 90ac6e7f96..b346ee1991 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes an alias. +// Removes a data stream or index from an alias. package deletealias import ( @@ -81,7 +81,7 @@ func NewDeleteAliasFunc(tp elastictransport.Interface) NewDeleteAlias { } } -// Deletes an alias. +// Removes a data stream or index from an alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html func New(tp elastictransport.Interface) *DeleteAlias { 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 1736a150e8..d28dd7ce89 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletealias // Response holds the response body struct for the package deletealias // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 eff40f98ce..d4202a00c1 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes the data stream lifecycle of the selected data streams. +// Removes the data lifecycle from a data stream rendering it not managed by the +// data stream lifecycle package deletedatalifecycle import ( @@ -77,7 +78,8 @@ func NewDeleteDataLifecycleFunc(tp elastictransport.Interface) NewDeleteDataLife } } -// Deletes the data stream lifecycle of the selected data streams. +// Removes the data 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 c9ae7bfa9b..dbeb9e6e86 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletedatalifecycle // Response holds the response body struct for the package deletedatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2fd77c42ab..cac44aee93 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes a data stream. +// Deletes one or more data streams and their backing indices. package deletedatastream import ( @@ -77,7 +77,7 @@ func NewDeleteDataStreamFunc(tp elastictransport.Interface) NewDeleteDataStream } } -// Deletes a data stream. +// Deletes one or more data streams and their backing indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html func New(tp elastictransport.Interface) *DeleteDataStream { 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 f533ff43df..64289a664f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletedatastream // Response holds the response body struct for the package deletedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f8772ff7b7..ed01d61abd 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,9 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Deletes an index template. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Delete an index template. +// The provided may contain multiple template names separated +// by a comma. If multiple template +// names are specified then there is no wildcard support and the provided names +// should match completely with +// existing templates. package deleteindextemplate import ( @@ -76,7 +81,12 @@ func NewDeleteIndexTemplateFunc(tp elastictransport.Interface) NewDeleteIndexTem } } -// Deletes an index template. +// Delete an index template. +// The provided may contain multiple template names separated +// by a comma. If multiple template +// names are specified then there is no wildcard support and the provided names +// should match completely with +// existing templates. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-template.html func New(tp elastictransport.Interface) *DeleteIndexTemplate { 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 e00e8e4c14..9a4e42632e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteindextemplate // Response holds the response body struct for the package deleteindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c0a452bb6d..74864fbe3c 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes an index template. +// Deletes a legacy index template. package deletetemplate import ( @@ -76,7 +76,7 @@ func NewDeleteTemplateFunc(tp elastictransport.Interface) NewDeleteTemplate { } } -// Deletes an index template. +// Deletes a legacy index template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-template-v1.html func New(tp elastictransport.Interface) *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 b753934935..fd1ea58db0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletetemplate // Response holds the response body struct for the package deletetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 45ce733ada..27f0b883d1 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Analyzes the disk usage of each field of an index or data stream +// Analyzes the disk usage of each field of an index or data stream. package diskusage import ( @@ -77,7 +77,7 @@ func NewDiskUsageFunc(tp elastictransport.Interface) NewDiskUsage { } } -// Analyzes the disk usage of each field of an index or data stream +// Analyzes the disk usage of each field of an index or data stream. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-disk-usage.html func New(tp elastictransport.Interface) *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 836cb8bba8..4db08f242a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package diskusage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package diskusage // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2801bdbdf9..d3707b7be2 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Downsample an index +// Aggregates a time series (TSDS) index and stores pre-computed statistical +// summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each metric +// field grouped by a configured time interval. package downsample import ( @@ -86,7 +88,9 @@ func NewDownsampleFunc(tp elastictransport.Interface) NewDownsample { } } -// Downsample an index +// Aggregates a time series (TSDS) index and stores pre-computed statistical +// summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each metric +// field grouped by a configured time interval. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-downsample-data-stream.html func New(tp elastictransport.Interface) *Downsample { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/request.go index a58c789d62..1dfe2b48c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package downsample @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/downsample/Request.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 837443ac26..6210d6b304 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package downsample @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/downsample/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4e9497ce45..8ff1e53756 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about whether a particular index exists. +// Checks if a data stream, index, or alias exists. package exists import ( @@ -75,7 +75,7 @@ func NewExistsFunc(tp elastictransport.Interface) NewExists { } } -// Returns information about whether a particular index exists. +// Checks if a data stream, index, or alias exists. // // 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 b83efb914a..ccbabba5ee 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about whether a particular alias exists. +// Checks if an alias exists. package existsalias import ( @@ -78,7 +78,7 @@ func NewExistsAliasFunc(tp elastictransport.Interface) NewExistsAlias { } } -// Returns information about whether a particular alias exists. +// Checks if an alias exists. // // 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 a5d9a8b631..cddb7fb12b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 023e08315a..6d18e430a0 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,8 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 +// Check existence of index templates. // Returns information about whether a particular index template exists. package existstemplate @@ -74,6 +75,7 @@ func NewExistsTemplateFunc(tp elastictransport.Interface) NewExistsTemplate { } } +// Check existence of index templates. // Returns information about whether a particular index template exists. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-template-exists-v1.html 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 0915774508..3f12c116e4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves information about the index's current data stream lifecycle, such // as any potential encountered error, time since creation etc. 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 74b9a0beda..70a1d651f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package explaindatalifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explaindatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 092300ed88..18cf73a8f2 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns the field usage stats for each field of an index +// Returns field usage information for each shard and field of an index. package fieldusagestats import ( @@ -77,7 +77,7 @@ func NewFieldUsageStatsFunc(tp elastictransport.Interface) NewFieldUsageStats { } } -// Returns the field usage stats for each field of an index +// Returns field usage information for each shard and field of an index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/field-usage-stats.html func New(tp elastictransport.Interface) *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 e2da56e02d..8361328055 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package fieldusagestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package fieldusagestats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 09685cb096..f250c13b75 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Performs the flush operation on one or more indices. +// Flushes one or more data streams or indices. package flush import ( @@ -75,7 +75,7 @@ func NewFlushFunc(tp elastictransport.Interface) NewFlush { } } -// Performs the flush operation on one or more indices. +// Flushes one or more data streams or indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html func New(tp elastictransport.Interface) *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 6262774179..7478c7636d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package flush @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package flush // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/flush/IndicesFlushResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/flush/IndicesFlushResponse.ts#L22-L24 type Response struct { Shards_ types.ShardStatistics `json:"_shards"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/forcemerge.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/forcemerge.go index 3f17bdcb59..baf9739533 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 278dc7447c..5cdcb0e14f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package forcemerge @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package forcemerge // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24 type Response struct { Shards_ types.ShardStatistics `json:"_shards"` // Task task contains a task id returned when wait_for_completion=false, diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/get.go index 8fa5b69cd1..81952f55c1 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about one or more indices. +// Returns information about one or more indices. For data streams, the API +// returns information about the +// stream’s backing indices. package get import ( @@ -78,7 +80,9 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Returns information about one or more indices. +// 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 func New(tp elastictransport.Interface) *Get { 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 8ca6a1f02a..e08ee907f3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get/IndicesGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 10a9ce7192..5080b8b08f 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns an alias. +// Retrieves information for one or more aliases. package getalias import ( @@ -79,7 +79,7 @@ func NewGetAliasFunc(tp elastictransport.Interface) NewGetAlias { } } -// Returns an alias. +// Retrieves information for one or more 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 567411348e..d19dac0174 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getalias @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getalias // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6e91d52300..2bf1748dad 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns the data stream lifecycle of the selected data streams. +// Retrieves the data stream lifecycle configuration of one or more data +// streams. package getdatalifecycle import ( @@ -77,7 +78,8 @@ func NewGetDataLifecycleFunc(tp elastictransport.Interface) NewGetDataLifecycle } } -// Returns the data stream lifecycle of the selected data streams. +// 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 func New(tp elastictransport.Interface) *GetDataLifecycle { 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 049d4020de..90bca5950a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getdatalifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f75bef4c91..85f1ecd702 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns data streams. +// Retrieves information about one or more data streams. package getdatastream import ( @@ -75,7 +75,7 @@ func NewGetDataStreamFunc(tp elastictransport.Interface) NewGetDataStream { } } -// Returns data streams. +// Retrieves information about one or more data streams. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html func New(tp elastictransport.Interface) *GetDataStream { 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 8300c79c2d..d0d0d3a5aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getdatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d85c9ffec4..7dd71e5922 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns mapping for one or more fields. +// Retrieves mapping definitions for one or more fields. +// For data streams, the API retrieves field mappings for the stream’s backing +// indices. package getfieldmapping import ( @@ -80,7 +82,9 @@ func NewGetFieldMappingFunc(tp elastictransport.Interface) NewGetFieldMapping { } } -// Returns mapping for one or more fields. +// Retrieves mapping definitions for one or more fields. +// For data streams, the API retrieves field mappings for the stream’s backing +// indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html func New(tp elastictransport.Interface) *GetFieldMapping { 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 2fc6cdc9fa..516c6a3963 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getfieldmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfieldmapping // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bb305b8e1a..9f42a7f9bc 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns an index template. +// Get index templates. +// Returns information about one or more index templates. package getindextemplate import ( @@ -74,7 +75,8 @@ func NewGetIndexTemplateFunc(tp elastictransport.Interface) NewGetIndexTemplate } } -// Returns an index template. +// Get index templates. +// Returns information about one or more index templates. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template.html func New(tp elastictransport.Interface) *GetIndexTemplate { 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 c00163f855..f6f0205534 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getindextemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ef84f91a8..760e514553 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns mappings for one or more indices. +// Retrieves mapping definitions for one or more indices. +// For data streams, the API retrieves mappings for the stream’s backing +// indices. package getmapping import ( @@ -75,7 +77,9 @@ func NewGetMappingFunc(tp elastictransport.Interface) NewGetMapping { } } -// Returns mappings for one or more indices. +// 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 func New(tp elastictransport.Interface) *GetMapping { 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 913a2c57d4..5342cf664f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmapping // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e404daefbe..bbbbe7705e 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns settings for one or more indices. +// Returns setting information for one or more indices. For data streams, +// returns setting information for the stream’s backing indices. package getsettings import ( @@ -78,7 +79,8 @@ func NewGetSettingsFunc(tp elastictransport.Interface) NewGetSettings { } } -// Returns settings for one or more indices. +// 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 func New(tp elastictransport.Interface) *GetSettings { 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 df4615ebcf..790696b69b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 deb1994b2a..ad64193578 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns an index template. +// Get index templates. +// Retrieves information about one or more index templates. package gettemplate import ( @@ -74,7 +75,8 @@ func NewGetTemplateFunc(tp elastictransport.Interface) NewGetTemplate { } } -// Returns an index template. +// Get index templates. +// Retrieves information about one or more index templates. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template-v1.html func New(tp elastictransport.Interface) *GetTemplate { 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 acd01dd547..50ff27b32e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package gettemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_template/IndicesGetTemplateResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b3564a3065..6b4a3a55df 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,9 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Migrates an alias to a data stream +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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: +// The alias must have a write index; +// All indices for the alias must have a `@timestamp` field mapping of a `date` +// or `date_nanos` field type; +// The alias must not have any filters; +// The alias must not use custom routing. +// If successful, the request removes the alias and creates a data stream with +// the same name. +// The indices for the alias become hidden backing indices for the stream. +// The write index for the alias becomes the write index for the stream. package migratetodatastream import ( @@ -76,7 +87,18 @@ func NewMigrateToDataStreamFunc(tp elastictransport.Interface) NewMigrateToDataS } } -// Migrates an 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: +// The alias must have a write index; +// All indices for the alias must have a `@timestamp` field mapping of a `date` +// or `date_nanos` field type; +// The alias must not have any filters; +// The alias must not use custom routing. +// If successful, the request removes the alias and creates a data stream with +// the same name. +// The indices for the alias become hidden backing indices for the stream. +// 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 func New(tp elastictransport.Interface) *MigrateToDataStream { 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 627f7b86d5..c2c08472d0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package migratetodatastream // Response holds the response body struct for the package migratetodatastream // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2de21ce790..25eb74aa1f 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Modifies a data stream +// Performs one or more data stream modification actions in a single atomic +// operation. package modifydatastream import ( @@ -73,7 +74,8 @@ func NewModifyDataStreamFunc(tp elastictransport.Interface) NewModifyDataStream } } -// Modifies a data stream +// 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 func New(tp elastictransport.Interface) *ModifyDataStream { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/request.go index 135882a0d8..e0d540d41c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package modifydatastream @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L36 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 5679db1722..cf221675fd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package modifydatastream // Response holds the response body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fc3a24f2a0..7af46c44e1 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Opens an index. +// Opens a closed index. +// For data streams, the API opens any closed backing indices. package open import ( @@ -77,7 +78,8 @@ func NewOpenFunc(tp elastictransport.Interface) NewOpen { } } -// Opens an index. +// Opens a closed index. +// For data streams, the API opens any closed backing indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html func New(tp elastictransport.Interface) *Open { 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 c85c1e39df..9b7b553a14 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package open // Response holds the response body struct for the package open // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/open/IndicesOpenResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3a1f47d9fc..3bc7c8ed7b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Promotes a data stream from a replicated data stream managed by CCR to a // regular data stream 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 8e61c13973..061a84666e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package promotedatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package promotedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c62a36e2c2..93085822f6 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates an alias. +// Adds a data stream or index to an alias. package putalias import ( @@ -86,7 +86,7 @@ func NewPutAliasFunc(tp elastictransport.Interface) NewPutAlias { } } -// Creates or updates an alias. +// Adds a data stream or index to an alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html func New(tp elastictransport.Interface) *PutAlias { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/request.go index 0319754ff4..6c64c7ba11 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putalias @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L91 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 118a32d669..bf4e2dfb58 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putalias // Response holds the response body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_alias/IndicesPutAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 19323c71ba..0137c5fe06 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates the data stream lifecycle of the selected data streams. +// Update the data lifecycle of the specified data streams. package putdatalifecycle import ( @@ -82,7 +82,7 @@ func NewPutDataLifecycleFunc(tp elastictransport.Interface) NewPutDataLifecycle } } -// Updates the data stream lifecycle of the selected data streams. +// Update the data 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 560785bd7b..4e303c92df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putdatalifecycle @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L75 type Request struct { // DataRetention If defined, every document added to this data stream will be stored at least 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 ab8aa5ea61..94df0d0a6b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putdatalifecycle // Response holds the response body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0686eabc80..63a10cfa3e 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates an index template. +// Create or update an index template. +// Index templates define settings, mappings, and aliases that can be applied +// automatically to new indices. package putindextemplate import ( @@ -81,7 +83,9 @@ func NewPutIndexTemplateFunc(tp elastictransport.Interface) NewPutIndexTemplate } } -// Creates or updates an index template. +// Create or update an index template. +// Index templates define settings, mappings, and aliases that can be applied +// automatically to new indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-template.html func New(tp elastictransport.Interface) *PutIndexTemplate { 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 e5aa310752..798e5613f0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putindextemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L119 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bd9175114e..e663b942d2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putindextemplate // Response holds the response body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 18b4a01cb8..14f3861a42 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates the index 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. package putmapping import ( @@ -83,7 +86,10 @@ func NewPutMappingFunc(tp elastictransport.Interface) NewPutMapping { } } -// Updates the index 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 func New(tp elastictransport.Interface) *PutMapping { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/request.go index fb315bea96..6406c478ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putmapping @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L42-L149 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L42-L149 type Request struct { // DateDetection Controls whether dynamic date detection is enabled. @@ -291,12 +291,6 @@ func (s *Request) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := types.NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := types.NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -315,6 +309,18 @@ func (s *Request) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := types.NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := types.NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := types.NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/response.go index bdf91ede71..47b21b0895 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_mapping/IndicesPutMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 46dd9e7f17..10db48263d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates the index settings. +// Changes a dynamic index setting in real time. For data streams, index setting +// changes are applied to all backing indices by default. package putsettings import ( @@ -81,7 +82,8 @@ func NewPutSettingsFunc(tp elastictransport.Interface) NewPutSettings { } } -// Updates the index settings. +// Changes a dynamic index setting 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 func New(tp elastictransport.Interface) *PutSettings { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/request.go index fef3c37e6e..65338eb076 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putsettings @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L92 type Request = types.IndexSettings // NewRequest returns a Request diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/response.go index e795b7a081..4d5789fd2c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putsettings // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 222f9ad46b..0ec927743e 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates an index template. +// Create or update an index template. +// Index templates define settings, mappings, and aliases that can be applied +// automatically to new indices. package puttemplate import ( @@ -81,7 +83,9 @@ func NewPutTemplateFunc(tp elastictransport.Interface) NewPutTemplate { } } -// Creates or updates an index template. +// Create or update an index template. +// Index templates define settings, mappings, and aliases that can be applied +// automatically to new indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html func New(tp elastictransport.Interface) *PutTemplate { 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 c93bf8b4f0..472a75c2a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 59f21fd3f4..a09fa789b4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttemplate // Response holds the response body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_template/IndicesPutTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b18427ef0a..b91862908f 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about ongoing index shard recoveries. +// Returns information about ongoing and completed shard recoveries for one or +// more indices. +// For data streams, the API returns information for the stream’s backing +// indices. package recovery import ( @@ -74,7 +77,10 @@ func NewRecoveryFunc(tp elastictransport.Interface) NewRecovery { } } -// Returns information about ongoing index shard recoveries. +// Returns information about ongoing and completed shard recoveries for one or +// more indices. +// For data streams, the API returns information for the stream’s backing +// indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-recovery.html func New(tp elastictransport.Interface) *Recovery { 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 b9d5741577..61d2eef78e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package recovery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/IndicesRecoveryResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e8338dfc9a..37d6f360bd 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Performs the refresh operation in one or more indices. +// 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 +// indices. package refresh import ( @@ -75,7 +78,10 @@ func NewRefreshFunc(tp elastictransport.Interface) NewRefresh { } } -// Performs the refresh operation in one or more indices. +// 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 +// indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html func New(tp elastictransport.Interface) *Refresh { 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 fd8b211790..29f5d5e11e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package refresh @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package refresh // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24 type Response struct { Shards_ types.ShardStatistics `json:"_shards"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go index c1e8f71109..55515c25b0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 58af100618..a549803fed 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package reloadsearchanalyzers @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reloadsearchanalyzers // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 86ce1dca28..a338f13da6 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,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Resolves the specified index expressions to return information about each -// cluster, including the local cluster, if included. +// cluster, including +// the local cluster, if included. +// Multiple patterns and remote clusters are supported. package resolvecluster import ( @@ -79,7 +81,9 @@ func NewResolveClusterFunc(tp elastictransport.Interface) NewResolveCluster { } // Resolves the specified index expressions to return information about each -// cluster, including the local cluster, if included. +// cluster, including +// the local cluster, if included. +// Multiple patterns and remote clusters are supported. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-resolve-cluster-api.html func New(tp elastictransport.Interface) *ResolveCluster { 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 9ffd1410e2..e96d189e55 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package resolvecluster @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resolvecluster // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 563b8da0fb..8d46422d55 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about any matching indices, aliases, and data streams +// Resolves the specified name(s) and/or index patterns for indices, aliases, +// and data streams. +// Multiple patterns and remote clusters are supported. package resolveindex import ( @@ -77,7 +79,9 @@ func NewResolveIndexFunc(tp elastictransport.Interface) NewResolveIndex { } } -// Returns information about any matching indices, aliases, and data streams +// Resolves the specified name(s) and/or index patterns for indices, aliases, +// and data streams. +// Multiple patterns and remote clusters are supported. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-resolve-index-api.html func New(tp elastictransport.Interface) *ResolveIndex { 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 87661da5e3..6848a45d7a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package resolveindex @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resolveindex // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_index/ResolveIndexResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b1dedcd63a..2d813708b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package rollover @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L99 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 dea81dcb4f..2fa83c6276 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package rollover // Response holds the response body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/rollover/IndicesRolloverResponse.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1a08a8c5fe..2fc1115b72 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates an alias to point to a new index when the existing index -// is considered to be too large or too old. +// Creates a new index for a data stream or index alias. package rollover import ( @@ -85,8 +84,7 @@ func NewRolloverFunc(tp elastictransport.Interface) NewRollover { } } -// Updates an alias to point to a new index when the existing index -// is considered to be too large or too old. +// Creates a new index for a data stream or index alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html func New(tp elastictransport.Interface) *Rollover { 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 75ea23a2c5..9244507900 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package segments @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/IndicesSegmentsResponse.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 70b2a74a43..8eb8038fb8 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Provides low-level information about segments in a Lucene index. +// Returns low-level information about the Lucene segments in index shards. +// For data streams, the API returns information about the stream’s backing +// indices. package segments import ( @@ -75,7 +77,9 @@ func NewSegmentsFunc(tp elastictransport.Interface) NewSegments { } } -// Provides low-level information about segments in a Lucene index. +// Returns low-level information about the Lucene segments in index shards. +// For data streams, the API returns information about the stream’s backing +// indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-segments.html func New(tp elastictransport.Interface) *Segments { 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 a25f9f7bf0..8c36f33da6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package shardstores @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package shardstores // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c32c92b4a5..a01d620812 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Provides store information for shard copies of indices. +// Retrieves store information about replica shards in one or more indices. +// For data streams, the API retrieves store information for the stream’s +// backing indices. package shardstores import ( @@ -76,7 +78,9 @@ func NewShardStoresFunc(tp elastictransport.Interface) NewShardStores { } } -// Provides store information for shard copies of indices. +// Retrieves store information about replica shards in one or more indices. +// For data streams, the API retrieves store information for the stream’s +// backing indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shards-stores.html func New(tp elastictransport.Interface) *ShardStores { 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 823977ea42..435acb6634 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package shrink @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9b1054eb1d..c9aa1f7976 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package shrink // Response holds the response body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shrink/IndicesShrinkResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b0b34a0529..145e0d61e0 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allow to shrink an existing index into a new index with fewer primary shards. +// Shrinks an existing index into a new index with fewer primary shards. package shrink import ( @@ -86,7 +86,7 @@ func NewShrinkFunc(tp elastictransport.Interface) NewShrink { } } -// Allow to shrink an existing index into a new index with fewer primary shards. +// Shrinks an existing index into a new index with fewer primary shards. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html func New(tp elastictransport.Interface) *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 8dfe760918..1dcfbecdaf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package simulateindextemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulateindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ad8a6f3f3f..3953a73588 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,10 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Simulate matching the given index name against the index templates in the -// system +// Simulate an index. +// Returns the index configuration that would be applied to the specified index +// from an existing index template. package simulateindextemplate import ( @@ -77,8 +78,9 @@ func NewSimulateIndexTemplateFunc(tp elastictransport.Interface) NewSimulateInde } } -// Simulate matching the given index name against the index templates in the -// system +// Simulate an index. +// Returns the index configuration that would be applied to the specified index +// from an existing index template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-simulate-index.html func New(tp elastictransport.Interface) *SimulateIndexTemplate { 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 6e3493ff25..7e3ee877ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package simulatetemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L119 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cc1c8a903d..745546fb4a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package simulatetemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 15ec2f7bbd..52eaf79d47 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Simulate resolving the given template name or body +// Simulate an index template. +// Returns the index configuration that would be applied by a particular index +// template. package simulatetemplate import ( @@ -79,7 +81,9 @@ func NewSimulateTemplateFunc(tp elastictransport.Interface) NewSimulateTemplate } } -// Simulate resolving the given template name or body +// Simulate an index template. +// Returns the index configuration that would be applied by a particular index +// template. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-simulate-template.html func New(tp elastictransport.Interface) *SimulateTemplate { 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 1b7c345096..849ad05732 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package split @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/split/IndicesSplitRequest.ts#L27-L74 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d2eda2e919..6b9691f3f1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package split // Response holds the response body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/split/IndicesSplitResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c0f84c78b3..84db207e93 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows you to split an existing index into a new index with more primary -// shards. +// Splits an existing index into a new index with more primary shards. package split import ( @@ -87,8 +86,7 @@ func NewSplitFunc(tp elastictransport.Interface) NewSplit { } } -// Allows you to split an existing index into a new index with more primary -// shards. +// Splits an existing index into a new index with more primary shards. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html func New(tp elastictransport.Interface) *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 56eefa5c07..8a156d76da 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/IndicesStatsResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 748913ad6f..073040dac5 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Provides statistics on operations happening in an index. +// Returns statistics for one or more indices. +// For data streams, the API retrieves statistics for the stream’s backing +// indices. package stats import ( @@ -79,7 +81,9 @@ func NewStatsFunc(tp elastictransport.Interface) NewStats { } } -// Provides statistics on operations happening in an index. +// Returns statistics for one or more indices. +// For data streams, the API retrieves statistics for the stream’s backing +// indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html func New(tp elastictransport.Interface) *Stats { 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 a0892d0714..3b64106a33 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package unfreeze // Response holds the response body struct for the package unfreeze // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/unfreeze/IndicesUnfreezeResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9e25781bcb..5ce92abd89 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Unfreezes an index. When a frozen index is unfrozen, the index goes through -// the normal recovery process and becomes writeable again. +// Unfreezes an index. package unfreeze import ( @@ -78,8 +77,7 @@ func NewUnfreezeFunc(tp elastictransport.Interface) NewUnfreeze { } } -// Unfreezes an index. When a frozen index is unfrozen, the index goes through -// the normal recovery process and becomes writeable again. +// Unfreezes an index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html func New(tp elastictransport.Interface) *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 8c486cc318..0d1d59de04 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatealiases @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L51 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 09bad4896e..3f6fdc8dca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatealiases // Response holds the response body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b5bb4ea48e..308eb58d62 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates index aliases. +// Adds a data stream or index to an alias. package updatealiases import ( @@ -73,7 +73,7 @@ func NewUpdateAliasesFunc(tp elastictransport.Interface) NewUpdateAliases { } } -// Updates index aliases. +// Adds a data stream or index to an alias. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html func New(tp elastictransport.Interface) *UpdateAliases { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/request.go index 585339f06e..cb6a4c65bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package validatequery @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L111 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L111 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 86d1daa445..f68a6fbec0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package validatequery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ad56c3bde..e53af278bc 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows a user to validate a potentially expensive query without executing it. +// Validates a potentially expensive query without executing it. package validatequery import ( @@ -81,7 +81,7 @@ func NewValidateQueryFunc(tp elastictransport.Interface) NewValidateQuery { } } -// Allows a user to validate a potentially expensive query without executing it. +// Validates a potentially expensive query without executing 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/deletemodel/delete_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/delete.go similarity index 78% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/delete_model.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/delete.go index 965dbb3100..b6c27a1a33 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/delete_model.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/delete.go @@ -16,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Delete model in the Inference API -package deletemodel +// Delete an inference endpoint +package delete import ( "context" @@ -45,7 +45,7 @@ const ( // 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 DeleteModel struct { +type Delete struct { transport elastictransport.Interface headers http.Header @@ -64,13 +64,13 @@ type DeleteModel struct { instrument elastictransport.Instrumentation } -// NewDeleteModel type alias for index. -type NewDeleteModel func(inferenceid string) *DeleteModel +// NewDelete type alias for index. +type NewDelete func(inferenceid string) *Delete -// NewDeleteModelFunc returns a new instance of DeleteModel with the provided transport. +// NewDeleteFunc returns a new instance of Delete with the provided transport. // Used in the index of the library this allows to retrieve every apis in once place. -func NewDeleteModelFunc(tp elastictransport.Interface) NewDeleteModel { - return func(inferenceid string) *DeleteModel { +func NewDeleteFunc(tp elastictransport.Interface) NewDelete { + return func(inferenceid string) *Delete { n := New(tp) n._inferenceid(inferenceid) @@ -79,11 +79,11 @@ func NewDeleteModelFunc(tp elastictransport.Interface) NewDeleteModel { } } -// Delete model in the Inference API +// Delete an inference endpoint // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html -func New(tp elastictransport.Interface) *DeleteModel { - r := &DeleteModel{ +func New(tp elastictransport.Interface) *Delete { + r := &Delete{ transport: tp, values: make(url.Values), headers: make(http.Header), @@ -100,7 +100,7 @@ func New(tp elastictransport.Interface) *DeleteModel { // HttpRequest returns the http.Request object built from the // given parameters. -func (r *DeleteModel) HttpRequest(ctx context.Context) (*http.Request, error) { +func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { var path strings.Builder var method string var req *http.Request @@ -167,11 +167,11 @@ func (r *DeleteModel) HttpRequest(ctx context.Context) (*http.Request, error) { } // Perform runs the http.Request through the provided transport and returns an http.Response. -func (r DeleteModel) Perform(providedCtx context.Context) (*http.Response, error) { +func (r Delete) 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, "inference.delete_model") + ctx := instrument.Start(providedCtx, "inference.delete") defer instrument.Close(ctx) } } @@ -188,17 +188,17 @@ func (r DeleteModel) Perform(providedCtx context.Context) (*http.Response, error } if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.BeforeRequest(req, "inference.delete_model") - if reader := instrument.RecordRequestBody(ctx, "inference.delete_model", r.raw); reader != nil { + instrument.BeforeRequest(req, "inference.delete") + if reader := instrument.RecordRequestBody(ctx, "inference.delete", 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", "inference.delete_model") + instrument.AfterRequest(req, "elasticsearch", "inference.delete") } if err != nil { - localErr := fmt.Errorf("an error happened during the DeleteModel query execution: %w", err) + localErr := fmt.Errorf("an error happened during the Delete query execution: %w", err) if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { instrument.RecordError(ctx, localErr) } @@ -208,12 +208,12 @@ func (r DeleteModel) Perform(providedCtx context.Context) (*http.Response, error return res, nil } -// Do runs the request through the transport, handle the response and returns a deletemodel.Response -func (r DeleteModel) Do(providedCtx context.Context) (*Response, error) { +// Do runs the request through the transport, handle the response and returns a delete.Response +func (r Delete) 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, "inference.delete_model") + ctx = instrument.Start(providedCtx, "inference.delete") defer instrument.Close(ctx) } if ctx == nil { @@ -264,11 +264,11 @@ func (r DeleteModel) Do(providedCtx context.Context) (*Response, error) { // 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 DeleteModel) IsSuccess(providedCtx context.Context) (bool, error) { +func (r Delete) 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, "inference.delete_model") + ctx = instrument.Start(providedCtx, "inference.delete") defer instrument.Close(ctx) } if ctx == nil { @@ -291,7 +291,7 @@ func (r DeleteModel) IsSuccess(providedCtx context.Context) (bool, error) { } if res.StatusCode != 404 { - err := fmt.Errorf("an error happened during the DeleteModel query execution, status code: %d", res.StatusCode) + err := fmt.Errorf("an error happened during the Delete query execution, status code: %d", res.StatusCode) if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { instrument.RecordError(ctx, err) } @@ -301,8 +301,8 @@ func (r DeleteModel) IsSuccess(providedCtx context.Context) (bool, error) { return false, nil } -// Header set a key, value pair in the DeleteModel headers map. -func (r *DeleteModel) Header(key, value string) *DeleteModel { +// Header set a key, value pair in the Delete headers map. +func (r *Delete) Header(key, value string) *Delete { r.headers.Set(key, value) return r @@ -310,7 +310,7 @@ func (r *DeleteModel) Header(key, value string) *DeleteModel { // TaskType The task type // API Name: tasktype -func (r *DeleteModel) TaskType(tasktype string) *DeleteModel { +func (r *Delete) TaskType(tasktype string) *Delete { r.paramSet |= tasktypeMask r.tasktype = tasktype @@ -319,17 +319,35 @@ func (r *DeleteModel) TaskType(tasktype string) *DeleteModel { // InferenceId The inference Id // API Name: inferenceid -func (r *DeleteModel) _inferenceid(inferenceid string) *DeleteModel { +func (r *Delete) _inferenceid(inferenceid string) *Delete { r.paramSet |= inferenceidMask r.inferenceid = inferenceid return r } +// DryRun When true, the endpoint is not deleted, and a list of ingest processors which +// reference this endpoint is returned +// API name: dry_run +func (r *Delete) DryRun(dryrun bool) *Delete { + r.values.Set("dry_run", strconv.FormatBool(dryrun)) + + return r +} + +// Force When true, the inference endpoint is forcefully deleted even if it is still +// being used by ingest processors or semantic text fields +// API name: force +func (r *Delete) Force(force bool) *Delete { + r.values.Set("force", strconv.FormatBool(force)) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace -func (r *DeleteModel) ErrorTrace(errortrace bool) *DeleteModel { +func (r *Delete) ErrorTrace(errortrace bool) *Delete { r.values.Set("error_trace", strconv.FormatBool(errortrace)) return r @@ -338,7 +356,7 @@ func (r *DeleteModel) ErrorTrace(errortrace bool) *DeleteModel { // FilterPath Comma-separated list of filters in dot notation which reduce the response // returned by Elasticsearch. // API name: filter_path -func (r *DeleteModel) FilterPath(filterpaths ...string) *DeleteModel { +func (r *Delete) FilterPath(filterpaths ...string) *Delete { tmp := []string{} for _, item := range filterpaths { tmp = append(tmp, fmt.Sprintf("%v", item)) @@ -355,7 +373,7 @@ func (r *DeleteModel) FilterPath(filterpaths ...string) *DeleteModel { // consumed // only by machines. // API name: human -func (r *DeleteModel) Human(human bool) *DeleteModel { +func (r *Delete) Human(human bool) *Delete { r.values.Set("human", strconv.FormatBool(human)) return r @@ -364,7 +382,7 @@ func (r *DeleteModel) Human(human bool) *DeleteModel { // Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use // this option for debugging only. // API name: pretty -func (r *DeleteModel) Pretty(pretty bool) *DeleteModel { +func (r *Delete) Pretty(pretty bool) *Delete { r.values.Set("pretty", strconv.FormatBool(pretty)) return r diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/response.go new file mode 100644 index 0000000000..b66367dce5 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete/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/19027dbdd366978ccae41842a040a636730e7c10 + +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 +type Response struct { + + // Acknowledged For a successful response, this value is always true. On failure, an + // exception is returned instead. + Acknowledged bool `json:"acknowledged"` + Pipelines []string `json:"pipelines"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/get_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/get.go similarity index 80% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/get_model.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/get.go index 5e096af9b2..640f7d1309 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/get_model.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/get.go @@ -16,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Get a model in the Inference API -package getmodel +// Get an inference endpoint +package get import ( "context" @@ -45,7 +45,7 @@ const ( // 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 GetModel struct { +type Get struct { transport elastictransport.Interface headers http.Header @@ -64,26 +64,24 @@ type GetModel struct { instrument elastictransport.Instrumentation } -// NewGetModel type alias for index. -type NewGetModel func(inferenceid string) *GetModel +// NewGet type alias for index. +type NewGet func() *Get -// NewGetModelFunc returns a new instance of GetModel with the provided transport. +// NewGetFunc returns a new instance of Get with the provided transport. // Used in the index of the library this allows to retrieve every apis in once place. -func NewGetModelFunc(tp elastictransport.Interface) NewGetModel { - return func(inferenceid string) *GetModel { +func NewGetFunc(tp elastictransport.Interface) NewGet { + return func() *Get { n := New(tp) - n._inferenceid(inferenceid) - return n } } -// Get a model in the Inference API +// Get an inference endpoint // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-api.html -func New(tp elastictransport.Interface) *GetModel { - r := &GetModel{ +func New(tp elastictransport.Interface) *Get { + r := &Get{ transport: tp, values: make(url.Values), headers: make(http.Header), @@ -100,7 +98,7 @@ func New(tp elastictransport.Interface) *GetModel { // HttpRequest returns the http.Request object built from the // given parameters. -func (r *GetModel) HttpRequest(ctx context.Context) (*http.Request, error) { +func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { var path strings.Builder var method string var req *http.Request @@ -110,6 +108,11 @@ func (r *GetModel) HttpRequest(ctx context.Context) (*http.Request, error) { r.path.Scheme = "http" switch { + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_inference") + + method = http.MethodGet case r.paramSet == inferenceidMask: path.WriteString("/") path.WriteString("_inference") @@ -167,11 +170,11 @@ func (r *GetModel) HttpRequest(ctx context.Context) (*http.Request, error) { } // Perform runs the http.Request through the provided transport and returns an http.Response. -func (r GetModel) Perform(providedCtx context.Context) (*http.Response, error) { +func (r Get) 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, "inference.get_model") + ctx := instrument.Start(providedCtx, "inference.get") defer instrument.Close(ctx) } } @@ -188,17 +191,17 @@ func (r GetModel) Perform(providedCtx context.Context) (*http.Response, error) { } if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.BeforeRequest(req, "inference.get_model") - if reader := instrument.RecordRequestBody(ctx, "inference.get_model", r.raw); reader != nil { + instrument.BeforeRequest(req, "inference.get") + if reader := instrument.RecordRequestBody(ctx, "inference.get", 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", "inference.get_model") + instrument.AfterRequest(req, "elasticsearch", "inference.get") } if err != nil { - localErr := fmt.Errorf("an error happened during the GetModel query execution: %w", err) + localErr := fmt.Errorf("an error happened during the Get query execution: %w", err) if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { instrument.RecordError(ctx, localErr) } @@ -208,12 +211,12 @@ func (r GetModel) Perform(providedCtx context.Context) (*http.Response, error) { return res, nil } -// Do runs the request through the transport, handle the response and returns a getmodel.Response -func (r GetModel) Do(providedCtx context.Context) (*Response, error) { +// Do runs the request through the transport, handle the response and returns a get.Response +func (r Get) 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, "inference.get_model") + ctx = instrument.Start(providedCtx, "inference.get") defer instrument.Close(ctx) } if ctx == nil { @@ -264,11 +267,11 @@ func (r GetModel) Do(providedCtx context.Context) (*Response, error) { // 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 GetModel) IsSuccess(providedCtx context.Context) (bool, error) { +func (r Get) 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, "inference.get_model") + ctx = instrument.Start(providedCtx, "inference.get") defer instrument.Close(ctx) } if ctx == nil { @@ -291,7 +294,7 @@ func (r GetModel) IsSuccess(providedCtx context.Context) (bool, error) { } if res.StatusCode != 404 { - err := fmt.Errorf("an error happened during the GetModel query execution, status code: %d", res.StatusCode) + err := fmt.Errorf("an error happened during the Get query execution, status code: %d", res.StatusCode) if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { instrument.RecordError(ctx, err) } @@ -301,8 +304,8 @@ func (r GetModel) IsSuccess(providedCtx context.Context) (bool, error) { return false, nil } -// Header set a key, value pair in the GetModel headers map. -func (r *GetModel) Header(key, value string) *GetModel { +// Header set a key, value pair in the Get headers map. +func (r *Get) Header(key, value string) *Get { r.headers.Set(key, value) return r @@ -310,7 +313,7 @@ func (r *GetModel) Header(key, value string) *GetModel { // TaskType The task type // API Name: tasktype -func (r *GetModel) TaskType(tasktype string) *GetModel { +func (r *Get) TaskType(tasktype string) *Get { r.paramSet |= tasktypeMask r.tasktype = tasktype @@ -319,7 +322,7 @@ func (r *GetModel) TaskType(tasktype string) *GetModel { // InferenceId The inference Id // API Name: inferenceid -func (r *GetModel) _inferenceid(inferenceid string) *GetModel { +func (r *Get) InferenceId(inferenceid string) *Get { r.paramSet |= inferenceidMask r.inferenceid = inferenceid @@ -329,7 +332,7 @@ func (r *GetModel) _inferenceid(inferenceid string) *GetModel { // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace -func (r *GetModel) ErrorTrace(errortrace bool) *GetModel { +func (r *Get) ErrorTrace(errortrace bool) *Get { r.values.Set("error_trace", strconv.FormatBool(errortrace)) return r @@ -338,7 +341,7 @@ func (r *GetModel) ErrorTrace(errortrace bool) *GetModel { // FilterPath Comma-separated list of filters in dot notation which reduce the response // returned by Elasticsearch. // API name: filter_path -func (r *GetModel) FilterPath(filterpaths ...string) *GetModel { +func (r *Get) FilterPath(filterpaths ...string) *Get { tmp := []string{} for _, item := range filterpaths { tmp = append(tmp, fmt.Sprintf("%v", item)) @@ -355,7 +358,7 @@ func (r *GetModel) FilterPath(filterpaths ...string) *GetModel { // consumed // only by machines. // API name: human -func (r *GetModel) Human(human bool) *GetModel { +func (r *Get) Human(human bool) *Get { r.values.Set("human", strconv.FormatBool(human)) return r @@ -364,7 +367,7 @@ func (r *GetModel) Human(human bool) *GetModel { // Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use // this option for debugging only. // API name: pretty -func (r *GetModel) Pretty(pretty bool) *GetModel { +func (r *Get) Pretty(pretty bool) *Get { r.values.Set("pretty", strconv.FormatBool(pretty)) return r diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/response.go similarity index 72% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/response.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/response.go index 59a1729cff..33f3f0cf3c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/get/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -package getmodel +package get import ( "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) -// Response holds the response body struct for the package getmodel +// Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/get_model/GetModelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/get/GetResponse.ts#L22-L26 type Response struct { - Models []types.ModelConfigContainer `json:"models"` + Endpoints []types.InferenceEndpointInfo `json:"endpoints"` } // NewResponse returns a Response 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 626d6033a5..51580b2c3b 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Perform inference on a model +// Perform inference on the service package inference import ( @@ -84,7 +84,7 @@ func NewInferenceFunc(tp elastictransport.Interface) NewInference { } } -// Perform inference on a model +// Perform inference on the service // // https://www.elastic.co/guide/en/elasticsearch/reference/current/post-inference-api.html func New(tp elastictransport.Interface) *Inference { @@ -394,7 +394,7 @@ func (r *Inference) Pretty(pretty bool) *Inference { return r } -// Input Text input to the model. +// Input Inference input. // Either a string or an array of strings. // API name: input func (r *Inference) Input(inputs ...string) *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 523a5f9043..b7ba6e277c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package inference @@ -31,10 +31,10 @@ import ( // Request holds the request body struct for the package inference // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/inference/InferenceRequest.ts#L26-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/inference/InferenceRequest.ts#L26-L66 type Request struct { - // Input Text input to the model. + // Input Inference input. // Either a string or an array of strings. Input []string `json:"input"` // Query Query input, required for rerank task. 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 eb4e3217c2..a6db3fe9f4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package inference @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package inference // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/inference/InferenceResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/putmodel/put_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/put.go similarity index 79% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/put_model.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/put.go index 64e033ff2d..fd5cf77278 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/put_model.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/put.go @@ -16,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Configure a model for use in the Inference API -package putmodel +// Create an inference endpoint +package put import ( gobytes "bytes" @@ -46,7 +46,7 @@ const ( // 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 PutModel struct { +type Put struct { transport elastictransport.Interface headers http.Header @@ -69,13 +69,13 @@ type PutModel struct { instrument elastictransport.Instrumentation } -// NewPutModel type alias for index. -type NewPutModel func(inferenceid string) *PutModel +// NewPut type alias for index. +type NewPut func(inferenceid string) *Put -// NewPutModelFunc returns a new instance of PutModel with the provided transport. +// NewPutFunc returns a new instance of Put with the provided transport. // Used in the index of the library this allows to retrieve every apis in once place. -func NewPutModelFunc(tp elastictransport.Interface) NewPutModel { - return func(inferenceid string) *PutModel { +func NewPutFunc(tp elastictransport.Interface) NewPut { + return func(inferenceid string) *Put { n := New(tp) n._inferenceid(inferenceid) @@ -84,11 +84,11 @@ func NewPutModelFunc(tp elastictransport.Interface) NewPutModel { } } -// Configure a model for use in the Inference API +// Create an inference endpoint // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html -func New(tp elastictransport.Interface) *PutModel { - r := &PutModel{ +func New(tp elastictransport.Interface) *Put { + r := &Put{ transport: tp, values: make(url.Values), headers: make(http.Header), @@ -109,14 +109,14 @@ func New(tp elastictransport.Interface) *PutModel { // 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 *PutModel) Raw(raw io.Reader) *PutModel { +func (r *Put) Raw(raw io.Reader) *Put { r.raw = raw return r } // Request allows to set the request property with the appropriate payload. -func (r *PutModel) Request(req *Request) *PutModel { +func (r *Put) Request(req *Request) *Put { r.req = req return r @@ -124,7 +124,7 @@ func (r *PutModel) Request(req *Request) *PutModel { // HttpRequest returns the http.Request object built from the // given parameters. -func (r *PutModel) HttpRequest(ctx context.Context) (*http.Request, error) { +func (r *Put) HttpRequest(ctx context.Context) (*http.Request, error) { var path strings.Builder var method string var req *http.Request @@ -145,7 +145,7 @@ func (r *PutModel) HttpRequest(ctx context.Context) (*http.Request, error) { data, err := json.Marshal(r.req) if err != nil { - return nil, fmt.Errorf("could not serialise request for PutModel: %w", err) + return nil, fmt.Errorf("could not serialise request for Put: %w", err) } r.buf.Write(data) @@ -222,11 +222,11 @@ func (r *PutModel) HttpRequest(ctx context.Context) (*http.Request, error) { } // Perform runs the http.Request through the provided transport and returns an http.Response. -func (r PutModel) Perform(providedCtx context.Context) (*http.Response, error) { +func (r Put) 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, "inference.put_model") + ctx := instrument.Start(providedCtx, "inference.put") defer instrument.Close(ctx) } } @@ -243,17 +243,17 @@ func (r PutModel) Perform(providedCtx context.Context) (*http.Response, error) { } if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.BeforeRequest(req, "inference.put_model") - if reader := instrument.RecordRequestBody(ctx, "inference.put_model", r.raw); reader != nil { + instrument.BeforeRequest(req, "inference.put") + if reader := instrument.RecordRequestBody(ctx, "inference.put", 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", "inference.put_model") + instrument.AfterRequest(req, "elasticsearch", "inference.put") } if err != nil { - localErr := fmt.Errorf("an error happened during the PutModel query execution: %w", err) + localErr := fmt.Errorf("an error happened during the Put query execution: %w", err) if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { instrument.RecordError(ctx, localErr) } @@ -263,12 +263,12 @@ func (r PutModel) Perform(providedCtx context.Context) (*http.Response, error) { return res, nil } -// Do runs the request through the transport, handle the response and returns a putmodel.Response -func (r PutModel) Do(providedCtx context.Context) (*Response, error) { +// Do runs the request through the transport, handle the response and returns a put.Response +func (r Put) 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, "inference.put_model") + ctx = instrument.Start(providedCtx, "inference.put") defer instrument.Close(ctx) } if ctx == nil { @@ -317,8 +317,8 @@ func (r PutModel) Do(providedCtx context.Context) (*Response, error) { return nil, errorResponse } -// Header set a key, value pair in the PutModel headers map. -func (r *PutModel) Header(key, value string) *PutModel { +// Header set a key, value pair in the Put headers map. +func (r *Put) Header(key, value string) *Put { r.headers.Set(key, value) return r @@ -326,7 +326,7 @@ func (r *PutModel) Header(key, value string) *PutModel { // TaskType The task type // API Name: tasktype -func (r *PutModel) TaskType(tasktype string) *PutModel { +func (r *Put) TaskType(tasktype string) *Put { r.paramSet |= tasktypeMask r.tasktype = tasktype @@ -335,7 +335,7 @@ func (r *PutModel) TaskType(tasktype string) *PutModel { // InferenceId The inference Id // API Name: inferenceid -func (r *PutModel) _inferenceid(inferenceid string) *PutModel { +func (r *Put) _inferenceid(inferenceid string) *Put { r.paramSet |= inferenceidMask r.inferenceid = inferenceid @@ -345,7 +345,7 @@ func (r *PutModel) _inferenceid(inferenceid string) *PutModel { // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace -func (r *PutModel) ErrorTrace(errortrace bool) *PutModel { +func (r *Put) ErrorTrace(errortrace bool) *Put { r.values.Set("error_trace", strconv.FormatBool(errortrace)) return r @@ -354,7 +354,7 @@ func (r *PutModel) ErrorTrace(errortrace bool) *PutModel { // FilterPath Comma-separated list of filters in dot notation which reduce the response // returned by Elasticsearch. // API name: filter_path -func (r *PutModel) FilterPath(filterpaths ...string) *PutModel { +func (r *Put) FilterPath(filterpaths ...string) *Put { tmp := []string{} for _, item := range filterpaths { tmp = append(tmp, fmt.Sprintf("%v", item)) @@ -371,7 +371,7 @@ func (r *PutModel) FilterPath(filterpaths ...string) *PutModel { // consumed // only by machines. // API name: human -func (r *PutModel) Human(human bool) *PutModel { +func (r *Put) Human(human bool) *Put { r.values.Set("human", strconv.FormatBool(human)) return r @@ -380,7 +380,7 @@ func (r *PutModel) Human(human bool) *PutModel { // Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use // this option for debugging only. // API name: pretty -func (r *PutModel) Pretty(pretty bool) *PutModel { +func (r *Put) Pretty(pretty bool) *Put { r.values.Set("pretty", strconv.FormatBool(pretty)) return r @@ -388,7 +388,7 @@ func (r *PutModel) Pretty(pretty bool) *PutModel { // Service The service type // API name: service -func (r *PutModel) Service(service string) *PutModel { +func (r *Put) Service(service string) *Put { r.req.Service = service @@ -397,15 +397,15 @@ func (r *PutModel) Service(service string) *PutModel { // ServiceSettings Settings specific to the service // API name: service_settings -func (r *PutModel) ServiceSettings(servicesettings json.RawMessage) *PutModel { +func (r *Put) ServiceSettings(servicesettings json.RawMessage) *Put { r.req.ServiceSettings = servicesettings return r } -// TaskSettings Task settings specific to the service and model +// TaskSettings Task settings specific to the service and task type // API name: task_settings -func (r *PutModel) TaskSettings(tasksettings json.RawMessage) *PutModel { +func (r *Put) TaskSettings(tasksettings json.RawMessage) *Put { r.req.TaskSettings = tasksettings return r diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/request.go similarity index 70% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/request.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/request.go index 0574aa903a..acb6edfc1e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/request.go @@ -16,22 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -package putmodel +package put import ( "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) -// Request holds the request body struct for the package putmodel +// Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/put_model/PutModelRequest.ts#L25-L44 -type Request = types.ModelConfig +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/put/PutRequest.ts#L25-L44 +type Request = types.InferenceEndpoint // NewRequest returns a Request func NewRequest() *Request { - r := types.NewModelConfig() + r := types.NewInferenceEndpoint() return r } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/response.go similarity index 72% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/response.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/response.go index bcbd34919c..0fb7bc8980 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/put/response.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -package putmodel +package put import ( "encoding/json" @@ -26,20 +26,20 @@ import ( "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" ) -// Response holds the response body struct for the package putmodel +// Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/put_model/PutModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/put/PutResponse.ts#L22-L24 type Response struct { - // ModelId The model Id - ModelId string `json:"model_id"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` // 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 model + // TaskSettings Task settings specific to the service and task type TaskSettings json.RawMessage `json:"task_settings"` - // TaskType The model's task type + // TaskType The task type TaskType tasktype.TaskType `json:"task_type"` } 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 19d9c0a95e..8b3d1b3aef 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes a pipeline. +// Deletes one or more existing ingest pipeline. package deletepipeline import ( @@ -76,7 +76,7 @@ func NewDeletePipelineFunc(tp elastictransport.Interface) NewDeletePipeline { } } -// Deletes a pipeline. +// Deletes one or more existing ingest pipeline. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-pipeline-api.html func New(tp elastictransport.Interface) *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 397074e4ef..b77642a35a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletepipeline // Response holds the response body struct for the package deletepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4147a13c61..3fa360ea1b 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns statistical information about geoip databases +// Gets download statistics for GeoIP2 databases used with the geoip processor. package geoipstats import ( @@ -68,7 +68,7 @@ func NewGeoIpStatsFunc(tp elastictransport.Interface) NewGeoIpStats { } } -// Returns statistical information about geoip databases +// Gets download statistics for GeoIP2 databases used with the geoip processor. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-processor.html func New(tp elastictransport.Interface) *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 0d7c713123..3651ec34f5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package geoipstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package geoipstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31 type Response struct { // Nodes Downloaded GeoIP2 databases for each node. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/get_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/get_pipeline.go index 73bc2fbd5e..a1453f1f16 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns a pipeline. +// Returns information about one or more ingest pipelines. +// This API returns a local reference of the pipeline. package getpipeline import ( @@ -74,7 +75,8 @@ func NewGetPipelineFunc(tp elastictransport.Interface) NewGetPipeline { } } -// Returns a pipeline. +// 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 func New(tp elastictransport.Interface) *GetPipeline { 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 e561ab367b..90de6922e7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getpipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/get_pipeline/GetPipelineResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a8d157d0a7..351bc5f653 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,9 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns a list of the built-in patterns. +// 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 +// pattern you expect will match. +// A grok pattern is like a regular expression that supports aliased expressions +// that can be reused. package processorgrok import ( @@ -68,7 +72,11 @@ func NewProcessorGrokFunc(tp elastictransport.Interface) NewProcessorGrok { } } -// Returns a list of the built-in patterns. +// 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 +// pattern you expect will match. +// A grok pattern is like a regular expression that supports aliased expressions +// that can be reused. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html func New(tp elastictransport.Interface) *ProcessorGrok { 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 c66fae2fee..7ba5868c3d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package processorgrok // Response holds the response body struct for the package processorgrok // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24 type Response struct { Patterns map[string]string `json:"patterns"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/put_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/put_pipeline.go index b41323ae59..157ee33c09 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates a pipeline. +// Creates or updates an ingest pipeline. +// Changes made using this API take effect immediately. package putpipeline import ( @@ -81,7 +82,8 @@ func NewPutPipelineFunc(tp elastictransport.Interface) NewPutPipeline { } } -// Creates or updates a pipeline. +// 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 func New(tp elastictransport.Interface) *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 ee270b74de..d8fb0056ac 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putpipeline @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L77 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L77 type Request struct { // Description Description of the ingest pipeline. 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 3193540c2f..b0b76a0764 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putpipeline // Response holds the response body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/put_pipeline/PutPipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 89caf64ab1..57372238b0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package simulate @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L57 type Request struct { // Docs Sample documents to test in the pipeline. 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 a9323e194b..35c05ef47f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package simulate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24 type Response struct { Docs []types.PipelineSimulation `json:"docs"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/simulate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/simulate.go index 7caa6be5eb..0422925a4c 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows to simulate a pipeline with example documents. +// Executes an ingest pipeline against a set of provided documents. package simulate import ( @@ -79,7 +79,7 @@ func NewSimulateFunc(tp elastictransport.Interface) NewSimulate { } } -// Allows to simulate a pipeline with example documents. +// Executes an ingest pipeline against a set of provided documents. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-pipeline-api.html func New(tp elastictransport.Interface) *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 89bd85958f..b8d319f148 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 6b92505f20..392c5a0c3b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/delete/DeleteLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 92cc33b09d..469f2b9bac 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves licensing information for the cluster +// 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. package get import ( @@ -68,7 +71,10 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Retrieves licensing information for the cluster +// 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. // // 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 341e1daa6b..3bbdb5a818 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/get/GetLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 992e0a6bb6..31b66444d3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 d7fb2be535..3e53862edd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getbasicstatus // Response holds the response body struct for the package getbasicstatus // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0f6ea58b15..264df9afea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 23d13ce60a..baf521432e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package gettrialstatus // Response holds the response body struct for the package gettrialstatus // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a3d45adf0b..624c5d064b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 ddef8b1061..b23fcbf18f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package post @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post/PostLicenseRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3f239e5f83..a44b8d8426 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package post @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post/PostLicenseResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c937fe4002..f6e262e7a3 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Starts an indefinite basic license. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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 +// support all of the features that are available with your current license, +// however, you are notified in the response. You must then re-submit the API +// request with the acknowledge parameter set to true. +// To check the status of your basic license, use the following API: [Get basic +// status](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-basic-status.html). package poststartbasic import ( @@ -68,7 +74,13 @@ func NewPostStartBasicFunc(tp elastictransport.Interface) NewPostStartBasic { } } -// Starts an indefinite basic license. +// 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 +// support all of the features that are available with your current license, +// however, you are notified in the response. You must then re-submit the API +// request with the acknowledge parameter set to true. +// To check the status of your basic license, use the following API: [Get basic +// status](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-basic-status.html). // // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-basic.html func New(tp elastictransport.Interface) *PostStartBasic { 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 83c6bb22ad..bd45feb1cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package poststartbasic @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package poststartbasic // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 554ce90171..6dfc3811ba 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// starts a limited time trial license. +// The start trial API enables you to start a 30-day trial, which gives access +// to all subscription features. package poststarttrial import ( @@ -68,7 +69,8 @@ func NewPostStartTrialFunc(tp elastictransport.Interface) NewPostStartTrial { } } -// starts a limited time trial license. +// The start trial API enables you to start a 30-day trial, which gives access +// to all subscription features. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trial.html func New(tp elastictransport.Interface) *PostStartTrial { 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 95aa698504..e552d94ca4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package poststarttrial @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package poststarttrial // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 69f8e860c7..91d7fd8943 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes Logstash Pipelines used by Central Management +// Deletes a pipeline used for Logstash Central Management. package deletepipeline import ( @@ -74,7 +74,7 @@ func NewDeletePipelineFunc(tp elastictransport.Interface) NewDeletePipeline { } } -// Deletes Logstash Pipelines used by Central Management +// Deletes a pipeline used for Logstash Central Management. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html func New(tp elastictransport.Interface) *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 7533d77f99..2904e850e9 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves Logstash Pipelines used by Central Management +// Retrieves pipelines used for Logstash Central Management. package getpipeline import ( @@ -74,7 +74,7 @@ func NewGetPipelineFunc(tp elastictransport.Interface) NewGetPipeline { } } -// Retrieves Logstash Pipelines used by Central Management +// Retrieves pipelines used for Logstash Central Management. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html func New(tp elastictransport.Interface) *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 0a7c5aeb90..77d8fd84b5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getpipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 137c3420c0..f0071963f5 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Adds and updates Logstash Pipelines used for Central Management +// Creates or updates a pipeline used for Logstash Central Management. package putpipeline import ( @@ -81,7 +81,7 @@ func NewPutPipelineFunc(tp elastictransport.Interface) NewPutPipeline { } } -// Adds and updates Logstash Pipelines used for Central Management +// Creates or updates a pipeline used for Logstash Central Management. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html func New(tp elastictransport.Interface) *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 75bd156a1d..9e3f45f2de 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putpipeline @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2524d1a30c..0a3b4af1e3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 bdb913b1d3..2019612d2f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deprecations @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deprecations // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/deprecations/DeprecationInfoResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6ded8b99d7..bd860e61ed 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 4d12c92d17..8a1660f2bc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getfeatureupgradestatus @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getfeatureupgradestatus // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a9e6c85d9d..2a0674e8ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 a4b9ff9e59..171a24e74a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package postfeatureupgrade @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postfeatureupgrade // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c0a86579c2..599aa7c9be 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,9 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Clear the cached results from a trained model deployment +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Clears a trained model deployment cache 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. package cleartrainedmodeldeploymentcache import ( @@ -76,7 +81,12 @@ func NewClearTrainedModelDeploymentCacheFunc(tp elastictransport.Interface) NewC } } -// Clear the cached results from a trained model deployment +// Clears a trained model deployment cache 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 func New(tp elastictransport.Interface) *ClearTrainedModelDeploymentCache { 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 81fb160dfc..0ebbf32613 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package cleartrainedmodeldeploymentcache // Response holds the response body struct for the package cleartrainedmodeldeploymentcache // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 453ff35dde..b62e34404e 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,10 +16,25 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Closes one or more anomaly detection jobs. A job can be opened and closed -// multiple times throughout its lifecycle. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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. +// When you close a job, it runs housekeeping tasks such as pruning the model +// history, flushing buffers, calculating final results and persisting the model +// snapshots. Depending upon the size of the job, it could take several minutes +// to close and the equivalent time to re-open. After it is closed, the job has +// a minimal overhead on the cluster except for maintaining its meta data. +// Therefore it is a best practice to close jobs that are no longer required to +// process data. +// If you close an anomaly detection job whose datafeed is running, the request +// first tries to stop the datafeed. This behavior is equivalent to calling stop +// datafeed API with the same timeout and force parameters as the close job +// request. +// When a datafeed that has a specified end date stops, it automatically closes +// its associated job. package closejob import ( @@ -82,8 +97,23 @@ func NewCloseJobFunc(tp elastictransport.Interface) NewCloseJob { } } -// Closes one or more anomaly detection jobs. A job can be opened and closed -// multiple times throughout its lifecycle. +// 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. +// When you close a job, it runs housekeeping tasks such as pruning the model +// history, flushing buffers, calculating final results and persisting the model +// snapshots. Depending upon the size of the job, it could take several minutes +// to close and the equivalent time to re-open. After it is closed, the job has +// a minimal overhead on the cluster except for maintaining its meta data. +// Therefore it is a best practice to close jobs that are no longer required to +// process data. +// If you close an anomaly detection job whose datafeed is running, the request +// first tries to stop the datafeed. This behavior is equivalent to calling stop +// datafeed API with the same timeout and force parameters as the close job +// request. +// When a datafeed that has a specified end date stops, it automatically closes +// its associated job. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html func New(tp elastictransport.Interface) *CloseJob { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/request.go index 3a41b54fe0..9140a8b9fe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package closejob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/close_job/MlCloseJobRequest.ts#L24-L77 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/close_job/MlCloseJobRequest.ts#L24-L77 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 227a8b65a2..25c213f8ba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package closejob // Response holds the response body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/close_job/MlCloseJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2a9fcc97b7..c6d4944976 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes a calendar. +// Removes all scheduled events from a calendar, then deletes it. package deletecalendar import ( @@ -76,7 +76,7 @@ func NewDeleteCalendarFunc(tp elastictransport.Interface) NewDeleteCalendar { } } -// Deletes 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 func New(tp elastictransport.Interface) *DeleteCalendar { 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 f827945111..3e6b883851 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletecalendar // Response holds the response body struct for the package deletecalendar // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 63c5f8c9cb..c3a7ca5d5d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/delete_calendar_event.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/delete_calendar_event.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes scheduled events from a calendar. package 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 1514799e1f..941eee3187 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletecalendarevent // Response holds the response body struct for the package deletecalendarevent // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ec7099c159..3f5325dfad 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/delete_calendar_job.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/delete_calendar_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes anomaly detection jobs from a calendar. package 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 f069da48c5..2c18b61a03 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletecalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package deletecalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0ff62a8e9f..2d86d46272 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/delete_datafeed.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/delete_datafeed.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes an existing datafeed. package 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 d48e7a034a..73808b796b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletedatafeed // Response holds the response body struct for the package deletedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cea3d7c695..1ef361cc1e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes an existing data frame analytics job. +// Deletes a data frame analytics job. package deletedataframeanalytics import ( @@ -76,7 +76,7 @@ func NewDeleteDataFrameAnalyticsFunc(tp elastictransport.Interface) NewDeleteDat } } -// Deletes an existing data frame analytics job. +// Deletes 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 4073681508..1a7d914f9c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletedataframeanalytics // Response holds the response body struct for the package deletedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 566b7d3d2e..56c470778c 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,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes expired and unused machine learning 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. +// You can limit the request to a single or set of anomaly detection jobs by +// using a job identifier, a group name, a comma-separated list of jobs, or a +// wildcard expression. You can delete expired data for all anomaly detection +// jobs by using _all, by specifying * as the , or by omitting the +// . package deleteexpireddata import ( @@ -80,6 +88,14 @@ func NewDeleteExpiredDataFunc(tp elastictransport.Interface) NewDeleteExpiredDat } // Deletes expired and unused machine learning 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. +// You can limit the request to a single or set of anomaly detection jobs by +// using a job identifier, a group name, a comma-separated list of jobs, or a +// wildcard expression. You can delete expired data 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-delete-expired-data.html func New(tp elastictransport.Interface) *DeleteExpiredData { 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 ff4743d371..91cc1f86b3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteexpireddata @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L72 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 f9836b90ac..74e23ab8bc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteexpireddata // Response holds the response body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 89b49c84d2..55807f59c7 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,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes 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 import ( @@ -77,6 +79,8 @@ func NewDeleteFilterFunc(tp elastictransport.Interface) NewDeleteFilter { } // Deletes 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 func New(tp elastictransport.Interface) *DeleteFilter { 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 5f7217636d..d65682da05 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletefilter // Response holds the response body struct for the package deletefilter // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_filter/MlDeleteFilterResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 18c29e16e6..512b0eaae7 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,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes forecasts from a machine learning 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. package deleteforecast import ( @@ -80,6 +84,10 @@ func NewDeleteForecastFunc(tp elastictransport.Interface) NewDeleteForecast { } // Deletes forecasts from a machine learning 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 func New(tp elastictransport.Interface) *DeleteForecast { 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 3c09a4ea20..78829db364 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteforecast // Response holds the response body struct for the package deleteforecast // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b497280634..195b23a362 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,9 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes an existing anomaly detection job. +// Deletes 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 +// first tries to delete the datafeed. This behavior is equivalent to calling +// the delete datafeed API with the same timeout and force parameters as the +// delete job request. package deletejob import ( @@ -76,7 +83,14 @@ func NewDeleteJobFunc(tp elastictransport.Interface) NewDeleteJob { } } -// Deletes an existing anomaly detection job. +// Deletes 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 +// first tries to delete the datafeed. This behavior is equivalent to calling +// the delete datafeed API with the same timeout and force parameters as the +// delete job request. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html func New(tp elastictransport.Interface) *DeleteJob { 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 0255173c23..903632786b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletejob // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_job/MlDeleteJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e9080f09a1..fed34b1019 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,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes an existing 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. package deletemodelsnapshot import ( @@ -82,6 +85,9 @@ func NewDeleteModelSnapshotFunc(tp elastictransport.Interface) NewDeleteModelSna } // Deletes an existing 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 func New(tp elastictransport.Interface) *DeleteModelSnapshot { 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 8de97d5453..d0584c7222 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletemodelsnapshot // Response holds the response body struct for the package deletemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 273396a3b5..7de2db319c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/delete_trained_model.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/delete_trained_model.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes an existing trained inference model that is currently not referenced // by an ingest pipeline. 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 3e568d462d..105c1a978d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletetrainedmodel // Response holds the response body struct for the package deletetrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 339888c34e..765fc1fa80 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,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes a model alias that refers to the trained model +// Deletes 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. package deletetrainedmodelalias import ( @@ -81,7 +84,10 @@ func NewDeleteTrainedModelAliasFunc(tp elastictransport.Interface) NewDeleteTrai } } -// Deletes a model alias that refers to the trained model +// Deletes 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 func New(tp elastictransport.Interface) *DeleteTrainedModelAlias { 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 8c43545592..e2022ce2b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletetrainedmodelalias // Response holds the response body struct for the package deletetrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 07db16ee48..ecd4aa8f17 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Estimates the model memory +// 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. package estimatemodelmemory import ( @@ -73,7 +75,9 @@ func NewEstimateModelMemoryFunc(tp elastictransport.Interface) NewEstimateModelM } } -// Estimates the model memory +// 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 func New(tp elastictransport.Interface) *EstimateModelMemory { 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 6bf7e256c6..ddfe792136 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package estimatemodelmemory @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L61 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L61 type Request struct { // AnalysisConfig For a list of the properties that you can specify in the 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 074731e715..6b289e7b1c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package estimatemodelmemory // Response holds the response body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d3348aecd5..1d5599868b 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,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Evaluates the data frame analytics for an annotated index. +// 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. package evaluatedataframe import ( @@ -74,6 +78,10 @@ func NewEvaluateDataFrameFunc(tp elastictransport.Interface) NewEvaluateDataFram } // Evaluates the data frame analytics for an annotated index. +// 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 func New(tp elastictransport.Interface) *EvaluateDataFrame { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/request.go index 6ff08a6a19..37e88d9d1e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package evaluatedataframe @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L52 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 0da75c5788..bd86252301 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package evaluatedataframe @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b5ae088c1b..f2d8941ce9 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,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Explains a 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: +// * which fields are included or not in the analysis and why, +// * how much memory is estimated to be required. The estimate can be used when +// deciding the appropriate value for model_memory_limit setting later on. +// If you have object fields or fields that are excluded via source filtering, +// they are not included in the explanation. package explaindataframeanalytics import ( @@ -80,6 +88,14 @@ func NewExplainDataFrameAnalyticsFunc(tp elastictransport.Interface) NewExplainD } // Explains a 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: +// * which fields are included or not in the analysis and why, +// * how much memory is estimated to be required. The estimate can be used when +// deciding the appropriate value for model_memory_limit setting later on. +// If you have object fields or fields that are excluded via source filtering, +// they are not included in the explanation. // // http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html func New(tp elastictransport.Interface) *ExplainDataFrameAnalytics { 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 28cb7810b9..1ea2bd0966 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package explaindataframeanalytics @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L107 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L107 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine 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 d1a4575ba4..46c4f80bcd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package explaindataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6dd062cd23..88ac40ffcb 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,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Forces any buffered data to be processed by the job. +// 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 +// similar, however the flush is more efficient if you are expecting to send +// more data for analysis. When flushing, the job remains open and is available +// to continue analyzing data. A close operation additionally prunes and +// persists the model state to disk and the job must be opened again before +// analyzing further data. package flushjob import ( @@ -82,6 +90,14 @@ func NewFlushJobFunc(tp elastictransport.Interface) NewFlushJob { } // Forces any buffered data to be processed by the job. +// 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 +// similar, however the flush is more efficient if you are expecting to send +// more data for analysis. When flushing, the job remains open and is available +// to continue analyzing data. A close operation additionally prunes and +// persists the model state to disk and the job must be opened again before +// analyzing further data. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html func New(tp elastictransport.Interface) *FlushJob { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/request.go index 4da9514af9..f39f6cfe20 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package flushjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L99 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 4c13487cd4..57da8852bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package flushjob // Response holds the response body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/flush_job/MlFlushJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ad564f2d4..ba56d4d6cd 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,10 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Predicts the future behavior of a time series by using its historical // behavior. +// +// 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. package forecast import ( @@ -85,6 +89,10 @@ func NewForecastFunc(tp elastictransport.Interface) NewForecast { // Predicts the future behavior of a time series by using its historical // behavior. // +// 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. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html func New(tp elastictransport.Interface) *Forecast { r := &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 dfc0c7ddd2..051ee6bb72 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package forecast @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/forecast/MlForecastJobRequest.ts#L24-L87 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/forecast/MlForecastJobRequest.ts#L24-L87 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 4c28debe3e..d90c1be7b3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package forecast // Response holds the response body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/forecast/MlForecastJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e8ddeefdb1..cdafaa2976 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,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves anomaly detection job results for one or more buckets. +// The API presents a chronological view of the records, grouped by bucket. package getbuckets import ( @@ -85,6 +86,7 @@ func NewGetBucketsFunc(tp elastictransport.Interface) NewGetBuckets { } // Retrieves anomaly detection job results for one or more 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 func New(tp elastictransport.Interface) *GetBuckets { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/request.go index 60f6310685..b8589fd9fe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getbuckets @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L133 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L133 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 ae948db308..79659c8085 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getbuckets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_buckets/MlGetBucketsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cf28e185fb..5f6e88b651 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/get_calendar_events.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/get_calendar_events.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves information about the scheduled events in calendars. package 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 8e5e4f05b6..dc083e9f4d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getcalendarevents @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7718689932..cc7b3c7d1e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/get_calendars.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/get_calendars.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves configuration information for calendars. package 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 8fafc5233a..c664a5831d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getcalendars @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L51 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 28b6b1b02c..25b0968fe9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getcalendars @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1517c1431a..d73bcf9ac0 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/get_categories.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/get_categories.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves anomaly detection job results for one or more categories. package 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 4a1c566a07..47e2bb8805 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getcategories @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L70 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 caea6f4d89..aeb9045b7f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getcategories @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_categories/MlGetCategoriesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7e49c315a4..1151fe49ae 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,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves configuration information for datafeeds. +// 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 +// ``, or by omitting the ``. +// This API returns a maximum of 10,000 datafeeds. package getdatafeeds import ( @@ -75,6 +80,11 @@ func NewGetDatafeedsFunc(tp elastictransport.Interface) NewGetDatafeeds { } // Retrieves configuration information for datafeeds. +// 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 +// ``, or by omitting the ``. +// This API returns a maximum of 10,000 datafeeds. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html func New(tp elastictransport.Interface) *GetDatafeeds { 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 e4917fa8e1..849789a29d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getdatafeeds @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b50af2e18f..38eefb0c20 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,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves usage information for datafeeds. +// 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 +// ``, or by omitting the ``. If the datafeed is stopped, the +// only information you receive is the `datafeed_id` and the `state`. +// This API returns a maximum of 10,000 datafeeds. package getdatafeedstats import ( @@ -75,6 +81,12 @@ func NewGetDatafeedStatsFunc(tp elastictransport.Interface) NewGetDatafeedStats } // Retrieves usage information for datafeeds. +// 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 +// ``, or by omitting the ``. If the datafeed is stopped, the +// only information you receive is the `datafeed_id` and the `state`. +// This API returns a maximum of 10,000 datafeeds. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html func New(tp elastictransport.Interface) *GetDatafeedStats { 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 c37ff63167..bd469bf44b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getdatafeedstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatafeedstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dc59b5b813..24c3208927 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,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves configuration information for data frame analytics jobs. +// 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. package getdataframeanalytics import ( @@ -75,6 +78,9 @@ func NewGetDataFrameAnalyticsFunc(tp elastictransport.Interface) NewGetDataFrame } // Retrieves configuration information for data frame analytics jobs. +// 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 func New(tp elastictransport.Interface) *GetDataFrameAnalytics { 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 be608bb874..fb8279eae7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getdataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a885740864..465a20353f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves usage information for data frame analytics jobs. package 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 5aad55706d..ed23534325 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getdataframeanalyticsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdataframeanalyticsstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L24-L30 type Response struct { Count int64 `json:"count"` // DataFrameAnalytics An array of objects that contain usage information for data frame analytics diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/get_filters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/get_filters.go index 045b5b0574..ce0bb94142 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,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves filters. +// You can get a single filter or all filters. package getfilters import ( @@ -75,6 +76,7 @@ func NewGetFiltersFunc(tp elastictransport.Interface) NewGetFilters { } // Retrieves filters. +// You can get a single filter or all filters. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html func New(tp elastictransport.Interface) *GetFilters { 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 af64e29d1e..83e797c570 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getfilters @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfilters // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_filters/MlGetFiltersResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3cf77b27f2..02d2cac803 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,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves anomaly detection job results for one or more 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. package getinfluencers import ( @@ -82,6 +85,9 @@ func NewGetInfluencersFunc(tp elastictransport.Interface) NewGetInfluencers { } // Retrieves anomaly detection job results for one or more 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 func New(tp elastictransport.Interface) *GetInfluencers { 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 131448a63a..4321c62905 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getinfluencers @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L97 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 a5b5fca5f9..1d44aff6bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getinfluencers @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f8deb870f2..d8ead96867 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,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves configuration information for anomaly detection jobs. +// 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 ``. package getjobs import ( @@ -75,6 +79,10 @@ func NewGetJobsFunc(tp elastictransport.Interface) NewGetJobs { } // Retrieves configuration information for anomaly detection jobs. +// 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 func New(tp elastictransport.Interface) *GetJobs { 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 fc4d49678d..7b7d785de8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getjobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_jobs/MlGetJobsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a55da8b50e..e7ca445900 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/get_job_stats.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/get_job_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves usage information for anomaly detection jobs. package 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 7270e6fe30..e3856c2f9a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getjobstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c718841065..71c45daed8 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information on how ML is using memory. +// 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. package getmemorystats import ( @@ -74,7 +76,9 @@ func NewGetMemoryStatsFunc(tp elastictransport.Interface) NewGetMemoryStats { } } -// Returns information on how ML is using memory. +// 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 func New(tp elastictransport.Interface) *GetMemoryStats { 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 68800af24e..373518631f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getmemorystats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmemorystats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c5a4b520c2..badc2d6453 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/get_model_snapshots.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/get_model_snapshots.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves information about model snapshots. package 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 c9a9f1d524..0cfd2003de 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getmodelsnapshots @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L96 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 e62a898f71..80c675b1ec 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getmodelsnapshots @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a07fa2c526..8b38b77b62 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,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Gets stats for anomaly detection job model snapshot upgrades that are in -// progress. +// Retrieves usage information for anomaly detection job model snapshot +// upgrades. package getmodelsnapshotupgradestats import ( @@ -82,8 +82,8 @@ func NewGetModelSnapshotUpgradeStatsFunc(tp elastictransport.Interface) NewGetMo } } -// Gets stats for anomaly detection job model snapshot upgrades that are in -// progress. +// Retrieves usage information for anomaly detection job model snapshot +// upgrades. // // 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 c6417c8908..2a49d8183c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getmodelsnapshotupgradestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmodelsnapshotupgradestats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f5cc79dcb1..f742240380 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,10 +16,25 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves 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 +// buckets within the overall bucket span. First, the maximum +// `anomaly_score` per anomaly detection job in the overall bucket is +// calculated. Then the `top_n` of those scores are averaged to result in +// the `overall_score`. This means that you can fine-tune the +// `overall_score` so that it is more or less sensitive to the number of +// jobs that detect an anomaly at the same time. For example, if you set +// `top_n` to `1`, the `overall_score` is the maximum bucket score in the +// overall bucket. Alternatively, if you set `top_n` to the number of jobs, +// the `overall_score` is high only when all jobs detect anomalies in that +// overall bucket. If you set the `bucket_span` parameter (to a value +// greater than its default), the `overall_score` is the maximum +// `overall_score` of the overall buckets that have a span equal to the +// jobs' largest bucket span. package getoverallbuckets import ( @@ -85,6 +100,21 @@ func NewGetOverallBucketsFunc(tp elastictransport.Interface) NewGetOverallBucket // Retrieves 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 +// buckets within the overall bucket span. First, the maximum +// `anomaly_score` per anomaly detection job in the overall bucket is +// calculated. Then the `top_n` of those scores are averaged to result in +// the `overall_score`. This means that you can fine-tune the +// `overall_score` so that it is more or less sensitive to the number of +// jobs that detect an anomaly at the same time. For example, if you set +// `top_n` to `1`, the `overall_score` is the maximum bucket score in the +// overall bucket. Alternatively, if you set `top_n` to the number of jobs, +// the `overall_score` is high only when all jobs detect anomalies in that +// overall bucket. If you set the `bucket_span` parameter (to a value +// greater than its default), the `overall_score` is the maximum +// `overall_score` of the overall buckets that have a span equal to the +// jobs' largest bucket span. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html func New(tp elastictransport.Interface) *GetOverallBuckets { r := &GetOverallBuckets{ diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/request.go index 44a239658b..b667e2f0b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getoverallbuckets @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L143 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L143 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 dd9d158fd0..d6f2f8f59d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getoverallbuckets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 476569343e..ae7db15ef2 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,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves 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. +// There can be many anomaly records depending on the characteristics and size +// of the input data. In practice, there are often too many to be able to +// manually process them. The machine learning features therefore perform a +// sophisticated aggregation of the anomaly records into buckets. +// The number of record results depends on the number of anomalies found in each +// bucket, which relates to the number of time series being modeled and the +// number of detectors. package getrecords import ( @@ -82,6 +92,16 @@ func NewGetRecordsFunc(tp elastictransport.Interface) NewGetRecords { } // Retrieves 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. +// There can be many anomaly records depending on the characteristics and size +// of the input data. In practice, there are often too many to be able to +// manually process them. The machine learning features therefore perform a +// sophisticated aggregation of the anomaly records into buckets. +// The number of record results depends on the number of anomalies found in each +// bucket, which relates to the number of time series being modeled and the +// number of detectors. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html func New(tp elastictransport.Interface) *GetRecords { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/request.go index 75048716ab..7d9644a60f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getrecords @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L127 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L127 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 28af5a73ba..f52e5b4db1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getrecords @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 752e5fa0a6..43e038e720 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves configuration information for a trained inference model. +// Retrieves configuration information for a trained model. package gettrainedmodels import ( @@ -75,7 +75,7 @@ func NewGetTrainedModelsFunc(tp elastictransport.Interface) NewGetTrainedModels } } -// Retrieves configuration information for a trained inference model. +// Retrieves configuration information for a trained model. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html func New(tp elastictransport.Interface) *GetTrainedModels { @@ -296,7 +296,11 @@ func (r *GetTrainedModels) Header(key, value string) *GetTrainedModels { return r } -// ModelId The unique identifier of the trained model. +// ModelId The unique identifier of the trained model or a model alias. +// +// You can get information for multiple trained models in a single API +// request by using a comma-separated list of model IDs or a wildcard +// expression. // API Name: modelid func (r *GetTrainedModels) ModelId(modelid string) *GetTrainedModels { r.paramSet |= modelidMask @@ -368,8 +372,12 @@ func (r *GetTrainedModels) Size(size int) *GetTrainedModels { // none. When supplied, only trained models that contain all the supplied // tags are returned. // API name: tags -func (r *GetTrainedModels) Tags(tags string) *GetTrainedModels { - r.values.Set("tags", tags) +func (r *GetTrainedModels) Tags(tags ...string) *GetTrainedModels { + tmp := []string{} + for _, item := range tags { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("tags", strings.Join(tmp, ",")) return r } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/response.go index 115e0f2a53..ffb4704de0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package gettrainedmodels @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b3c652a670..ea38855988 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves usage information for trained inference models. +// Retrieves usage information for trained models. 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 import ( @@ -74,7 +77,10 @@ func NewGetTrainedModelsStatsFunc(tp elastictransport.Interface) NewGetTrainedMo } } -// Retrieves usage information for trained inference models. +// Retrieves usage information for trained models. 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 func New(tp elastictransport.Interface) *GetTrainedModelsStats { 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 8cace761b0..b175493ea3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package gettrainedmodelsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettrainedmodelsstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7f7d79387e..cc7296fe3b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Evaluate a trained model. +// Evaluates a trained model. package infertrainedmodel import ( @@ -81,7 +81,7 @@ func NewInferTrainedModelFunc(tp elastictransport.Interface) NewInferTrainedMode } } -// Evaluate a trained model. +// Evaluates 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 92a14332bd..9c78c01deb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package infertrainedmodel @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L59 type Request struct { // Docs An array of objects to pass to the model for inference. The objects should 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 00e35cbd50..5fe52cad99 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package infertrainedmodel @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0fb354571d..66dcc060ec 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 +// specified, meaning that the defaults should be used. This endpoint may be +// used to find out what those defaults are. It also provides information about +// the maximum size of machine learning jobs that could run in the current +// cluster configuration. package info import ( @@ -69,6 +75,12 @@ func NewInfoFunc(tp elastictransport.Interface) NewInfo { } // 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 +// specified, meaning that the defaults should be used. This endpoint may be +// used to find out what those defaults are. It also provides information about +// the maximum size of machine learning jobs that could run in the current +// cluster configuration. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html func New(tp elastictransport.Interface) *Info { 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 67b6a364d7..8559c9add2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/MlInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 95d82103ff..3982120245 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,9 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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. +// 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. package openjob import ( @@ -82,6 +89,13 @@ 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. +// 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 func New(tp elastictransport.Interface) *OpenJob { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/request.go index e69628d7f9..cd73a57f29 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,20 +16,23 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package openjob import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) // Request holds the request body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/open_job/MlOpenJobRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/open_job/MlOpenJobRequest.ts#L24-L59 type Request struct { // Timeout Refer to the description for the `timeout` query parameter. @@ -54,3 +57,27 @@ 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 "timeout": + if err := dec.Decode(&s.Timeout); err != nil { + return fmt.Errorf("%s | %w", "Timeout", err) + } + + } + } + return nil +} 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 3efdd0cd01..468a085423 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package openjob // Response holds the response body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/open_job/MlOpenJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ac4b38f5a..c08d9b9b2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Posts scheduled events in a calendar. +// Adds scheduled events to a calendar. package postcalendarevents import ( @@ -81,7 +81,7 @@ func NewPostCalendarEventsFunc(tp elastictransport.Interface) NewPostCalendarEve } } -// Posts scheduled events in a calendar. +// Adds scheduled events to a 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 9b2d532190..863ebdc60d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package postcalendarevents @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L40 type Request struct { // Events A list of one of more scheduled events. The event’s start and end times can 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 88ae4effa7..d1f056de2f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package postcalendarevents @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 654864719c..201cf851d9 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,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Sends data to an anomaly detection job for analysis. +// +// IMPORTANT: For each job, data can be accepted from only a single connection +// at a time. +// It is not currently possible to post data to multiple jobs using wildcards or +// a comma-separated list. package postdata import ( @@ -83,6 +88,11 @@ func NewPostDataFunc(tp elastictransport.Interface) NewPostData { // Sends data to an anomaly detection job for analysis. // +// IMPORTANT: For each job, data can be accepted from only a single connection +// at a time. +// It is not currently possible to post data to multiple jobs using wildcards or +// a comma-separated list. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html func New(tp elastictransport.Interface) *PostData { r := &PostData{ 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 d5453d0ed6..455bbb0207 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package postdata @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L68 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L68 type Request = []json.RawMessage // NewRequest returns a Request diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/response.go index 12272a99ff..76f0716c51 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package postdata // Response holds the response body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/post_data/MlPostJobDataResponse.ts#L23-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4903551972..efc1701f7d 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,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Previews 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 +// and anomaly detection job in the API. The preview shows the structure of the +// data +// that will be passed to the anomaly detection engine. +// IMPORTANT: When Elasticsearch security features are enabled, the preview uses +// the credentials of the user that +// called the API. However, when the datafeed starts it uses the roles of the +// last user that created or updated the +// datafeed. To get a preview that accurately reflects the behavior of the +// datafeed, use the appropriate credentials. +// You can also use secondary authorization headers to supply the credentials. package previewdatafeed import ( @@ -80,6 +93,19 @@ func NewPreviewDatafeedFunc(tp elastictransport.Interface) NewPreviewDatafeed { } // Previews 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 +// and anomaly detection job in the API. The preview shows the structure of the +// data +// that will be passed to the anomaly detection engine. +// IMPORTANT: When Elasticsearch security features are enabled, the preview uses +// the credentials of the user that +// called the API. However, when the datafeed starts it uses the roles of the +// last user that created or updated the +// datafeed. To get a preview that accurately reflects the behavior of the +// datafeed, use the appropriate credentials. +// You can also use secondary authorization headers to supply the credentials. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html func New(tp elastictransport.Interface) *PreviewDatafeed { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/request.go index 3bc4f7e252..1e2a91aa56 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package previewdatafeed @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L69 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 218c01805f..c9a6d9d93b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package previewdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 699932b18a..647738c09c 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Previews that will be analyzed given a data frame analytics config. +// Previews the extracted features used by a data frame analytics config. package previewdataframeanalytics import ( @@ -79,7 +79,7 @@ func NewPreviewDataFrameAnalyticsFunc(tp elastictransport.Interface) NewPreviewD } } -// Previews that will be analyzed given a data frame analytics config. +// Previews the extracted features used by a data frame analytics config. // // http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html func New(tp elastictransport.Interface) *PreviewDataFrameAnalytics { 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 341946dd66..50eef627aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package previewdataframeanalytics @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L47 type Request struct { // Config A data frame analytics config as described in create data frame analytics 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 1dbec69c28..afa8cd9ea4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package previewdataframeanalytics // Response holds the response body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 165fa6f05b..3c7313e33c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Instantiates a calendar. +// Creates a calendar. package putcalendar import ( @@ -81,7 +81,7 @@ func NewPutCalendarFunc(tp elastictransport.Interface) NewPutCalendar { } } -// Instantiates a calendar. +// Creates 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 8605430fd5..02358a5684 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putcalendar @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L43 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 1ef060ba49..90882602c1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putcalendar @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_calendar/MlPutCalendarResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ec98143c4f..c376920e14 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/put_calendar_job.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/put_calendar_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Adds an anomaly detection job to a calendar. package 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 d924060640..62009df211 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putcalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 71328c0e4a..8ce9ce78ef 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,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Instantiates 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. +// The datafeed contains a query that runs at a defined interval (`frequency`). +// If you are concerned about delayed data, you can add a delay (`query_delay') +// at each interval. +// When Elasticsearch security features are enabled, your datafeed remembers +// which roles the user who created it had +// at the time of creation and runs the query using those same roles. If you +// provide secondary authorization headers, +// those credentials are used instead. +// You must use Kibana, this API, or the create anomaly detection jobs API to +// create a datafeed. Do not add a datafeed +// directly to the `.ml-config` index. Do not give users `write` privileges on +// the `.ml-config` index. package putdatafeed import ( @@ -83,6 +98,21 @@ func NewPutDatafeedFunc(tp elastictransport.Interface) NewPutDatafeed { } // Instantiates 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. +// The datafeed contains a query that runs at a defined interval (`frequency`). +// If you are concerned about delayed data, you can add a delay (`query_delay') +// at each interval. +// When Elasticsearch security features are enabled, your datafeed remembers +// which roles the user who created it had +// at the time of creation and runs the query using those same roles. If you +// provide secondary authorization headers, +// those credentials are used instead. +// You must use Kibana, this API, or the create anomaly detection jobs API to +// create a datafeed. Do not add a datafeed +// directly to the `.ml-config` index. Do not give users `write` privileges on +// the `.ml-config` index. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html func New(tp elastictransport.Interface) *PutDatafeed { 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 87223fab19..9d86547e39 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putdatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L172 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L172 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 138bc1e59d..a8913b39a6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 415b624af3..c694f76838 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,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Instantiates 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 import ( @@ -82,6 +84,8 @@ func NewPutDataFrameAnalyticsFunc(tp elastictransport.Interface) NewPutDataFrame } // Instantiates 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 func New(tp elastictransport.Interface) *PutDataFrameAnalytics { 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 1214929fe5..5a51f47421 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putdataframeanalytics @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L141 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L141 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine 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 29164462f4..2bb235b0be 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putdataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fb98b5dea6..7098286c70 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,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Instantiates 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. package putfilter import ( @@ -82,6 +86,10 @@ func NewPutFilterFunc(tp elastictransport.Interface) NewPutFilter { } // Instantiates 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 func New(tp elastictransport.Interface) *PutFilter { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/request.go index 0d223cb27e..361658a6f4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putfilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L50 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 36fc65c254..30d31f411a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putfilter // Response holds the response body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_filter/MlPutFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e42b101345..0aafa81ce5 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Instantiates an anomaly detection job. +// Instantiates an anomaly detection job. If you include a `datafeed_config`, +// you must have read index privileges on the source index. package putjob import ( @@ -81,7 +82,8 @@ func NewPutJobFunc(tp elastictransport.Interface) NewPutJob { } } -// Instantiates an anomaly detection job. +// Instantiates 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 0e85cd5b79..d09f25ae87 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_job/MlPutJobRequest.ts#L30-L111 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_job/MlPutJobRequest.ts#L30-L111 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 98bb6dca54..14adc084a4 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,19 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putjob import ( + "bytes" "encoding/json" + "errors" + "fmt" + "io" + "strconv" "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_job/MlPutJobResponse.ts#L29-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_job/MlPutJobResponse.ts#L29-L52 type Response struct { AllowLazyOpen bool `json:"allow_lazy_open"` AnalysisConfig types.AnalysisConfigRead `json:"analysis_config"` @@ -57,3 +62,199 @@ func NewResponse() *Response { r := &Response{} return r } + +func (s *Response) 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_lazy_open": + 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", "AllowLazyOpen", err) + } + s.AllowLazyOpen = value + case bool: + s.AllowLazyOpen = v + } + + case "analysis_config": + if err := dec.Decode(&s.AnalysisConfig); err != nil { + return fmt.Errorf("%s | %w", "AnalysisConfig", err) + } + + case "analysis_limits": + if err := dec.Decode(&s.AnalysisLimits); err != nil { + return fmt.Errorf("%s | %w", "AnalysisLimits", err) + } + + case "background_persist_interval": + if err := dec.Decode(&s.BackgroundPersistInterval); err != nil { + return fmt.Errorf("%s | %w", "BackgroundPersistInterval", err) + } + + case "create_time": + if err := dec.Decode(&s.CreateTime); err != nil { + return fmt.Errorf("%s | %w", "CreateTime", err) + } + + case "custom_settings": + if err := dec.Decode(&s.CustomSettings); err != nil { + return fmt.Errorf("%s | %w", "CustomSettings", err) + } + + case "daily_model_snapshot_retention_after_days": + 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", "DailyModelSnapshotRetentionAfterDays", err) + } + s.DailyModelSnapshotRetentionAfterDays = value + case float64: + f := int64(v) + s.DailyModelSnapshotRetentionAfterDays = f + } + + case "data_description": + if err := dec.Decode(&s.DataDescription); err != nil { + return fmt.Errorf("%s | %w", "DataDescription", err) + } + + case "datafeed_config": + if err := dec.Decode(&s.DatafeedConfig); err != nil { + return fmt.Errorf("%s | %w", "DatafeedConfig", 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 "groups": + if err := dec.Decode(&s.Groups); err != nil { + return fmt.Errorf("%s | %w", "Groups", err) + } + + case "job_id": + if err := dec.Decode(&s.JobId); err != nil { + return fmt.Errorf("%s | %w", "JobId", err) + } + + case "job_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "JobType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.JobType = o + + case "job_version": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "JobVersion", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.JobVersion = o + + case "model_plot_config": + if err := dec.Decode(&s.ModelPlotConfig); err != nil { + return fmt.Errorf("%s | %w", "ModelPlotConfig", err) + } + + case "model_snapshot_id": + if err := dec.Decode(&s.ModelSnapshotId); err != nil { + return fmt.Errorf("%s | %w", "ModelSnapshotId", err) + } + + case "model_snapshot_retention_days": + 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", "ModelSnapshotRetentionDays", err) + } + s.ModelSnapshotRetentionDays = value + case float64: + f := int64(v) + s.ModelSnapshotRetentionDays = f + } + + case "renormalization_window_days": + 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", "RenormalizationWindowDays", err) + } + s.RenormalizationWindowDays = &value + case float64: + f := int64(v) + s.RenormalizationWindowDays = &f + } + + case "results_index_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ResultsIndexName", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ResultsIndexName = o + + case "results_retention_days": + 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", "ResultsRetentionDays", err) + } + s.ResultsRetentionDays = &value + case float64: + f := int64(v) + s.ResultsRetentionDays = &f + } + + } + } + return nil +} 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 b873a4c4b8..0e9df3eeb7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates an inference trained model. +// Enables you to supply a trained model that is not created by data frame +// analytics. package puttrainedmodel import ( @@ -82,7 +83,8 @@ func NewPutTrainedModelFunc(tp elastictransport.Interface) NewPutTrainedModel { } } -// Creates an inference trained model. +// Enables 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 func New(tp elastictransport.Interface) *PutTrainedModel { 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 eb2dfa6f11..521b624e7d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttrainedmodel @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L29-L124 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L29-L124 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 6ca6eee8f8..c85ff2d22d 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,18 +16,25 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttrainedmodel import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + "github.com/elastic/go-elasticsearch/v8/typedapi/types" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype" ) // Response holds the response body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. @@ -77,3 +84,179 @@ func NewResponse() *Response { } return r } + +func (s *Response) 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 "compressed_definition": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "CompressedDefinition", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.CompressedDefinition = &o + + case "create_time": + if err := dec.Decode(&s.CreateTime); err != nil { + return fmt.Errorf("%s | %w", "CreateTime", err) + } + + case "created_by": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "CreatedBy", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.CreatedBy = &o + + case "default_field_map": + if s.DefaultFieldMap == nil { + s.DefaultFieldMap = make(map[string]string, 0) + } + if err := dec.Decode(&s.DefaultFieldMap); err != nil { + return fmt.Errorf("%s | %w", "DefaultFieldMap", 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 "estimated_heap_memory_usage_bytes": + + 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", "EstimatedHeapMemoryUsageBytes", err) + } + s.EstimatedHeapMemoryUsageBytes = &value + case float64: + f := int(v) + s.EstimatedHeapMemoryUsageBytes = &f + } + + case "estimated_operations": + + 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", "EstimatedOperations", err) + } + s.EstimatedOperations = &value + case float64: + f := int(v) + s.EstimatedOperations = &f + } + + case "fully_defined": + 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", "FullyDefined", err) + } + s.FullyDefined = &value + case bool: + s.FullyDefined = &v + } + + case "inference_config": + if err := dec.Decode(&s.InferenceConfig); err != nil { + return fmt.Errorf("%s | %w", "InferenceConfig", err) + } + + case "input": + if err := dec.Decode(&s.Input); err != nil { + return fmt.Errorf("%s | %w", "Input", err) + } + + case "license_level": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "LicenseLevel", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.LicenseLevel = &o + + case "location": + if err := dec.Decode(&s.Location); err != nil { + return fmt.Errorf("%s | %w", "Location", err) + } + + case "metadata": + if err := dec.Decode(&s.Metadata); err != nil { + return fmt.Errorf("%s | %w", "Metadata", err) + } + + case "model_id": + if err := dec.Decode(&s.ModelId); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + + case "model_size_bytes": + if err := dec.Decode(&s.ModelSizeBytes); err != nil { + return fmt.Errorf("%s | %w", "ModelSizeBytes", err) + } + + case "model_type": + if err := dec.Decode(&s.ModelType); err != nil { + return fmt.Errorf("%s | %w", "ModelType", err) + } + + case "prefix_strings": + if err := dec.Decode(&s.PrefixStrings); err != nil { + return fmt.Errorf("%s | %w", "PrefixStrings", err) + } + + case "tags": + if err := dec.Decode(&s.Tags); err != nil { + return fmt.Errorf("%s | %w", "Tags", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go index a9f1dd498b..216acae118 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,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Creates a new model alias (or reassigns an existing one) to refer to the -// trained model +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Creates or updates 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. +// An alias must be unique and refer to only a single trained model. However, +// you can have multiple aliases for each trained model. +// If you use this API to update an alias such that it references a different +// trained model ID and the model uses a different type of data frame analytics, +// an error occurs. For example, this situation occurs if you have a trained +// model for regression analysis and a trained model for classification +// analysis; you cannot reassign an alias from one type of trained model to +// another. +// If you use this API to update an alias and there are very few input fields in +// common between the old and new trained models for the model alias, the API +// returns a warning. package puttrainedmodelalias import ( @@ -82,8 +96,22 @@ func NewPutTrainedModelAliasFunc(tp elastictransport.Interface) NewPutTrainedMod } } -// Creates a new model alias (or reassigns an existing one) to refer to the -// trained model +// Creates or updates 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. +// An alias must be unique and refer to only a single trained model. However, +// you can have multiple aliases for each trained model. +// If you use this API to update an alias such that it references a different +// trained model ID and the model uses a different type of data frame analytics, +// an error occurs. For example, this situation occurs if you have a trained +// model for regression analysis and a trained model for classification +// analysis; you cannot reassign an alias from one type of trained model to +// another. +// If you use this API to update an alias and there are very few input fields in +// common between the old and new trained models for the model alias, the API +// returns a warning. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models-aliases.html func New(tp elastictransport.Interface) *PutTrainedModelAlias { 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 dd7618834e..00046d59ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttrainedmodelalias // Response holds the response body struct for the package puttrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 acf4fa0037..57d492bec5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates part of a trained model definition +// Creates 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 +// Creates 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 8ec6f25110..38a2fad9bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttrainedmodeldefinitionpart @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L57 type Request struct { // Definition The definition part for the model. Must be a base64 encoded string. 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 d5e0b5b431..351d906062 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttrainedmodeldefinitionpart // Response holds the response body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 52ba487187..45f281274f 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,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates a trained model vocabulary +// Creates 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. package puttrainedmodelvocabulary import ( @@ -81,7 +84,10 @@ func NewPutTrainedModelVocabularyFunc(tp elastictransport.Interface) NewPutTrain } } -// Creates a trained model vocabulary +// Creates 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 func New(tp elastictransport.Interface) *PutTrainedModelVocabulary { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/request.go index 918cb0ae8a..2a0cd48a58 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttrainedmodelvocabulary @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L60 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 e1a7f6a0df..83789f066c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttrainedmodelvocabulary // Response holds the response body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f7cd9c3d2c..cd3caecc99 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,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Resets an existing anomaly detection job. +// Resets 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. package resetjob import ( @@ -76,7 +80,11 @@ func NewResetJobFunc(tp elastictransport.Interface) NewResetJob { } } -// Resets an existing anomaly detection job. +// Resets 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 func New(tp elastictransport.Interface) *ResetJob { 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 c62d500b87..9f4483a38a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package resetjob // Response holds the response body struct for the package resetjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/reset_job/MlResetJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4339ae587a..a2125583f6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package revertmodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L69 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 fcbd3e9897..0ef11cd0ef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package revertmodelsnapshot @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b326cdd13e..aa5cc2b9c3 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,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Reverts to a specific 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 +// or a one-off event. In the case where this anomalous input is known to be a +// one-off, then it might be appropriate to reset the model state to a time +// before this event. For example, you might consider reverting to a saved +// snapshot after Black Friday or a critical system failure. package revertmodelsnapshot import ( @@ -87,6 +94,13 @@ func NewRevertModelSnapshotFunc(tp elastictransport.Interface) NewRevertModelSna } // Reverts to a specific 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 +// or a one-off event. In the case where this anomalous input is known to be a +// one-off, then it might be appropriate to reset the model state to a time +// before this event. For example, you might consider reverting to a saved +// snapshot after Black Friday or a critical system failure. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html func New(tp elastictransport.Interface) *RevertModelSnapshot { 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 136351f14e..39e31986bd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package setupgrademode // Response holds the response body struct for the package setupgrademode // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bf5a0a0c5a..227ccaf6cf 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,10 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 +// nodes and reindex your machine learning indices. In those circumstances, +// there must be no machine learning jobs running. You can close the machine +// learning jobs, do the upgrade, then open all the jobs again. Alternatively, +// you can use this API to temporarily halt tasks associated with the jobs and +// datafeeds and prevent new jobs from opening. You can also use this API +// during upgrades that do not require you to reindex your machine learning +// indices, though stopping jobs is not a requirement in that case. +// You can see the current value for the upgrade_mode setting by using the get +// machine learning info API. package setupgrademode import ( @@ -71,6 +81,16 @@ func NewSetUpgradeModeFunc(tp elastictransport.Interface) NewSetUpgradeMode { // 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 +// nodes and reindex your machine learning indices. In those circumstances, +// there must be no machine learning jobs running. You can close the machine +// learning jobs, do the upgrade, then open all the jobs again. Alternatively, +// you can use this API to temporarily halt tasks associated with the jobs and +// datafeeds and prevent new jobs from opening. You can also use this API +// during upgrades that do not require you to reindex your machine learning +// indices, though stopping jobs is not a requirement in that case. +// You can see the current value for the upgrade_mode setting by using the get +// machine learning info API. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html func New(tp elastictransport.Interface) *SetUpgradeMode { 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 030aca38e0..7f454b5fe5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package startdatafeed @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L91 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 ad82d43987..631d1c37d3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package startdatafeed @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 af7c824cc7..48c53ae91a 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,28 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Starts one or more datafeeds. +// +// A datafeed must be started in order to retrieve data from Elasticsearch. A +// datafeed can be started and stopped +// multiple times throughout its lifecycle. +// +// Before you can start a datafeed, the anomaly detection job must be open. +// Otherwise, an error occurs. +// +// If you restart a stopped datafeed, it continues processing input data from +// the next millisecond after it was stopped. +// If new data was indexed for that exact millisecond between stopping and +// starting, it will be ignored. +// +// When Elasticsearch security features are enabled, your datafeed remembers +// which roles the last user to create or +// update it had at the time of creation or update and runs the query using +// those same roles. If you provided secondary +// authorization headers when you created or updated the datafeed, those +// credentials are used instead. package startdatafeed import ( @@ -83,6 +102,25 @@ func NewStartDatafeedFunc(tp elastictransport.Interface) NewStartDatafeed { // Starts one or more datafeeds. // +// A datafeed must be started in order to retrieve data from Elasticsearch. A +// datafeed can be started and stopped +// multiple times throughout its lifecycle. +// +// Before you can start a datafeed, the anomaly detection job must be open. +// Otherwise, an error occurs. +// +// If you restart a stopped datafeed, it continues processing input data from +// the next millisecond after it was stopped. +// If new data was indexed for that exact millisecond between stopping and +// starting, it will be ignored. +// +// When Elasticsearch security features are enabled, your datafeed remembers +// which roles the last user to create or +// update it had at the time of creation or update and runs the query using +// those same roles. If you provided secondary +// authorization headers when you created or updated the datafeed, those +// credentials are used instead. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html func New(tp elastictransport.Interface) *StartDatafeed { r := &StartDatafeed{ diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/response.go index 7efc56c038..613b740e81 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package startdataframeanalytics // Response holds the response body struct for the package startdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1c5285381d..1e8e4498bc 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,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Starts 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 +// first time you start the data frame analytics job. The +// `index.number_of_shards` and `index.number_of_replicas` settings for the +// destination index are copied from the source index. If there are multiple +// source indices, the destination index copies the highest setting values. The +// mappings for the destination index are also copied from the source indices. +// If there are any mapping conflicts, the job fails to start. +// If the destination index exists, it is used as is. You can therefore set up +// the destination index in advance with custom settings and mappings. package startdataframeanalytics import ( @@ -77,6 +88,17 @@ func NewStartDataFrameAnalyticsFunc(tp elastictransport.Interface) NewStartDataF } // Starts 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 +// first time you start the data frame analytics job. The +// `index.number_of_shards` and `index.number_of_replicas` settings for the +// destination index are copied from the source index. If there are multiple +// source indices, the destination index copies the highest setting values. The +// mappings for the destination index are also copied from the source indices. +// If there are any mapping conflicts, the job fails to start. +// If the destination index exists, it is used as is. You can therefore set up +// the destination index in advance with custom settings and mappings. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html func New(tp elastictransport.Interface) *StartDataFrameAnalytics { 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 4a059ccc62..31dad02f5e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package starttrainedmodeldeployment @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package starttrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 553f5ccb82..62d93773c4 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Start a trained model deployment. +// Starts a trained model deployment, which allocates the model to every machine +// learning node. package starttrainedmodeldeployment import ( @@ -78,7 +79,8 @@ func NewStartTrainedModelDeploymentFunc(tp elastictransport.Interface) NewStartT } } -// Start a trained model deployment. +// Starts a trained model deployment, which 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 60b36fcf06..ed83a5f1ee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stopdatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/stop_datafeed/MlStopDatafeedRequest.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/stopdatafeed/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/response.go index b74cff306a..ef4e3a06bd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stopdatafeed // Response holds the response body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 47b87c88f1..22ab5884f9 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,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Stops one or more datafeeds. +// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A +// datafeed can be started and stopped +// multiple times throughout its lifecycle. package stopdatafeed import ( @@ -82,6 +85,9 @@ func NewStopDatafeedFunc(tp elastictransport.Interface) NewStopDatafeed { } // Stops one or more 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 func New(tp elastictransport.Interface) *StopDatafeed { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/response.go index 2cd54c1440..a2bcd75b30 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stopdataframeanalytics // Response holds the response body struct for the package stopdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f85080523c..0ff159b4a7 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,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Stops one or more data frame analytics jobs. +// A data frame analytics job can be started and stopped multiple times +// throughout its lifecycle. package stopdataframeanalytics import ( @@ -77,6 +79,8 @@ func NewStopDataFrameAnalyticsFunc(tp elastictransport.Interface) NewStopDataFra } // Stops one or more 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 func New(tp elastictransport.Interface) *StopDataFrameAnalytics { 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 598c065707..be02052017 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stoptrainedmodeldeployment // Response holds the response body struct for the package stoptrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 962156b17f..347a8b78f7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Stop a trained model deployment. +// Stops a trained model deployment. package stoptrainedmodeldeployment import ( @@ -76,7 +76,7 @@ func NewStopTrainedModelDeploymentFunc(tp elastictransport.Interface) NewStopTra } } -// Stop a trained model deployment. +// Stops 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 9a3134cf0f..ef17b7d98d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatedatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L162 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L162 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 a959640ccf..15acc4b306 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatedatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a30e861ea6..19f4138173 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,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Updates certain properties of a datafeed. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Updates the properties of 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 +// the time of the update and runs the query using those same roles. If you +// provide secondary authorization headers, +// those credentials are used instead. package updatedatafeed import ( @@ -82,7 +88,13 @@ func NewUpdateDatafeedFunc(tp elastictransport.Interface) NewUpdateDatafeed { } } -// Updates certain properties of a datafeed. +// Updates the properties of 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 +// the time of the update and runs the query using those same roles. If you +// provide secondary authorization headers, +// those credentials are used instead. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html func New(tp elastictransport.Interface) *UpdateDatafeed { 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 eef8fb9b59..882398f729 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatedataframeanalytics @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L72 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine 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 f9e85cc044..36f191e0df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatedataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4337400e5a..f225450030 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates certain properties of a data frame analytics job. +// Updates an existing data frame analytics job. package updatedataframeanalytics import ( @@ -81,7 +81,7 @@ func NewUpdateDataFrameAnalyticsFunc(tp elastictransport.Interface) NewUpdateDat } } -// Updates certain properties of a data frame analytics job. +// Updates an existing 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 f962200633..341971e7c2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatefilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L51 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 2345b5d405..69d89b419a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatefilter // Response holds the response body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_filter/MlUpdateFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 22a3b3d4a9..5204668b9b 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates the description of a filter, adds items, or removes items. +// Updates the description of a filter, adds items, or removes items from the +// list. package updatefilter import ( @@ -81,7 +82,8 @@ func NewUpdateFilterFunc(tp elastictransport.Interface) NewUpdateFilter { } } -// Updates the description of a filter, adds items, or removes items. +// 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 func New(tp elastictransport.Interface) *UpdateFilter { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/request.go index 58b68d2702..66911439a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatejob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L138 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L138 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 9e6c9c5e57..2c040b8419 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatejob @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_job/MlUpdateJobResponse.ts#L29-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 777d349d2c..a929f7bf78 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/update_job.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/update_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Updates certain properties of an anomaly detection job. package updatejob 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 1093c20713..c199e635fb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatemodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L54 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 916fcc86e9..a7dda12a7d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatemodelsnapshot @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 86df1a428a..191a2f3b12 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Updates certain properties of a snapshot. package updatemodelsnapshot diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/request.go index 8aa4306e6c..84d3bfc482 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatetrainedmodeldeployment @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L24-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L24-L62 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 25553bb794..c62a23241e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatetrainedmodeldeployment @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 22f0716072..9264f48e5d 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Updates certain properties of trained model deployment. +// Starts a trained model deployment, which allocates the model to every machine +// learning node. package updatetrainedmodeldeployment import ( @@ -81,7 +82,8 @@ func NewUpdateTrainedModelDeploymentFunc(tp elastictransport.Interface) NewUpdat } } -// Updates certain properties of trained model deployment. +// Starts a trained model deployment, which allocates the model to every machine +// learning node. // // 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 15bd4c5f3f..47245fbbfc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package upgradejobsnapshot // Response holds the response body struct for the package upgradejobsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 02a5e1a286..9bb1f2f6c1 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,9 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Upgrades a given job snapshot to the current major version. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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 +// major version. +// This API provides a means to upgrade a snapshot to the current major version. +// This aids in preparing the cluster for an upgrade to the next major version. +// Only one snapshot per anomaly detection job can be upgraded at a time and the +// upgraded snapshot cannot be the current snapshot of the anomaly detection +// job. package upgradejobsnapshot import ( @@ -81,7 +89,15 @@ func NewUpgradeJobSnapshotFunc(tp elastictransport.Interface) NewUpgradeJobSnaps } } -// Upgrades a given job snapshot to the current major version. +// 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 +// major version. +// This API provides a means to upgrade a snapshot to the current major version. +// This aids in preparing the cluster for an upgrade to the next major version. +// Only one snapshot per anomaly detection job can be upgraded at a time and the +// upgraded snapshot cannot be the current snapshot of the anomaly detection +// job. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html func New(tp elastictransport.Interface) *UpgradeJobSnapshot { 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 982a77cb13..efb47bf177 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package validate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/validate/MlValidateJobRequest.ts#L27-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 60db7eb69d..6b7337cb27 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package validate // Response holds the response body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/validate/MlValidateJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 61ef3fe93a..0f7374d634 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 7c386e3763..aa607a5df0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package validatedetector @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/validate_detector/MlValidateDetectorRequest.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 32912b964a..67330d9cc4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package validatedetector // Response holds the response body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/validate_detector/MlValidateDetectorResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2d69c72672..07ac7f3a31 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 92247ea8df..97485ced5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 37b845e152..13daf96278 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/monitoring/bulk/BulkMonitoringRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5721991e70..999f57e931 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package bulk @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/monitoring/bulk/BulkMonitoringResponse.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ddbf839302..d9bd1031cb 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Removes the archived repositories metering information present in the -// cluster. +// You can use this API to clear the archived repositories metering information +// in the cluster. package clearrepositoriesmeteringarchive import ( @@ -82,8 +82,8 @@ func NewClearRepositoriesMeteringArchiveFunc(tp elastictransport.Interface) NewC } } -// Removes the archived repositories metering information present in the -// cluster. +// You can use this API to clear the archived repositories metering information +// in the cluster. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html func New(tp elastictransport.Interface) *ClearRepositoriesMeteringArchive { 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 275f21d8ea..018d1d7517 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearrepositoriesmeteringarchive @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearrepositoriesmeteringarchive // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 33c6061922..e9cbae7ec4 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Returns cluster repositories metering information. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// You can use the cluster repositories metering API to retrieve repositories +// metering information in a cluster. +// This API exposes monotonically non-decreasing counters and it’s expected that +// clients would durably store the +// information needed to compute aggregations over a period of time. +// Additionally, the information exposed by this +// API is volatile, meaning that it won’t be present after node restarts. package getrepositoriesmeteringinfo import ( @@ -76,7 +82,13 @@ func NewGetRepositoriesMeteringInfoFunc(tp elastictransport.Interface) NewGetRep } } -// Returns cluster repositories metering information. +// You can use the cluster repositories metering API to retrieve repositories +// metering information in a cluster. +// This API exposes monotonically non-decreasing counters and it’s expected that +// clients would durably store the +// information needed to compute aggregations over a period of time. +// Additionally, the information exposed by this +// API is volatile, meaning that it won’t be present after node restarts. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html func New(tp elastictransport.Interface) *GetRepositoriesMeteringInfo { 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 9959f0a331..1a9f03f79c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getrepositoriesmeteringinfo @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrepositoriesmeteringinfo // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7acfccc607..986f95052e 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about hot threads on each node in the cluster. +// This API yields a breakdown of the hot threads on each selected node in the +// cluster. +// The output is plain text with a breakdown of each node’s top hot threads. package hotthreads import ( @@ -75,7 +77,9 @@ func NewHotThreadsFunc(tp elastictransport.Interface) NewHotThreads { } } -// Returns information about hot threads on each node in the cluster. +// This API yields a breakdown of the hot threads on each selected node in the +// cluster. +// The output is plain text with a breakdown of each node’s top hot threads. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html func New(tp elastictransport.Interface) *HotThreads { 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 fa42e1b5e2..a5e41e4611 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package hotthreads @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hotthreads // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L22-L24 type Response struct { HotThreads []types.HotThread `json:"hot_threads"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/info.go index b345b2ac49..c048fef78b 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns information about nodes in the cluster. +// Returns cluster nodes information. package info import ( @@ -77,7 +77,7 @@ func NewInfoFunc(tp elastictransport.Interface) NewInfo { } } -// Returns information about nodes in the cluster. +// Returns cluster nodes information. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html func New(tp elastictransport.Interface) *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 43e6c61b9a..06faca2b99 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/NodesInfoResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 02b7a21771..4c3359bc1d 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Reloads secure settings. +// Reloads the keystore on nodes in the cluster. package reloadsecuresettings import ( @@ -79,7 +79,7 @@ func NewReloadSecureSettingsFunc(tp elastictransport.Interface) NewReloadSecureS } } -// Reloads secure settings. +// Reloads the keystore on nodes in the cluster. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-settings.html#reloadable-secure-settings func New(tp elastictransport.Interface) *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 59f37fe553..88455d3769 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,18 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package reloadsecuresettings import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" ) // Request holds the request body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L50 type Request struct { // SecureSettingsPassword The password for the Elasticsearch keystore. @@ -52,3 +55,27 @@ 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 "secure_settings_password": + if err := dec.Decode(&s.SecureSettingsPassword); err != nil { + return fmt.Errorf("%s | %w", "SecureSettingsPassword", err) + } + + } + } + return nil +} 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 1e37d0507e..8e30920385 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package reloadsecuresettings @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 44ccd07fc2..65be094af9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/stats/NodesStatsResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a32740e090..2136a6ec27 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns statistical information about nodes in the cluster. +// Returns cluster nodes statistics. package stats import ( @@ -81,7 +81,7 @@ func NewStatsFunc(tp elastictransport.Interface) NewStats { } } -// Returns statistical information about nodes in the cluster. +// Returns cluster nodes statistics. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html func New(tp elastictransport.Interface) *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 4c4e5eac7a..c9e9c9f10e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package usage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/usage/NodesUsageResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 15469fe72b..f7b62e53d9 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns low-level information about REST actions usage on nodes. +// Returns information on the usage of features. package usage import ( @@ -77,7 +77,7 @@ func NewUsageFunc(tp elastictransport.Interface) NewUsage { } } -// Returns low-level information about REST actions usage on nodes. +// Returns information on the usage of features. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-usage.html func New(tp elastictransport.Interface) *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 new file mode 100644 index 0000000000..abb58c2ac2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph/flamegraph.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Extracts a UI-optimized structure to render flamegraphs from Universal +// Profiling. +package flamegraph + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 Flamegraph struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewFlamegraph type alias for index. +type NewFlamegraph func() *Flamegraph + +// NewFlamegraphFunc returns a new instance of Flamegraph with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewFlamegraphFunc(tp elastictransport.Interface) NewFlamegraph { + return func() *Flamegraph { + n := New(tp) + + return n + } +} + +// Extracts a UI-optimized structure to render flamegraphs from Universal +// Profiling. +// +// https://www.elastic.co/guide/en/observability/current/universal-profiling.html +func New(tp elastictransport.Interface) *Flamegraph { + r := &Flamegraph{ + 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 *Flamegraph) 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("_profiling") + path.WriteString("/") + path.WriteString("flamegraph") + + 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 Flamegraph) 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, "profiling.flamegraph") + 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, "profiling.flamegraph") + if reader := instrument.RecordRequestBody(ctx, "profiling.flamegraph", 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", "profiling.flamegraph") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the Flamegraph 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 flamegraph.Response +func (r Flamegraph) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 Flamegraph) 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, "profiling.flamegraph") + 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 Flamegraph 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 Flamegraph headers map. +func (r *Flamegraph) Header(key, value string) *Flamegraph { + r.headers.Set(key, value) + + return r +} 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 new file mode 100644 index 0000000000..b2922fd346 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces/stacktraces.go @@ -0,0 +1,231 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Extracts raw stacktrace information from Universal Profiling. +package stacktraces + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 Stacktraces struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewStacktraces type alias for index. +type NewStacktraces func() *Stacktraces + +// NewStacktracesFunc returns a new instance of Stacktraces with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewStacktracesFunc(tp elastictransport.Interface) NewStacktraces { + return func() *Stacktraces { + n := New(tp) + + return n + } +} + +// Extracts raw stacktrace information from Universal Profiling. +// +// https://www.elastic.co/guide/en/observability/current/universal-profiling.html +func New(tp elastictransport.Interface) *Stacktraces { + r := &Stacktraces{ + 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 *Stacktraces) 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("_profiling") + path.WriteString("/") + path.WriteString("stacktraces") + + 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 Stacktraces) 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, "profiling.stacktraces") + 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, "profiling.stacktraces") + if reader := instrument.RecordRequestBody(ctx, "profiling.stacktraces", 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", "profiling.stacktraces") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the Stacktraces 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 stacktraces.Response +func (r Stacktraces) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 Stacktraces) 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, "profiling.stacktraces") + 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 Stacktraces 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 Stacktraces headers map. +func (r *Stacktraces) Header(key, value string) *Stacktraces { + r.headers.Set(key, value) + + return r +} 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 new file mode 100644 index 0000000000..56ede85046 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/status/status.go @@ -0,0 +1,225 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns basic information about the status of Universal Profiling. +package status + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 Status struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewStatus type alias for index. +type NewStatus func() *Status + +// NewStatusFunc returns a new instance of Status with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewStatusFunc(tp elastictransport.Interface) NewStatus { + return func() *Status { + n := New(tp) + + return n + } +} + +// Returns basic information about the status of Universal Profiling. +// +// https://www.elastic.co/guide/en/observability/current/universal-profiling.html +func New(tp elastictransport.Interface) *Status { + r := &Status{ + 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 *Status) 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("_profiling") + path.WriteString("/") + path.WriteString("status") + + 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 Status) 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, "profiling.status") + 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, "profiling.status") + if reader := instrument.RecordRequestBody(ctx, "profiling.status", 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", "profiling.status") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the Status 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 status.Response +func (r Status) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 Status) 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, "profiling.status") + 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 Status 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 Status headers map. +func (r *Status) Header(key, value string) *Status { + r.headers.Set(key, value) + + return r +} 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 new file mode 100644 index 0000000000..8a717295a5 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions/topn_functions.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Extracts a list of topN functions from Universal Profiling. +package topnfunctions + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 TopnFunctions struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewTopnFunctions type alias for index. +type NewTopnFunctions func() *TopnFunctions + +// NewTopnFunctionsFunc returns a new instance of TopnFunctions with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewTopnFunctionsFunc(tp elastictransport.Interface) NewTopnFunctions { + return func() *TopnFunctions { + n := New(tp) + + return n + } +} + +// Extracts a list of topN functions from Universal Profiling. +// +// https://www.elastic.co/guide/en/observability/current/universal-profiling.html +func New(tp elastictransport.Interface) *TopnFunctions { + r := &TopnFunctions{ + 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 *TopnFunctions) 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("_profiling") + path.WriteString("/") + path.WriteString("topn") + path.WriteString("/") + path.WriteString("functions") + + 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 TopnFunctions) 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, "profiling.topn_functions") + 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, "profiling.topn_functions") + if reader := instrument.RecordRequestBody(ctx, "profiling.topn_functions", 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", "profiling.topn_functions") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the TopnFunctions 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 topnfunctions.Response +func (r TopnFunctions) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 TopnFunctions) 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, "profiling.topn_functions") + 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 TopnFunctions 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 TopnFunctions headers map. +func (r *TopnFunctions) Header(key, value string) *TopnFunctions { + r.headers.Set(key, value) + + return r +} 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 new file mode 100644 index 0000000000..c9eca0081a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/delete_rule.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Deletes a query rule within a query ruleset. +package deleterule + +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 ( + rulesetidMask = iota + 1 + + ruleidMask +) + +// 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 DeleteRule struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + rulesetid string + ruleid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewDeleteRule type alias for index. +type NewDeleteRule func(rulesetid, ruleid string) *DeleteRule + +// NewDeleteRuleFunc returns a new instance of DeleteRule with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewDeleteRuleFunc(tp elastictransport.Interface) NewDeleteRule { + return func(rulesetid, ruleid string) *DeleteRule { + n := New(tp) + + n._rulesetid(rulesetid) + + n._ruleid(ruleid) + + return n + } +} + +// Deletes a query rule within a query ruleset. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-query-rule.html +func New(tp elastictransport.Interface) *DeleteRule { + r := &DeleteRule{ + 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 *DeleteRule) 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 == rulesetidMask|ruleidMask: + 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("_rule") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "ruleid", r.ruleid) + } + path.WriteString(r.ruleid) + + 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 DeleteRule) 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.delete_rule") + 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.delete_rule") + if reader := instrument.RecordRequestBody(ctx, "query_rules.delete_rule", 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.delete_rule") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the DeleteRule 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 deleterule.Response +func (r DeleteRule) 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.delete_rule") + 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 DeleteRule) 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, "query_rules.delete_rule") + 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 DeleteRule 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 DeleteRule headers map. +func (r *DeleteRule) Header(key, value string) *DeleteRule { + r.headers.Set(key, value) + + return r +} + +// RulesetId The unique identifier of the query ruleset containing the rule to delete +// API Name: rulesetid +func (r *DeleteRule) _rulesetid(rulesetid string) *DeleteRule { + r.paramSet |= rulesetidMask + r.rulesetid = rulesetid + + return r +} + +// RuleId The unique identifier of the query rule within the specified ruleset to +// delete +// API Name: ruleid +func (r *DeleteRule) _ruleid(ruleid string) *DeleteRule { + r.paramSet |= ruleidMask + r.ruleid = ruleid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *DeleteRule) ErrorTrace(errortrace bool) *DeleteRule { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *DeleteRule) FilterPath(filterpaths ...string) *DeleteRule { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *DeleteRule) Human(human bool) *DeleteRule { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *DeleteRule) Pretty(pretty bool) *DeleteRule { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/response.go similarity index 79% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/response.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule/response.go index 91e797faad..2822b45603 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -package deletemodel +package deleterule -// Response holds the response body struct for the package deletemodel +// Response holds the response body struct for the package deleterule // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/delete_model/DeleteModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..25632425d7 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/delete_ruleset.go @@ -0,0 +1,342 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Deletes a query ruleset. +package deleteruleset + +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 ( + 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 DeleteRuleset struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + rulesetid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewDeleteRuleset type alias for index. +type NewDeleteRuleset func(rulesetid string) *DeleteRuleset + +// NewDeleteRulesetFunc returns a new instance of DeleteRuleset with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewDeleteRulesetFunc(tp elastictransport.Interface) NewDeleteRuleset { + return func(rulesetid string) *DeleteRuleset { + n := New(tp) + + n._rulesetid(rulesetid) + + return n + } +} + +// Deletes a query ruleset. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-query-ruleset.html +func New(tp elastictransport.Interface) *DeleteRuleset { + r := &DeleteRuleset{ + 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 *DeleteRuleset) 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 == 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) + + 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 DeleteRuleset) 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.delete_ruleset") + 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.delete_ruleset") + if reader := instrument.RecordRequestBody(ctx, "query_rules.delete_ruleset", 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.delete_ruleset") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the DeleteRuleset 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 deleteruleset.Response +func (r DeleteRuleset) 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.delete_ruleset") + 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 DeleteRuleset) 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, "query_rules.delete_ruleset") + 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 DeleteRuleset 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 DeleteRuleset headers map. +func (r *DeleteRuleset) Header(key, value string) *DeleteRuleset { + r.headers.Set(key, value) + + return r +} + +// RulesetId The unique identifier of the query ruleset to delete +// API Name: rulesetid +func (r *DeleteRuleset) _rulesetid(rulesetid string) *DeleteRuleset { + 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 *DeleteRuleset) ErrorTrace(errortrace bool) *DeleteRuleset { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *DeleteRuleset) FilterPath(filterpaths ...string) *DeleteRuleset { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *DeleteRuleset) Human(human bool) *DeleteRuleset { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *DeleteRuleset) Pretty(pretty bool) *DeleteRuleset { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} 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 new file mode 100644 index 0000000000..f17c4a343d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset/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/19027dbdd366978ccae41842a040a636730e7c10 + +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 +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/queryrules/getrule/get_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/get_rule.go new file mode 100644 index 0000000000..a0f3759ee4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/get_rule.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns the details about a query rule within a query ruleset +package getrule + +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 ( + rulesetidMask = iota + 1 + + ruleidMask +) + +// 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 GetRule struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + rulesetid string + ruleid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewGetRule type alias for index. +type NewGetRule func(rulesetid, ruleid string) *GetRule + +// NewGetRuleFunc returns a new instance of GetRule with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewGetRuleFunc(tp elastictransport.Interface) NewGetRule { + return func(rulesetid, ruleid string) *GetRule { + n := New(tp) + + n._rulesetid(rulesetid) + + n._ruleid(ruleid) + + return n + } +} + +// Returns the details about a query rule within a query ruleset +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/get-query-rule.html +func New(tp elastictransport.Interface) *GetRule { + r := &GetRule{ + 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 *GetRule) 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 == rulesetidMask|ruleidMask: + 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("_rule") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "ruleid", r.ruleid) + } + path.WriteString(r.ruleid) + + 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 GetRule) 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.get_rule") + 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.get_rule") + if reader := instrument.RecordRequestBody(ctx, "query_rules.get_rule", 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.get_rule") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the GetRule 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 getrule.Response +func (r GetRule) 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.get_rule") + 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 GetRule) 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, "query_rules.get_rule") + 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 GetRule 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 GetRule headers map. +func (r *GetRule) Header(key, value string) *GetRule { + r.headers.Set(key, value) + + return r +} + +// RulesetId The unique identifier of the query ruleset containing the rule to retrieve +// API Name: rulesetid +func (r *GetRule) _rulesetid(rulesetid string) *GetRule { + r.paramSet |= rulesetidMask + r.rulesetid = rulesetid + + return r +} + +// RuleId The unique identifier of the query rule within the specified ruleset to +// retrieve +// API Name: ruleid +func (r *GetRule) _ruleid(ruleid string) *GetRule { + r.paramSet |= ruleidMask + r.ruleid = ruleid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *GetRule) ErrorTrace(errortrace bool) *GetRule { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *GetRule) FilterPath(filterpaths ...string) *GetRule { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *GetRule) Human(human bool) *GetRule { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *GetRule) Pretty(pretty bool) *GetRule { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} 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 new file mode 100644 index 0000000000..db470b6362 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule/response.go @@ -0,0 +1,43 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package getrule + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" +) + +// 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 +type Response struct { + Actions types.QueryRuleActions `json:"actions"` + Criteria []types.QueryRuleCriteria `json:"criteria"` + Priority *int `json:"priority,omitempty"` + RuleId string `json:"rule_id"` + Type queryruletype.QueryRuleType `json:"type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..e69bec22b0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/get_ruleset.go @@ -0,0 +1,342 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns the details about a query ruleset +package getruleset + +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 ( + 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 GetRuleset struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + rulesetid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewGetRuleset type alias for index. +type NewGetRuleset func(rulesetid string) *GetRuleset + +// NewGetRulesetFunc returns a new instance of GetRuleset with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewGetRulesetFunc(tp elastictransport.Interface) NewGetRuleset { + return func(rulesetid string) *GetRuleset { + n := New(tp) + + n._rulesetid(rulesetid) + + return n + } +} + +// Returns the details about a query ruleset +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/get-query-ruleset.html +func New(tp elastictransport.Interface) *GetRuleset { + r := &GetRuleset{ + 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 *GetRuleset) 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 == 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) + + 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 GetRuleset) 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.get_ruleset") + 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.get_ruleset") + if reader := instrument.RecordRequestBody(ctx, "query_rules.get_ruleset", 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.get_ruleset") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the GetRuleset 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 getruleset.Response +func (r GetRuleset) 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.get_ruleset") + 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 GetRuleset) 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, "query_rules.get_ruleset") + 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 GetRuleset 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 GetRuleset headers map. +func (r *GetRuleset) Header(key, value string) *GetRuleset { + r.headers.Set(key, value) + + return r +} + +// RulesetId The unique identifier of the query ruleset +// API Name: rulesetid +func (r *GetRuleset) _rulesetid(rulesetid string) *GetRuleset { + 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 *GetRuleset) ErrorTrace(errortrace bool) *GetRuleset { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *GetRuleset) FilterPath(filterpaths ...string) *GetRuleset { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *GetRuleset) Human(human bool) *GetRuleset { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *GetRuleset) Pretty(pretty bool) *GetRuleset { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/response.go similarity index 76% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/response.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/response.go index dfffa07a74..6c7fd4bc74 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -package get +package getruleset import ( "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) -// Response holds the response body struct for the package get +// Response holds the response body struct for the package getruleset // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/get/QueryRulesetGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..c89068ab51 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/list_rulesets.go @@ -0,0 +1,335 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Returns summarized information about existing query rulesets. +package listrulesets + +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" +) + +// 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 ListRulesets struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewListRulesets type alias for index. +type NewListRulesets func() *ListRulesets + +// NewListRulesetsFunc returns a new instance of ListRulesets with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewListRulesetsFunc(tp elastictransport.Interface) NewListRulesets { + return func() *ListRulesets { + n := New(tp) + + return n + } +} + +// Returns summarized information about existing query rulesets. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/list-query-rulesets.html +func New(tp elastictransport.Interface) *ListRulesets { + r := &ListRulesets{ + 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 *ListRulesets) 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("_query_rules") + + 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 ListRulesets) 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.list_rulesets") + 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.list_rulesets") + if reader := instrument.RecordRequestBody(ctx, "query_rules.list_rulesets", 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.list_rulesets") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the ListRulesets 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 listrulesets.Response +func (r ListRulesets) 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.list_rulesets") + 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 ListRulesets) 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, "query_rules.list_rulesets") + 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 ListRulesets 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 ListRulesets headers map. +func (r *ListRulesets) Header(key, value string) *ListRulesets { + r.headers.Set(key, value) + + return r +} + +// From Starting offset (default: 0) +// API name: from +func (r *ListRulesets) From(from int) *ListRulesets { + r.values.Set("from", strconv.Itoa(from)) + + return r +} + +// Size specifies a max number of results to get +// API name: size +func (r *ListRulesets) Size(size int) *ListRulesets { + r.values.Set("size", strconv.Itoa(size)) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *ListRulesets) ErrorTrace(errortrace bool) *ListRulesets { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *ListRulesets) FilterPath(filterpaths ...string) *ListRulesets { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *ListRulesets) Human(human bool) *ListRulesets { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *ListRulesets) Pretty(pretty bool) *ListRulesets { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/response.go similarity index 75% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/response.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/response.go index 9db74e87c3..a4df09fd84 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/response.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -package list +package listrulesets import ( "github.com/elastic/go-elasticsearch/v8/typedapi/types" ) -// Response holds the response body struct for the package list +// Response holds the response body struct for the package listrulesets // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/list/QueryRulesetListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..b5c4c8c98b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/put_rule.go @@ -0,0 +1,412 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Creates or updates a query rule within a query ruleset. +package putrule + +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" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" +) + +const ( + rulesetidMask = iota + 1 + + ruleidMask +) + +// 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 PutRule 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 + ruleid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutRule type alias for index. +type NewPutRule func(rulesetid, ruleid string) *PutRule + +// NewPutRuleFunc returns a new instance of PutRule with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutRuleFunc(tp elastictransport.Interface) NewPutRule { + return func(rulesetid, ruleid string) *PutRule { + n := New(tp) + + n._rulesetid(rulesetid) + + n._ruleid(ruleid) + + return n + } +} + +// Creates or updates a query rule within a query ruleset. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/put-query-rule.html +func New(tp elastictransport.Interface) *PutRule { + r := &PutRule{ + 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 *PutRule) Raw(raw io.Reader) *PutRule { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutRule) Request(req *Request) *PutRule { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutRule) 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 PutRule: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == rulesetidMask|ruleidMask: + 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("_rule") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "ruleid", r.ruleid) + } + path.WriteString(r.ruleid) + + 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 PutRule) 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.put_rule") + 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.put_rule") + if reader := instrument.RecordRequestBody(ctx, "query_rules.put_rule", 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.put_rule") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutRule 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 putrule.Response +func (r PutRule) 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.put_rule") + 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 PutRule headers map. +func (r *PutRule) Header(key, value string) *PutRule { + r.headers.Set(key, value) + + return r +} + +// RulesetId The unique identifier of the query ruleset containing the rule to be created +// or updated +// API Name: rulesetid +func (r *PutRule) _rulesetid(rulesetid string) *PutRule { + r.paramSet |= rulesetidMask + r.rulesetid = rulesetid + + return r +} + +// RuleId The unique identifier of the query rule within the specified ruleset to be +// created or updated +// API Name: ruleid +func (r *PutRule) _ruleid(ruleid string) *PutRule { + r.paramSet |= ruleidMask + r.ruleid = ruleid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutRule) ErrorTrace(errortrace bool) *PutRule { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutRule) FilterPath(filterpaths ...string) *PutRule { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutRule) Human(human bool) *PutRule { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutRule) Pretty(pretty bool) *PutRule { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: actions +func (r *PutRule) Actions(actions *types.QueryRuleActions) *PutRule { + + r.req.Actions = *actions + + return r +} + +// API name: criteria +func (r *PutRule) Criteria(criteria ...types.QueryRuleCriteria) *PutRule { + r.req.Criteria = criteria + + return r +} + +// API name: priority +func (r *PutRule) Priority(priority int) *PutRule { + r.req.Priority = &priority + + return r +} + +// API name: type +func (r *PutRule) Type(type_ queryruletype.QueryRuleType) *PutRule { + r.req.Type = type_ + + return r +} 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 new file mode 100644 index 0000000000..126647a1e6 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/request.go @@ -0,0 +1,123 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package putrule + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" +) + +// 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 +type Request struct { + Actions types.QueryRuleActions `json:"actions"` + Criteria []types.QueryRuleCriteria `json:"criteria"` + Priority *int `json:"priority,omitempty"` + Type queryruletype.QueryRuleType `json:"type"` +} + +// 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 Putrule 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 "actions": + if err := dec.Decode(&s.Actions); err != nil { + return fmt.Errorf("%s | %w", "Actions", err) + } + + case "criteria": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := types.NewQueryRuleCriteria() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Criteria", err) + } + + s.Criteria = append(s.Criteria, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Criteria); err != nil { + return fmt.Errorf("%s | %w", "Criteria", err) + } + } + + case "priority": + + 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", "Priority", err) + } + s.Priority = &value + case float64: + f := int(v) + s.Priority = &f + } + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..367c59ac7b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule/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/19027dbdd366978ccae41842a040a636730e7c10 + +package putrule + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..37191da549 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/put_ruleset.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Creates or updates a query ruleset. +package putruleset + +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 PutRuleset 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 +} + +// NewPutRuleset type alias for index. +type NewPutRuleset func(rulesetid string) *PutRuleset + +// NewPutRulesetFunc returns a new instance of PutRuleset with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutRulesetFunc(tp elastictransport.Interface) NewPutRuleset { + return func(rulesetid string) *PutRuleset { + n := New(tp) + + n._rulesetid(rulesetid) + + return n + } +} + +// Creates or updates a query ruleset. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/put-query-ruleset.html +func New(tp elastictransport.Interface) *PutRuleset { + r := &PutRuleset{ + 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 *PutRuleset) Raw(raw io.Reader) *PutRuleset { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutRuleset) Request(req *Request) *PutRuleset { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutRuleset) 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 PutRuleset: %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) + + 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 PutRuleset) 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.put_ruleset") + 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.put_ruleset") + if reader := instrument.RecordRequestBody(ctx, "query_rules.put_ruleset", 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.put_ruleset") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutRuleset 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 putruleset.Response +func (r PutRuleset) 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.put_ruleset") + 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 PutRuleset headers map. +func (r *PutRuleset) Header(key, value string) *PutRuleset { + 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 *PutRuleset) _rulesetid(rulesetid string) *PutRuleset { + 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 *PutRuleset) ErrorTrace(errortrace bool) *PutRuleset { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutRuleset) FilterPath(filterpaths ...string) *PutRuleset { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutRuleset) Human(human bool) *PutRuleset { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutRuleset) Pretty(pretty bool) *PutRuleset { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// API name: rules +func (r *PutRuleset) Rules(rules ...types.QueryRule) *PutRuleset { + r.req.Rules = rules + + return r +} 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 new file mode 100644 index 0000000000..aba3475999 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/request.go @@ -0,0 +1,92 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package putruleset + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Request struct { + Rules []types.QueryRule `json:"rules"` +} + +// 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 Putruleset 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 "rules": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := types.NewQueryRule() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Rules", err) + } + + s.Rules = append(s.Rules, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Rules); err != nil { + return fmt.Errorf("%s | %w", "Rules", err) + } + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..e83a5bedf1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset/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/19027dbdd366978ccae41842a040a636730e7c10 + +package putruleset + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" +) + +// 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 +type Response struct { + Result result.Result `json:"result"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + 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 992fd70d92..f2619084d5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 b88cd3fbd7..255bc3feae 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletejob @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 26fc7508fc..5134224152 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 7acfea9150..46e61d9d5d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getjobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/GetRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d8bb309fa1..920ac80232 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 64f606c1ee..e8c677f0aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getrollupcaps @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrollupcaps // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 72fe32ac43..273718b779 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,10 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns the rollup capabilities of all jobs inside of a rollup index (e.g. -// the index where rollup data is stored). +// Returns the rollup capabilities of all jobs inside of a rollup index (for +// example, the index where rollup data is stored). package getrollupindexcaps import ( @@ -77,8 +77,8 @@ func NewGetRollupIndexCapsFunc(tp elastictransport.Interface) NewGetRollupIndexC } } -// Returns the rollup capabilities of all jobs inside of a rollup index (e.g. -// the index where rollup data is stored). +// Returns the rollup capabilities of all jobs inside of a rollup index (for +// example, the index where rollup data is stored). // // https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-rollup-index-caps.html func New(tp elastictransport.Interface) *GetRollupIndexCaps { 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 a85d020af2..9d702d1f78 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getrollupindexcaps @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrollupindexcaps // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 084e01b995..1cd644b208 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 872137525c..421f0a17b8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/put_job/CreateRollupJobRequest.ts#L27-L89 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 92a87dcff7..7cb5cf1f42 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putjob // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/put_job/CreateRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b55472484d..efcb6753d6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package rollupsearch @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3389a24e56..024357f385 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package rollupsearch @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Hits types.HitsMetadata `json:"hits"` 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 1a67641b37..c4a01db547 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Enables searching rolled-up data using the standard query DSL. +// Enables searching rolled-up data using the standard Query DSL. package rollupsearch import ( @@ -81,7 +81,7 @@ func NewRollupSearchFunc(tp elastictransport.Interface) NewRollupSearch { } } -// Enables searching rolled-up data using the standard query DSL. +// Enables searching rolled-up data using the standard Query DSL. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-search.html func New(tp elastictransport.Interface) *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 d39dc49f9f..9e4e9d8e9d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package startjob // Response holds the response body struct for the package startjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/start_job/StartRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8ab539753d..7f2aa30cce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 f4928f06f1..44c0b0cf0a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stopjob // Response holds the response body struct for the package stopjob // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/stop_job/StopRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4a8e6fcb5d..52be3b83f3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 b4f260c7b5..5b3355b793 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 c1e5f52780..7c15824b23 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package cachestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package cachestats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/cache_stats/Response.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ff6ff97da1..d2ed29b0a2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 684d9ab24c..7f18da07e8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearcache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6eee0a6e01..dcfa740534 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 f6e337942c..ad6da80a73 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mount @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 329a0dece9..4b22f6a9c1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package mount @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 179bb6fbe6..27b5327f06 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b3ee06c2f4..dbdec5fd25 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 169fc8d7c6..5bc965db5a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/delete.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/delete.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes a search application. package 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 f753af9cfa..ab3ac5b4ad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1d7c2de883..88df38bee9 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Delete a behavioral analytics collection. package 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 182212364b..787e8f1b0e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletebehavioralanalytics // Response holds the response body struct for the package deletebehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 259979914b..ad4e498533 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns the details about a search application. +// Returns the details about a search application package get import ( @@ -76,7 +76,7 @@ func NewGetFunc(tp elastictransport.Interface) NewGet { } } -// Returns the details about a search application. +// Returns the details about a search application // // 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 b4076e5ac6..e3e9273372 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 df352c39b7..1dbac51e6d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns the existing behavioral analytics collections. package 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 92f8fcc838..0466be7ae0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getbehavioralanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 815d3a024a..1b40b185b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 9f8c821603..03c2c97c86 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package list @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/list/SearchApplicationsListResponse.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 09cecbff01..bbeea9bc34 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/put.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/put.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Creates or updates a search application. package 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 5eddb05aea..414f0be8bc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package put @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/put/SearchApplicationsPutRequest.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4c451c2df9..3b4fff3f63 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package put @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/put/SearchApplicationsPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2f650e5a65..492c77ce05 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Creates a behavioral analytics collection. package 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 83c5c5a0a9..6d652ff60f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putbehavioralanalytics // Response holds the response body struct for the package putbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L24-L26 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/request.go index f4a213b9c3..5586162121 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package search @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L52 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 e0e446817b..41452b4947 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/search/SearchApplicationsSearchResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/search/SearchApplicationsSearchResponse.ts#L23-L25 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` 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 528af964cf..e24150a591 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Perform a search against a search application +// Perform a search against a search application. package search import ( @@ -81,7 +81,7 @@ func NewSearchFunc(tp elastictransport.Interface) NewSearch { } } -// Perform a search against a search application +// Perform a search against a search application. // // 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 d4075f4dcf..fafc4cea1a 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates the user profile on behalf of another user. +// Creates or updates a user profile on behalf of another user. package activateuserprofile import ( @@ -74,7 +74,7 @@ func NewActivateUserProfileFunc(tp elastictransport.Interface) NewActivateUserPr } } -// Creates or updates the user profile on behalf of another user. +// Creates or updates 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 e91c7bee01..7bab060e80 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package activateuserprofile @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/activate_user_profile/Request.ts#L23-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/activate_user_profile/Request.ts#L23-L37 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 d1a8fdf230..e409b334e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package activateuserprofile @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/activate_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4e5af55ce5..b8eacc6231 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,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Enables authentication as a user and retrieve information about the -// authenticated user. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Enables you to submit a request with a basic auth header to authenticate a +// user and retrieve information about the authenticated user. +// 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 +// the user. +// If the user cannot be authenticated, this API returns a 401 status code. package authenticate import ( @@ -69,8 +74,13 @@ func NewAuthenticateFunc(tp elastictransport.Interface) NewAuthenticate { } } -// Enables authentication as a user and retrieve information about the -// authenticated user. +// Enables you to submit a request with a basic auth header to authenticate a +// user and retrieve information about the authenticated user. +// 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 +// the user. +// 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 func New(tp elastictransport.Interface) *Authenticate { 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 1f2098c392..3e07214622 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package authenticate @@ -26,14 +26,14 @@ import ( // Response holds the response body struct for the package authenticate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/authenticate/SecurityAuthenticateResponse.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/authenticate/SecurityAuthenticateResponse.ts#L25-L43 type Response struct { ApiKey *types.ApiKey `json:"api_key,omitempty"` AuthenticationRealm types.RealmInfo `json:"authentication_realm"` AuthenticationType string `json:"authentication_type"` - Email string `json:"email,omitempty"` + Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` - FullName string `json:"full_name,omitempty"` + FullName *string `json:"full_name,omitempty"` LookupRealm types.RealmInfo `json:"lookup_realm"` Metadata types.Metadata `json:"metadata"` Roles []string `json:"roles"` 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 new file mode 100644 index 0000000000..07a624805b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/bulk_delete_role.go @@ -0,0 +1,362 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// 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. +package bulkdeleterole + +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" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" +) + +// 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 BulkDeleteRole 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 + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewBulkDeleteRole type alias for index. +type NewBulkDeleteRole func() *BulkDeleteRole + +// NewBulkDeleteRoleFunc returns a new instance of BulkDeleteRole with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewBulkDeleteRoleFunc(tp elastictransport.Interface) NewBulkDeleteRole { + return func() *BulkDeleteRole { + n := New(tp) + + return n + } +} + +// 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 +func New(tp elastictransport.Interface) *BulkDeleteRole { + r := &BulkDeleteRole{ + 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 *BulkDeleteRole) Raw(raw io.Reader) *BulkDeleteRole { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *BulkDeleteRole) Request(req *Request) *BulkDeleteRole { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *BulkDeleteRole) 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 BulkDeleteRole: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_security") + path.WriteString("/") + path.WriteString("role") + + 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("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 BulkDeleteRole) 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, "security.bulk_delete_role") + 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, "security.bulk_delete_role") + if reader := instrument.RecordRequestBody(ctx, "security.bulk_delete_role", 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", "security.bulk_delete_role") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the BulkDeleteRole 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 bulkdeleterole.Response +func (r BulkDeleteRole) 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, "security.bulk_delete_role") + 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 BulkDeleteRole headers map. +func (r *BulkDeleteRole) Header(key, value string) *BulkDeleteRole { + r.headers.Set(key, value) + + return r +} + +// Refresh If `true` (the default) then refresh the affected shards to make this +// operation visible to search, if `wait_for` then wait for a refresh to make +// this operation visible to search, if `false` then do nothing with refreshes. +// API name: refresh +func (r *BulkDeleteRole) Refresh(refresh refresh.Refresh) *BulkDeleteRole { + r.values.Set("refresh", refresh.String()) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *BulkDeleteRole) ErrorTrace(errortrace bool) *BulkDeleteRole { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *BulkDeleteRole) FilterPath(filterpaths ...string) *BulkDeleteRole { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *BulkDeleteRole) Human(human bool) *BulkDeleteRole { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *BulkDeleteRole) Pretty(pretty bool) *BulkDeleteRole { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// Names An array of role names to delete +// API name: names +func (r *BulkDeleteRole) Names(names ...string) *BulkDeleteRole { + r.req.Names = names + + return r +} 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 new file mode 100644 index 0000000000..9e66e82ac2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/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/19027dbdd366978ccae41842a040a636730e7c10 + +package bulkdeleterole + +import ( + "encoding/json" + "fmt" +) + +// 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 +type Request struct { + + // Names An array of role names to delete + Names []string `json:"names"` +} + +// 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 Bulkdeleterole request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..511e1ebcd2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole/response.go @@ -0,0 +1,44 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package bulkdeleterole + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Response struct { + + // Deleted Array of deleted roles + Deleted []string `json:"deleted,omitempty"` + // Errors Present if any deletes resulted in errors + Errors *types.BulkError `json:"errors,omitempty"` + // NotFound Array of roles that could not be found + NotFound []string `json:"not_found,omitempty"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..56df2edd58 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/bulk_put_role.go @@ -0,0 +1,363 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// 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 +// roles files. +package bulkputrole + +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" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" +) + +// 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 BulkPutRole 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 + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewBulkPutRole type alias for index. +type NewBulkPutRole func() *BulkPutRole + +// NewBulkPutRoleFunc returns a new instance of BulkPutRole with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewBulkPutRoleFunc(tp elastictransport.Interface) NewBulkPutRole { + return func() *BulkPutRole { + n := New(tp) + + return n + } +} + +// 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 +// roles files. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-put-role.html +func New(tp elastictransport.Interface) *BulkPutRole { + r := &BulkPutRole{ + 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 *BulkPutRole) Raw(raw io.Reader) *BulkPutRole { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *BulkPutRole) Request(req *Request) *BulkPutRole { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *BulkPutRole) 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 BulkPutRole: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_security") + path.WriteString("/") + path.WriteString("role") + + 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 BulkPutRole) 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, "security.bulk_put_role") + 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, "security.bulk_put_role") + if reader := instrument.RecordRequestBody(ctx, "security.bulk_put_role", 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", "security.bulk_put_role") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the BulkPutRole 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 bulkputrole.Response +func (r BulkPutRole) 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, "security.bulk_put_role") + 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 BulkPutRole headers map. +func (r *BulkPutRole) Header(key, value string) *BulkPutRole { + r.headers.Set(key, value) + + return r +} + +// Refresh If `true` (the default) then refresh the affected shards to make this +// operation visible to search, if `wait_for` then wait for a refresh to make +// this operation visible to search, if `false` then do nothing with refreshes. +// API name: refresh +func (r *BulkPutRole) Refresh(refresh refresh.Refresh) *BulkPutRole { + r.values.Set("refresh", refresh.String()) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *BulkPutRole) ErrorTrace(errortrace bool) *BulkPutRole { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *BulkPutRole) FilterPath(filterpaths ...string) *BulkPutRole { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *BulkPutRole) Human(human bool) *BulkPutRole { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *BulkPutRole) Pretty(pretty bool) *BulkPutRole { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// Roles A dictionary of role name to RoleDescriptor objects to add or update +// API name: roles +func (r *BulkPutRole) Roles(roles map[string]types.RoleDescriptor) *BulkPutRole { + + r.req.Roles = roles + + return r +} 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 new file mode 100644 index 0000000000..0e5c96e417 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/request.go @@ -0,0 +1,58 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package bulkputrole + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Request struct { + + // Roles A dictionary of role name to RoleDescriptor objects to add or update + Roles map[string]types.RoleDescriptor `json:"roles"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{ + Roles: make(map[string]types.RoleDescriptor, 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 Bulkputrole request: %w", err) + } + + return &req, nil +} 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 new file mode 100644 index 0000000000..2af9ce7553 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole/response.go @@ -0,0 +1,46 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package bulkputrole + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Response struct { + + // Created Array of created roles + Created []string `json:"created,omitempty"` + // Errors Present if any updates resulted in errors + Errors *types.BulkError `json:"errors,omitempty"` + // Noop Array of role names without any changes + Noop []string `json:"noop,omitempty"` + // Updated Array of updated roles + Updated []string `json:"updated,omitempty"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 c2372b16e7..a8dd1c65ed 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 c4819ce0df..7668d7f69f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/change_password.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/change_password.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Changes the passwords of users in the native realm and built-in users. package 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 abf3f12d99..7c08da1640 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package changepassword @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L51 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 adf1a93c47..c78fa4abb4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package changepassword // Response holds the response body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/change_password/SecurityChangePasswordResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b423367f86..04e880998e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Clear a subset or all entries from the API key cache. +// Evicts 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 import ( @@ -76,7 +78,9 @@ func NewClearApiKeyCacheFunc(tp elastictransport.Interface) NewClearApiKeyCache } } -// Clear a subset or all entries from the API key cache. +// Evicts 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 func New(tp elastictransport.Interface) *ClearApiKeyCache { 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 40fef1e034..35dc14cb61 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearapikeycache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearapikeycache // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 71620411dc..74d4246c95 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/clear_cached_privileges.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/clear_cached_privileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Evicts application privileges from the native application privileges cache. package 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 316ccc2d67..4f6beb04b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearcachedprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4a3fe1efe8..c7c1d339f6 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/clear_cached_realms.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/clear_cached_realms.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Evicts users from the user cache. Can completely clear the cache or evict // specific users. 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 b7c248886f..7d42e2b267 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearcachedrealms @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedrealms // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 536ba23c08..5bfc66897c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/clear_cached_roles.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/clear_cached_roles.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Evicts roles from the native role cache. package 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 53f9746ada..a92f2d72da 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearcachedroles @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedroles // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 83178adeed..51e81c5339 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Evicts tokens from the service account token caches. package 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 4a3dde0472..1f68381b45 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearcachedservicetokens @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedservicetokens // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5db8b314c5..6a7d2bc935 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,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Creates 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 +// milliseconds. +// NOTE: By default, API keys never expire. You can specify expiration +// information when you create the API keys. package createapikey import ( @@ -75,6 +81,12 @@ func NewCreateApiKeyFunc(tp elastictransport.Interface) NewCreateApiKey { } // Creates 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 +// milliseconds. +// NOTE: By default, API keys never expire. You can specify expiration +// information when you create the API keys. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html func New(tp elastictransport.Interface) *CreateApiKey { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/request.go index ee9ea9a0b1..4e6b7fc05f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package createapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L58 type Request struct { // Expiration Expiration time for the API key. By default, API keys never expire. 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 4f02e27930..03cf63ce8f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package createapikey // Response holds the response body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bd72c63196..f93356927e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 0dd330fa89..2cacde0065 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates a service account token for access without requiring basic +// Creates a service accounts token for access without requiring basic // authentication. package createservicetoken @@ -86,7 +86,7 @@ func NewCreateServiceTokenFunc(tp elastictransport.Interface) NewCreateServiceTo } } -// Creates a service account token for access without requiring basic +// Creates 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 b01ab83c58..a666c84fd8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package createservicetoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package createservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/create_service_token/CreateServiceTokenResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a6498002de..5a43843ee5 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/delete_privileges.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/delete_privileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Removes application privileges. package 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 936634a8dd..0040805044 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deleteprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ef7f682b8f..69182378d7 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/delete_role.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/delete_role.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Removes roles in the native realm. package 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 f7689a78c9..de3bbb0c75 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleterole // Response holds the response body struct for the package deleterole // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_role/SecurityDeleteRoleResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 896b05b5bf..e363b5571c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/delete_role_mapping.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/delete_role_mapping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Removes role mappings. package 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 d6c28b9cbf..c785c0c53e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleterolemapping // Response holds the response body struct for the package deleterolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e2f4ec75fc..76c0a3ec36 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/delete_service_token.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/delete_service_token.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes a service account token. package 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 e24b1cbac5..bc0f539eea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteservicetoken // Response holds the response body struct for the package deleteservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 70a7848552..dd82fc73d6 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/delete_user.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/delete_user.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Deletes users from the native realm. package 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 1296e10002..664e5da07d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteuser // Response holds the response body struct for the package deleteuser // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_user/SecurityDeleteUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1782b0eac3..965e94d6fc 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/disable_user.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/disable_user.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Disables users in the native realm. package 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 195cd5676f..73ab246654 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package disableuser // Response holds the response body struct for the package disableuser // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/disable_user/SecurityDisableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5f268839ea..9273568fca 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/disable_user_profile.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/disable_user_profile.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Disables a user profile so it's not visible in user profile searches. package 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 3a18728463..1b599fcdbb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package disableuserprofile // Response holds the response body struct for the package disableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/disable_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e851a0272f..aaf5c1bc2f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/enable_user.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/enable_user.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Enables users in the native realm. package 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 f1c5bad745..d3dcb644de 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package enableuser // Response holds the response body struct for the package enableuser // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enable_user/SecurityEnableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 43f234e3c4..52b78c49a4 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/enable_user_profile.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/enable_user_profile.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Enables a user profile so it's visible in user profile searches. package 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 33d2977f06..da0aecbf7a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package enableuserprofile // Response holds the response body struct for the package enableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enable_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8b2c4581f7..8e9fc83bf3 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,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows a kibana instance to configure itself to communicate with a secured -// elasticsearch cluster. +// Enables a Kibana instance to configure itself for communication with a +// secured Elasticsearch cluster. package enrollkibana import ( @@ -69,8 +69,8 @@ func NewEnrollKibanaFunc(tp elastictransport.Interface) NewEnrollKibana { } } -// Allows a kibana instance to configure itself to communicate with a secured -// elasticsearch cluster. +// Enables 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 2e041c0390..e318c45d5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package enrollkibana @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package enrollkibana // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enroll_kibana/Response.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ed7c0f0f73..cb14ef28cf 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Allows a new node to enroll to an existing cluster with security enabled. +// Allows a new node to join an existing cluster with security features enabled. package enrollnode import ( @@ -68,7 +68,7 @@ func NewEnrollNodeFunc(tp elastictransport.Interface) NewEnrollNode { } } -// Allows a new node to enroll to an existing cluster with security enabled. +// Allows a new node 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 ef4c34d3a0..85092ce5a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package enrollnode // Response holds the response body struct for the package enrollnode // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enroll_node/Response.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 81236010af..8023c2bd06 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,9 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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. +// If you have `read_security`, `manage_api_key` or greater privileges +// (including `manage_security`), this API returns all API keys regardless of +// ownership. package getapikey import ( @@ -69,6 +74,11 @@ func NewGetApiKeyFunc(tp elastictransport.Interface) NewGetApiKey { } // 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. +// If you have `read_security`, `manage_api_key` or greater privileges +// (including `manage_security`), this API returns all API keys regardless of +// ownership. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html func New(tp elastictransport.Interface) *GetApiKey { 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 2efdaac295..00468993fd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getapikey @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 72d86d66e0..c917e3c9cb 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves the list of cluster privileges and index privileges that are // available in this version of Elasticsearch. 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 48d9f833ef..b66f7ffa6c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getbuiltinprivileges @@ -30,7 +30,7 @@ import ( // Response holds the response body struct for the package getbuiltinprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f55bdad401..645c555f6e 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/get_privileges.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/get_privileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves application privileges. package 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 7c2e580760..6b2be88a2a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 75eb64cf7c..0de07e4a5a 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,9 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves 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. package getrole import ( @@ -74,7 +76,9 @@ func NewGetRoleFunc(tp elastictransport.Interface) NewGetRole { } } -// Retrieves 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 func New(tp elastictransport.Interface) *GetRole { 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 292c648bf1..4656e63a51 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrole // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_role/SecurityGetRoleResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e6900fe5db..f1b1f4e884 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/get_role_mapping.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/get_role_mapping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves role mappings. package 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 bc613898a5..61667cbf1d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getrolemapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4e812976dd..64d9e9130f 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves information about service accounts. +// This API returns a list of service accounts that match the provided path +// parameter(s). package getserviceaccounts import ( @@ -77,7 +78,8 @@ func NewGetServiceAccountsFunc(tp elastictransport.Interface) NewGetServiceAccou } } -// Retrieves information about service accounts. +// This API returns a list of service accounts that match the provided path +// parameter(s). // // 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 c63602df71..6932a74242 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getserviceaccounts @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getserviceaccounts // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 aff95bcc39..137970531b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/get_service_credentials.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/get_service_credentials.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves information of all service credentials for a service account. package 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 017330329f..1c9908b601 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getservicecredentials @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getservicecredentials // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 abbe3188f8..a5412a2cc6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 2a712dd7cd..af28669596 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/get_token.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/get_token.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Creates a bearer token for access without requiring basic authentication. package 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 eaccf5f4e3..8c080b8a3d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package gettoken @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L39 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 e34fc99008..c92885e1af 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package gettoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/GetUserAccessTokenResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7c50466303..1078f2114a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/get_user.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/get_user.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves information about users in the native realm and built-in users. package 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 b2c8408ced..5ff6d477ad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getuser @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuser // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_user/SecurityGetUserResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 caccc0c672..9897a34cf2 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/get_user_privileges.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/get_user_privileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves security privileges for the logged in user. package 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 287a94b910..58bec5d2bd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getuserprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuserprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L27-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L27-L35 type Response struct { Applications []types.ApplicationPrivileges `json:"applications"` Cluster []string `json:"cluster"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/get_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/get_user_profile.go index e2d8275ca2..8150a68e0e 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,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves user profiles for the given unique ID(s). +// Retrieves a user's profile using the unique profile ID. package getuserprofile import ( @@ -76,7 +76,7 @@ func NewGetUserProfileFunc(tp elastictransport.Interface) NewGetUserProfile { } } -// Retrieves user profiles for the given unique ID(s). +// Retrieves 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 462139699b..008cf57646 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getuserprofile @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_user_profile/Response.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 eda815c168..c7596da1d6 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,9 +16,31 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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. +// 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. +// It is not possible to use this API to create an API key without that user’s +// credentials. +// The user, for whom the authentication credentials is provided, can optionally +// "run as" (impersonate) another user. +// In this case, the API key will be created on behalf of the impersonated user. +// +// This API is intended be used by applications that need to create and manage +// API keys for end users, but cannot guarantee that those users have permission +// to create API keys on their own behalf. +// +// A successful grant API key API call 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 +// milliseconds. +// +// By default, API keys never expire. You can specify expiration information +// when you create the API keys. package grantapikey import ( @@ -75,6 +97,28 @@ 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. +// 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. +// It is not possible to use this API to create an API key without that user’s +// credentials. +// The user, for whom the authentication credentials is provided, can optionally +// "run as" (impersonate) another user. +// In this case, the API key will be created on behalf of the impersonated user. +// +// This API is intended be used by applications that need to create and manage +// API keys for end users, but cannot guarantee that those users have permission +// to create API keys on their own behalf. +// +// A successful grant API key API call 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 +// milliseconds. +// +// By default, API keys never expire. You can specify expiration information +// when you create the API keys. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html func New(tp elastictransport.Interface) *GrantApiKey { 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 207b0eeeaf..38d3d64de5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package grantapikey @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L75 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 01f85bfb56..c7419ba05f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package grantapikey // Response holds the response body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e5fceff9b2..275e3d60b8 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/has_privileges.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/has_privileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Determines whether the specified user has a specified list of privileges. package 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 00c3c001d4..648a27640a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package hasprivileges @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L42 type Request struct { Application []types.ApplicationPrivilegesCheck `json:"application,omitempty"` // Cluster A list of the cluster privileges that you want to check. 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 e99628ef1b..b0adbc430c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package hasprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d4f7d557ef..9acc4192a3 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Determines whether the users associated with the specified profile IDs have // all the requested privileges. 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 8c76d0406a..a2b5c89d88 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package hasprivilegesuserprofile @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges_user_profile/Request.ts#L24-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges_user_profile/Request.ts#L24-L38 type Request struct { Privileges types.PrivilegesCheck `json:"privileges"` // Uids A list of profile IDs. The privileges are checked for associated users of the 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 79a6301169..d8738fdd18 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package hasprivilegesuserprofile @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges_user_profile/Response.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7a4cfd6793..cd0bc7cfd7 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,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Invalidates one or more API keys. +// 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. +// In addition, with the `manage_own_api_key` privilege, an invalidation request +// 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. package invalidateapikey import ( @@ -74,6 +83,15 @@ func NewInvalidateApiKeyFunc(tp elastictransport.Interface) NewInvalidateApiKey } // Invalidates one or more API keys. +// 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. +// In addition, with the `manage_own_api_key` privilege, an invalidation request +// 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. // // 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 3aade59771..e9fb0fd080 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package invalidateapikey @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L66 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 4273c62de8..f338955163 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package invalidateapikey @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8d88175223..b65ccc1dc6 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/invalidate_token.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/invalidate_token.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Invalidates one or more access tokens or refresh tokens. package 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 392ddbae1d..3e3c8c6d84 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package invalidatetoken @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L35 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 d143afe0ed..00f43c9410 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package invalidatetoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5a28e8fafd..5baf9e6d07 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 2cd20ceeb6..2164a05fad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 f0139f51b6..614d56928a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 2a666eb268..7b3c21c260 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/put_privileges.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/put_privileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Adds or updates application privileges. package 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 3e3a9a68df..ad6e281688 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putprivileges @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L37 type Request = map[string]map[string]types.PrivilegesActions // NewRequest returns a Request diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/response.go index 36ec3ae500..02f358a24c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5e87a0ac19..715471a877 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Adds and updates 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 create or update roles API cannot update roles that are defined in roles +// files. package putrole import ( @@ -83,7 +86,10 @@ func NewPutRoleFunc(tp elastictransport.Interface) NewPutRole { } } -// Adds and updates 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 create or update roles API cannot update roles that are defined in roles +// files. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html func New(tp elastictransport.Interface) *PutRole { @@ -388,6 +394,15 @@ func (r *PutRole) Cluster(clusters ...clusterprivilege.ClusterPrivilege) *PutRol return r } +// Description Optional description of the role descriptor +// API name: description +func (r *PutRole) Description(description string) *PutRole { + + r.req.Description = &description + + return r +} + // Global An object defining global privileges. A global privilege is a form of cluster // privilege that is request-aware. Support for global privileges is currently // limited to the management of application privileges. @@ -416,7 +431,9 @@ func (r *PutRole) Metadata(metadata types.Metadata) *PutRole { return r } -// RunAs A list of users that the owners of this role can impersonate. +// 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. // API name: run_as func (r *PutRole) RunAs(runas ...string) *PutRole { r.req.RunAs = runas 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 fd9e512984..4008c40143 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putrole @@ -26,6 +26,7 @@ import ( "errors" "fmt" "io" + "strconv" "github.com/elastic/go-elasticsearch/v8/typedapi/types" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" @@ -33,7 +34,7 @@ import ( // Request holds the request body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_role/SecurityPutRoleRequest.ts#L30-L79 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_role/SecurityPutRoleRequest.ts#L30-L84 type Request struct { // Applications A list of application privilege entries. @@ -41,6 +42,8 @@ type Request struct { // Cluster A list of cluster privileges. These privileges define the cluster-level // actions for users with this role. Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"` + // Description Optional description of the role descriptor + Description *string `json:"description,omitempty"` // Global An object defining global privileges. A global privilege is a form of cluster // privilege that is request-aware. Support for global privileges is currently // limited to the management of application privileges. @@ -50,7 +53,9 @@ 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"` - // RunAs A list of users that the owners of this role can impersonate. + // 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. RunAs []string `json:"run_as,omitempty"` // TransientMetadata Indicates roles that might be incompatible with the current cluster license, // specifically roles with document and field level security. When the cluster @@ -107,6 +112,18 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Cluster", 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 "global": if s.Global == nil { s.Global = make(map[string]json.RawMessage, 0) 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 e07cdf0b81..4903571a98 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_role/SecurityPutRoleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0751af4f73..94130ad689 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/put_role_mapping.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/put_role_mapping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Creates and updates role mappings. package 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 3e958c8faf..2608f9cef4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putrolemapping @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L47 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 6c28f76484..43b37e6b25 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putrolemapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e54c606169..1dbf56abd9 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/put_user.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/put_user.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Adds and updates users in the native realm. These users are commonly referred // to as native users. @@ -374,7 +374,7 @@ func (r *PutUser) Pretty(pretty bool) *PutUser { // API name: email func (r *PutUser) Email(email string) *PutUser { - r.req.Email = email + r.req.Email = &email return r } @@ -388,7 +388,7 @@ func (r *PutUser) Enabled(enabled bool) *PutUser { // API name: full_name func (r *PutUser) FullName(fullname string) *PutUser { - r.req.FullName = fullname + r.req.FullName = &fullname return r } 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 1cc4f6b08f..37b1c3b984 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putuser @@ -33,11 +33,11 @@ import ( // Request holds the request body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_user/SecurityPutUserRequest.ts#L23-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/put_user/SecurityPutUserRequest.ts#L23-L44 type Request struct { - Email string `json:"email,omitempty"` + Email *string `json:"email,omitempty"` Enabled *bool `json:"enabled,omitempty"` - FullName string `json:"full_name,omitempty"` + FullName *string `json:"full_name,omitempty"` Metadata types.Metadata `json:"metadata,omitempty"` Password *string `json:"password,omitempty"` PasswordHash *string `json:"password_hash,omitempty"` @@ -88,7 +88,7 @@ func (s *Request) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Email = o + s.Email = &o case "enabled": var tmp any @@ -114,7 +114,7 @@ func (s *Request) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.FullName = o + s.FullName = &o case "metadata": if err := dec.Decode(&s.Metadata); err != nil { 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 bb1c75a1fd..d32db134b8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putuser // Response holds the response body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_user/SecurityPutUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0680385626..37e22bcc66 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,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves information for API keys using a subset of query DSL +// Retrieves information for API keys in a paginated manner. You can optionally +// filter the results with a query. package queryapikeys import ( @@ -73,7 +74,8 @@ func NewQueryApiKeysFunc(tp elastictransport.Interface) NewQueryApiKeys { } } -// Retrieves information for API keys using a subset of query DSL +// Retrieves information for API keys 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-api-key.html func New(tp elastictransport.Interface) *QueryApiKeys { 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 ca274abd85..afbbe276f7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package queryapikeys @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L99 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 351150c5c8..ebb2e135ae 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package queryapikeys @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..d35b20ab8c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/query_role.go @@ -0,0 +1,398 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Retrieves roles in a paginated manner. You can optionally filter the results +// with a query. +package queryrole + +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" +) + +// 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 QueryRole 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 + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewQueryRole type alias for index. +type NewQueryRole func() *QueryRole + +// NewQueryRoleFunc returns a new instance of QueryRole with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewQueryRoleFunc(tp elastictransport.Interface) NewQueryRole { + return func() *QueryRole { + n := New(tp) + + return n + } +} + +// Retrieves 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 { + r := &QueryRole{ + 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 *QueryRole) Raw(raw io.Reader) *QueryRole { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *QueryRole) Request(req *Request) *QueryRole { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *QueryRole) 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 QueryRole: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_security") + path.WriteString("/") + path.WriteString("_query") + path.WriteString("/") + path.WriteString("role") + + 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 QueryRole) 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, "security.query_role") + 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, "security.query_role") + if reader := instrument.RecordRequestBody(ctx, "security.query_role", 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", "security.query_role") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the QueryRole 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 queryrole.Response +func (r QueryRole) 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, "security.query_role") + 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 QueryRole headers map. +func (r *QueryRole) Header(key, value string) *QueryRole { + r.headers.Set(key, value) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *QueryRole) ErrorTrace(errortrace bool) *QueryRole { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *QueryRole) FilterPath(filterpaths ...string) *QueryRole { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *QueryRole) Human(human bool) *QueryRole { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *QueryRole) Pretty(pretty bool) *QueryRole { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// From Starting document offset. +// By default, you cannot page through more than 10,000 hits using the from and +// size parameters. +// To page through more hits, use the `search_after` parameter. +// API name: from +func (r *QueryRole) From(from int) *QueryRole { + r.req.From = &from + + return r +} + +// Query A query to filter which roles to return. +// If the query parameter is missing, it is equivalent to a `match_all` query. +// The query supports a subset of query types, including `match_all`, `bool`, +// `term`, `terms`, `match`, +// `ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`. +// You can query the following information associated with roles: `name`, +// `description`, `metadata`, +// `applications.application`, `applications.privileges`, +// `applications.resources`. +// API name: query +func (r *QueryRole) Query(query *types.RoleQueryContainer) *QueryRole { + + r.req.Query = query + + return r +} + +// SearchAfter Search after definition +// API name: search_after +func (r *QueryRole) SearchAfter(sortresults ...types.FieldValue) *QueryRole { + r.req.SearchAfter = sortresults + + return r +} + +// Size The number of hits to return. +// By default, you cannot page through more than 10,000 hits using the `from` +// and `size` parameters. +// To page through more hits, use the `search_after` parameter. +// API name: size +func (r *QueryRole) Size(size int) *QueryRole { + r.req.Size = &size + + return r +} + +// Sort All public fields of a role are eligible for sorting. +// In addition, sort can also be applied to the `_doc` field to sort by index +// order. +// API name: sort +func (r *QueryRole) Sort(sorts ...types.SortCombinations) *QueryRole { + r.req.Sort = sorts + + return r +} 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 new file mode 100644 index 0000000000..e257e4c842 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/request.go @@ -0,0 +1,161 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package queryrole + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// Request holds the request body struct for the package queryrole +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_role/QueryRolesRequest.ts#L25-L67 +type Request struct { + + // From Starting document offset. + // By default, you cannot page through more than 10,000 hits using the from and + // size parameters. + // To page through more hits, use the `search_after` parameter. + From *int `json:"from,omitempty"` + // Query A query to filter which roles to return. + // If the query parameter is missing, it is equivalent to a `match_all` query. + // The query supports a subset of query types, including `match_all`, `bool`, + // `term`, `terms`, `match`, + // `ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`. + // You can query the following information associated with roles: `name`, + // `description`, `metadata`, + // `applications.application`, `applications.privileges`, + // `applications.resources`. + Query *types.RoleQueryContainer `json:"query,omitempty"` + // SearchAfter Search after definition + SearchAfter []types.FieldValue `json:"search_after,omitempty"` + // Size The number of hits to return. + // By default, you cannot page through more than 10,000 hits using the `from` + // and `size` parameters. + // To page through more hits, use the `search_after` parameter. + Size *int `json:"size,omitempty"` + // Sort All public fields of a role are eligible for sorting. + // In addition, sort can also be applied to the `_doc` field to sort by index + // order. + Sort []types.SortCombinations `json:"sort,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 Queryrole 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 "from": + + 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", "From", err) + } + s.From = &value + case float64: + f := int(v) + s.From = &f + } + + case "query": + if err := dec.Decode(&s.Query); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + + case "search_after": + if err := dec.Decode(&s.SearchAfter); err != nil { + return fmt.Errorf("%s | %w", "SearchAfter", err) + } + + case "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 + } + + case "sort": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(types.SortCombinations) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Sort", err) + } + + s.Sort = append(s.Sort, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Sort); err != nil { + return fmt.Errorf("%s | %w", "Sort", err) + } + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..beb398be32 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole/response.go @@ -0,0 +1,44 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package queryrole + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Response struct { + + // Count The number of roles returned in the response. + Count int `json:"count"` + // Roles The list of roles. + Roles []types.QueryRole `json:"roles"` + // Total The total number of roles found. + Total int `json:"total"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 new file mode 100644 index 0000000000..81b39cff94 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/query_user.go @@ -0,0 +1,405 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Retrieves information for Users in a paginated manner. You can optionally +// filter the results with a query. +package queryuser + +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" +) + +// 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 QueryUser 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 + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewQueryUser type alias for index. +type NewQueryUser func() *QueryUser + +// NewQueryUserFunc returns a new instance of QueryUser with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewQueryUserFunc(tp elastictransport.Interface) NewQueryUser { + return func() *QueryUser { + n := New(tp) + + return n + } +} + +// Retrieves 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 { + r := &QueryUser{ + 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 *QueryUser) Raw(raw io.Reader) *QueryUser { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *QueryUser) Request(req *Request) *QueryUser { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *QueryUser) 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 QueryUser: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == 0: + path.WriteString("/") + path.WriteString("_security") + path.WriteString("/") + path.WriteString("_query") + path.WriteString("/") + path.WriteString("user") + + 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 QueryUser) 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, "security.query_user") + 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, "security.query_user") + if reader := instrument.RecordRequestBody(ctx, "security.query_user", 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", "security.query_user") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the QueryUser 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 queryuser.Response +func (r QueryUser) 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, "security.query_user") + 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 QueryUser headers map. +func (r *QueryUser) Header(key, value string) *QueryUser { + r.headers.Set(key, value) + + return r +} + +// WithProfileUid If true will return the User Profile ID for the users in the query result, if +// any. +// API name: with_profile_uid +func (r *QueryUser) WithProfileUid(withprofileuid bool) *QueryUser { + r.values.Set("with_profile_uid", strconv.FormatBool(withprofileuid)) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *QueryUser) ErrorTrace(errortrace bool) *QueryUser { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *QueryUser) FilterPath(filterpaths ...string) *QueryUser { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *QueryUser) Human(human bool) *QueryUser { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *QueryUser) Pretty(pretty bool) *QueryUser { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// From Starting document offset. +// By default, you cannot page through more than 10,000 hits using the from and +// size parameters. +// To page through more hits, use the `search_after` parameter. +// API name: from +func (r *QueryUser) From(from int) *QueryUser { + r.req.From = &from + + return r +} + +// Query A query to filter which users to return. +// If the query parameter is missing, it is equivalent to a `match_all` query. +// The query supports a subset of query types, including `match_all`, `bool`, +// `term`, `terms`, `match`, +// `ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`. +// You can query the following information associated with user: `username`, +// `roles`, `enabled` +// API name: query +func (r *QueryUser) Query(query *types.UserQueryContainer) *QueryUser { + + r.req.Query = query + + return r +} + +// SearchAfter Search after definition +// API name: search_after +func (r *QueryUser) SearchAfter(sortresults ...types.FieldValue) *QueryUser { + r.req.SearchAfter = sortresults + + return r +} + +// Size The number of hits to return. +// By default, you cannot page through more than 10,000 hits using the `from` +// and `size` parameters. +// To page through more hits, use the `search_after` parameter. +// API name: size +func (r *QueryUser) Size(size int) *QueryUser { + r.req.Size = &size + + return r +} + +// Sort Fields eligible for sorting are: username, roles, enabled +// In addition, sort can also be applied to the `_doc` field to sort by index +// order. +// API name: sort +func (r *QueryUser) Sort(sorts ...types.SortCombinations) *QueryUser { + r.req.Sort = sorts + + return r +} 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 new file mode 100644 index 0000000000..1ba09e1a96 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/request.go @@ -0,0 +1,159 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package queryuser + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// Request holds the request body struct for the package queryuser +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_user/SecurityQueryUserRequest.ts#L25-L72 +type Request struct { + + // From Starting document offset. + // By default, you cannot page through more than 10,000 hits using the from and + // size parameters. + // To page through more hits, use the `search_after` parameter. + From *int `json:"from,omitempty"` + // Query A query to filter which users to return. + // If the query parameter is missing, it is equivalent to a `match_all` query. + // The query supports a subset of query types, including `match_all`, `bool`, + // `term`, `terms`, `match`, + // `ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`. + // You can query the following information associated with user: `username`, + // `roles`, `enabled` + Query *types.UserQueryContainer `json:"query,omitempty"` + // SearchAfter Search after definition + SearchAfter []types.FieldValue `json:"search_after,omitempty"` + // Size The number of hits to return. + // By default, you cannot page through more than 10,000 hits using the `from` + // and `size` parameters. + // To page through more hits, use the `search_after` parameter. + Size *int `json:"size,omitempty"` + // Sort Fields eligible for sorting are: username, roles, enabled + // In addition, sort can also be applied to the `_doc` field to sort by index + // order. + Sort []types.SortCombinations `json:"sort,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 Queryuser 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 "from": + + 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", "From", err) + } + s.From = &value + case float64: + f := int(v) + s.From = &f + } + + case "query": + if err := dec.Decode(&s.Query); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + + case "search_after": + if err := dec.Decode(&s.SearchAfter); err != nil { + return fmt.Errorf("%s | %w", "SearchAfter", err) + } + + case "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 + } + + case "sort": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(types.SortCombinations) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Sort", err) + } + + s.Sort = append(s.Sort, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Sort); err != nil { + return fmt.Errorf("%s | %w", "Sort", err) + } + } + + } + } + return nil +} 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 new file mode 100644 index 0000000000..f5539f0adb --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser/response.go @@ -0,0 +1,44 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package queryuser + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// 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 +type Response struct { + + // Count The number of users returned in the response. + Count int `json:"count"` + // Total The total number of users found. + Total int `json:"total"` + // Users A list of user information. + Users []types.QueryUser `json:"users"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} 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 a91661694e..2197426676 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samlauthenticate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_authenticate/Request.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_authenticate/Request.ts#L23-L38 type Request struct { // Content The SAML response as it was sent by the user’s browser, usually a Base64 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 dbb34095fb..eabda00db5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samlauthenticate // Response holds the response body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_authenticate/Response.ts#L22-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7f7042ec98..e85a6c59d4 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Exchanges a SAML Response message for an Elasticsearch access token and -// refresh token pair +// Submits a SAML Response message to Elasticsearch for consumption. package samlauthenticate import ( @@ -74,8 +73,7 @@ func NewSamlAuthenticateFunc(tp elastictransport.Interface) NewSamlAuthenticate } } -// Exchanges a SAML Response message for an Elasticsearch access token and -// refresh token pair +// 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 e678fb8121..21e5d9b797 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samlcompletelogout @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlcompletelogout // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_complete_logout/Request.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_complete_logout/Request.ts#L23-L40 type Request struct { // Content If the SAML IdP sends the logout response with the HTTP-Post binding, this 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 1ae0477d6b..c07ccb4673 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Verifies the logout response sent from the SAML IdP +// Verifies the logout response sent from the SAML IdP. package samlcompletelogout import ( @@ -72,7 +72,7 @@ func NewSamlCompleteLogoutFunc(tp elastictransport.Interface) NewSamlCompleteLog } } -// Verifies the logout response sent from the SAML IdP +// Verifies the logout response sent from the SAML IdP. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-complete-logout.html func New(tp elastictransport.Interface) *SamlCompleteLogout { 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 e04b81891f..ec9f00c75e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samlinvalidate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_invalidate/Request.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_invalidate/Request.ts#L22-L43 type Request struct { // Acs The Assertion Consumer Service URL that matches the one of the SAML realm in 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 5220e3cba9..1ab3020c75 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samlinvalidate // Response holds the response body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_invalidate/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dbfa39d719..2abd559acd 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Consumes a SAML LogoutRequest +// Submits a SAML LogoutRequest message to Elasticsearch for consumption. package samlinvalidate import ( @@ -73,7 +73,7 @@ func NewSamlInvalidateFunc(tp elastictransport.Interface) NewSamlInvalidate { } } -// Consumes a SAML LogoutRequest +// Submits a SAML LogoutRequest message to Elasticsearch for consumption. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-invalidate.html func New(tp elastictransport.Interface) *SamlInvalidate { 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 9cff748ffe..cb10f778fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samllogout @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_logout/Request.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_logout/Request.ts#L22-L41 type Request struct { // RefreshToken The refresh token that was returned as a response to calling the SAML 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 3f12051b33..4a4aea83f1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samllogout // Response holds the response body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_logout/Response.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9ec23aa7f0..eb1e9ffdc7 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,10 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Invalidates an access token and a refresh token that were generated via the -// SAML Authenticate API +// Submits a request to invalidate an access token and refresh token. package samllogout import ( @@ -74,8 +73,7 @@ func NewSamlLogoutFunc(tp elastictransport.Interface) NewSamlLogout { } } -// Invalidates an access token and a refresh token that were generated via the -// SAML Authenticate API +// 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 func New(tp elastictransport.Interface) *SamlLogout { 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 8deec7a2b8..95b3f20444 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samlprepareauthentication @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_prepare_authentication/Request.ts#L22-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/saml_prepare_authentication/Request.ts#L22-L46 type Request struct { // Acs The Assertion Consumer Service URL that matches the one of the SAML realms in 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 8c3e2761dd..a91dba98d1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samlprepareauthentication // Response holds the response body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_prepare_authentication/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dd52ee3e42..0ed61a6cf7 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates a SAML authentication request +// Creates a SAML authentication request () as a URL string, based +// on the configuration of the respective SAML realm in Elasticsearch. package samlprepareauthentication import ( @@ -73,7 +74,8 @@ func NewSamlPrepareAuthenticationFunc(tp elastictransport.Interface) NewSamlPrep } } -// Creates a SAML authentication request +// 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 25d6b1c46a..4b091b2af0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package samlserviceprovidermetadata // Response holds the response body struct for the package samlserviceprovidermetadata // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_service_provider_metadata/Response.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 707f1eaf40..91b15e62c1 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider +// Generate SAML metadata for a SAML 2.0 Service Provider. package samlserviceprovidermetadata import ( @@ -76,7 +76,7 @@ func NewSamlServiceProviderMetadataFunc(tp elastictransport.Interface) NewSamlSe } } -// Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider +// 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 func New(tp elastictransport.Interface) *SamlServiceProviderMetadata { 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 36b14f73fd..754699f5b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package suggestuserprofiles @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/suggest_user_profiles/Request.ts#L24-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/suggest_user_profiles/Request.ts#L24-L66 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 439f223507..df9e9bf307 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package suggestuserprofiles @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/suggest_user_profiles/Response.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 851438eb36..2dc0a4e858 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/suggest_user_profiles.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/suggest_user_profiles.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Get suggestions for user profiles that match specified search criteria. package suggestuserprofiles 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 c58fbe545f..6ff9acefab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updateapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/update_api_key/Request.ts#L26-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/update_api_key/Request.ts#L26-L65 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 162e19f39b..a259710678 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updateapikey // Response holds the response body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/update_api_key/Response.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 753d35930a..d8c18b413d 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,9 +16,32 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Updates attributes of an existing API key. +// Users can only update API keys that they created or that were granted to +// them. +// Use this API to update API keys created by the create API Key or grant API +// Key APIs. +// If you need to apply the same update to many API keys, you can use bulk +// update API Keys to reduce overhead. +// It’s not possible to update expired API keys, or API keys that have been +// invalidated by invalidate API Key. +// This API supports updates to an API key’s access scope and metadata. +// The access scope of an API key is derived from the `role_descriptors` you +// specify in the request, and a snapshot of the owner user’s permissions at the +// time of the request. +// The snapshot of the owner’s permissions is updated automatically on every +// call. +// If you don’t specify `role_descriptors` in the request, a call to this API +// might still change the API key’s access scope. +// This change can occur if the owner user’s permissions have changed since the +// API key was created or last modified. +// To update another user’s API key, use the `run_as` feature to submit a +// request on behalf of another user. +// IMPORTANT: It’s not possible to use an API key as the authentication +// credential for this API. +// To update an API key, the owner user’s credentials are required. package updateapikey import ( @@ -82,6 +105,29 @@ func NewUpdateApiKeyFunc(tp elastictransport.Interface) NewUpdateApiKey { } // Updates attributes of an existing API key. +// Users can only update API keys that they created or that were granted to +// them. +// Use this API to update API keys created by the create API Key or grant API +// Key APIs. +// If you need to apply the same update to many API keys, you can use bulk +// update API Keys to reduce overhead. +// It’s not possible to update expired API keys, or API keys that have been +// invalidated by invalidate API Key. +// This API supports updates to an API key’s access scope and metadata. +// The access scope of an API key is derived from the `role_descriptors` you +// specify in the request, and a snapshot of the owner user’s permissions at the +// time of the request. +// The snapshot of the owner’s permissions is updated automatically on every +// call. +// If you don’t specify `role_descriptors` in the request, a call to this API +// might still change the API key’s access scope. +// This change can occur if the owner user’s permissions have changed since the +// API key was created or last modified. +// To update another user’s API key, use the `run_as` feature to submit a +// request on behalf of another user. +// IMPORTANT: It’s not possible to use an API key as the authentication +// credential for this API. +// To update an API key, the owner user’s credentials are required. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-api-key.html func New(tp elastictransport.Interface) *UpdateApiKey { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updatesettings/update_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updatesettings/update_settings.go index 046e2836c7..b2745c0436 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 01cbf125dc..04f41a4be9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updateuserprofiledata @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/update_user_profile_data/Request.ts#L27-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/update_user_profile_data/Request.ts#L27-L70 type Request struct { // Data Non-searchable data that you want to associate with the user profile. 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 723f013453..225e089478 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updateuserprofiledata // Response holds the response body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/update_user_profile_data/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cbefdc8ccf..357ddabc47 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Update application specific data for the user profile of the given unique ID. +// Updates specific data for the user profile that's associated with the +// specified unique ID. package updateuserprofiledata import ( @@ -82,7 +83,8 @@ func NewUpdateUserProfileDataFunc(tp elastictransport.Interface) NewUpdateUserPr } } -// Update application specific data for the user profile of the given unique ID. +// Updates specific data for the user profile that's associated with the +// specified 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 bc4bf036e9..2a9b5c2cc2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 a5bd766b59..d4838c21a8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletenode // Response holds the response body struct for the package deletenode // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 656a09bb7f..d29e0053d8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 7c79ed0784..fa6efb7a1a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getnode @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getnode // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ba43b95423..d1972bfa14 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 0b88c5dd7c..cfcaa03dd1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putnode @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 613867a75e..82edb515cc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putnode // Response holds the response body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 69ce8beb06..1445fa4898 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 c926617b9f..027ab550b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f199942f0e..89965faeef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 872274c03e..25558ededd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package executelifecycle // Response holds the response body struct for the package executelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 37607a2a02..b282d2d3a2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 9ed8e67468..4e8bc6c6a8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package executeretention // Response holds the response body struct for the package executeretention // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/execute_retention/ExecuteRetentionResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 eb2ca6c373..4cab46ddac 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 a7b0a78385..720d539702 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getlifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 246dc2cb71..17b3fab713 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 8bbe77d455..cf07ab3a3a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bfb8af3224..6bc8b01ab7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 258740e1a9..b27e662b54 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getstatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2b007e56dc..c2461e2bbf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 72081a0f73..046377dcd0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putlifecycle @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d501655461..c4ae90bc22 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 596aa43d7c..c2dc7acf46 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3dccb2e70d..677b91f73b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 41a989216c..3ed31afbee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 278f3f8aba..53de9fe100 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 4a1615789d..cbba3d7e60 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Removes stale data from repository. +// Triggers the review of a snapshot repository’s contents and deletes any stale +// data not referenced by existing snapshots. package cleanuprepository import ( @@ -76,7 +77,8 @@ func NewCleanupRepositoryFunc(tp elastictransport.Interface) NewCleanupRepositor } } -// Removes stale data from repository. +// Triggers the review of a snapshot repository’s contents and deletes any stale +// data not referenced by existing snapshots. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/clean-up-snapshot-repo-api.html func New(tp elastictransport.Interface) *CleanupRepository { 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 b837827bd3..7a7cd3f819 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package cleanuprepository @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package cleanuprepository // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6117c2b12c..5c304ad78f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 a56f335c65..9d40b99fd0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clone @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7e692ecb62..d1aea6f01e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/clone/SnapshotCloneResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6dc66efc8f..c43e7f5b24 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 b67df77309..ca71dcef8f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package create @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 39f9069dae..4520594db4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package create @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/create/SnapshotCreateResponse.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 682de117ce..e6ce30e399 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 be44ff8183..c72d260ad0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package createrepository @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 555d504a63..d7fc4a5467 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package createrepository // Response holds the response body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e1aee95fb3..ab5e8ef3bc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 5d4db798f1..2020e5d02e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/delete/SnapshotDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cadbea0bf1..108a0e08b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 6fe0480bbb..84da015f8b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleterepository // Response holds the response body struct for the package deleterepository // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b056b71360..da41dcaa5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 ca7d2f77d7..6f94e24934 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/get/SnapshotGetResponse.ts#L25-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2acf569f1b..ab31517289 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 3c81682584..a79d81014d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getrepository @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package getrepository // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/restore/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/request.go index c2dd250b04..8dae11fb12 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package restore @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8dbc7ffe3d..18a3a01854 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package restore @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L25 type Response struct { Snapshot types.SnapshotRestore `json:"snapshot"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/restore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/restore.go index 2fa2541838..e8bff75239 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 1929c24a52..905d9be78b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package status @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/status/SnapshotStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1d46fa3c10..bd3a1bdcd2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 bfcfab7dc3..b468f6b9df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package verifyrepository @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package verifyrepository // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 093d9c8a3e..698a74fefb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 f54257409a..e21447cfd4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 cba688b8d9..0bfd2c556e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearcursor @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7f0db7caa0..87111afb00 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package clearcursor // Response holds the response body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 987a03abd6..395da47f5f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 91d3e563b3..f83b52197a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deleteasync // Response holds the response body struct for the package deleteasync // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 640e59d737..fd2f9bcdcf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 ebf3bc531d..8543d0c006 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getasync @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package getasync // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/get_async/SqlGetAsyncResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8d18f8de84..dcb44311ca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 1a2ded33b2..954b9c2146 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getasyncstatus // Response holds the response body struct for the package getasyncstatus // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1bd5fa0fe8..2629ac0054 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Executes a SQL request package query 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 a41181f6f7..979f7e6695 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package query @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/query/QuerySqlRequest.ts#L28-L122 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4664f4157c..8ef4031dff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package query @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/query/QuerySqlResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f63a413889..8ae2d1c579 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package translate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/translate/TranslateSqlRequest.ts#L25-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 374449efe2..b6a6bf7f5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package translate @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/translate/TranslateSqlResponse.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/sql/translate/TranslateSqlResponse.ts#L28-L38 type Response struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Fields []types.FieldAndFormat `json:"fields,omitempty"` @@ -115,9 +115,40 @@ func (s *Response) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := types.NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } } } 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 cbf6fd17fe..194d209f07 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 c52a96d019..b297742d63 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/certificates.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/certificates.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves information about the X.509 certificates used to encrypt // communications in the cluster. 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 1d18b77fd4..4bb13b45fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package certificates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package certificates // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8b08f6a80e..0e79c8e9a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 002d200bde..74576d9eff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletesynonym // Response holds the response body struct for the package deletesynonym // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 456a67e208..4f0882c889 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 cf331f7d0e..af6e4cbc45 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletesynonymrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package deletesynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 141d79333d..51690335dd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 2393285404..96606cec2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getsynonym @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/get_synonym/SynonymsGetResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f0ff94b5ac..94e8a22226 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 a52c4576b3..a0a47a5cb4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getsynonymrule // Response holds the response body struct for the package getsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f7eed88cb3..197d1ff28a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 bdecb4834b..bfc25b2121 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getsynonymssets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsynonymssets // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b47e36f1ff..56822e6bde 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Creates or updates a synonyms set +// Creates or updates a synonym set. package putsynonym import ( @@ -81,7 +81,7 @@ func NewPutSynonymFunc(tp elastictransport.Interface) NewPutSynonym { } } -// Creates or updates a synonyms set +// Creates or updates a synonym set. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-synonyms-set.html func New(tp elastictransport.Interface) *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 02363995e5..424d984fe6 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putsynonym @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L42 type Request struct { // SynonymsSet The synonym set information to update 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 5b0f4fc740..2b2f5e5e01 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putsynonym @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bbe2fe89a3..1ef7db3513 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 c9532f8fa4..10d091cc55 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,18 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putsynonymrule import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" ) // Request holds the request body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L47 type Request struct { Synonyms string `json:"synonyms"` } @@ -50,3 +53,27 @@ 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": + if err := dec.Decode(&s.Synonyms); err != nil { + return fmt.Errorf("%s | %w", "Synonyms", err) + } + + } + } + return nil +} 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 e325bf4fb2..5dd9bcc468 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putsynonymrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 649863d6b5..aa4da0f90f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 7110c7ea21..86e9058525 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package cancel @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package cancel // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/cancel/CancelTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1adf403367..3a0877ed75 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/get.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/get.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Returns information about a task. package 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 8c8ac20cfc..139b6dc8df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package get @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/get/GetTaskResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6a66e04d39..39ab753d0b 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Returns a list of tasks. +// The task management API returns information about tasks currently executing +// on one or more nodes in the cluster. package list import ( @@ -69,7 +70,8 @@ func NewListFunc(tp elastictransport.Interface) NewList { } } -// Returns a list of tasks. +// The task management API returns information about tasks currently executing +// on one or more nodes in the cluster. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html func New(tp elastictransport.Interface) *List { 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 e82b81a62a..25e5e9a9ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package list @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/list/ListTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..5a3b658457 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findfieldstructure/find_field_structure.go @@ -0,0 +1,225 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Finds the structure of a text field in an index. +package findfieldstructure + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 FindFieldStructure struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewFindFieldStructure type alias for index. +type NewFindFieldStructure func() *FindFieldStructure + +// NewFindFieldStructureFunc returns a new instance of FindFieldStructure with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewFindFieldStructureFunc(tp elastictransport.Interface) NewFindFieldStructure { + return func() *FindFieldStructure { + n := New(tp) + + return n + } +} + +// Finds the structure of a text field in an index. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html +func New(tp elastictransport.Interface) *FindFieldStructure { + r := &FindFieldStructure{ + 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 *FindFieldStructure) 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("_text_structure") + path.WriteString("/") + path.WriteString("find_field_structure") + + 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 FindFieldStructure) 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, "text_structure.find_field_structure") + 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, "text_structure.find_field_structure") + if reader := instrument.RecordRequestBody(ctx, "text_structure.find_field_structure", 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", "text_structure.find_field_structure") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the FindFieldStructure 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 findfieldstructure.Response +func (r FindFieldStructure) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 FindFieldStructure) 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, "text_structure.find_field_structure") + 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 FindFieldStructure 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 FindFieldStructure headers map. +func (r *FindFieldStructure) Header(key, value string) *FindFieldStructure { + r.headers.Set(key, value) + + return r +} 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 new file mode 100644 index 0000000000..47bb9cb4f2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure/find_message_structure.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Finds the structure of a list of messages. The messages must contain data +// that is suitable to be ingested into Elasticsearch. +package findmessagestructure + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 FindMessageStructure struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewFindMessageStructure type alias for index. +type NewFindMessageStructure func() *FindMessageStructure + +// NewFindMessageStructureFunc returns a new instance of FindMessageStructure with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewFindMessageStructureFunc(tp elastictransport.Interface) NewFindMessageStructure { + return func() *FindMessageStructure { + n := New(tp) + + return n + } +} + +// Finds the structure of a list of messages. The messages must contain data +// that is suitable to be ingested into Elasticsearch. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/find-message-structure.html +func New(tp elastictransport.Interface) *FindMessageStructure { + r := &FindMessageStructure{ + 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 *FindMessageStructure) 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("_text_structure") + path.WriteString("/") + path.WriteString("find_message_structure") + + 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 FindMessageStructure) 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, "text_structure.find_message_structure") + 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, "text_structure.find_message_structure") + if reader := instrument.RecordRequestBody(ctx, "text_structure.find_message_structure", 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", "text_structure.find_message_structure") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the FindMessageStructure 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 findmessagestructure.Response +func (r FindMessageStructure) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 FindMessageStructure) 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, "text_structure.find_message_structure") + 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 FindMessageStructure 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 FindMessageStructure headers map. +func (r *FindMessageStructure) Header(key, value string) *FindMessageStructure { + r.headers.Set(key, value) + + return r +} 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 1a1d4a9d8b..75cfdb8108 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 46a2b3b5bb..2c40258987 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package findstructure @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9217918461..46228fc5ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package findstructure @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/find_structure/FindStructureResponse.ts#L27-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c7ab23bc6e..b0727007ea 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/request.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package testgrokpattern @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L22-L43 type Request struct { // GrokPattern Grok pattern to run on the text. 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 fea13f2ca9..61b464f82f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package testgrokpattern @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2220eacb16..85febe049b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Tests a Grok pattern on some text. package testgrokpattern diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/delete_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/delete_transform.go index 59033fa43e..8b86afd72a 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Deletes an existing transform. +// Deletes a transform. package deletetransform import ( @@ -76,7 +76,7 @@ func NewDeleteTransformFunc(tp elastictransport.Interface) NewDeleteTransform { } } -// Deletes an existing transform. +// Deletes a transform. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html func New(tp elastictransport.Interface) *DeleteTransform { 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 5932011e37..cb680103b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletetransform // Response holds the response body struct for the package deletetransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/delete_transform/DeleteTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..09e5f414e1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/getnodestats/get_node_stats.go @@ -0,0 +1,225 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// Retrieves transform usage information for transform nodes. +package getnodestats + +import ( + "context" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" +) + +// 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 GetNodeStats struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + paramSet int + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewGetNodeStats type alias for index. +type NewGetNodeStats func() *GetNodeStats + +// NewGetNodeStatsFunc returns a new instance of GetNodeStats with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewGetNodeStatsFunc(tp elastictransport.Interface) NewGetNodeStats { + return func() *GetNodeStats { + n := New(tp) + + return n + } +} + +// Retrieves transform usage information for transform nodes. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-node-stats.html +func New(tp elastictransport.Interface) *GetNodeStats { + r := &GetNodeStats{ + 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 *GetNodeStats) 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("_transform") + path.WriteString("/") + path.WriteString("_node_stats") + + 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 GetNodeStats) 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, "transform.get_node_stats") + 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, "transform.get_node_stats") + if reader := instrument.RecordRequestBody(ctx, "transform.get_node_stats", 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", "transform.get_node_stats") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the GetNodeStats 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 getnodestats.Response +func (r GetNodeStats) Do(ctx context.Context) (bool, error) { + return r.IsSuccess(ctx) +} + +// 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 GetNodeStats) 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, "transform.get_node_stats") + 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 GetNodeStats 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 GetNodeStats headers map. +func (r *GetNodeStats) Header(key, value string) *GetNodeStats { + r.headers.Set(key, value) + + return r +} 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 0fe3f1f57d..58f226a43d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/get_transform.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/get_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves configuration information for transforms. package gettransform 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 20f16dcb51..ca34792ee2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package gettransform @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform/GetTransformResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9452c3a0db..7a922c8f52 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/get_transform_stats.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/get_transform_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Retrieves usage information for transforms. package gettransformstats 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 5a1c96c623..b103fa4908 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package gettransformstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettransformstats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ee6977e9fc..ed9b748be0 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,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Previews a transform. +// +// It returns a maximum of 100 results. The calculations are based on all the +// current data in the source index. It also +// generates a list of mappings and settings for the destination index. These +// values are determined based on the field +// types of the source index and the transform aggregations. package previewtransform import ( @@ -81,6 +87,12 @@ func NewPreviewTransformFunc(tp elastictransport.Interface) NewPreviewTransform // Previews a transform. // +// It returns a maximum of 100 results. The calculations are based on all the +// current data in the source index. It also +// generates a list of mappings and settings for the destination index. These +// values are determined based on the field +// types of the source index and the transform aggregations. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html func New(tp elastictransport.Interface) *PreviewTransform { r := &PreviewTransform{ diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/request.go index 3bd24effa7..4a92b63479 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package previewtransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L107 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L107 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 35954f3bba..6ceb847443 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package previewtransform @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/preview_transform/PreviewTransformResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 90f279df22..30404ec267 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,9 +16,42 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Instantiates a transform. +// Creates a transform. +// +// A transform copies data from source indices, transforms it, and persists it +// into an entity-centric destination index. You can also think of the +// destination index as a two-dimensional tabular data structure (known as +// a data frame). The ID for each document in the data frame is generated from a +// hash of the entity, so there is a +// unique row per entity. +// +// You must choose either the latest or pivot method for your transform; you +// cannot use both in a single transform. If +// you choose to use the pivot method for your transform, the entities are +// defined by the set of `group_by` fields in +// the pivot object. If you choose to use the latest method, the entities are +// defined by the `unique_key` field values +// in the latest object. +// +// You must have `create_index`, `index`, and `read` privileges on the +// destination index and `read` and +// `view_index_metadata` privileges on the source indices. When Elasticsearch +// security features are enabled, the +// transform remembers which roles the user that created it had at the time of +// creation and uses those same roles. If +// those roles do not have the required privileges on the source and destination +// indices, the transform fails when it +// attempts unauthorized operations. +// +// NOTE: You must use Kibana or this API to create a transform. Do not add a +// transform directly into any +// `.transform-internal*` indices using the Elasticsearch index API. If +// Elasticsearch security features are enabled, do +// not give users any privileges on `.transform-internal*` indices. If you used +// transforms prior to 7.5, also do not +// give users any privileges on `.data-frame-internal*` indices. package puttransform import ( @@ -81,7 +114,40 @@ func NewPutTransformFunc(tp elastictransport.Interface) NewPutTransform { } } -// Instantiates a transform. +// Creates a transform. +// +// A transform copies data from source indices, transforms it, and persists it +// into an entity-centric destination index. You can also think of the +// destination index as a two-dimensional tabular data structure (known as +// a data frame). The ID for each document in the data frame is generated from a +// hash of the entity, so there is a +// unique row per entity. +// +// You must choose either the latest or pivot method for your transform; you +// cannot use both in a single transform. If +// you choose to use the pivot method for your transform, the entities are +// defined by the set of `group_by` fields in +// the pivot object. If you choose to use the latest method, the entities are +// defined by the `unique_key` field values +// in the latest object. +// +// You must have `create_index`, `index`, and `read` privileges on the +// destination index and `read` and +// `view_index_metadata` privileges on the source indices. When Elasticsearch +// security features are enabled, the +// transform remembers which roles the user that created it had at the time of +// creation and uses those same roles. If +// those roles do not have the required privileges on the source and destination +// indices, the transform fails when it +// attempts unauthorized operations. +// +// NOTE: You must use Kibana or this API to create a transform. Do not add a +// transform directly into any +// `.transform-internal*` indices using the Elasticsearch index API. If +// Elasticsearch security features are enabled, do +// not give users any privileges on `.transform-internal*` indices. If you used +// transforms prior to 7.5, also do not +// give users any privileges on `.data-frame-internal*` indices. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html func New(tp elastictransport.Interface) *PutTransform { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/request.go index 4e76b56127..62af6fea33 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/put_transform/PutTransformRequest.ts#L33-L122 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/put_transform/PutTransformRequest.ts#L33-L122 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 9199508d36..1736e88bef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package puttransform // Response holds the response body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/put_transform/PutTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 29c03256d8..b4b0cc9bab 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,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Resets an existing 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. package resettransform import ( @@ -76,7 +79,10 @@ func NewResetTransformFunc(tp elastictransport.Interface) NewResetTransform { } } -// Resets an existing 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 func New(tp elastictransport.Interface) *ResetTransform { 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 561f3d537a..c45a5e607e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package resettransform // Response holds the response body struct for the package resettransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/reset_transform/ResetTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0cbbb4a709..65da59a6a3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package schedulenowtransform // Response holds the response body struct for the package schedulenowtransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L23 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 377b8dff67..0c1f3ef1a1 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,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Schedules now a transform. +// +// If you _schedule_now a transform, it will process the new data instantly, +// without waiting for the configured frequency interval. After _schedule_now +// API is called, +// the transform will be processed again at now + frequency unless _schedule_now +// API +// is called again in the meantime. package schedulenowtransform import ( @@ -78,6 +85,13 @@ func NewScheduleNowTransformFunc(tp elastictransport.Interface) NewScheduleNowTr // Schedules now a transform. // +// If you _schedule_now a transform, it will process the new data instantly, +// without waiting for the configured frequency interval. After _schedule_now +// API is called, +// the transform will be processed again at now + frequency unless _schedule_now +// API +// is called again in the meantime. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/schedule-now-transform.html func New(tp elastictransport.Interface) *ScheduleNowTransform { r := &ScheduleNowTransform{ 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 12080927c2..080ab72337 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package starttransform // Response holds the response body struct for the package starttransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/start_transform/StartTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 90a9238ce3..5ceb4e5a89 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,9 +16,36 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Starts one or more transforms. +// Starts a transform. +// +// When you start a transform, it creates the destination index if it does not +// already exist. The `number_of_shards` is +// set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot +// transform, it deduces the mapping +// definitions for the destination index from the source indices and the +// transform aggregations. If fields in the +// destination index are derived from scripts (as in the case of +// `scripted_metric` or `bucket_script` aggregations), +// the transform uses dynamic mappings unless an index template exists. If it is +// a latest transform, it does not deduce +// mapping definitions; it uses dynamic mappings. To use explicit mappings, +// create the destination index before you +// start the transform. Alternatively, you can create an index template, though +// it does not affect the deduced mappings +// in a pivot transform. +// +// When the transform starts, a series of validations occur to ensure its +// success. If you deferred validation when you +// created the transform, they occur when you start the transform—​with the +// exception of privilege checks. When +// Elasticsearch security features are enabled, the transform remembers which +// roles the user that created it had at the +// time of creation and uses those same roles. If those roles do not have the +// required privileges on the source and +// destination indices, the transform fails when it attempts unauthorized +// operations. package starttransform import ( @@ -76,7 +103,34 @@ func NewStartTransformFunc(tp elastictransport.Interface) NewStartTransform { } } -// Starts one or more transforms. +// Starts a transform. +// +// When you start a transform, it creates the destination index if it does not +// already exist. The `number_of_shards` is +// set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot +// transform, it deduces the mapping +// definitions for the destination index from the source indices and the +// transform aggregations. If fields in the +// destination index are derived from scripts (as in the case of +// `scripted_metric` or `bucket_script` aggregations), +// the transform uses dynamic mappings unless an index template exists. If it is +// a latest transform, it does not deduce +// mapping definitions; it uses dynamic mappings. To use explicit mappings, +// create the destination index before you +// start the transform. Alternatively, you can create an index template, though +// it does not affect the deduced mappings +// in a pivot transform. +// +// When the transform starts, a series of validations occur to ensure its +// success. If you deferred validation when you +// created the transform, they occur when you start the transform—​with the +// exception of privilege checks. When +// Elasticsearch security features are enabled, the transform remembers which +// roles the user that created it had at the +// time of creation and uses those same roles. If those roles do not have the +// required privileges on the source and +// destination indices, the transform fails when it attempts unauthorized +// operations. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html func New(tp elastictransport.Interface) *StartTransform { 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 7b2cf528df..04901e1f2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stoptransform // Response holds the response body struct for the package stoptransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/stop_transform/StopTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f84e467dc7..8420f86f78 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/stop_transform.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/stop_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Stops one or more transforms. package stoptransform 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 d89b126513..e6f84019b0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatetransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L105 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L105 type Request struct { // Description Free text description of the transform. @@ -49,7 +49,7 @@ type Request struct { Meta_ types.Metadata `json:"_meta,omitempty"` // RetentionPolicy Defines a retention policy for the transform. Data that meets the defined // criteria is deleted from the destination index. - RetentionPolicy types.RetentionPolicyContainer `json:"retention_policy,omitempty"` + RetentionPolicy *types.RetentionPolicyContainer `json:"retention_policy,omitempty"` // Settings Defines optional transform settings. Settings *types.Settings `json:"settings,omitempty"` // Source The source of the data for 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 ff26598900..7c49a23bb8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package updatetransform @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/update_transform/UpdateTransformResponse.ts#L33-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9ec23bf160..eb964017db 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,9 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Updates certain properties of a transform. +// +// All updated properties except `description` do not take effect until after +// the transform starts the next checkpoint, +// thus there is data consistency in each checkpoint. To use this API, you must +// have `read` and `view_index_metadata` +// privileges for the source indices. You must also have `index` and `read` +// privileges for the destination index. When +// Elasticsearch security features are enabled, the transform remembers which +// roles the user who updated it had at the +// time of update and runs with those privileges. package updatetransform import ( @@ -83,6 +93,16 @@ func NewUpdateTransformFunc(tp elastictransport.Interface) NewUpdateTransform { // Updates certain properties of a transform. // +// All updated properties except `description` do not take effect until after +// the transform starts the next checkpoint, +// thus there is data consistency in each checkpoint. To use this API, you must +// have `read` and `view_index_metadata` +// privileges for the source indices. You must also have `index` and `read` +// privileges for the destination index. When +// Elasticsearch security features are enabled, the transform remembers which +// roles the user who updated it had at the +// time of update and runs with those privileges. +// // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html func New(tp elastictransport.Interface) *UpdateTransform { r := &UpdateTransform{ @@ -419,7 +439,7 @@ func (r *UpdateTransform) Meta_(metadata types.Metadata) *UpdateTransform { // criteria is deleted from the destination index. // API name: retention_policy func (r *UpdateTransform) RetentionPolicy(retentionpolicy types.RetentionPolicyContainer) *UpdateTransform { - r.req.RetentionPolicy = retentionpolicy + r.req.RetentionPolicy = &retentionpolicy return r } 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 8e7c3fed72..e54c745418 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package upgradetransforms // Response holds the response body struct for the package upgradetransforms // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 089aeded5d..c66873b483 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,9 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Upgrades all transforms. +// This API identifies transforms that have a legacy configuration format and +// upgrades them to the latest version. It +// also cleans up the internal data structures that store the transform state +// and checkpoints. The upgrade does not +// affect the source and destination indices. The upgrade also does not affect +// the roles that transforms use when +// Elasticsearch security features are enabled; the role used to read source +// data and write to the destination index +// remains unchanged. package upgradetransforms import ( @@ -69,6 +78,15 @@ func NewUpgradeTransformsFunc(tp elastictransport.Interface) NewUpgradeTransform } // Upgrades all transforms. +// This API identifies transforms that have a legacy configuration format and +// upgrades them to the latest version. It +// also cleans up the internal data structures that store the transform state +// and checkpoints. The upgrade does not +// affect the source and destination indices. The upgrade also does not affect +// the roles that transforms use when +// Elasticsearch security features are enabled; the role used to read source +// data and write to the destination index +// remains unchanged. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/upgrade-transforms.html func New(tp elastictransport.Interface) *UpgradeTransforms { 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 4abe83aac4..767c7b1d72 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Acknowledgement type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post/types.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b21fa3a8d1..fef1d06fe2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // AcknowledgeState type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L115-L118 type AcknowledgeState struct { State acknowledgementoptions.AcknowledgementOptions `json:"state"` Timestamp DateTime `json:"timestamp"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/actionstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/actionstatus.go index a0bed336cb..6a770a58f4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ActionStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L131-L136 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L131-L136 type ActionStatus struct { Ack AcknowledgeState `json:"ack"` LastExecution *ExecutionState `json:"last_execution,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstate.go index 617e838b3d..1b05d567e7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ActivationState type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Activation.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 11d5234383..24042a87dc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ActivationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Activation.ts#L29-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1f487e255a..396e3e5ea0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AdaptiveSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L403-L432 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L403-L432 type AdaptiveSelection struct { // AvgQueueSize The exponentially weighted moving average queue size of search requests on // the keyed node. 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 c2b6a6241e..9bafa05483 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AddAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/types.ts#L41-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e152f46972..e601af3984 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // AdjacencyMatrixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L573-L575 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L577-L579 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 a5a517729c..fedf7dea5d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AdjacencyMatrixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L55-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L55-L65 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 4d8d4af3d7..beb21b4a01 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // AdjacencyMatrixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L577-L579 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L581-L583 type AdjacencyMatrixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 7ca7f1878d..224ceedc1e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -92,5 +92,5 @@ package types // MatrixStatsAggregate // GeoLineAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L38-L123 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L38-L123 type Aggregate any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregatemetricdoubleproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregatemetricdoubleproperty.go index 6f16fbb974..c87f3e4647 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // AggregateMetricDoubleProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L61-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L61-L66 type AggregateMetricDoubleProperty struct { DefaultMetric string `json:"default_metric"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -198,12 +198,6 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -222,6 +216,18 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -540,12 +546,6 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -564,6 +564,18 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateorder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateorder.go index 23c14abdd8..1eec385b03 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]sortorder.SortOrder // []map[string]sortorder.SortOrder // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L978-L980 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L983-L985 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 398c971a83..405f51172c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // AggregateOutput type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2ca24d498b..4e584a3470 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Aggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregation.ts#L20-L20 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 75cc11c993..ce364d983b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AggregationBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L23-L36 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 a27f48dcd8..b6ed41e41b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AggregationProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L77-L84 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L77-L84 type AggregationProfile struct { Breakdown AggregationBreakdown `json:"breakdown"` Children []AggregationProfile `json:"children,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledebug.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledebug.go index 8f97c2ce1e..c917b10dd8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L39-L68 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L39-L68 type AggregationProfileDebug struct { BuiltBuckets *int `json:"built_buckets,omitempty"` CharsFetched *int `json:"chars_fetched,omitempty"` 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 2b6a160ed5..f3093f61bd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDelegateDebugFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L70-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L70-L75 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 42b601b5c8..09f4a50513 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L674-L687 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L674-L687 type AggregationRange struct { // From Start of the range (inclusive). From *Float64 `json:"from,omitempty"` 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 bfe4ce57e1..9e6a087ebc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Aggregations type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/AggregationContainer.ts#L105-L514 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/AggregationContainer.ts#L105-L514 type Aggregations struct { // AdjacencyMatrix A bucket aggregation returning a form of adjacency matrix. // The request provides a collection of named filter expressions, similar to the diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alias.go index 04b2439d57..7e5e4349b0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Alias type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/Alias.ts#L23-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dc055df1ac..6b46bb4753 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AliasDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/AliasDefinition.ts#L22-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3e76a84787..ae2b5a30b3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AliasesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/aliases/types.ts#L22-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4f5a5632a5..372b978c28 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AllField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L29-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..6d52b94e67 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocateaction.go @@ -0,0 +1,128 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AllocateAction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L136-L142 +type AllocateAction struct { + Exclude map[string]string `json:"exclude,omitempty"` + Include map[string]string `json:"include,omitempty"` + NumberOfReplicas *int `json:"number_of_replicas,omitempty"` + Require map[string]string `json:"require,omitempty"` + TotalShardsPerNode *int `json:"total_shards_per_node,omitempty"` +} + +func (s *AllocateAction) 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 "exclude": + if s.Exclude == nil { + s.Exclude = make(map[string]string, 0) + } + if err := dec.Decode(&s.Exclude); err != nil { + return fmt.Errorf("%s | %w", "Exclude", err) + } + + case "include": + if s.Include == nil { + s.Include = make(map[string]string, 0) + } + if err := dec.Decode(&s.Include); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + + case "number_of_replicas": + + 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", "NumberOfReplicas", err) + } + s.NumberOfReplicas = &value + case float64: + f := int(v) + s.NumberOfReplicas = &f + } + + case "require": + if s.Require == nil { + s.Require = make(map[string]string, 0) + } + if err := dec.Decode(&s.Require); err != nil { + return fmt.Errorf("%s | %w", "Require", err) + } + + case "total_shards_per_node": + + 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", "TotalShardsPerNode", err) + } + s.TotalShardsPerNode = &value + case float64: + f := int(v) + s.TotalShardsPerNode = &f + } + + } + } + return nil +} + +// NewAllocateAction returns a AllocateAction. +func NewAllocateAction() *AllocateAction { + r := &AllocateAction{ + Exclude: make(map[string]string, 0), + Include: make(map[string]string, 0), + Require: make(map[string]string, 0), + } + + return r +} 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 85dd61ef5d..b31e17af7f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // AllocationDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L26-L30 type AllocationDecision struct { Decider string `json:"decider"` Decision allocationexplaindecision.AllocationExplainDecision `json:"decision"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationrecord.go index a9678bd183..09e81a1629 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,23 +31,25 @@ import ( // AllocationRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/allocation/types.ts#L24-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/allocation/types.ts#L24-L98 type AllocationRecord struct { // DiskAvail Free disk space available to Elasticsearch. // Elasticsearch retrieves this metric from the node’s operating system. // Disk-based shard allocation uses this metric to assign shards to nodes based // on available disk space. - DiskAvail ByteSize `json:"disk.avail,omitempty"` + DiskAvail *ByteSize `json:"disk.avail,omitempty"` // DiskIndices Disk space used by the node’s shards. Does not include disk space for the // translog or unassigned shards. // IMPORTANT: This metric double-counts disk space for hard-linked files, such // as those created when shrinking, splitting, or cloning an index. - DiskIndices ByteSize `json:"disk.indices,omitempty"` + DiskIndices *ByteSize `json:"disk.indices,omitempty"` + // DiskIndicesForecast Sum of shard size forecasts + DiskIndicesForecast *ByteSize `json:"disk.indices.forecast,omitempty"` // DiskPercent Total percentage of disk space in use. Calculated as `disk.used / // disk.total`. - DiskPercent Percentage `json:"disk.percent,omitempty"` + DiskPercent *Percentage `json:"disk.percent,omitempty"` // DiskTotal Total disk space for the node, including in-use and available space. - DiskTotal ByteSize `json:"disk.total,omitempty"` + DiskTotal *ByteSize `json:"disk.total,omitempty"` // DiskUsed Total disk space in use. // Elasticsearch retrieves this metric from the node’s operating system (OS). // The metric includes disk space for: Elasticsearch, including the translog and @@ -55,15 +57,22 @@ type AllocationRecord struct { // files on the node. // Unlike `disk.indices`, this metric does not double-count disk space for // hard-linked files. - DiskUsed ByteSize `json:"disk.used,omitempty"` + DiskUsed *ByteSize `json:"disk.used,omitempty"` // Host Network host for the node. Set using the `network.host` setting. - Host string `json:"host,omitempty"` + Host *string `json:"host,omitempty"` // Ip IP address and port for the node. - Ip string `json:"ip,omitempty"` + Ip *string `json:"ip,omitempty"` // Node Name for the node. Set using the `node.name` setting. - Node *string `json:"node,omitempty"` + Node string `json:"node"` + // NodeRole Node roles + NodeRole *string `json:"node.role,omitempty"` // Shards Number of primary and replica shards assigned to the node. - Shards *string `json:"shards,omitempty"` + Shards string `json:"shards"` + // 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"` } func (s *AllocationRecord) UnmarshalJSON(data []byte) error { @@ -91,6 +100,11 @@ func (s *AllocationRecord) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "DiskIndices", err) } + case "disk.indices.forecast", "dif", "diskIndicesForecast": + if err := dec.Decode(&s.DiskIndicesForecast); err != nil { + return fmt.Errorf("%s | %w", "DiskIndicesForecast", err) + } + case "disk.percent", "dp", "diskPercent": if err := dec.Decode(&s.DiskPercent); err != nil { return fmt.Errorf("%s | %w", "DiskPercent", err) @@ -126,7 +140,19 @@ 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 + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "NodeRole", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.NodeRole = &o case "shards", "s": var tmp json.RawMessage @@ -138,7 +164,24 @@ 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 + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ShardsUndesired", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ShardsUndesired = &o + + case "write_load.forecast", "wlf", "writeLoadForecast": + if err := dec.Decode(&s.WriteLoadForecast); err != nil { + return fmt.Errorf("%s | %w", "WriteLoadForecast", err) + } } } 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 a8935deead..de712c1171 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AllocationStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L39-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L39-L46 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 80754278c6..464fa270d3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // AlwaysCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L25-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a5071af8a1..2113767dd4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L29-L77 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 @@ -134,20 +134,36 @@ func (s *AnalysisConfig) UnmarshalJSON(data []byte) error { } case "categorization_analyzer": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - o := NewCategorizationAnalyzerDefinition() - if err := localDec.Decode(&o); err != nil { - return err + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + categorizationanalyzer_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) } - s.CategorizationAnalyzer = *o - default: + switch t { + + case "char_filter", "filter", "tokenizer": + o := NewCategorizationAnalyzerDefinition() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) + } + s.CategorizationAnalyzer = o + break categorizationanalyzer_field + + } + } + if s.CategorizationAnalyzer == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&s.CategorizationAnalyzer); err != nil { return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) } 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 8eadccb644..dc3a201762 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfigRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L79-L148 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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`. @@ -121,20 +121,36 @@ func (s *AnalysisConfigRead) UnmarshalJSON(data []byte) error { } case "categorization_analyzer": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - o := NewCategorizationAnalyzerDefinition() - if err := localDec.Decode(&o); err != nil { - return err + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + categorizationanalyzer_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) } - s.CategorizationAnalyzer = *o - default: + switch t { + + case "char_filter", "filter", "tokenizer": + o := NewCategorizationAnalyzerDefinition() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) + } + s.CategorizationAnalyzer = o + break categorizationanalyzer_field + + } + } + if s.CategorizationAnalyzer == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&s.CategorizationAnalyzer); err != nil { return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) } 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 d5e655cd28..56bcfbc783 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnalysisLimits type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L161-L172 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0e93797347..e745be5112 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnalysisMemoryLimit type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L174-L179 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4ce4e08492..4e7f075298 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Analytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L330-L332 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L330-L332 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 1687bfb4ae..770a1ade36 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // AnalyticsCollection type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 752077d2a5..b8eb03ae5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnalyticsStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L61-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L61-L71 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 043c69f3cb..2cf45c6765 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnalyzeDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1356ea3d23..9aac5502ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -37,5 +37,5 @@ package types // SnowballAnalyzer // DutchAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L113-L131 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L113-L131 type Analyzer any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzerdetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzerdetail.go index 23f40c8292..fb8a16578c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnalyzerDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 37dcb0ce1e..c077c65c16 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L37-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2d3a9fb0cd..ad6e266480 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Anomaly type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L24-L121 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7c0228b5a6..689792422f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnomalyCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L123-L138 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 03182309fe..7cb1227c72 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnomalyDetectors type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L44-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/info/types.ts#L44-L50 type AnomalyDetectors struct { CategorizationAnalyzer CategorizationAnalyzer `json:"categorization_analyzer"` CategorizationExamplesLimit int `json:"categorization_examples_limit"` @@ -56,20 +56,36 @@ func (s *AnomalyDetectors) UnmarshalJSON(data []byte) error { switch t { case "categorization_analyzer": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - o := NewCategorizationAnalyzerDefinition() - if err := localDec.Decode(&o); err != nil { - return err + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + categorizationanalyzer_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) } - s.CategorizationAnalyzer = *o - default: + switch t { + + case "char_filter", "filter", "tokenizer": + o := NewCategorizationAnalyzerDefinition() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) + } + s.CategorizationAnalyzer = o + break categorizationanalyzer_field + + } + } + if s.CategorizationAnalyzer == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&s.CategorizationAnalyzer); err != nil { return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) } 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 0a7e26715c..0ecbf17ece 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AnomalyExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L156-L197 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4ee724420c..7a8951ebad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/ApiKey.ts#L27-L89 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/ApiKey.ts#L27-L89 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 01ebaaf726..d5b8d04d4a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -36,5 +36,5 @@ package types // DateRangeAggregate // CompositeAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/types.ts#L123-L140 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/types.ts#L123-L140 type ApiKeyAggregate any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregationcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregationcontainer.go index 8174fb5d72..10ee60c47e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ApiKeyAggregationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/types.ts#L64-L121 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/types.ts#L64-L121 type ApiKeyAggregationContainer struct { // Aggregations Sub-aggregations for this aggregation. // Only applies to bucket aggregations. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyauthorization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyauthorization.go index 999d448d10..73dceacb9c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ApiKeyAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Authorization.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1bd4a889fb..996e3bd5ba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ApiKeyFiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/types.ts#L208-L228 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/types.ts#L208-L228 type ApiKeyFiltersAggregation struct { // Filters Collection of queries from which to build buckets. Filters BucketsApiKeyQueryContainer `json:"filters,omitempty"` 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 3d295f96b1..cbcf7906f3 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyquerycontainer.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyquerycontainer.go @@ -16,13 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + // ApiKeyQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/types.ts#L142-L206 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_api_keys/types.ts#L142-L206 type ApiKeyQueryContainer struct { // Bool matches documents matching boolean combinations of other queries. Bool *BoolQuery `json:"bool,omitempty"` @@ -55,6 +63,107 @@ type ApiKeyQueryContainer struct { Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"` } +func (s *ApiKeyQueryContainer) 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 "bool": + if err := dec.Decode(&s.Bool); err != nil { + return fmt.Errorf("%s | %w", "Bool", err) + } + + case "exists": + if err := dec.Decode(&s.Exists); err != nil { + return fmt.Errorf("%s | %w", "Exists", err) + } + + case "ids": + if err := dec.Decode(&s.Ids); err != nil { + return fmt.Errorf("%s | %w", "Ids", err) + } + + case "match": + if s.Match == nil { + s.Match = make(map[string]MatchQuery, 0) + } + if err := dec.Decode(&s.Match); err != nil { + return fmt.Errorf("%s | %w", "Match", err) + } + + case "match_all": + if err := dec.Decode(&s.MatchAll); err != nil { + return fmt.Errorf("%s | %w", "MatchAll", err) + } + + case "prefix": + if s.Prefix == nil { + s.Prefix = make(map[string]PrefixQuery, 0) + } + if err := dec.Decode(&s.Prefix); err != nil { + return fmt.Errorf("%s | %w", "Prefix", err) + } + + case "range": + if s.Range == nil { + s.Range = make(map[string]RangeQuery, 0) + } + messages := make(map[string]json.RawMessage) + err := dec.Decode(&messages) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + + untyped := NewUntypedRangeQuery() + for key, message := range messages { + err := json.Unmarshal(message, &untyped) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + s.Range[key] = untyped + } + + case "simple_query_string": + if err := dec.Decode(&s.SimpleQueryString); err != nil { + return fmt.Errorf("%s | %w", "SimpleQueryString", err) + } + + case "term": + if s.Term == nil { + s.Term = make(map[string]TermQuery, 0) + } + if err := dec.Decode(&s.Term); err != nil { + return fmt.Errorf("%s | %w", "Term", err) + } + + case "terms": + if err := dec.Decode(&s.Terms); err != nil { + return fmt.Errorf("%s | %w", "Terms", err) + } + + case "wildcard": + if s.Wildcard == nil { + s.Wildcard = make(map[string]WildcardQuery, 0) + } + if err := dec.Decode(&s.Wildcard); err != nil { + return fmt.Errorf("%s | %w", "Wildcard", err) + } + + } + } + return nil +} + // NewApiKeyQueryContainer returns a ApiKeyQueryContainer. func NewApiKeyQueryContainer() *ApiKeyQueryContainer { r := &ApiKeyQueryContainer{ 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 a107908cd9..3a29eed325 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AppendProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L279-L294 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L279-L294 type AppendProcessor struct { // AllowDuplicates If `false`, the processor does not append values already present in the // field. 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 1b735836ec..6566b85167 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ApplicationGlobalUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L218-L220 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L344-L346 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 68ba9ae3d1..83343b3fcc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L26-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7e08bf230f..dcc499cbbd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e65465cf1a..44cb083382 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ApplicationsPrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L46-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/has_privileges/types.ts#L46-L46 type ApplicationsPrivileges map[string]ResourcePrivileges diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/archive.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/archive.go index b561340e30..8dc4a49bcd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Archive type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L48-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L48-L50 type Archive struct { Available bool `json:"available"` Enabled bool `json:"enabled"` 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 83346b93e8..f1bc560cce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ArrayCompareCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L32-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9b40e340d6..08a16d2f8a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ArrayCompareOpParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9a56ca4beb..92dd5a11ea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,11 +31,11 @@ import ( // ArrayPercentilesItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L160-L164 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L160-L164 type ArrayPercentilesItem struct { - Key string `json:"key"` - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Key string `json:"key"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *ArrayPercentilesItem) UnmarshalJSON(data []byte) error { 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 d3efb5b415..12c2f43d88 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // AsciiFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L170-L173 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L170-L173 type AsciiFoldingTokenFilter struct { PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asyncsearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asyncsearch.go index 6a8c390178..311e820a5c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // AsyncSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/_types/AsyncSearch.ts#L30-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. 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 3e253e94b8..591095e897 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AttachmentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L296-L337 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L296-L337 type AttachmentProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 f4164a5db3..72a83ca486 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Audit type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L73-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L73-L75 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 f6ba726f26..66b3c2cb2f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // AuthenticatedUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/types.ts#L40-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/get_token/types.ts#L40-L45 type AuthenticatedUser struct { AuthenticationProvider *AuthenticationProvider `json:"authentication_provider,omitempty"` AuthenticationRealm UserRealm `json:"authentication_realm"` AuthenticationType string `json:"authentication_type"` - Email string `json:"email,omitempty"` + Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` - FullName string `json:"full_name,omitempty"` + FullName *string `json:"full_name,omitempty"` LookupRealm UserRealm `json:"lookup_realm"` Metadata Metadata `json:"metadata"` ProfileUid *string `json:"profile_uid,omitempty"` @@ -93,7 +93,7 @@ func (s *AuthenticatedUser) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Email = o + s.Email = &o case "enabled": var tmp any 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 d6f12a39df..07bb217d9b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AuthenticateToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/authenticate/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 737dd42b7b..0798408e39 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AuthenticationProvider type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/types.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 09cf96f7f2..b255f8e0fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // AutoDateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L356-L360 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L358-L362 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 2e5f915ad5..be2187c94e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // AutoDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L67-L102 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L67-L102 type AutoDateHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` @@ -53,7 +53,7 @@ type AutoDateHistogramAggregation struct { // Offset Time zone specified as a ISO 8601 UTC offset. Offset *string `json:"offset,omitempty"` Params map[string]json.RawMessage `json:"params,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // TimeZone Time zone ID. TimeZone *string `json:"time_zone,omitempty"` } @@ -137,40 +137,9 @@ func (s *AutoDateHistogramAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "time_zone": if err := dec.Decode(&s.TimeZone); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowedcluster.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowedcluster.go index cdbedf5dbb..9dcb88434d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // AutoFollowedCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/stats/types.ts.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/stats/types.ts.ts#L27-L31 type AutoFollowedCluster struct { ClusterName string `json:"cluster_name"` LastSeenMetadataVersion int64 `json:"last_seen_metadata_version"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpattern.go index baa6ddd71e..2949416143 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // AutoFollowPattern type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c0860e30a7..3c519cf95e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AutoFollowPatternSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2eb15ac8d5..80643929d1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AutoFollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/stats/types.ts.ts#L33-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/stats/types.ts.ts#L33-L39 type AutoFollowStats struct { AutoFollowedClusters []AutoFollowedCluster `json:"auto_followed_clusters"` NumberOfFailedFollowIndices int64 `json:"number_of_failed_follow_indices"` 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 e23ac9bde8..cbef4a27f9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // AutoscalingCapacity type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 48d9c12713..ec93de1655 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AutoscalingDecider type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1219897468..09c80a49f0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // AutoscalingDeciders type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 25a0ec6cac..6621606ed1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // AutoscalingNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9ce0904cfc..e15b2a75b6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // AutoscalingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L27 type AutoscalingPolicy struct { // Deciders Decider settings Deciders map[string]json.RawMessage `json:"deciders"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingresources.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingresources.go index 2c4bce4189..002aec9ff1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AutoscalingResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 950200bfff..c1da3e0bd7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L55-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L55-L55 type AverageAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -39,7 +39,7 @@ type AverageAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *AverageAggregation) UnmarshalJSON(data []byte) error { @@ -80,40 +80,9 @@ func (s *AverageAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 0bdd6aa486..f7ad5bea59 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // AverageBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L78-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L78-L78 type AverageBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 2052c234d7..c33b85e11e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // AvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L209-L210 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L209-L210 type AvgAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *AvgAggregate) UnmarshalJSON(data []byte) error { 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 2dfd132bae..821876250b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // AzureRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 908d467e7a..bd635f035f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // AzureRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L77-L83 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d543fa4002..cfe9da2661 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Base type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L30-L33 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 72e4fa8dbf..5db0a2e03a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // BaseIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L42-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L42-L47 type BaseIndicator struct { Diagnosis []Diagnosis `json:"diagnosis,omitempty"` Impacts []Impact `json:"impacts,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basenode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basenode.go index 0258ef723b..2b0ff7e77f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // BaseNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/BaseNode.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/BaseNode.ts#L25-L32 type BaseNode struct { Attributes map[string]string `json:"attributes"` Host string `json:"host"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/binaryproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/binaryproperty.go index 89da9a0198..c36f38cdf8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // BinaryProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L49-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L55-L57 type BinaryProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -216,12 +216,6 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -240,6 +234,18 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -553,12 +559,6 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -577,6 +577,18 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 8b5bfec197..2aa9035490 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // BooleanProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L53-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L59-L65 type BooleanProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -241,12 +241,6 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -265,6 +259,18 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -606,12 +612,6 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -630,6 +630,18 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 e764c11296..d24a5975f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BoolQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L28-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L29-L53 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 1a73154911..1331c1ffaf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BoostingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L54-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L55-L68 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 4af1fd70ea..4737df7370 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BoxPlotAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L706-L722 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L713-L729 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 7d825ddb62..f104338025 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BoxplotAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 @@ -42,7 +42,7 @@ type BoxplotAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *BoxplotAggregation) UnmarshalJSON(data []byte) error { @@ -87,40 +87,9 @@ func (s *BoxplotAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 7ff12acae3..801286ef59 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Breaker type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L434-L459 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L434-L459 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 553afda7a8..308c6e68e8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // BucketCorrelationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L129-L135 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L129-L135 type BucketCorrelationAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 22ce57e995..0836821675 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // BucketCorrelationFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L137-L142 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L137-L142 type BucketCorrelationFunction struct { // CountCorrelation The configuration to calculate a count correlation. This function is designed // for determining the correlation of a term value and a given metric. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelation.go index 976d094c42..59e0a253f2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // BucketCorrelationFunctionCountCorrelation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L144-L147 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L144-L147 type BucketCorrelationFunctionCountCorrelation struct { // Indicator The indicator with which to correlate the configured `bucket_path` values. Indicator BucketCorrelationFunctionCountCorrelationIndicator `json:"indicator"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go index 035c0d0272..002cb1f28b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BucketCorrelationFunctionCountCorrelationIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L149-L167 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L149-L167 type BucketCorrelationFunctionCountCorrelationIndicator struct { // DocCount The total number of documents that initially created the expectations. It’s // required to be greater 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 076b68b31d..82ebabe7fd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BucketInfluencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Bucket.ts#L80-L128 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Bucket.ts#L80-L128 type BucketInfluencer struct { // AnomalyScore A normalized score between 0-100, which is calculated for each bucket // influencer. This score might be updated as 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 7ec45a5dff..a25505b886 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BucketKsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L94-L127 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L94-L127 type BucketKsAggregation struct { // Alternative A list of string values indicating which K-S test alternative to calculate. // The valid values 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 211b0d879c..1482eacb59 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,15 +31,15 @@ import ( // BucketMetricValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L233-L236 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L233-L236 type BucketMetricValueAggregate struct { Keys []string `json:"keys"` Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *BucketMetricValueAggregate) UnmarshalJSON(data []byte) error { 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 9ab7d09c2c..ac1faa5685 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // BucketPathAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L31-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 347eb1009b..8dda2e0edc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]AdjacencyMatrixBucket // []AdjacencyMatrixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsAdjacencyMatrixBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsapikeyquerycontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsapikeyquerycontainer.go index 4514136856..031005ed6e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]ApiKeyQueryContainer // []ApiKeyQueryContainer // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsApiKeyQueryContainer any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscompositebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscompositebucket.go index 52d144ee08..49c7558beb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]CompositeBucket // []CompositeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsCompositeBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscriptaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscriptaggregation.go index 85949641b6..66593d83ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // BucketScriptAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L80-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L80-L85 type BucketScriptAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` @@ -44,7 +44,7 @@ type BucketScriptAggregation struct { // GapPolicy Policy to apply when gaps are found in the data. GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"` // Script The script to run for this aggregation. - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *BucketScriptAggregation) UnmarshalJSON(data []byte) error { @@ -85,40 +85,9 @@ func (s *BucketScriptAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 995aa850fc..fe3f15ad92 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]DateHistogramBucket // []DateHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsDateHistogramBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdoubletermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdoubletermsbucket.go index 1d06f05e06..be70d63119 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]DoubleTermsBucket // []DoubleTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsDoubleTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketselectoraggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketselectoraggregation.go index e746cfa3d2..e046c224e0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // BucketSelectorAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L87-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L87-L92 type BucketSelectorAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` @@ -44,7 +44,7 @@ type BucketSelectorAggregation struct { // GapPolicy Policy to apply when gaps are found in the data. GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"` // Script The script to run for this aggregation. - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *BucketSelectorAggregation) UnmarshalJSON(data []byte) error { @@ -85,40 +85,9 @@ func (s *BucketSelectorAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 44359c0d6c..d496c2d176 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]FiltersBucket // []FiltersBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsFiltersBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfrequentitemsetsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfrequentitemsetsbucket.go index 9c9ea09562..4f347f9634 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]FrequentItemSetsBucket // []FrequentItemSetsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsFrequentItemSetsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohashgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohashgridbucket.go index 9427912e04..42cf867194 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHashGridBucket // []GeoHashGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsGeoHashGridBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohexgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohexgridbucket.go index 4f7d2bbbac..88f7771717 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHexGridBucket // []GeoHexGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsGeoHexGridBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeotilegridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeotilegridbucket.go index 5819195543..b6785002a9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]GeoTileGridBucket // []GeoTileGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsGeoTileGridBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketshistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketshistogrambucket.go index 03834d47f1..980cd813f9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]HistogramBucket // []HistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsHistogramBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsipprefixbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsipprefixbucket.go index 67ef7205ad..0657ee2b8a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]IpPrefixBucket // []IpPrefixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsIpPrefixBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsiprangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsiprangebucket.go index a9df6411b6..deeb019336 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]IpRangeBucket // []IpRangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsIpRangeBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongraretermsbucket.go index c67d4e9b09..6a32f5b771 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]LongRareTermsBucket // []LongRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsLongRareTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongtermsbucket.go index a9b9801aa3..15f745abe3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]LongTermsBucket // []LongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsLongTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsmultitermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsmultitermsbucket.go index 8533226a74..72d01bab03 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]MultiTermsBucket // []MultiTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsMultiTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsortaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsortaggregation.go index 63da5dde87..b4b3f88a99 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // BucketSortAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L169-L190 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L169-L190 type BucketSortAggregation struct { // From Buckets in positions prior to `from` will be truncated. From *int `json:"from,omitempty"` 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 cab31e1435..48bd0d57ea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ package types // []string // map[string]string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L53-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5990efa082..db12e1bd2e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]Query // []Query // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsQuery any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsrangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsrangebucket.go index b46fc535b3..be1fae736a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]RangeBucket // []RangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsRangeBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantlongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantlongtermsbucket.go index 452fc6a9b2..b287ba4517 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantLongTermsBucket // []SignificantLongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsSignificantLongTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantstringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantstringtermsbucket.go index 6a0d908872..86f6702148 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantStringTermsBucket // []SignificantStringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsSignificantStringTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringraretermsbucket.go index 66b2b0efdc..7cfdcadf71 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]StringRareTermsBucket // []StringRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsStringRareTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringtermsbucket.go index 40d2eb47d4..495ad71abb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]StringTermsBucket // []StringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsStringTermsBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsummary.go index 9d60d29c96..f332f9dd19 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BucketSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Bucket.ts#L31-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Bucket.ts#L31-L78 type BucketSummary struct { // AnomalyScore The maximum anomaly score, between 0-100, for any of the bucket influencers. // This is an overall, rate-limited 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 4ed864b933..5c77760c8e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]VariableWidthHistogramBucket // []VariableWidthHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsVariableWidthHistogramBucket any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvoid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvoid.go index 6071f7d8d3..79dbda35b5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // map[string]any // []any // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L316-L325 type BucketsVoid any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/buildinformation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/buildinformation.go index ad16b5c0c0..feae9c8342 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BuildInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/bulkerror.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkerror.go new file mode 100644 index 0000000000..fb5d3eb284 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkerror.go @@ -0,0 +1,93 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// BulkError type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Bulk.ts#L24-L33 +type BulkError struct { + // Count The number of errors + Count int `json:"count"` + // Details Details about the errors, keyed by role name + Details map[string]ErrorCause `json:"details"` +} + +func (s *BulkError) 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.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "Count", err) + } + s.Count = value + case float64: + f := int(v) + s.Count = f + } + + case "details": + if s.Details == nil { + s.Details = make(map[string]ErrorCause, 0) + } + if err := dec.Decode(&s.Details); err != nil { + return fmt.Errorf("%s | %w", "Details", err) + } + + } + } + return nil +} + +// NewBulkError returns a BulkError. +func NewBulkError() *BulkError { + r := &BulkError{ + Details: make(map[string]ErrorCause, 0), + } + + return r +} 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 b539ed55d4..9c9f5a248a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BulkIndexByScrollFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Errors.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 06812d34c4..70c779b450 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BulkStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L68-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d19775f87c..f06c0d3ef4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // ByteNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L172-L175 type ByteNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -51,7 +51,7 @@ type ByteNumberProperty struct { NullValue *byte `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,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. @@ -261,12 +261,6 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -636,12 +642,6 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -660,6 +660,18 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -832,40 +844,9 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 97d6189054..3472412021 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L96-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L96-L97 type ByteSize any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesprocessor.go index d138c501d2..4421a06e82 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // BytesProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L392-L408 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L392-L408 type BytesProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 0ea8e196af..ef40868425 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CacheQueries type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L405-L407 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6874c9e7ce..bcbdd44f9e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/stats/types.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/stats/types.ts#L37-L43 type CacheStats struct { Count int `json:"count"` Evictions int `json:"evictions"` 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 76ffe56c24..c01fbcf338 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Calendar type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_calendars/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6c785849c4..c767bca145 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CalendarEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/CalendarEvent.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c14de7f871..cb47b24aa9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L138-L141 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L138-L141 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 3b3fef09c4..c279cacd06 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // CardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L87-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` @@ -44,9 +44,9 @@ type CardinalityAggregation struct { Missing Missing `json:"missing,omitempty"` // PrecisionThreshold A unique count below which counts are expected to be close to accurate. // This allows to trade memory for accuracy. - PrecisionThreshold *int `json:"precision_threshold,omitempty"` - Rehash *bool `json:"rehash,omitempty"` - Script Script `json:"script,omitempty"` + PrecisionThreshold *int `json:"precision_threshold,omitempty"` + Rehash *bool `json:"rehash,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *CardinalityAggregation) UnmarshalJSON(data []byte) error { @@ -110,40 +110,9 @@ func (s *CardinalityAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 de3b60cf83..f5a51729bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // CatAnonalyDetectorColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 00c549dbba..3181a46ebb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CatComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/component_templates/types.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 df215a7f54..3579ea701a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // CatDatafeedColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L559-L559 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 78ee6bd60a..17d54f5321 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // CatDfaColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L558-L558 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c8ed9dab94..904b3c6803 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // CategorizationAnalyzerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L181-L182 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 24e84c74b6..6d79aa1708 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -24,13 +24,12 @@ import ( "bytes" "encoding/json" "errors" - "fmt" "io" ) // CategorizationAnalyzerDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L184-L197 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Analysis.ts#L184-L197 type CategorizationAnalyzerDefinition struct { // CharFilter One or more character filters. In addition to the built-in character filters, // other plugins can provide more character filters. If this property is not @@ -81,59 +80,48 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { dec.Decode(&buf) for _, rawMsg := range buf { - switch rawMsg[0] { - case '{': - - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - kind := make(map[string]string, 0) - localDec.Decode(&kind) - source.Seek(0, io.SeekStart) + source := bytes.NewReader(rawMsg) + localDec := json.NewDecoder(source) + kind := make(map[string]string, 0) + localDec.Decode(&kind) + source.Seek(0, io.SeekStart) - switch kind["type"] { + switch kind["type"] { - case "html_strip": - o := NewHtmlStripCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - case "mapping": - o := NewMappingCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - case "pattern_replace": - o := NewPatternReplaceCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - case "icu_normalizer": - o := NewIcuNormalizationCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - case "kuromoji_iteration_mark": - o := NewKuromojiIterationMarkCharFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) - default: - o := new(any) - if err := localDec.Decode(&o); err != nil { - return err - } - s.CharFilter = append(s.CharFilter, *o) + case "html_strip": + o := NewHtmlStripCharFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.CharFilter = append(s.CharFilter, *o) + case "mapping": + o := NewMappingCharFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.CharFilter = append(s.CharFilter, *o) + case "pattern_replace": + o := NewPatternReplaceCharFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.CharFilter = append(s.CharFilter, *o) + case "icu_normalizer": + o := NewIcuNormalizationCharFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.CharFilter = append(s.CharFilter, *o) + case "kuromoji_iteration_mark": + o := NewKuromojiIterationMarkCharFilter() + if err := localDec.Decode(&o); err != nil { + return err } + s.CharFilter = append(s.CharFilter, *o) default: - source := bytes.NewReader(rawMsg) o := new(any) - if err := json.NewDecoder(source).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "CharFilter", err) + if err := localDec.Decode(&o); err != nil { + return err } s.CharFilter = append(s.CharFilter, *o) } @@ -145,423 +133,404 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { dec.Decode(&buf) for _, rawMsg := range buf { - switch rawMsg[0] { - case '{': - - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - kind := make(map[string]string, 0) - localDec.Decode(&kind) - source.Seek(0, io.SeekStart) - - switch kind["type"] { - - case "asciifolding": - o := NewAsciiFoldingTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "common_grams": - o := NewCommonGramsTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "condition": - o := NewConditionTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "delimited_payload": - o := NewDelimitedPayloadTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "edge_ngram": - o := NewEdgeNGramTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "elision": - o := NewElisionTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "fingerprint": - o := NewFingerprintTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "hunspell": - o := NewHunspellTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "hyphenation_decompounder": - o := NewHyphenationDecompounderTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "keep_types": - o := NewKeepTypesTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "keep": - o := NewKeepWordsTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "keyword_marker": - o := NewKeywordMarkerTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "kstem": - o := NewKStemTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "length": - o := NewLengthTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "limit": - o := NewLimitTokenCountTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "lowercase": - o := NewLowercaseTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "multiplexer": - o := NewMultiplexerTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "ngram": - o := NewNGramTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "nori_part_of_speech": - o := NewNoriPartOfSpeechTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "pattern_capture": - o := NewPatternCaptureTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "pattern_replace": - o := NewPatternReplaceTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "porter_stem": - o := NewPorterStemTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "predicate_token_filter": - o := NewPredicateTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "remove_duplicates": - o := NewRemoveDuplicatesTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "reverse": - o := NewReverseTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "shingle": - o := NewShingleTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "snowball": - o := NewSnowballTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "stemmer_override": - o := NewStemmerOverrideTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "stemmer": - o := NewStemmerTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "stop": - o := NewStopTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "synonym_graph": - o := NewSynonymGraphTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "synonym": - o := NewSynonymTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "trim": - o := NewTrimTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "truncate": - o := NewTruncateTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "unique": - o := NewUniqueTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "uppercase": - o := NewUppercaseTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "word_delimiter_graph": - o := NewWordDelimiterGraphTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "word_delimiter": - o := NewWordDelimiterTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "kuromoji_stemmer": - o := NewKuromojiStemmerTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "kuromoji_readingform": - o := NewKuromojiReadingFormTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "kuromoji_part_of_speech": - o := NewKuromojiPartOfSpeechTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "icu_collation": - o := NewIcuCollationTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "icu_folding": - o := NewIcuFoldingTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "icu_normalizer": - o := NewIcuNormalizationTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "icu_transform": - o := NewIcuTransformTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "phonetic": - o := NewPhoneticTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - case "dictionary_decompounder": - o := NewDictionaryDecompounderTokenFilter() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - default: - o := new(any) - if err := localDec.Decode(&o); err != nil { - return err - } - s.Filter = append(s.Filter, *o) - } - default: - source := bytes.NewReader(rawMsg) - o := new(any) - if err := json.NewDecoder(source).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Filter", err) - } - s.Filter = append(s.Filter, *o) - } - } - - case "tokenizer": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - + source := bytes.NewReader(rawMsg) + localDec := json.NewDecoder(source) kind := make(map[string]string, 0) localDec.Decode(&kind) source.Seek(0, io.SeekStart) switch kind["type"] { - case "char_group": - o := NewCharGroupTokenizer() + case "asciifolding": + o := NewAsciiFoldingTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o + s.Filter = append(s.Filter, *o) + case "common_grams": + o := NewCommonGramsTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "condition": + o := NewConditionTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "delimited_payload": + o := NewDelimitedPayloadTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) case "edge_ngram": - o := NewEdgeNGramTokenizer() + o := NewEdgeNGramTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "elision": + o := NewElisionTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "fingerprint": + o := NewFingerprintTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "hunspell": + o := NewHunspellTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "hyphenation_decompounder": + o := NewHyphenationDecompounderTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "keep_types": + o := NewKeepTypesTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "keep": + o := NewKeepWordsTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "keyword_marker": + o := NewKeywordMarkerTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "kstem": + o := NewKStemTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "keyword": - o := NewKeywordTokenizer() + s.Filter = append(s.Filter, *o) + case "length": + o := NewLengthTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "letter": - o := NewLetterTokenizer() + s.Filter = append(s.Filter, *o) + case "limit": + o := NewLimitTokenCountTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o + s.Filter = append(s.Filter, *o) case "lowercase": - o := NewLowercaseTokenizer() + o := NewLowercaseTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "multiplexer": + o := NewMultiplexerTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o + s.Filter = append(s.Filter, *o) case "ngram": - o := NewNGramTokenizer() + o := NewNGramTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "nori_tokenizer": - o := NewNoriTokenizer() + s.Filter = append(s.Filter, *o) + case "nori_part_of_speech": + o := NewNoriPartOfSpeechTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "path_hierarchy": - o := NewPathHierarchyTokenizer() + s.Filter = append(s.Filter, *o) + case "pattern_capture": + o := NewPatternCaptureTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "standard": - o := NewStandardTokenizer() + s.Filter = append(s.Filter, *o) + case "pattern_replace": + o := NewPatternReplaceTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "uax_url_email": - o := NewUaxEmailUrlTokenizer() + s.Filter = append(s.Filter, *o) + case "porter_stem": + o := NewPorterStemTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "whitespace": - o := NewWhitespaceTokenizer() + s.Filter = append(s.Filter, *o) + case "predicate_token_filter": + o := NewPredicateTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "kuromoji_tokenizer": - o := NewKuromojiTokenizer() + s.Filter = append(s.Filter, *o) + case "remove_duplicates": + o := NewRemoveDuplicatesTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "pattern": - o := NewPatternTokenizer() + s.Filter = append(s.Filter, *o) + case "reverse": + o := NewReverseTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "shingle": + o := NewShingleTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o - case "icu_tokenizer": - o := NewIcuTokenizer() + s.Filter = append(s.Filter, *o) + case "snowball": + o := NewSnowballTokenFilter() if err := localDec.Decode(&o); err != nil { return err } - s.Tokenizer = *o + s.Filter = append(s.Filter, *o) + case "stemmer_override": + o := NewStemmerOverrideTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "stemmer": + o := NewStemmerTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "stop": + o := NewStopTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "synonym_graph": + o := NewSynonymGraphTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "synonym": + o := NewSynonymTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "trim": + o := NewTrimTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "truncate": + o := NewTruncateTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "unique": + o := NewUniqueTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "uppercase": + o := NewUppercaseTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "word_delimiter_graph": + o := NewWordDelimiterGraphTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "word_delimiter": + o := NewWordDelimiterTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "kuromoji_stemmer": + o := NewKuromojiStemmerTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "kuromoji_readingform": + o := NewKuromojiReadingFormTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "kuromoji_part_of_speech": + o := NewKuromojiPartOfSpeechTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "icu_collation": + o := NewIcuCollationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "icu_folding": + o := NewIcuFoldingTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "icu_normalizer": + o := NewIcuNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "icu_transform": + o := NewIcuTransformTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "phonetic": + o := NewPhoneticTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) + case "dictionary_decompounder": + o := NewDictionaryDecompounderTokenFilter() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Filter = append(s.Filter, *o) default: - if err := localDec.Decode(&s.Tokenizer); err != nil { + o := new(any) + if err := localDec.Decode(&o); err != nil { return err } + s.Filter = append(s.Filter, *o) + } + } + + case "tokenizer": + + 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) + + switch kind["type"] { + + case "char_group": + o := NewCharGroupTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "edge_ngram": + o := NewEdgeNGramTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "keyword": + o := NewKeywordTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "letter": + o := NewLetterTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "lowercase": + o := NewLowercaseTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "ngram": + o := NewNGramTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "nori_tokenizer": + o := NewNoriTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "path_hierarchy": + o := NewPathHierarchyTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "standard": + o := NewStandardTokenizer() + 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 { + return err + } + s.Tokenizer = *o + case "whitespace": + o := NewWhitespaceTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "kuromoji_tokenizer": + o := NewKuromojiTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "pattern": + o := NewPatternTokenizer() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Tokenizer = *o + case "icu_tokenizer": + o := NewIcuTokenizer() + if err := localDec.Decode(&o); err != nil { + return err } + s.Tokenizer = *o default: if err := localDec.Decode(&s.Tokenizer); err != nil { - return fmt.Errorf("%s | %w", "Tokenizer", err) + 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 3728d89d71..7a402c829a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CategorizeTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1040-L1104 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1045-L1109 type CategorizeTextAggregation struct { // CategorizationAnalyzer The categorization analyzer specifies how the text is analyzed and tokenized // before being categorized. @@ -103,20 +103,36 @@ func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error { switch t { case "categorization_analyzer": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - o := NewCustomCategorizeTextAnalyzer() - if err := localDec.Decode(&o); err != nil { - return err + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + categorizationanalyzer_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) } - s.CategorizationAnalyzer = *o - default: + switch t { + + case "char_filter", "filter", "tokenizer": + o := NewCustomCategorizeTextAnalyzer() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) + } + s.CategorizationAnalyzer = o + break categorizationanalyzer_field + + } + } + if s.CategorizationAnalyzer == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&s.CategorizationAnalyzer); err != nil { return fmt.Errorf("%s | %w", "CategorizationAnalyzer", err) } 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 01e03fe9d1..ac374f491e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // CustomCategorizeTextAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1106-L1109 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1111-L1114 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 81dabf3f01..ea63a15da9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Category type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Category.ts#L23-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. 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 39cb3bc508..2925099b48 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // CatTrainedModelsColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L636-L638 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7a224d8e2a..1310cc3b2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // CatTransformColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L845-L845 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ab7a8fb655..5883262a6a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Ccr type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L334-L337 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L334-L337 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 29f17afd24..22deb1a356 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CcrShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/_types/FollowIndexStats.ts#L35-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a1750d9a65..05afec3e3f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,9 +31,9 @@ import ( // CertificateInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ssl/certificates/types.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ssl/certificates/types.ts#L22-L31 type CertificateInformation struct { - Alias string `json:"alias,omitempty"` + Alias *string `json:"alias,omitempty"` Expiry DateTime `json:"expiry"` Format string `json:"format"` HasPrivateKey bool `json:"has_private_key"` @@ -68,7 +68,7 @@ func (s *CertificateInformation) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Alias = o + s.Alias = &o case "expiry": if err := dec.Decode(&s.Expiry); err != nil { 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 faef7e3b87..700dfc3b74 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Cgroup type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L461-L474 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L461-L474 type Cgroup struct { // Cpu Contains statistics about `cpu` control group for the node. Cpu *CgroupCpu `json:"cpu,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpu.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpu.go index f010c50580..27d576cd28 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CgroupCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L487-L504 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L487-L504 type CgroupCpu struct { // CfsPeriodMicros The period of time, in microseconds, for how regularly all tasks in the same // cgroup as the Elasticsearch process should have their access to CPU resources 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 677f6fe5e8..f63de4a7d3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CgroupCpuStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L506-L519 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L506-L519 type CgroupCpuStat struct { // NumberOfElapsedPeriods The number of reporting periods (as specified by `cfs_period_micros`) that // have elapsed. 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 97504b09a4..be1ef2372a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CgroupMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L521-L537 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L521-L537 type CgroupMemory struct { // ControlGroup The `memory` control group to which the Elasticsearch process belongs. ControlGroup *string `json:"control_group,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chaininput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chaininput.go index 9116a89014..1dcfa32f20 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ChainInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L35-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fee369c6d9..421451d6e5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // CharFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L28-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L28-L30 type CharFilter any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdefinition.go index d8a3ec8800..f0b3b31f02 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -28,5 +28,5 @@ package types // IcuNormalizationCharFilter // KuromojiIterationMarkCharFilter // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L32-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L32-L41 type CharFilterDefinition any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdetail.go index 49c88a91b3..87954cea1a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CharFilterDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a0d15b02fe..357fbc0174 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // CharFilterTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L228-L261 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 09ca5fad8d..214faff938 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CharGroupTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L56-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L56-L60 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 519554455f..03f7baabd9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Checkpointing type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d02666b8d1..b40414de0f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CheckpointStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L76-L83 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ad7c05c262..1a1993ed52 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ChildrenAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L776-L777 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L783-L784 type ChildrenAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 4f00aebf0b..1a63a759f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ChildrenAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L113-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L113-L118 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/chisquareheuristic.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chisquareheuristic.go index 579d5f25b6..41f653629a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ChiSquareHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L737-L746 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L737-L746 type ChiSquareHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. 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 fb0b38a1b6..07e81dea81 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ChunkingConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L238-L251 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L238-L251 type ChunkingConfig struct { // Mode If the mode is `auto`, the chunk size is dynamically calculated; // this is the recommended value when the datafeed does not use aggregations. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/circleprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/circleprocessor.go index 8587104ab4..6e4e13c842 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // CircleProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L410-L433 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L410-L433 type CircleProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 60d8586ed8..091939b77a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L93-L108 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9b9d17e368..38088a770e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CleanupRepositoryResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bcd1732857..0697bd4173 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Client type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L649-L696 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L649-L696 type Client struct { // Agent Reported agent for the HTTP client. // If unavailable, this property is not included in the response. 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 476f961562..9dbe05367a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CloseIndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/close/CloseIndexResponse.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8751bf96b9..4c935162c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // CloseShardResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/close/CloseIndexResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d88a2d242b..ed243b2d0c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ClusterAppliedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L221-L223 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2d2d3c68f9..5cb17c3612 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ClusterComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/_types/ComponentTemplate.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/_types/ComponentTemplate.ts#L30-L33 type ClusterComponentTemplate struct { ComponentTemplate ComponentTemplateNode `json:"component_template"` Name string `json:"name"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterdetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterdetails.go index 9d5d835e9b..7930b6b528 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ClusterDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L45-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 39a983202d..b85151f1a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterFileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L34-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 81760af791..a0996d07df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ClusterIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L570-L572 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1cbc1e1562..dc2c5dc25f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L74-L107 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6929758e01..6e9286cf4a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterIndicesShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c316e10b02..eac2e3b87c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ClusterIndicesShardsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L51-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e6ad0f3f2d..2fc9aec30c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L48-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L48-L54 type ClusterInfo struct { Nodes map[string]NodeDiskUsage `json:"nodes"` ReservedSizes []ReservedSize `json:"reserved_sizes"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfotargets.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfotargets.go index 8fa0c8fe1f..94085f2bd8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // ClusterInfoTargets type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L386-L386 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L389-L389 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 5666beb62e..804ad0dad4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L270-L273 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 215ee17772..2a3616261f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterJvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L275-L292 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dbcaa1b42f..066734287c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L294-L303 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4c0a223e06..91101e4f13 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmVersion type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L305-L335 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 58a00a1297..7fc4af372a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ClusterNetworkTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L337-L346 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1b10f2c829..8deda099a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ClusterNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/ClusterNode.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d1cb2870c4..26d593f567 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterNodeCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L348-L367 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2134a539a0..9f1c1dd180 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ClusterNodes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L369-L402 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 df0d1ae6cf..7b482bf15f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L415-L442 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0873513803..0c6602a823 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemArchitecture type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L404-L413 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5a71fb2103..a7a264a880 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemName type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L444-L453 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3945c7c2f4..6df5329adc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemPrettyName type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L455-L464 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 007b9b8427..d1715c985a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L574-L578 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 89ca93b7bb..3a34ccfd36 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ClusterProcess type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L466-L475 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b0ae8df250..0b2376260e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L477-L483 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ad8117d69d..0149632fc3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessOpenFileDescriptors type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L485-L501 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cdd87e35fd..553693dbfb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L503-L509 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 83389d35a4..ecd5e50b1f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // ClusterRemoteSniffInfo // ClusterRemoteProxyInfo // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5061b841fd..f572e2f683 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteProxyInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L42-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2dbe187a2d..ca8cdb2cde 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteSniffInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ea9aea4908..54ebe07b42 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L169-L226 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 23a7efb67b..1c1693d795 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterShardMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L511-L524 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0313749904..1f4bda15aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterStateQueue type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L248-L261 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0695ebfb35..501ef77f66 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterStateUpdate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L278-L343 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dc97fb54bd..54b567e686 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ClusterStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L27-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ebb3243142..f34a1aea59 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Collector type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L86-L91 type Collector struct { Children []Collector `json:"children,omitempty"` Name string `json:"name"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/column.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/column.go index b83b8242b8..d6fb03ca3e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Column type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6229d320ad..a841af67e3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // CombinedFieldsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L445-L479 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e82b9d82e8..24f0e113d1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Command type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 934a3a489c..894aed2e38 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CommandAllocatePrimaryAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ac091601f9..3dec16a506 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CommandAllocateReplicaAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L69-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e9285ea485..b69717d119 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CommandCancelAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 58c4a59b34..f6bd7cd0eb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CommandMoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L60-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 126d380e69..e04e8cd1c9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CommonCatQueryParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/behaviors.ts#L86-L132 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5fcfa13442..ee61b6e13e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CommonGramsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L175-L181 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L175-L181 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 410201db99..f68b7ac916 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CommonQueryParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/behaviors.ts#L50-L84 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b3ca61b65f..d12c5f9edc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // CommonTermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L34-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 @@ -58,7 +58,10 @@ func (s *CommonTermsQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Query) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 bb1d7ba8e4..de477094e9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // CompactNodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 932b7ac552..bf2f54a9b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CompletionContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L232-L261 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. @@ -90,23 +90,8 @@ func (s *CompletionContext) UnmarshalJSON(data []byte) error { } case "context": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - o := new(GeoLocation) - if err := localDec.Decode(&o); err != nil { - return err - } - s.Context = *o - - default: - if err := localDec.Decode(&s.Context); err != nil { - return fmt.Errorf("%s | %w", "Context", err) - } + if err := dec.Decode(&s.Context); err != nil { + return fmt.Errorf("%s | %w", "Context", err) } case "neighbours": 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 2bdf8c6807..5189b44fc3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // CompletionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L33-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L33-L41 type CompletionProperty struct { Analyzer *string `json:"analyzer,omitempty"` Contexts []SuggestContext `json:"contexts,omitempty"` @@ -239,12 +239,6 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -263,6 +257,18 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -620,12 +626,6 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -644,6 +644,18 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 20d9b449ac..55316051a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CompletionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L59-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ba56ba79be..7f97226223 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CompletionStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L80-L90 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b84b1f7c8c..72e049d4cb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L48-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4e7b02b1eb..c61236914e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L160-L178 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f17dfab9f3..952f061a42 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L73-L84 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fc891d6a25..0c8e03a791 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ComponentTemplateNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/_types/ComponentTemplate.ts#L35-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/_types/ComponentTemplate.ts#L35-L40 type ComponentTemplateNode struct { Meta_ Metadata `json:"_meta,omitempty"` Template ComponentTemplateSummary `json:"template"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatesummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatesummary.go index 675c72cf46..4caf2820c7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ComponentTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/_types/ComponentTemplate.ts#L42-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/_types/ComponentTemplate.ts#L42-L54 type ComponentTemplateSummary struct { Aliases map[string]AliasDefinition `json:"aliases,omitempty"` Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregate.go index d7cf1b3cc0..5f23e6d2d3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // CompositeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L618-L623 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L622-L627 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 e98d92f521..02885dcd53 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // CompositeAggregateKey type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L120-L120 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L120-L120 type CompositeAggregateKey map[string]FieldValue diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregation.go index d864453a10..e1f5e52228 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CompositeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L122-L138 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L122-L138 type CompositeAggregation struct { // After When paginating, use the `after_key` value returned in the previous response // to retrieve the next page. 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 d26e633dfb..71347df2f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // CompositeAggregationSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L140-L157 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L140-L157 type CompositeAggregationSource struct { // DateHistogram A date histogram aggregation. DateHistogram *CompositeDateHistogramAggregation `json:"date_histogram,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositebucket.go index 6f33bd6f84..e14c0b92e0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // CompositeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L625-L627 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L629-L631 type CompositeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 16b31a1abe..267e0457ae 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // CompositeDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L176-L184 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L176-L184 type CompositeDateHistogramAggregation struct { // CalendarInterval Either `calendar_interval` or `fixed_interval` must be present CalendarInterval *string `json:"calendar_interval,omitempty"` @@ -49,7 +49,7 @@ type CompositeDateHistogramAggregation struct { Offset Duration `json:"offset,omitempty"` Order *sortorder.SortOrder `json:"order,omitempty"` // Script Either `field` or `script` must be present - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` TimeZone *string `json:"time_zone,omitempty"` ValueType *valuetype.ValueType `json:"value_type,omitempty"` } @@ -126,40 +126,9 @@ func (s *CompositeDateHistogramAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "time_zone": if err := dec.Decode(&s.TimeZone); err != nil { 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 479e1df48a..00d177927d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // CompositeGeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L186-L189 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L186-L189 type CompositeGeoTileGridAggregation struct { Bounds GeoBounds `json:"bounds,omitempty"` // Field Either `field` or `script` must be present @@ -45,7 +45,7 @@ type CompositeGeoTileGridAggregation struct { Order *sortorder.SortOrder `json:"order,omitempty"` Precision *int `json:"precision,omitempty"` // Script Either `field` or `script` must be present - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` ValueType *valuetype.ValueType `json:"value_type,omitempty"` } @@ -65,9 +65,67 @@ func (s *CompositeGeoTileGridAggregation) UnmarshalJSON(data []byte) error { switch t { case "bounds": - if err := dec.Decode(&s.Bounds); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Bounds", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + bounds_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Bounds", err) + } + + switch t { + + case "bottom", "left", "right", "top": + o := NewCoordsGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_right", "top_left": + o := NewTopLeftBottomRightGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_left", "top_right": + o := NewTopRightBottomLeftGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "wkt": + o := NewWktGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + } + } + if s.Bounds == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Bounds); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + } case "field": if err := dec.Decode(&s.Field); err != nil { @@ -115,40 +173,9 @@ func (s *CompositeGeoTileGridAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "value_type": if err := dec.Decode(&s.ValueType); err != nil { 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 98acdfd89a..4a2fa97c28 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // CompositeHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L172-L174 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L172-L174 type CompositeHistogramAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` @@ -44,7 +44,7 @@ type CompositeHistogramAggregation struct { MissingOrder *missingorder.MissingOrder `json:"missing_order,omitempty"` Order *sortorder.SortOrder `json:"order,omitempty"` // Script Either `field` or `script` must be present - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` ValueType *valuetype.ValueType `json:"value_type,omitempty"` } @@ -109,40 +109,9 @@ func (s *CompositeHistogramAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "value_type": if err := dec.Decode(&s.ValueType); err != nil { 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 606db00e61..9195714346 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // CompositeTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L170-L170 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L170-L170 type CompositeTermsAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` @@ -43,7 +43,7 @@ type CompositeTermsAggregation struct { MissingOrder *missingorder.MissingOrder `json:"missing_order,omitempty"` Order *sortorder.SortOrder `json:"order,omitempty"` // Script Either `field` or `script` must be present - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` ValueType *valuetype.ValueType `json:"value_type,omitempty"` } @@ -92,40 +92,9 @@ func (s *CompositeTermsAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "value_type": if err := dec.Decode(&s.ValueType); err != nil { 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 b54460d733..975085e110 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ConditionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L183-L187 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L183-L187 type ConditionTokenFilter struct { Filter []string `json:"filter"` Script Script `json:"script"` @@ -59,40 +59,9 @@ func (s *ConditionTokenFilter) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "type": if err := dec.Decode(&s.Type); err != nil { 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 10cb6f82a5..f2e8f18922 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Configuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L99-L129 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a16b85f32c..b50a3a8937 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4604ca0912..d481e5dbb7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixPrediction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L132-L135 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 25d4094cf1..869ef7d68b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixThreshold type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L137-L158 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e526d2dad1..1316a1d791 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Connection type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Connection.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..ef95ada7aa --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connector.go @@ -0,0 +1,347 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" +) + +// Connector type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` + Configuration ConnectorConfiguration `json:"configuration"` + CustomScheduling ConnectorCustomScheduling `json:"custom_scheduling"` + Description *string `json:"description,omitempty"` + Error *string `json:"error,omitempty"` + Features *ConnectorFeatures `json:"features,omitempty"` + Filtering []FilteringConfig `json:"filtering"` + Id *string `json:"id,omitempty"` + IndexName *string `json:"index_name,omitempty"` + IsNative bool `json:"is_native"` + Language *string `json:"language,omitempty"` + LastAccessControlSyncError *string `json:"last_access_control_sync_error,omitempty"` + LastAccessControlSyncScheduledAt DateTime `json:"last_access_control_sync_scheduled_at,omitempty"` + LastAccessControlSyncStatus *syncstatus.SyncStatus `json:"last_access_control_sync_status,omitempty"` + LastDeletedDocumentCount *int64 `json:"last_deleted_document_count,omitempty"` + LastIncrementalSyncScheduledAt DateTime `json:"last_incremental_sync_scheduled_at,omitempty"` + LastIndexedDocumentCount *int64 `json:"last_indexed_document_count,omitempty"` + LastSeen DateTime `json:"last_seen,omitempty"` + LastSyncError *string `json:"last_sync_error,omitempty"` + LastSyncScheduledAt DateTime `json:"last_sync_scheduled_at,omitempty"` + LastSyncStatus *syncstatus.SyncStatus `json:"last_sync_status,omitempty"` + LastSynced DateTime `json:"last_synced,omitempty"` + Name *string `json:"name,omitempty"` + Pipeline *IngestPipelineParams `json:"pipeline,omitempty"` + Scheduling SchedulingConfiguration `json:"scheduling"` + ServiceType *string `json:"service_type,omitempty"` + Status connectorstatus.ConnectorStatus `json:"status"` + SyncCursor json.RawMessage `json:"sync_cursor,omitempty"` + SyncNow bool `json:"sync_now"` +} + +func (s *Connector) 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 "api_key_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKeyId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKeyId = &o + + case "api_key_secret_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKeySecretId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKeySecretId = &o + + case "configuration": + if err := dec.Decode(&s.Configuration); err != nil { + return fmt.Errorf("%s | %w", "Configuration", err) + } + + case "custom_scheduling": + if err := dec.Decode(&s.CustomScheduling); err != nil { + return fmt.Errorf("%s | %w", "CustomScheduling", 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 "error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Error", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Error = &o + + case "features": + if err := dec.Decode(&s.Features); err != nil { + return fmt.Errorf("%s | %w", "Features", err) + } + + case "filtering": + if err := dec.Decode(&s.Filtering); err != nil { + return fmt.Errorf("%s | %w", "Filtering", err) + } + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "index_name": + if err := dec.Decode(&s.IndexName); err != nil { + return fmt.Errorf("%s | %w", "IndexName", err) + } + + case "is_native": + 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", "IsNative", err) + } + s.IsNative = value + case bool: + s.IsNative = v + } + + case "language": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Language", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Language = &o + + case "last_access_control_sync_error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncError", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.LastAccessControlSyncError = &o + + case "last_access_control_sync_scheduled_at": + if err := dec.Decode(&s.LastAccessControlSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncScheduledAt", err) + } + + case "last_access_control_sync_status": + if err := dec.Decode(&s.LastAccessControlSyncStatus); err != nil { + return fmt.Errorf("%s | %w", "LastAccessControlSyncStatus", err) + } + + case "last_deleted_document_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", "LastDeletedDocumentCount", err) + } + s.LastDeletedDocumentCount = &value + case float64: + f := int64(v) + s.LastDeletedDocumentCount = &f + } + + case "last_incremental_sync_scheduled_at": + if err := dec.Decode(&s.LastIncrementalSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastIncrementalSyncScheduledAt", err) + } + + case "last_indexed_document_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", "LastIndexedDocumentCount", err) + } + s.LastIndexedDocumentCount = &value + case float64: + f := int64(v) + s.LastIndexedDocumentCount = &f + } + + case "last_seen": + if err := dec.Decode(&s.LastSeen); err != nil { + return fmt.Errorf("%s | %w", "LastSeen", err) + } + + case "last_sync_error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "LastSyncError", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.LastSyncError = &o + + case "last_sync_scheduled_at": + if err := dec.Decode(&s.LastSyncScheduledAt); err != nil { + return fmt.Errorf("%s | %w", "LastSyncScheduledAt", err) + } + + case "last_sync_status": + if err := dec.Decode(&s.LastSyncStatus); err != nil { + return fmt.Errorf("%s | %w", "LastSyncStatus", err) + } + + case "last_synced": + if err := dec.Decode(&s.LastSynced); err != nil { + return fmt.Errorf("%s | %w", "LastSynced", 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 "pipeline": + if err := dec.Decode(&s.Pipeline); err != nil { + return fmt.Errorf("%s | %w", "Pipeline", err) + } + + case "scheduling": + if err := dec.Decode(&s.Scheduling); err != nil { + return fmt.Errorf("%s | %w", "Scheduling", err) + } + + case "service_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceType = &o + + case "status": + if err := dec.Decode(&s.Status); err != nil { + return fmt.Errorf("%s | %w", "Status", err) + } + + case "sync_cursor": + if err := dec.Decode(&s.SyncCursor); err != nil { + return fmt.Errorf("%s | %w", "SyncCursor", err) + } + + case "sync_now": + 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", "SyncNow", err) + } + s.SyncNow = value + case bool: + s.SyncNow = v + } + + } + } + return nil +} + +// NewConnector returns a Connector. +func NewConnector() *Connector { + r := &Connector{} + + return r +} 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 new file mode 100644 index 0000000000..834e879177 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfigproperties.go @@ -0,0 +1,261 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype" +) + +// ConnectorConfigProperties type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L83-L99 +type ConnectorConfigProperties struct { + Category *string `json:"category,omitempty"` + DefaultValue ScalarValue `json:"default_value"` + DependsOn []Dependency `json:"depends_on"` + Display displaytype.DisplayType `json:"display"` + Label string `json:"label"` + Options []SelectOption `json:"options"` + Order *int `json:"order,omitempty"` + Placeholder *string `json:"placeholder,omitempty"` + Required bool `json:"required"` + Sensitive bool `json:"sensitive"` + Tooltip *string `json:"tooltip,omitempty"` + Type *connectorfieldtype.ConnectorFieldType `json:"type,omitempty"` + UiRestrictions []string `json:"ui_restrictions,omitempty"` + Validations []Validation `json:"validations,omitempty"` + Value json.RawMessage `json:"value,omitempty"` +} + +func (s *ConnectorConfigProperties) 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 "category": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Category", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Category = &o + + case "default_value": + if err := dec.Decode(&s.DefaultValue); err != nil { + return fmt.Errorf("%s | %w", "DefaultValue", err) + } + + case "depends_on": + if err := dec.Decode(&s.DependsOn); err != nil { + return fmt.Errorf("%s | %w", "DependsOn", err) + } + + case "display": + if err := dec.Decode(&s.Display); err != nil { + return fmt.Errorf("%s | %w", "Display", err) + } + + case "label": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Label", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Label = o + + case "options": + if err := dec.Decode(&s.Options); err != nil { + return fmt.Errorf("%s | %w", "Options", err) + } + + case "order": + + 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", "Order", err) + } + s.Order = &value + case float64: + f := int(v) + s.Order = &f + } + + case "placeholder": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Placeholder", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Placeholder = &o + + case "required": + 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", "Required", err) + } + s.Required = value + case bool: + s.Required = v + } + + case "sensitive": + 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", "Sensitive", err) + } + s.Sensitive = value + case bool: + s.Sensitive = v + } + + case "tooltip": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Tooltip", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Tooltip = &o + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "ui_restrictions": + if err := dec.Decode(&s.UiRestrictions); err != nil { + return fmt.Errorf("%s | %w", "UiRestrictions", err) + } + + case "validations": + + buf := []json.RawMessage{} + dec.Decode(&buf) + for _, rawMsg := range buf { + + source := bytes.NewReader(rawMsg) + localDec := json.NewDecoder(source) + kind := make(map[string]string, 0) + localDec.Decode(&kind) + source.Seek(0, io.SeekStart) + + switch kind["type"] { + + case "less_than": + o := NewLessThanValidation() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Validations = append(s.Validations, *o) + case "greater_than": + o := NewGreaterThanValidation() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Validations = append(s.Validations, *o) + case "list_type": + o := NewListTypeValidation() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Validations = append(s.Validations, *o) + case "included_in": + o := NewIncludedInValidation() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Validations = append(s.Validations, *o) + case "regex": + o := NewRegexValidation() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Validations = append(s.Validations, *o) + default: + o := new(any) + if err := localDec.Decode(&o); err != nil { + return err + } + s.Validations = append(s.Validations, *o) + } + } + + case "value": + if err := dec.Decode(&s.Value); err != nil { + return fmt.Errorf("%s | %w", "Value", err) + } + + } + } + return nil +} + +// NewConnectorConfigProperties returns a ConnectorConfigProperties. +func NewConnectorConfigProperties() *ConnectorConfigProperties { + r := &ConnectorConfigProperties{} + + return r +} 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 new file mode 100644 index 0000000000..521b85e99a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorconfiguration.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +// ConnectorConfiguration type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..b82dec8a61 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorcustomscheduling.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +// ConnectorCustomScheduling type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..c3dcd9e8d8 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorfeatures.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +// ConnectorFeatures type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L224-L229 +type ConnectorFeatures struct { + DocumentLevelSecurity *FeatureEnabled `json:"document_level_security,omitempty"` + IncrementalSync *FeatureEnabled `json:"incremental_sync,omitempty"` + NativeConnectorApiKeys *FeatureEnabled `json:"native_connector_api_keys,omitempty"` + SyncRules *SyncRulesFeature `json:"sync_rules,omitempty"` +} + +// NewConnectorFeatures returns a ConnectorFeatures. +func NewConnectorFeatures() *ConnectorFeatures { + r := &ConnectorFeatures{} + + return r +} 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 new file mode 100644 index 0000000000..d9b287cb47 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorscheduling.go @@ -0,0 +1,92 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ConnectorScheduling type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L106-L110 +type ConnectorScheduling struct { + Enabled bool `json:"enabled"` + // Interval The interval is expressed using the crontab syntax + Interval string `json:"interval"` +} + +func (s *ConnectorScheduling) 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 "interval": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Interval", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Interval = o + + } + } + return nil +} + +// NewConnectorScheduling returns a ConnectorScheduling. +func NewConnectorScheduling() *ConnectorScheduling { + r := &ConnectorScheduling{} + + return r +} 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 new file mode 100644 index 0000000000..36e2f96530 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connectorsyncjob.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" +) + +// ConnectorSyncJob type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/SyncJob.ts#L53-L72 +type ConnectorSyncJob struct { + CancelationRequestedAt DateTime `json:"cancelation_requested_at,omitempty"` + CanceledAt DateTime `json:"canceled_at,omitempty"` + CompletedAt DateTime `json:"completed_at,omitempty"` + Connector SyncJobConnectorReference `json:"connector"` + CreatedAt DateTime `json:"created_at"` + DeletedDocumentCount int64 `json:"deleted_document_count"` + Error *string `json:"error,omitempty"` + Id string `json:"id"` + IndexedDocumentCount int64 `json:"indexed_document_count"` + IndexedDocumentVolume int64 `json:"indexed_document_volume"` + JobType syncjobtype.SyncJobType `json:"job_type"` + LastSeen DateTime `json:"last_seen,omitempty"` + Metadata map[string]json.RawMessage `json:"metadata"` + StartedAt DateTime `json:"started_at,omitempty"` + Status syncstatus.SyncStatus `json:"status"` + TotalDocumentCount int64 `json:"total_document_count"` + TriggerMethod syncjobtriggermethod.SyncJobTriggerMethod `json:"trigger_method"` + WorkerHostname *string `json:"worker_hostname,omitempty"` +} + +func (s *ConnectorSyncJob) 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 "cancelation_requested_at": + if err := dec.Decode(&s.CancelationRequestedAt); err != nil { + return fmt.Errorf("%s | %w", "CancelationRequestedAt", err) + } + + case "canceled_at": + if err := dec.Decode(&s.CanceledAt); err != nil { + return fmt.Errorf("%s | %w", "CanceledAt", err) + } + + case "completed_at": + if err := dec.Decode(&s.CompletedAt); err != nil { + return fmt.Errorf("%s | %w", "CompletedAt", err) + } + + case "connector": + if err := dec.Decode(&s.Connector); err != nil { + return fmt.Errorf("%s | %w", "Connector", err) + } + + case "created_at": + if err := dec.Decode(&s.CreatedAt); err != nil { + return fmt.Errorf("%s | %w", "CreatedAt", err) + } + + case "deleted_document_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", "DeletedDocumentCount", err) + } + s.DeletedDocumentCount = value + case float64: + f := int64(v) + s.DeletedDocumentCount = f + } + + case "error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Error", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Error = &o + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "indexed_document_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", "IndexedDocumentCount", err) + } + s.IndexedDocumentCount = value + case float64: + f := int64(v) + s.IndexedDocumentCount = f + } + + case "indexed_document_volume": + 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", "IndexedDocumentVolume", err) + } + s.IndexedDocumentVolume = value + case float64: + f := int64(v) + s.IndexedDocumentVolume = f + } + + case "job_type": + if err := dec.Decode(&s.JobType); err != nil { + return fmt.Errorf("%s | %w", "JobType", err) + } + + case "last_seen": + if err := dec.Decode(&s.LastSeen); err != nil { + return fmt.Errorf("%s | %w", "LastSeen", err) + } + + case "metadata": + if s.Metadata == nil { + s.Metadata = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.Metadata); err != nil { + return fmt.Errorf("%s | %w", "Metadata", err) + } + + case "started_at": + if err := dec.Decode(&s.StartedAt); err != nil { + return fmt.Errorf("%s | %w", "StartedAt", err) + } + + case "status": + if err := dec.Decode(&s.Status); err != nil { + return fmt.Errorf("%s | %w", "Status", err) + } + + case "total_document_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", "TotalDocumentCount", err) + } + s.TotalDocumentCount = value + case float64: + f := int64(v) + s.TotalDocumentCount = f + } + + case "trigger_method": + if err := dec.Decode(&s.TriggerMethod); err != nil { + return fmt.Errorf("%s | %w", "TriggerMethod", err) + } + + case "worker_hostname": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "WorkerHostname", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.WorkerHostname = &o + + } + } + return nil +} + +// NewConnectorSyncJob returns a ConnectorSyncJob. +func NewConnectorSyncJob() *ConnectorSyncJob { + r := &ConnectorSyncJob{ + Metadata: make(map[string]json.RawMessage, 0), + } + + return r +} 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 b4f09f608c..c65546c419 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ConstantKeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L50-L53 type ConstantKeywordProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -183,12 +183,6 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -207,6 +201,18 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -520,12 +526,6 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -544,6 +544,18 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantscorequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantscorequery.go index 7aff09795f..2c89c2412a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ConstantScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L69-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L70-L77 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 f07e2f68a8..1897e3df46 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // GeoLocation // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9c519945a1..2be7e3ef8a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ContextMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_context/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e809b9d38f..a122838b10 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ContextMethodParam type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_context/types.ts#L33-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0d1fca8d4c..1e5e5f4851 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ConvertProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L445-L465 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L445-L465 type ConvertProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 8e881d16b3..d6200221c9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CoordinatorStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/stats/types.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/stats/types.ts#L29-L35 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 09cd9f67ce..c5bd012e67 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CoordsGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L154-L159 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 953865a7e1..d58570733f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CoreKnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/knn_search/_types/Knn.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 834a410b6a..ea5ecb1d51 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Counter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L35-L38 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 9d607b4c74..25253736f2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CountRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/count/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c6738871d3..bb1eaed98e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Cpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L539-L548 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L539-L548 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 85f1005882..192083d401 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CpuAcct type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L476-L485 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L476-L485 type CpuAcct struct { // ControlGroup The `cpuacct` control group to which the Elasticsearch process belongs. ControlGroup *string `json:"control_group,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createdstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createdstatus.go index 9f32112cc0..e1a6797312 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CreatedStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/CreatedStatus.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5f9ae5432e..c322b2a38a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // CreateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L130-L130 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 52a0c045d5..0b1a28fd02 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CsvProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L467-L500 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L467-L500 type CsvProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 ffad757ab6..93ecfd35d7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CumulativeCardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L747-L755 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L754-L762 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 5fa652890b..9947c1664c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // CumulativeCardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L192-L192 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L192-L192 type CumulativeCardinalityAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 97a1d10b90..a1f6fb8d2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // CumulativeSumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L194-L194 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L194-L194 type CumulativeSumAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 946f04d73c..a32a2220ca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CurrentNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L78-L84 type CurrentNode struct { Attributes map[string]string `json:"attributes"` Id string `json:"id"` 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 b2f74d2455..fbd54ccb51 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CustomAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L28-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L28-L35 type CustomAnalyzer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` 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 73c4dcadc5..13954784c6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // CustomCategorizeTextAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1111-L1115 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1116-L1120 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 f5ad206874..446c6fcc3d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // CustomNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/normalizers.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..76d783b927 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customscheduling.go @@ -0,0 +1,116 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// CustomScheduling type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L120-L126 +type CustomScheduling struct { + ConfigurationOverrides CustomSchedulingConfigurationOverrides `json:"configuration_overrides"` + Enabled bool `json:"enabled"` + Interval string `json:"interval"` + LastSynced DateTime `json:"last_synced,omitempty"` + Name string `json:"name"` +} + +func (s *CustomScheduling) 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 "configuration_overrides": + if err := dec.Decode(&s.ConfigurationOverrides); err != nil { + return fmt.Errorf("%s | %w", "ConfigurationOverrides", err) + } + + 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 "interval": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Interval", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Interval = o + + case "last_synced": + if err := dec.Decode(&s.LastSynced); err != nil { + return fmt.Errorf("%s | %w", "LastSynced", err) + } + + case "name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name = o + + } + } + return nil +} + +// NewCustomScheduling returns a CustomScheduling. +func NewCustomScheduling() *CustomScheduling { + r := &CustomScheduling{} + + return r +} 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 new file mode 100644 index 0000000000..e45ea1f5e0 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customschedulingconfigurationoverrides.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// CustomSchedulingConfigurationOverrides type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L112-L118 +type CustomSchedulingConfigurationOverrides struct { + DomainAllowlist []string `json:"domain_allowlist,omitempty"` + MaxCrawlDepth *int `json:"max_crawl_depth,omitempty"` + SeedUrls []string `json:"seed_urls,omitempty"` + SitemapDiscoveryDisabled *bool `json:"sitemap_discovery_disabled,omitempty"` + SitemapUrls []string `json:"sitemap_urls,omitempty"` +} + +func (s *CustomSchedulingConfigurationOverrides) 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 "domain_allowlist": + if err := dec.Decode(&s.DomainAllowlist); err != nil { + return fmt.Errorf("%s | %w", "DomainAllowlist", err) + } + + case "max_crawl_depth": + + 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", "MaxCrawlDepth", err) + } + s.MaxCrawlDepth = &value + case float64: + f := int(v) + s.MaxCrawlDepth = &f + } + + case "seed_urls": + if err := dec.Decode(&s.SeedUrls); err != nil { + return fmt.Errorf("%s | %w", "SeedUrls", err) + } + + case "sitemap_discovery_disabled": + 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", "SitemapDiscoveryDisabled", err) + } + s.SitemapDiscoveryDisabled = &value + case bool: + s.SitemapDiscoveryDisabled = &v + } + + case "sitemap_urls": + if err := dec.Decode(&s.SitemapUrls); err != nil { + return fmt.Errorf("%s | %w", "SitemapUrls", err) + } + + } + } + return nil +} + +// NewCustomSchedulingConfigurationOverrides returns a CustomSchedulingConfigurationOverrides. +func NewCustomSchedulingConfigurationOverrides() *CustomSchedulingConfigurationOverrides { + r := &CustomSchedulingConfigurationOverrides{} + + 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 3f70afc731..e1fa953ed3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DailySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f66c496caf..e6dd5db2c4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DanglingIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34 type DanglingIndex struct { CreationDateMillis int64 `json:"creation_date_millis"` IndexName string `json:"index_name"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datacounts.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datacounts.go index a825f212e7..1fe94e75a7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L352-L372 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 95120a87b4..9156a84401 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataDescription type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L374-L390 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 08346ed24e..7394702770 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // DataEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L234-L236 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cb7862e3ff..4413d8d6d8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DatafeedAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Authorization.ts#L31-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 36a6e7bd03..0855de6d27 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DatafeedConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L59-L116 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L59-L116 type DatafeedConfig struct { // Aggregations If set, the datafeed performs aggregation searches. Support for aggregations // is limited and should be used only with low cardinality data. @@ -145,8 +145,19 @@ func (s *DatafeedConfig) UnmarshalJSON(data []byte) error { } case "indices", "indexes": - if err := dec.Decode(&s.Indices); err != nil { - return fmt.Errorf("%s | %w", "Indices", 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", "Indices", err) + } + + s.Indices = append(s.Indices, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Indices); err != nil { + return fmt.Errorf("%s | %w", "Indices", err) + } } case "indices_options": 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 17d139840c..05f10a33f6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DatafeedRunningState type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L197-L211 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L197-L211 type DatafeedRunningState struct { // RealTimeConfigured Indicates if the datafeed is "real-time"; meaning that the datafeed has no // configured `end` time. 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 98174deb37..a6436d3f8b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Datafeeds type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L40-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a1780d700b..86ddd6d88f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DatafeedsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_datafeeds/types.ts#L22-L87 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8b2ae00159..48ef1622ae 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DatafeedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L139-L168 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L139-L168 type DatafeedStats struct { // AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a // node. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedtimingstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedtimingstats.go index e80a5827e7..aef367c9db 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DatafeedTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L170-L195 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L170-L195 type DatafeedTimingStats struct { // AverageSearchTimePerBucketMs The average search time per bucket, in milliseconds. AverageSearchTimePerBucketMs Float64 `json:"average_search_time_per_bucket_ms,omitempty"` 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 4ca5f73fda..842cd5beed 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L134-L213 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L134-L213 type DataframeAnalysis struct { // Alpha Advanced configuration option. Machine learning uses loss guided tree // growing, which means that the decision trees grow where the regularized loss 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 a599c10027..85fd12c42e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisAnalyzedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L238-L244 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L238-L244 type DataframeAnalysisAnalyzedFields struct { // Excludes An array of strings that defines the fields that will be included in the // analysis. @@ -44,8 +44,13 @@ type DataframeAnalysisAnalyzedFields struct { func (s *DataframeAnalysisAnalyzedFields) UnmarshalJSON(data []byte) error { if !bytes.HasPrefix(data, []byte(`{`)) { - err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Includes) - return err + var item string + err := json.NewDecoder(bytes.NewReader(data)).Decode(&item) + if err != nil { + return err + } + s.Includes = append(s.Includes, item) + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 c8a49ad934..3b20276cf6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L227-L236 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L227-L236 type DataframeAnalysisClassification struct { // Alpha Advanced configuration option. Machine learning uses loss guided tree // growing, which means that the decision trees grow where the regularized loss 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 1f5ef2056f..00fff9aa48 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataframeAnalysisContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L84-L101 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L84-L101 type DataframeAnalysisContainer struct { // Classification The configuration information necessary to perform classification. Classification *DataframeAnalysisClassification `json:"classification,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessor.go index a7d03714c5..e93f4711da 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataframeAnalysisFeatureProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L246-L258 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L246-L258 type DataframeAnalysisFeatureProcessor struct { // FrequencyEncoding The configuration information necessary to perform frequency encoding. FrequencyEncoding *DataframeAnalysisFeatureProcessorFrequencyEncoding `json:"frequency_encoding,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go index 6436a566dd..3b5c30c5ec 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisFeatureProcessorFrequencyEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L260-L267 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L260-L267 type DataframeAnalysisFeatureProcessorFrequencyEncoding struct { // FeatureName The resulting feature name. FeatureName string `json:"feature_name"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go index ca9ee38cd8..98dd73afb6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataframeAnalysisFeatureProcessorMultiEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L269-L272 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L269-L272 type DataframeAnalysisFeatureProcessorMultiEncoding struct { // Processors The ordered array of custom processors to execute. Must be more than 1. Processors []int `json:"processors"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go index 3ac68dfc10..ec18686e1c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorNGramEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L274-L286 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L274-L286 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 fd24a6705b..39079b0de5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorOneHotEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L288-L293 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L288-L293 type DataframeAnalysisFeatureProcessorOneHotEncoding struct { // Field The name of the field to encode. Field string `json:"field"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go index a2c0d64356..e5f1b4c613 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorTargetMeanEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L295-L304 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L295-L304 type DataframeAnalysisFeatureProcessorTargetMeanEncoding struct { // DefaultValue The default value if field value is not found in the target_map. DefaultValue int `json:"default_value"` 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 cf02982960..b820330e53 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L103-L132 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L103-L132 type DataframeAnalysisOutlierDetection struct { // ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled. ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"` 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 17e92cb724..cf855770ea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L215-L225 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L215-L225 type DataframeAnalysisRegression struct { // Alpha Advanced configuration option. Machine learning uses loss guided tree // growing, which means that the decision trees grow where the regularized loss 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 cd50457d82..46746ede9c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DataframeAnalytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L324-L344 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L324-L344 type DataframeAnalytics struct { // AnalysisStats An object containing information about the analysis job. AnalysisStats *DataframeAnalyticsStatsContainer `json:"analysis_stats,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsauthorization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsauthorization.go index 0923204b01..74468aa6b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Authorization.ts#L45-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 51a24e22d9..aa86447278 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L77-L82 type DataframeAnalyticsDestination struct { // Index Defines the destination index to store the results of the data frame // analytics job. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsfieldselection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsfieldselection.go index 6927689818..9a9dea6829 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsFieldSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L55-L68 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L55-L68 type DataframeAnalyticsFieldSelection struct { // FeatureType The feature type of this field for the analysis. May be categorical or // numerical. 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 5bb4123176..39be89a41e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsMemoryEstimation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L70-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L70-L75 type DataframeAnalyticsMemoryEstimation struct { // ExpectedMemoryWithDisk Estimated memory usage under the assumption that overflowing to disk is // allowed during data frame analytics. expected_memory_with_disk is usually diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsrecord.go index 90436113b5..6d579c3368 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataFrameAnalyticsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_data_frame_analytics/types.ts#L22-L102 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 702d82ae26..d639e42332 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L39-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L39-L53 type DataframeAnalyticsSource struct { // Index Index or indices on which to perform the analysis. It can be a single index // or index pattern as well as an array of indices or patterns. NOTE: If your diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatscontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatscontainer.go index 16a3791627..ad8b265fef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataframeAnalyticsStatsContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L373-L381 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L373-L381 type DataframeAnalyticsStatsContainer struct { // ClassificationStats An object containing information about the classification analysis job. ClassificationStats *DataframeAnalyticsStatsHyperparameters `json:"classification_stats,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsdatacounts.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsdatacounts.go index ae5f5dcac9..6ed80bcc79 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsDataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L364-L371 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L364-L371 type DataframeAnalyticsStatsDataCounts struct { // SkippedDocsCount The number of documents that are skipped during the analysis because they // contained values that are not supported by the analysis. For example, outlier 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 385e26ac52..723dc8582d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsHyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L383-L402 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L383-L402 type DataframeAnalyticsStatsHyperparameters struct { // Hyperparameters An object containing the parameters of the classification analysis job. Hyperparameters Hyperparameters `json:"hyperparameters"` 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 5bc3fa28b6..840a19f7ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L353-L362 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L353-L362 type DataframeAnalyticsStatsMemoryUsage struct { // MemoryReestimateBytes This value is present when the status is hard_limit and it is a new estimate // of how much memory the job needs. 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 3589583791..4d23bf9357 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsStatsOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L404-L417 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L404-L417 type DataframeAnalyticsStatsOutlierDetection struct { // Parameters The list of job parameters specified by the user or determined by algorithmic // heuristics. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsprogress.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsprogress.go index 222c246720..3c49be38ac 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L346-L351 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L346-L351 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 e703ed0460..30d638487d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L306-L322 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L306-L322 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 52820faab2..abb722db55 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataframeClassificationSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L44-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f341ebba5b..3daed327a2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryAccuracy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5930563662..17d00c8adf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryMulticlassConfusionMatrix type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L120-L123 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2f0fabb798..25c87b1071 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 967a1a72db..1b21fc0718 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L106-L109 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b949e70ee9..9ab7461615 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L116-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 74f59fd59e..699dbe9c28 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L35-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8605e4ba1d..e9d9232a38 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationClassificationMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L73-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e74997a721..579f372a12 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClassificationMetricsAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L85-L90 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4892c495b1..13f29cc2a9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataframeEvaluationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 063c74d1f7..2b2db74cc4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L64-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9fe2db4171..ec00a789c2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L46-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5acbd1a523..bc18c08d60 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationOutlierDetectionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L80-L83 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 98f3b49e08..af8099668e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L55-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 edf9fd2d57..2e505e2178 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationRegressionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L92-L110 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8d9ba1104b..143891ca04 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsHuber type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L117-L120 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dbdb2cc50d..1ecef3981e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsMsle type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L112-L115 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 81bc63e3ac..899c0880d6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L91-L93 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a3b0592b49..6dc416008d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRocCurveItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L95-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8c10d11299..dd645d4b6a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L87-L89 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c0b34ef1d3..200b803c2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataframeOutlierDetectionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0774c2ba39..75a88c9761 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataframePreviewConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_data_frame_analytics/types.ts#L27-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ac698677d..75f41b5e7c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataframeRegressionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L68-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b405300a21..bfdf4c6216 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataPathStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L550-L594 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L550-L594 type DataPathStats struct { // Available Total amount of disk space available to this Java virtual machine on this // file store. 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 711b0ba38d..ed46e64cf9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // DataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L39-L112 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L39-L112 type DataStream struct { // AllowCustomRouting If `true`, the data stream allows custom routing on write request. AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` 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 f469675ed3..da56f3a462 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DataStreamIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L121-L142 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L121-L142 type DataStreamIndex struct { // IlmPolicy Name of the current ILM lifecycle policy configured for this backing index. IlmPolicy *string `json:"ilm_policy,omitempty"` 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 29308f2a0d..99097194ca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataStreamLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStreamLifecycle.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStreamLifecycle.ts#L25-L31 type DataStreamLifecycle struct { DataRetention Duration `json:"data_retention,omitempty"` Downsampling *DataStreamLifecycleDownsampling `json:"downsampling,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledownsampling.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledownsampling.go index 452d1bbec5..9b8cd6264d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataStreamLifecycleDownsampling type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bf75b355b3..e1438d58f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleExplain type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/datastreamlifecyclerolloverconditions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclerolloverconditions.go index f597ac1c3c..ce38cbe886 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleRolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStreamLifecycle.ts#L57-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6a1376b541..34a42e7d81 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataStreamLifecycleWithRollover type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStreamLifecycle.ts#L33-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4dc1f1b456..852ed40e0d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DataStreamNames type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L94-L94 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L94-L94 type DataStreamNames []string diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreams.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreams.go index 23cd751bae..717c9713d8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataStreams type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L81-L84 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L81-L84 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 78bf826c26..8846b0703a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataStreamsStatsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 85d82a52f5..f15fc17809 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataStreamTimestamp type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/TypeMapping.ts#L59-L61 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fdc874000d..8091508784 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataStreamTimestampField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L114-L119 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L114-L119 type DataStreamTimestampField struct { // Name Name of the timestamp field for the data stream, which must be `@timestamp`. // The `@timestamp` field must be included in every document indexed to the data diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamvisibility.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamvisibility.go index 1300301971..5978aca366 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataStreamVisibility type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L144-L146 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/DataStream.ts#L144-L146 type DataStreamVisibility struct { Hidden *bool `json:"hidden,omitempty"` } 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 5c7f2a68df..56873baa93 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DataStreamWithLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b520b0768b..26c9c43dc9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataTierPhaseStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L86-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L86-L97 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 e2c36aac59..ef41ab9e2e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DataTiers type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L339-L349 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L339-L349 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 fdf4a7825d..f42fe610b4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,9 +29,9 @@ import ( // DateDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L186-L188 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L193-L193 type DateDecayFunction struct { - DateDecayFunction map[string]DecayPlacementDateMathDuration `json:"-"` + DecayFunctionBaseDateMathDuration map[string]DecayPlacementDateMathDuration `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the // decay contains multiple values. MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"` @@ -53,10 +53,10 @@ func (s DateDecayFunction) MarshalJSON() ([]byte, error) { } // We inline the additional fields from the underlying map - for key, value := range s.DateDecayFunction { + for key, value := range s.DecayFunctionBaseDateMathDuration { tmp[fmt.Sprintf("%s", key)] = value } - delete(tmp, "DateDecayFunction") + delete(tmp, "DecayFunctionBaseDateMathDuration") data, err = json.Marshal(tmp) if err != nil { @@ -69,7 +69,7 @@ func (s DateDecayFunction) MarshalJSON() ([]byte, error) { // NewDateDecayFunction returns a DateDecayFunction. func NewDateDecayFunction() *DateDecayFunction { r := &DateDecayFunction{ - DateDecayFunction: make(map[string]DecayPlacementDateMathDuration, 0), + DecayFunctionBaseDateMathDuration: make(map[string]DecayPlacementDateMathDuration, 0), } return r 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 722efec39e..baaed5c0c8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DateDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L72-L75 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 35c3af52da..1b726ce778 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L348-L349 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L350-L351 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 54e6ad49b7..78a0a2324d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // DateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L191-L249 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L191-L249 type DateHistogramAggregation struct { // CalendarInterval Calendar-aware interval. // Can be specified using the unit name, such as `month`, or as a single unit @@ -70,7 +70,7 @@ type DateHistogramAggregation struct { // Order The sort order of the returned buckets. Order AggregateOrder `json:"order,omitempty"` Params map[string]json.RawMessage `json:"params,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // TimeZone Time zone used for bucketing and rounding. // Defaults to Coordinated Universal Time (UTC). TimeZone *string `json:"time_zone,omitempty"` @@ -203,40 +203,9 @@ func (s *DateHistogramAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "time_zone": if err := dec.Decode(&s.TimeZone); err != nil { 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 8fb20dc1ba..c62d3e0fea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // DateHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L351-L354 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L353-L356 type DateHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 cb12bb6adf..717c17d77b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DateHistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Groupings.ts#L42-L73 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fddefe69b0..38d2fc75c4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DateIndexNameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L502-L540 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L502-L540 type DateIndexNameProcessor struct { // DateFormats An array of the expected date formats for parsing dates / timestamps in the // document being preprocessed. 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 4f2c3787ab..b591b3c3ba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DateNanosProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L73-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L79-L87 type DateNanosProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -238,12 +238,6 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -262,6 +256,18 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -636,12 +642,6 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -660,6 +660,18 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 fe5c393f24..3cb17aaf31 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DateProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L542-L569 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L542-L569 type DateProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 b9c2013e39..5c5bf0df98 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DateProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L61-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L67-L77 type DateProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -245,12 +245,6 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -269,6 +263,18 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -655,12 +661,6 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -679,6 +679,18 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 47c1eb2a8e..b875d8ab50 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DateRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L543-L548 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L547-L552 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 68853dcf31..c9f71789ab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DateRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L270-L296 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L270-L296 type DateRangeAggregation struct { // Field The date field whose values are use to build ranges. Field *string `json:"field,omitempty"` 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 a330c15d2a..c4856d1ec3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DateRangeExpression type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L307-L320 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L307-L320 type DateRangeExpression struct { // From Start of the range (inclusive). From FieldDateMath `json:"from,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeproperty.go index 0e746355a6..d004b59b01 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DateRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L29-L32 type DateRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -250,12 +250,6 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -274,6 +268,18 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -613,12 +619,6 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -637,6 +637,18 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 a804d41133..b8e2bc49a7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DateRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L116-L143 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L146-L155 type DateRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -43,7 +43,7 @@ type DateRangeQuery struct { Boost *float32 `json:"boost,omitempty"` // Format Date format used to convert `date` values in the query. Format *string `json:"format,omitempty"` - From string `json:"from,omitempty"` + From *string `json:"from,omitempty"` // Gt Greater than. Gt *string `json:"gt,omitempty"` // Gte Greater than or equal to. @@ -58,7 +58,7 @@ type DateRangeQuery struct { // TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert // `date` values in the query to UTC. TimeZone *string `json:"time_zone,omitempty"` - To string `json:"to,omitempty"` + To *string `json:"to,omitempty"` } func (s *DateRangeQuery) UnmarshalJSON(data []byte) error { 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 3f3a0f6a44..3be65e3643 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // int64 // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ba5795cda5..261cf19986 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,15 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DecayFunction holds the union for the following types: // +// UntypedDecayFunction // DateDecayFunction // NumericDecayFunction // GeoDecayFunction // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L194-L199 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L199-L208 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 new file mode 100644 index 0000000000..fdf67253a8 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedatemathduration.go @@ -0,0 +1,76 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" +) + +// DecayFunctionBaseDateMathDuration type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L175-L186 +type DecayFunctionBaseDateMathDuration struct { + DecayFunctionBaseDateMathDuration map[string]DecayPlacementDateMathDuration `json:"-"` + // MultiValueMode Determines how the distance is calculated when a field used for computing the + // decay contains multiple values. + MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"` +} + +// MarhsalJSON overrides marshalling for types with additional properties +func (s DecayFunctionBaseDateMathDuration) MarshalJSON() ([]byte, error) { + type opt DecayFunctionBaseDateMathDuration + // 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.DecayFunctionBaseDateMathDuration { + tmp[fmt.Sprintf("%s", key)] = value + } + delete(tmp, "DecayFunctionBaseDateMathDuration") + + data, err = json.Marshal(tmp) + if err != nil { + return nil, err + } + + return data, nil +} + +// NewDecayFunctionBaseDateMathDuration returns a DecayFunctionBaseDateMathDuration. +func NewDecayFunctionBaseDateMathDuration() *DecayFunctionBaseDateMathDuration { + r := &DecayFunctionBaseDateMathDuration{ + DecayFunctionBaseDateMathDuration: make(map[string]DecayPlacementDateMathDuration, 0), + } + + return r +} 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 new file mode 100644 index 0000000000..a28ca5b610 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasedoubledouble.go @@ -0,0 +1,76 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" +) + +// DecayFunctionBasedoubledouble type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L175-L186 +type DecayFunctionBasedoubledouble struct { + DecayFunctionBasedoubledouble map[string]DecayPlacementdoubledouble `json:"-"` + // MultiValueMode Determines how the distance is calculated when a field used for computing the + // decay contains multiple values. + MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"` +} + +// MarhsalJSON overrides marshalling for types with additional properties +func (s DecayFunctionBasedoubledouble) MarshalJSON() ([]byte, error) { + type opt DecayFunctionBasedoubledouble + // 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.DecayFunctionBasedoubledouble { + tmp[fmt.Sprintf("%s", key)] = value + } + delete(tmp, "DecayFunctionBasedoubledouble") + + data, err = json.Marshal(tmp) + if err != nil { + return nil, err + } + + return data, nil +} + +// NewDecayFunctionBasedoubledouble returns a DecayFunctionBasedoubledouble. +func NewDecayFunctionBasedoubledouble() *DecayFunctionBasedoubledouble { + r := &DecayFunctionBasedoubledouble{ + DecayFunctionBasedoubledouble: make(map[string]DecayPlacementdoubledouble, 0), + } + + return r +} 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 new file mode 100644 index 0000000000..5fe4563cc9 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunctionbasegeolocationdistance.go @@ -0,0 +1,76 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" +) + +// DecayFunctionBaseGeoLocationDistance type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L175-L186 +type DecayFunctionBaseGeoLocationDistance struct { + DecayFunctionBaseGeoLocationDistance map[string]DecayPlacementGeoLocationDistance `json:"-"` + // MultiValueMode Determines how the distance is calculated when a field used for computing the + // decay contains multiple values. + MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"` +} + +// MarhsalJSON overrides marshalling for types with additional properties +func (s DecayFunctionBaseGeoLocationDistance) MarshalJSON() ([]byte, error) { + type opt DecayFunctionBaseGeoLocationDistance + // 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.DecayFunctionBaseGeoLocationDistance { + tmp[fmt.Sprintf("%s", key)] = value + } + delete(tmp, "DecayFunctionBaseGeoLocationDistance") + + data, err = json.Marshal(tmp) + if err != nil { + return nil, err + } + + return data, nil +} + +// NewDecayFunctionBaseGeoLocationDistance returns a DecayFunctionBaseGeoLocationDistance. +func NewDecayFunctionBaseGeoLocationDistance() *DecayFunctionBaseGeoLocationDistance { + r := &DecayFunctionBaseGeoLocationDistance{ + DecayFunctionBaseGeoLocationDistance: make(map[string]DecayPlacementGeoLocationDistance, 0), + } + + return r +} 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 new file mode 100644 index 0000000000..e122f54575 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacement.go @@ -0,0 +1,105 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DecayPlacement type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L154-L173 +type DecayPlacement struct { + // Decay Defines how documents are scored at the distance given at scale. + Decay *Float64 `json:"decay,omitempty"` + // Offset If defined, the decay function will only compute the decay function for + // documents with a distance greater than the defined `offset`. + Offset json.RawMessage `json:"offset,omitempty"` + // Origin The point of origin used for calculating distance. Must be given as a number + // for numeric field, date for date fields and geo point for geo fields. + Origin json.RawMessage `json:"origin,omitempty"` + // Scale Defines the distance from origin + offset at which the computed score will + // equal `decay` parameter. + Scale json.RawMessage `json:"scale,omitempty"` +} + +func (s *DecayPlacement) 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 "decay": + 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", "Decay", err) + } + f := Float64(value) + s.Decay = &f + case float64: + f := Float64(v) + s.Decay = &f + } + + case "offset": + if err := dec.Decode(&s.Offset); err != nil { + return fmt.Errorf("%s | %w", "Offset", err) + } + + case "origin": + if err := dec.Decode(&s.Origin); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + + case "scale": + if err := dec.Decode(&s.Scale); err != nil { + return fmt.Errorf("%s | %w", "Scale", err) + } + + } + } + return nil +} + +// NewDecayPlacement returns a DecayPlacement. +func NewDecayPlacement() *DecayPlacement { + r := &DecayPlacement{} + + return r +} 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 1a9491beb2..df9662db6a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementDateMathDuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L153-L172 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L154-L173 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 08e9ed7152..1db26a1982 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementdoubledouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L153-L172 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L154-L173 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 e8be643557..2861d5bfff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementGeoLocationDistance type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L153-L172 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L154-L173 type DecayPlacementGeoLocationDistance struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` @@ -83,9 +83,49 @@ func (s *DecayPlacementGeoLocationDistance) UnmarshalJSON(data []byte) error { } case "origin": - if err := dec.Decode(&s.Origin); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Origin", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + origin_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Origin", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + s.Origin = o + break origin_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + s.Origin = o + break origin_field + + } + } + if s.Origin == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Origin); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + } case "scale": if err := dec.Decode(&s.Scale); err != nil { 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 42b101aefd..8ed1ddc8d7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Defaults type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 503e92cb8c..62e0a25f91 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Definition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 629302dda6..75568918ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DelayedDataCheckConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L118-L129 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L118-L129 type DelayedDataCheckConfig struct { // CheckWindow The window of time that is searched for late data. This window of time ends // with the latest finalized bucket. 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 new file mode 100644 index 0000000000..e6bcc0cfc4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteaction.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DeleteAction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L152-L154 +type DeleteAction struct { + DeleteSearchableSnapshot *bool `json:"delete_searchable_snapshot,omitempty"` +} + +func (s *DeleteAction) 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 "delete_searchable_snapshot": + 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", "DeleteSearchableSnapshot", err) + } + s.DeleteSearchableSnapshot = &value + case bool: + s.DeleteSearchableSnapshot = &v + } + + } + } + return nil +} + +// NewDeleteAction returns a DeleteAction. +func NewDeleteAction() *DeleteAction { + r := &DeleteAction{} + + return r +} 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 new file mode 100644 index 0000000000..0d5a0873b2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteinferenceendpointresult.go @@ -0,0 +1,86 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DeleteInferenceEndpointResult type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. + Acknowledged bool `json:"acknowledged"` + Pipelines []string `json:"pipelines"` +} + +func (s *DeleteInferenceEndpointResult) 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 "acknowledged": + 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", "Acknowledged", err) + } + s.Acknowledged = value + case bool: + s.Acknowledged = v + } + + case "pipelines": + if err := dec.Decode(&s.Pipelines); err != nil { + return fmt.Errorf("%s | %w", "Pipelines", err) + } + + } + } + return nil +} + +// NewDeleteInferenceEndpointResult returns a DeleteInferenceEndpointResult. +func NewDeleteInferenceEndpointResult() *DeleteInferenceEndpointResult { + r := &DeleteInferenceEndpointResult{} + + return r +} 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 967a3a1dfd..00fad064d5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DeleteOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L134-L134 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3225d8abac..8ace75ab16 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DelimitedPayloadTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L68-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L68-L72 type DelimitedPayloadTokenFilter struct { Delimiter *string `json:"delimiter,omitempty"` Encoding *delimitedpayloadencoding.DelimitedPayloadEncoding `json:"encoding,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorindexoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorindexoptions.go index c6c531438c..a13c03302d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,11 +31,12 @@ import ( // DenseVectorIndexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/DenseVectorIndexOptions.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/DenseVectorIndexOptions.ts#L22-L27 type DenseVectorIndexOptions struct { - EfConstruction int `json:"ef_construction"` - M int `json:"m"` - Type string `json:"type"` + ConfidenceInterval *float32 `json:"confidence_interval,omitempty"` + EfConstruction *int `json:"ef_construction,omitempty"` + M *int `json:"m,omitempty"` + Type string `json:"type"` } func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte) error { @@ -53,6 +54,22 @@ func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte) error { switch t { + case "confidence_interval": + 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", "ConfidenceInterval", err) + } + f := float32(value) + s.ConfidenceInterval = &f + case float64: + f := float32(v) + s.ConfidenceInterval = &f + } + case "ef_construction": var tmp any @@ -63,10 +80,10 @@ func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "EfConstruction", err) } - s.EfConstruction = value + s.EfConstruction = &value case float64: f := int(v) - s.EfConstruction = f + s.EfConstruction = &f } case "m": @@ -79,10 +96,10 @@ func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "M", err) } - s.M = value + s.M = &value case float64: f := int(v) - s.M = f + s.M = &f } case "type": 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 84105860c6..ad896471ab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DenseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L52-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L52-L59 type DenseVectorProperty struct { Dims *int `json:"dims,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -215,12 +215,6 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -239,6 +233,18 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -571,12 +577,6 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -595,6 +595,18 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscriptid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dependency.go similarity index 51% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscriptid.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dependency.go index 46764b3a1f..f4a37cab9d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscriptid.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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,20 +26,18 @@ import ( "errors" "fmt" "io" + "strconv" ) -// StoredScriptId type. +// Dependency type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L81-L86 -type StoredScriptId struct { - // Id The `id` for a stored script. - Id string `json:"id"` - // Params Specifies any named parameters that are passed into the script as variables. - // Use parameters instead of hard-coded values to decrease compile time. - Params map[string]json.RawMessage `json:"params,omitempty"` +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L30-L33 +type Dependency struct { + Field string `json:"field"` + Value ScalarValue `json:"value"` } -func (s *StoredScriptId) UnmarshalJSON(data []byte) error { +func (s *Dependency) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -54,17 +52,21 @@ func (s *StoredScriptId) UnmarshalJSON(data []byte) error { switch t { - case "id": - if err := dec.Decode(&s.Id); err != nil { - return fmt.Errorf("%s | %w", "Id", err) + case "field": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Field", err) } - - case "params": - if s.Params == nil { - s.Params = make(map[string]json.RawMessage, 0) + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) } - if err := dec.Decode(&s.Params); err != nil { - return fmt.Errorf("%s | %w", "Params", err) + s.Field = o + + case "value": + if err := dec.Decode(&s.Value); err != nil { + return fmt.Errorf("%s | %w", "Value", err) } } @@ -72,11 +74,9 @@ func (s *StoredScriptId) UnmarshalJSON(data []byte) error { return nil } -// NewStoredScriptId returns a StoredScriptId. -func NewStoredScriptId() *StoredScriptId { - r := &StoredScriptId{ - Params: make(map[string]json.RawMessage, 0), - } +// NewDependency returns a Dependency. +func NewDependency() *Dependency { + r := &Dependency{} return r } 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 de69e26a81..221196cf3d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // Deprecation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/deprecations/types.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b2dbee3f89..6f62c4a0c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DeprecationIndexing type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L144-L146 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3401ba7256..48a1284fca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DerivativeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L227-L231 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L227-L231 type DerivativeAggregate struct { Meta Metadata `json:"meta,omitempty"` NormalizedValue *Float64 `json:"normalized_value,omitempty"` @@ -39,8 +39,8 @@ type DerivativeAggregate struct { // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *DerivativeAggregate) UnmarshalJSON(data []byte) error { 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 0b72aabec2..46c7b3f92e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DerivativeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L196-L196 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L196-L196 type DerivativeAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 64aac5bc07..064f570adb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // DetectionRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f2a007e7b5..171c47cdd3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // Detector type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Detector.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dd70517786..c9351ac482 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DetectorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Detector.ts#L69-L125 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/diagnosis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosis.go index b0cfb4f99a..b2638cffe7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Diagnosis type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L49-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L49-L55 type Diagnosis struct { Action string `json:"action"` AffectedResources DiagnosisAffectedResources `json:"affected_resources"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosisaffectedresources.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosisaffectedresources.go index 634d0aaeb7..73f06a9a34 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DiagnosisAffectedResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L57-L63 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L57-L63 type DiagnosisAffectedResources struct { FeatureStates []string `json:"feature_states,omitempty"` Indices []string `json:"indices,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dictionarydecompoundertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dictionarydecompoundertokenfilter.go index c05832509c..8b871418a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DictionaryDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L54-L56 type DictionaryDecompounderTokenFilter struct { HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` MaxSubwordSize *int `json:"max_subword_size,omitempty"` 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 27a1ed32d1..34fda2708a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DirectGenerator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L265-L328 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 880ca1f6bc..590e253d9c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Discovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L201-L219 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7cc57649bd..cad29e0a0d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DiscoveryNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DiscoveryNode.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9b849e2c80..51c4b7f3a4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DiskIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L121-L125 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L122-L126 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 641ec875f2..97a539f660 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DiskIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L126-L132 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L127-L133 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 f3135976e7..41d7c8db98 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L62-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L62-L69 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 2830f7cbd8..aa7dc4ac30 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DisMaxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L78-L90 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L79-L91 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 3def605ab5..085d3b373a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DissectProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L571-L590 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L571-L590 type DissectProcessor struct { // AppendSeparator The character(s) that separate the appended fields. AppendSeparator *string `json:"append_separator,omitempty"` 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 6df29eec3e..667c302def 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,14 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DistanceFeatureQuery holds the union for the following types: // +// UntypedDistanceFeatureQuery // GeoDistanceFeatureQuery // DateDistanceFeatureQuery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L72-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L77-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 d333717587..aee1d6d548 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DistanceFeatureQueryBaseDateMathDuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L40-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L40-L60 type DistanceFeatureQueryBaseDateMathDuration struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 ac8e3ae6e3..dfd34ca20b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DistanceFeatureQueryBaseGeoLocationDistance type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L40-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L40-L60 type DistanceFeatureQueryBaseGeoLocationDistance struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -99,9 +99,49 @@ func (s *DistanceFeatureQueryBaseGeoLocationDistance) UnmarshalJSON(data []byte) } case "origin": - if err := dec.Decode(&s.Origin); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Origin", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + origin_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Origin", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + s.Origin = o + break origin_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + s.Origin = o + break origin_field + + } + } + if s.Origin == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Origin); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + } case "pivot": if err := dec.Decode(&s.Pivot); err != nil { 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 f9440a8182..4817772789 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,15 +33,15 @@ import ( // DiversifiedSamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L322-L343 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L322-L343 type DiversifiedSamplerAggregation struct { // ExecutionHint The type of value used for de-duplication. ExecutionHint *sampleraggregationexecutionhint.SamplerAggregationExecutionHint `json:"execution_hint,omitempty"` // Field The field used to provide values used for de-duplication. Field *string `json:"field,omitempty"` // MaxDocsPerValue Limits how many documents are permitted per choice of de-duplicating value. - MaxDocsPerValue *int `json:"max_docs_per_value,omitempty"` - Script Script `json:"script,omitempty"` + MaxDocsPerValue *int `json:"max_docs_per_value,omitempty"` + Script *Script `json:"script,omitempty"` // ShardSize Limits how many top-scoring documents are collected in the sample processed // on each shard. ShardSize *int `json:"shard_size,omitempty"` @@ -89,40 +89,9 @@ func (s *DiversifiedSamplerAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "shard_size": 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 f0f908ca0e..c1190ad7b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DocStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L97-L109 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1bd0842c4f..5d580736cf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Document type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/types.ts#L41-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/types.ts#L41-L55 type Document struct { // Id_ Unique identifier for the document. // This ID must be unique within the `_index`. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentrating.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentrating.go index d7f756837e..97c550a868 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DocumentRating type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L116-L123 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L116-L123 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 ddee968914..f0760234b5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DocumentSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/types.ts#L57-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/types.ts#L57-L87 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 7868cf4985..458e28d34e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DotExpanderProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L592-L603 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L592-L603 type DotExpanderProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 fa248551e9..068644245a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // DoubleNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L146-L149 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L152-L155 type DoubleNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -51,7 +51,7 @@ type DoubleNumberProperty struct { NullValue *Float64 `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,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. @@ -261,12 +261,6 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -647,12 +653,6 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -671,6 +671,18 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -843,40 +855,9 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 f2f9a64e50..f1fbe4cff8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // DoubleRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L34-L36 type DoubleRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -249,12 +249,6 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -273,6 +267,18 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -600,12 +606,6 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -624,6 +624,18 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 445c386d20..b3c3237aec 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DoubleTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L411-L416 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L413-L418 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 e375dd72b5..4915572197 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // DoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L418-L421 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L420-L423 type DoubleTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 new file mode 100644 index 0000000000..65c5bcac79 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleaction.go @@ -0,0 +1,74 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// DownsampleAction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L115-L118 +type DownsampleAction struct { + FixedInterval string `json:"fixed_interval"` + WaitTimeout Duration `json:"wait_timeout,omitempty"` +} + +func (s *DownsampleAction) 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 "fixed_interval": + if err := dec.Decode(&s.FixedInterval); err != nil { + return fmt.Errorf("%s | %w", "FixedInterval", err) + } + + case "wait_timeout": + if err := dec.Decode(&s.WaitTimeout); err != nil { + return fmt.Errorf("%s | %w", "WaitTimeout", err) + } + + } + } + return nil +} + +// NewDownsampleAction returns a DownsampleAction. +func NewDownsampleAction() *DownsampleAction { + r := &DownsampleAction{} + + return r +} 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 87223e92c2..ef4842e0bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DownsampleConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/Downsample.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d39f18d322..dfb9b44f45 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DownsamplingRound type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DownsamplingRound.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9eef069c31..fca2a9c1af 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // DropProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L605-L605 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L605-L605 type DropProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 0f7e88ed03..0860ed5c09 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -24,5 +24,5 @@ package types // // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 07bec211e6..7a8d4bf459 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DurationValueUnitFloatMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d440ea5113..fc36492cd4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DurationValueUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 95f47e9409..7f1ba421b3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DurationValueUnitNanos type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9d76e64b6b..9037cdc4c9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // DurationValueUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c2c61a385b..481ca51973 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // DutchAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L61-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L61-L64 type DutchAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamicproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamicproperty.go index e83e1e9adf..77960536b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -37,7 +37,7 @@ import ( // DynamicProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L288-L319 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L300-L331 type DynamicProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` @@ -64,7 +64,7 @@ type DynamicProperty struct { PositionIncrementGap *int `json:"position_increment_gap,omitempty"` PrecisionStep *int `json:"precision_step,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` SearchAnalyzer *string `json:"search_analyzer,omitempty"` SearchQuoteAnalyzer *string `json:"search_quote_analyzer,omitempty"` Similarity *string `json:"similarity,omitempty"` @@ -312,12 +312,6 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -336,6 +330,18 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -781,12 +787,6 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -805,6 +805,18 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -977,40 +989,9 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "search_analyzer": var tmp json.RawMessage 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 efe0c730e3..6fbb0f6043 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // DynamicTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/dynamic-template.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/dynamic-template.ts#L22-L42 type DynamicTemplate struct { Mapping Property `json:"mapping,omitempty"` Match []string `json:"match,omitempty"` @@ -176,12 +176,6 @@ func (s *DynamicTemplate) UnmarshalJSON(data []byte) error { return err } s.Mapping = *o - case "sparse_vector": - o := NewSparseVectorProperty() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Mapping = *o case "flattened": o := NewFlattenedProperty() if err := localDec.Decode(&o); err != nil { @@ -200,6 +194,18 @@ func (s *DynamicTemplate) UnmarshalJSON(data []byte) error { return err } s.Mapping = *o + case "semantic_text": + o := NewSemanticTextProperty() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Mapping = *o + case "sparse_vector": + o := NewSparseVectorProperty() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Mapping = *o case "completion": o := NewCompletionProperty() if err := localDec.Decode(&o); err != nil { @@ -553,12 +559,6 @@ func (s *DynamicTemplate) UnmarshalJSON(data []byte) error { return err } s.Runtime = *o - case "sparse_vector": - o := NewSparseVectorProperty() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Runtime = *o case "flattened": o := NewFlattenedProperty() if err := localDec.Decode(&o); err != nil { @@ -577,6 +577,18 @@ func (s *DynamicTemplate) UnmarshalJSON(data []byte) error { return err } s.Runtime = *o + case "semantic_text": + o := NewSemanticTextProperty() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Runtime = *o + case "sparse_vector": + o := NewSparseVectorProperty() + if err := localDec.Decode(&o); err != nil { + return err + } + s.Runtime = *o case "completion": o := NewCompletionProperty() if err := localDec.Decode(&o); err != nil { 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 c92d2f5370..dfb0e7894f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // EdgeNGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L79-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L79-L85 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 b9f5c535cc..35e9ea0dcf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // EdgeNGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L31-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L31-L37 type EdgeNGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` MaxGram int `json:"max_gram"` 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 5d4ab3320e..1165d9869e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Base.ts#L54-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b972f05dcc..489d64207f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionMinInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Base.ts#L66-L74 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6943349dbb..7b4538611b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ElisionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L189-L194 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L189-L194 type ElisionTokenFilter struct { Articles []string `json:"articles,omitempty"` ArticlesCase Stringifiedboolean `json:"articles_case,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/email.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/email.go index ce94b11c89..9a7990ee67 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // Email type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L238-L250 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8e0a49401c..b0aef7d189 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // EmailAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L252-L252 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1e3e97fcb5..bf6f4b0f4d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EmailAttachmentContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L211-L216 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 48133ad59e..8d09f3a635 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // EmailBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 edc79f9dcd..c1dfff79b3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // EmailResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4e8092dea7..a1a90055b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EmptyObject type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L160-L161 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L160-L161 type EmptyObject struct { } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichpolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichpolicy.go index 88fed99f5a..67c7dc3cdf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // EnrichPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/_types/Policy.ts#L34-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 37312ca53a..8933ba05ee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // EnrichProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L607-L646 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L607-L646 type EnrichProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 ac4644cc1d..7c8decb3e8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Ensemble type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 000eee67c7..e3081ea19c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package accesstokengranttype package accesstokengranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/types.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 281c2fc449..c30c100714 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package acknowledgementoptions package acknowledgementoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L109-L113 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L109-L113 type AcknowledgementOptions struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go index 3b389eddee..6cc85cbc7e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package actionexecutionmode package actionexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L73-L94 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L73-L94 type ActionExecutionMode struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go index 0aab2234e2..2c4b8ae492 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package actionstatusoptions package actionstatusoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L102-L107 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L102-L107 type ActionStatusOptions struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype/actiontype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype/actiontype.go index 784f6f65e9..76a62711b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package actiontype package actiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L64-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L64-L71 type ActionType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go index d966f26a89..17a89d93bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package allocationexplaindecision package allocationexplaindecision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L32-L37 type AllocationExplainDecision struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeygranttype/apikeygranttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeygranttype/apikeygranttype.go index 6d4b069dc4..d48f09e829 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package apikeygranttype package apikeygranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/grant_api_key/types.ts#L48-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 37ad514e48..15ad3288a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package appliesto package appliesto import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2c19e413bc..3533c917f2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package boundaryscanner package boundaryscanner import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L27-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L27-L46 type BoundaryScanner struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes/bytes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes/bytes.go index eac137aaee..cc8660c132 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package bytes package bytes import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L169-L181 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L169-L181 type Bytes struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval/calendarinterval.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval/calendarinterval.go index 2387aee213..22a996738c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package calendarinterval package calendarinterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L251-L268 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L251-L268 type CalendarInterval struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go index a705cc741c..cd9743818e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package cardinalityexecutionmode package cardinalityexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L64-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c8201a9e42..eb3c263f84 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package catanomalydetectorcolumn package catanomalydetectorcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L32-L401 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 df51b503aa..424c38b448 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package catdatafeedcolumn package catdatafeedcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L405-L471 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 42572ed0c6..a01a071928 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package catdfacolumn package catdfacolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L472-L557 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 16a14c0132..bc5cf2f115 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package categorizationstatus package categorizationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L83-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 29f512d4ab..a101bf4454 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package cattrainedmodelscolumn package cattrainedmodelscolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L561-L635 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d99f7f693c..f2db7d2070 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package cattransformcolumn package cattransformcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L640-L844 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 153e701b78..0d8eb5bb8f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package childscoremode package childscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 73b1b896e3..d108a3400f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package chunkingmode package chunkingmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L232-L236 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L232-L236 type ChunkingMode struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go index 3d8421f9c9..d221cd52f6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package clusterinfotarget package clusterinfotarget import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L378-L384 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L381-L387 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 59d0d9367b..8a5a1909d4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package clusterprivilege package clusterprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L41-L102 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L42-L199 type ClusterPrivilege struct { Name string } 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 44f17d9cc0..48bf28e599 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package clustersearchstatus package clustersearchstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 18ed6da0ca..cbd2de4489 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package combinedfieldsoperator package combinedfieldsoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L489-L492 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L509-L512 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 f5bd3eef97..e64b7f8ad8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package combinedfieldszeroterms package combinedfieldszeroterms import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L494-L503 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L514-L523 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 c6227b4f65..6c72584207 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package conditionop package conditionop import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L38-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bc1edc7af9..c87d4f6635 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package conditionoperator package conditionoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f76a86e6a8..ed70d15f34 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package conditiontype package conditiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L61-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8948b6f33c..6e13473862 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package conflicts package conflicts import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L183-L192 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L183-L192 type Conflicts struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme/connectionscheme.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme/connectionscheme.go index 42099c8430..bd9b097321 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package connectionscheme package connectionscheme import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..06eb95209d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go @@ -0,0 +1,65 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package connectorfieldtype +package connectorfieldtype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L43-L48 +type ConnectorFieldType struct { + Name string +} + +var ( + Str = ConnectorFieldType{"str"} + + Int = ConnectorFieldType{"int"} + + List = ConnectorFieldType{"list"} + + Bool = ConnectorFieldType{"bool"} +) + +func (c ConnectorFieldType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *ConnectorFieldType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "str": + *c = Str + case "int": + *c = Int + case "list": + *c = List + case "bool": + *c = Bool + default: + *c = ConnectorFieldType{string(text)} + } + + return nil +} + +func (c ConnectorFieldType) String() string { + return c.Name +} 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 new file mode 100644 index 0000000000..2c5c3363ca --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus/connectorstatus.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package connectorstatus +package connectorstatus + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L130-L136 +type ConnectorStatus struct { + Name string +} + +var ( + Created = ConnectorStatus{"created"} + + Needsconfiguration = ConnectorStatus{"needs_configuration"} + + Configured = ConnectorStatus{"configured"} + + Connected = ConnectorStatus{"connected"} + + Error = ConnectorStatus{"error"} +) + +func (c ConnectorStatus) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *ConnectorStatus) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "created": + *c = Created + case "needs_configuration": + *c = Needsconfiguration + case "configured": + *c = Configured + case "connected": + *c = Connected + case "error": + *c = Error + default: + *c = ConnectorStatus{string(text)} + } + + return nil +} + +func (c ConnectorStatus) String() string { + return c.Name +} 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 0853bd7048..26fe1b9414 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package converttype package converttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L435-L443 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L435-L443 type ConvertType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go index e4d43f290d..0159e7bbd1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package dataattachmentformat package dataattachmentformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L187-L190 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2fd9ea460d..41318a6dc9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package datafeedstate package datafeedstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L132-L137 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L132-L137 type DatafeedState struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataframestate/dataframestate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataframestate/dataframestate.go index e92d6e0dab..c2d557b0aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package dataframestate package dataframestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Dataframe.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 495f164f14..3db1cc1dfd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package day package day import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 405a9d8358..0216018e3a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package decision package decision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L86-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L86-L95 type Decision struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go index 10e6730075..a783c052f2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package delimitedpayloadencoding package delimitedpayloadencoding import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L62-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L62-L66 type DelimitedPayloadEncoding struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go index 12de3dc475..d8d93ff3d7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package deploymentallocationstate package deploymentallocationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L289-L302 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L289-L302 type DeploymentAllocationState struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go index 846d68ae31..d327e2edaf 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package deploymentassignmentstate package deploymentassignmentstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L304-L309 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L304-L309 type DeploymentAssignmentState struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go index 24ea59e4f8..36c1865ee3 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package deploymentstate package deploymentstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L274-L287 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L274-L287 type DeploymentState struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deprecationlevel/deprecationlevel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deprecationlevel/deprecationlevel.go index 9a9e1705b4..bd920ea50e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package deprecationlevel package deprecationlevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/deprecations/types.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 730b51fecd..fd011996e8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package dfiindependencemeasure package dfiindependencemeasure import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d568ab550f..e3f5d2c479 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package dfraftereffect package dfraftereffect import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 355e469acb..fe877f0368 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package dfrbasicmodel package dfrbasicmodel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..23368f359d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype/displaytype.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package displaytype +package displaytype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L35-L41 +type DisplayType struct { + Name string +} + +var ( + Textbox = DisplayType{"textbox"} + + Textarea = DisplayType{"textarea"} + + Numeric = DisplayType{"numeric"} + + Toggle = DisplayType{"toggle"} + + Dropdown = DisplayType{"dropdown"} +) + +func (d DisplayType) MarshalText() (text []byte, err error) { + return []byte(d.String()), nil +} + +func (d *DisplayType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "textbox": + *d = Textbox + case "textarea": + *d = Textarea + case "numeric": + *d = Numeric + case "toggle": + *d = Toggle + case "dropdown": + *d = Dropdown + default: + *d = DisplayType{string(text)} + } + + return nil +} + +func (d DisplayType) String() string { + return d.Name +} 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 a332ed3c74..f481534466 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package distanceunit package distanceunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L30-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f203536a6e..0c8f942aad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package dynamicmapping package dynamicmapping import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/dynamic-template.ts#L49-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5a8fce0bbd..1caa91f659 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package edgengramside package edgengramside import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L74-L77 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L74-L77 type EdgeNGramSide struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority/emailpriority.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority/emailpriority.go index 170773471d..4563c3e52f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package emailpriority package emailpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L197-L203 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 912f94635a..a0fd86fdd7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package enrichpolicyphase package enrichpolicyphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/execute_policy/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/execute_policy/types.ts#L24-L29 type EnrichPolicyPhase struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent/excludefrequent.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent/excludefrequent.go index c7f4eda0c3..97527a3fd0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package excludefrequent package excludefrequent import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Detector.ts#L127-L132 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 897a5f847e..55bf1792a4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package executionphase package executionphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L49-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 01d88d58ba..38630d4f5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package executionstatus package executionstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L38-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 225edbe7aa..798556ec1d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package expandwildcard package expandwildcard import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L201-L215 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L201-L215 type ExpandWildcard struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature/feature.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature/feature.go index e602613e1a..5f50cd8942 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package feature package feature import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get/IndicesGetRequest.ts#L90-L94 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get/IndicesGetRequest.ts#L90-L94 type Feature struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go index 1206dc80af..ec637041d2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package fieldsortnumerictype package fieldsortnumerictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L37-L42 type FieldSortNumericType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype/fieldtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype/fieldtype.go index 4012989d5f..9b4a0d6f82 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package fieldtype package fieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/Property.ts#L164-L210 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/Property.ts#L166-L213 type FieldType struct { Name string } @@ -113,6 +113,8 @@ var ( Densevector = FieldType{"dense_vector"} + Semantictext = FieldType{"semantic_text"} + Sparsevector = FieldType{"sparse_vector"} Matchonlytext = FieldType{"match_only_text"} @@ -211,6 +213,8 @@ func (f *FieldType) UnmarshalText(text []byte) error { *f = Aggregatemetricdouble case "dense_vector": *f = Densevector + case "semantic_text": + *f = Semantictext case "sparse_vector": *f = Sparsevector case "match_only_text": diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go index 0fdf41a00a..4d8a65848f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package fieldvaluefactormodifier package fieldvaluefactormodifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L298-L341 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L307-L350 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 new file mode 100644 index 0000000000..b1df37700d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy/filteringpolicy.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package filteringpolicy +package filteringpolicy + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L155-L158 +type FilteringPolicy struct { + Name string +} + +var ( + Exclude = FilteringPolicy{"exclude"} + + Include = FilteringPolicy{"include"} +) + +func (f FilteringPolicy) MarshalText() (text []byte, err error) { + return []byte(f.String()), nil +} + +func (f *FilteringPolicy) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "exclude": + *f = Exclude + case "include": + *f = Include + default: + *f = FilteringPolicy{string(text)} + } + + return nil +} + +func (f FilteringPolicy) String() string { + return f.Name +} 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 new file mode 100644 index 0000000000..fc1b0feb3c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule/filteringrulerule.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package filteringrulerule +package filteringrulerule + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L160-L168 +type FilteringRuleRule struct { + Name string +} + +var ( + Contains = FilteringRuleRule{"contains"} + + Endswith = FilteringRuleRule{"ends_with"} + + Equals = FilteringRuleRule{"equals"} + + Regex = FilteringRuleRule{"regex"} + + Startswith = FilteringRuleRule{"starts_with"} + + Greaterthan = FilteringRuleRule{">"} + + Lessthan = FilteringRuleRule{"<"} +) + +func (f FilteringRuleRule) MarshalText() (text []byte, err error) { + return []byte(f.String()), nil +} + +func (f *FilteringRuleRule) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "contains": + *f = Contains + case "ends_with": + *f = Endswith + case "equals": + *f = Equals + case "regex": + *f = Regex + case "starts_with": + *f = Startswith + case ">": + *f = Greaterthan + case "<": + *f = Lessthan + default: + *f = FilteringRuleRule{string(text)} + } + + return nil +} + +func (f FilteringRuleRule) String() string { + return f.Name +} 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 new file mode 100644 index 0000000000..cd689df59a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package filteringvalidationstate +package filteringvalidationstate + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L186-L190 +type FilteringValidationState struct { + Name string +} + +var ( + Edited = FilteringValidationState{"edited"} + + Invalid = FilteringValidationState{"invalid"} + + Valid = FilteringValidationState{"valid"} +) + +func (f FilteringValidationState) MarshalText() (text []byte, err error) { + return []byte(f.String()), nil +} + +func (f *FilteringValidationState) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "edited": + *f = Edited + case "invalid": + *f = Invalid + case "valid": + *f = Valid + default: + *f = FilteringValidationState{string(text)} + } + + return nil +} + +func (f FilteringValidationState) String() string { + return f.Name +} 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 8807b19caa..0cedd79225 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package filtertype package filtertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Filter.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Filter.ts#L43-L46 type FilterType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/followerindexstatus/followerindexstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/followerindexstatus/followerindexstatus.go index 65d6cd02ec..7764d93b9b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package followerindexstatus package followerindexstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_info/types.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow_info/types.ts#L30-L33 type FollowerIndexStatus struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode/functionboostmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode/functionboostmode.go index 4f2fb61f2e..b942ce7182 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package functionboostmode package functionboostmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L270-L296 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L279-L305 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 bbfa7d4074..710eade334 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package functionscoremode package functionscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L243-L268 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L252-L277 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 9635658938..bc5fb157e7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package gappolicy package gappolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L61-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 129f6ab18f..c5c0d43583 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package geodistancetype package geodistancetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L42-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4f9c312e0d..4ab1605a4d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package geoexecution package geoexecution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L55-L58 type GeoExecution struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation/geoorientation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation/geoorientation.go index d98a5b91a1..20b5a40cb5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package geoorientation package geoorientation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L34-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 eb9b449402..31f227790a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package geoshaperelation package geoshaperelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L64-L82 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f2f13d66af..b521af96ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package geostrategy package geostrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L56-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1550ce6621..0fc58230cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package geovalidationmethod package geovalidationmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L147-L157 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L159-L169 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 d36390d9ea..df4a8f923d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package granttype package granttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/GrantType.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f24a26c6ff..6ae811f8fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package gridaggregationtype package gridaggregationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_mvt/_types/GridType.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3cee507fda..a26ef0e523 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package gridtype package gridtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_mvt/_types/GridType.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 32021969eb..d90ff741df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package groupby package groupby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/GroupBy.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4a8e41ff74..0d65e6ee39 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package healthstatus package healthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L219-L239 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L219-L239 type HealthStatus struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterencoder/highlighterencoder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterencoder/highlighterencoder.go index 04da8359fc..8d7d5cd5fe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package highlighterencoder package highlighterencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L158-L161 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L158-L161 type HighlighterEncoder struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go index 3b0efbef4b..a5fd6f43c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package highlighterfragmenter package highlighterfragmenter import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L163-L166 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L163-L166 type HighlighterFragmenter struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder/highlighterorder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder/highlighterorder.go index 06f07fbdf1..bd95945f4e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package highlighterorder package highlighterorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L168-L170 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L168-L170 type HighlighterOrder struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go index 0daa52ae2a..63573b5b6a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package highlightertagsschema package highlightertagsschema import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L172-L174 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L172-L174 type HighlighterTagsSchema struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype/highlightertype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype/highlightertype.go index 061fdd7557..396fe3253e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package highlightertype package highlightertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L176-L191 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L176-L191 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 248faf8c97..7c8aa04b89 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package holtwinterstype package holtwinterstype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L283-L286 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L283-L286 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 daae0c9726..0ab3fc65b3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package httpinputmethod package httpinputmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L59-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f6bdb18dd4..578644aa30 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package ibdistribution package ibdistribution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5497063da4..8b9b22303b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package iblambda package iblambda import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8b92c9c6a8..a562377660 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package icucollationalternate package icucollationalternate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 82beb495ae..265850627e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package icucollationcasefirst package icucollationcasefirst import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 93f66bad0a..0ece9201b0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package icucollationdecomposition package icucollationdecomposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L99-L102 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cb87b73566..10308d1585 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package icucollationstrength package icucollationstrength import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L104-L110 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 df430aec76..5a53169096 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package icunormalizationmode package icunormalizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e7bb536380..cd1e7bb5be 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package icunormalizationtype package icunormalizationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L83-L87 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6ba58552a8..4069b872af 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package icutransformdirection package icutransformdirection import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a9ddb63645..5c41fefc04 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package impactarea package impactarea import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L72-L77 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L72-L77 type ImpactArea struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/include/include.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/include/include.go index 3cccaba3ef..e66275c348 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package include package include import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Include.ts#L20-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 06070b7151..5cdd7c7b11 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package indexcheckonstartup package indexcheckonstartup import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L260-L267 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c8d5bd9d33..fffabd9c80 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package indexingjobstate package indexingjobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L66-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ecb32bcc43..6200b089db 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package indexmetadatastate package indexmetadatastate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L225-L232 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a11e004ae8..8344162f6e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package indexoptions package indexoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L245-L250 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L257-L262 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 48bb2edb69..47a897dff1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package indexprivilege package indexprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L188-L212 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L296-L338 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 2e3762febd..d894bc1350 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package indexroutingallocationoptions package indexroutingallocationoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L38-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ae862c4ecf..898345e6c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package indexroutingrebalanceoptions package indexroutingrebalanceoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ae4ad1e792..c07e2d7694 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package indicatorhealthstatus package indicatorhealthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d6fb23036c..f1f382b7dd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package inputtype package inputtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a22eb9966e..cf1bfb0001 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package jobblockedreason package jobblockedreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L397-L401 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 efbf1ea04f..262b940e76 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package jobstate package jobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L36-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 962c1093d1..3024f2a104 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package jsonprocessorconflictstrategy package jsonprocessorconflictstrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L849-L854 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L849-L854 type JsonProcessorConflictStrategy struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/keeptypesmode/keeptypesmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/keeptypesmode/keeptypesmode.go index 835f0c0b1b..c62c557a3e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package keeptypesmode package keeptypesmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L215-L218 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L215-L218 type KeepTypesMode struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go index 4bcf43846d..39ef20ae2e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package kuromojitokenizationmode package kuromojitokenizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7a44b4d1d5..4761b21845 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package language package language import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/languages.ts#L20-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c4a18ac683..d368539b5d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package level package level import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L249-L253 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L249-L253 type Level struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus/licensestatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus/licensestatus.go index d083a7f5ac..e9f6d36620 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package licensestatus package licensestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/_types/License.ts#L35-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 40b05c8a00..70b4467347 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package licensetype package licensetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/_types/License.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6a5d6574ee..f6e2009258 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package lifecycleoperationmode package lifecycleoperationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Lifecycle.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 39ca2b2f94..beba1cfade 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package managedby package managedby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2e4dd5bf36..8bddbd7d6b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package matchtype package matchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/dynamic-template.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8f2bd79061..ee30e27ea7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package memorystatus package memorystatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L88-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ef9b817080..e1d2c751a0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package metric package metric import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Metric.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d79d7dcf68..657d3bce1f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package migrationstatus package migrationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a86fce2a6a..64b709a500 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package minimuminterval package minimuminterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L104-L111 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L104-L111 type MinimumInterval struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder/missingorder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder/missingorder.go index 191432a4c3..faf301a4bc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package missingorder package missingorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/AggregationContainer.ts#L517-L521 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/AggregationContainer.ts#L517-L521 type MissingOrder struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/month/month.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/month/month.go index feffc75dbf..a9077a4549 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package month package month import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L65-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 de1ab9eeea..654264dff6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package multivaluemode package multivaluemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L343-L360 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L352-L369 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 54c7593a5b..e21e286127 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package noderole package noderole import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L77-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L77-L95 type NodeRole struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go index bbf7e6dffa..1e8e0eb668 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package noridecompoundmode package noridecompoundmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L75-L79 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L75-L79 type NoriDecompoundMode struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization/normalization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization/normalization.go index a92a053d06..8bc8fe1def 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package normalization package normalization import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5d67ab21a7..3053185b61 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package normalizemethod package normalizemethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L326-L352 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L326-L352 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 fbf02e2eac..1e3e021d15 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package numericfielddataformat package numericfielddataformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/NumericFielddataFormat.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0313e77428..6f7075d476 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package onscripterror package onscripterror import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L131-L134 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4845e2837a..55e827f3fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package operationtype package operationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L83-L88 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ebc0c82429..60da590b18 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package operator package operator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/Operator.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 92b1ac8332..3d796012c5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package optype package optype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L255-L264 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L255-L264 type OpType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go index 194da6b60a..8949315c6e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package pagerdutycontexttype package pagerdutycontexttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 43916350ed..a8e38de384 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package pagerdutyeventtype package pagerdutyeventtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L72-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0c91895be8..462c00be53 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package phoneticencoder package phoneticencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0edee349d2..8d0f72ddbe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package phoneticlanguage package phoneticlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L38-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0a95fc702f..ddd780d646 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package phoneticnametype package phoneticnametype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L53-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 30130ab1c8..85abc11953 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package phoneticruletype package phoneticruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4cf0debcd3..ac926897d7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package policytype package policytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/_types/Policy.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 99af96e2b6..dbe869b363 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package quantifier package quantifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L71-L74 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 11946e6829..098c60cc00 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package queryrulecriteriatype package queryrulecriteriatype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L54-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L54-L67 type QueryRuleCriteriaType struct { Name string } @@ -35,6 +35,8 @@ var ( Exactfuzzy = QueryRuleCriteriaType{"exact_fuzzy"} + Fuzzy = QueryRuleCriteriaType{"fuzzy"} + Prefix = QueryRuleCriteriaType{"prefix"} Suffix = QueryRuleCriteriaType{"suffix"} @@ -48,6 +50,8 @@ var ( Gt = QueryRuleCriteriaType{"gt"} Gte = QueryRuleCriteriaType{"gte"} + + Always = QueryRuleCriteriaType{"always"} ) func (q QueryRuleCriteriaType) MarshalText() (text []byte, err error) { @@ -63,6 +67,8 @@ func (q *QueryRuleCriteriaType) UnmarshalText(text []byte) error { *q = Exact case "exact_fuzzy": *q = Exactfuzzy + case "fuzzy": + *q = Fuzzy case "prefix": *q = Prefix case "suffix": @@ -77,6 +83,8 @@ func (q *QueryRuleCriteriaType) UnmarshalText(text []byte) error { *q = Gt case "gte": *q = Gte + case "always": + *q = Always default: *q = QueryRuleCriteriaType{string(text)} } 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 1f023dc0fe..525e16d79a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype/queryruletype.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype/queryruletype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package queryruletype package queryruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L44-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L44-L46 type QueryRuleType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation/rangerelation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation/rangerelation.go index 4ca01e5368..d084f299a8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package rangerelation package rangerelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L170-L183 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L172-L185 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 150bf75be2..a8efdff45b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package ratemode package ratemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L243-L252 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L243-L252 type RateMode struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh/refresh.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh/refresh.go index 0da048c014..7b51b8b9f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package refresh package refresh import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L266-L273 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L266-L273 type Refresh struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/responsecontenttype/responsecontenttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/responsecontenttype/responsecontenttype.go index f9292ddbc7..4afd8b0453 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package responsecontenttype package responsecontenttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b2508745a4..2527abc945 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package result package result import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Result.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9a4aa19d2f..1a1b8caff3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package resultposition package resultposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/search/types.ts#L20-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2fd17c02c9..7592e22bb3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package routingstate package routingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L351-L372 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L351-L372 type RoutingState struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ruleaction/ruleaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ruleaction/ruleaction.go index 9ad763a8ba..59fa940196 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package ruleaction package ruleaction import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L41-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1686a1cce0..5797178590 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package runtimefieldtype package runtimefieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/RuntimeFields.ts#L56-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/RuntimeFields.ts#L56-L66 type RuntimeFieldType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go index 088e7e5c4a..532e7785a3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package sampleraggregationexecutionhint package sampleraggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L345-L358 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L345-L358 type SamplerAggregationExecutionHint struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scoremode/scoremode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scoremode/scoremode.go index b70edbe41b..e2bb037d55 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package scoremode package scoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/rescoring.ts#L64-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 489d34ae79..2efebbb804 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package scriptlanguage package scriptlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f13e172f92..f4fceef5a6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package scriptsorttype package scriptsorttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L76-L80 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L81-L85 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 94972755a1..9e785a748f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package searchtype package searchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L275-L280 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L275-L280 type SearchType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go index 98eeda8c9d..856beb854f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package segmentsortmissing package segmentsortmissing import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSegmentSort.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8be3b9347f..769c857736 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package segmentsortmode package segmentsortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSegmentSort.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7276589d28..0c0b609591 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package segmentsortorder package segmentsortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSegmentSort.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 032afceb20..2f36413bcb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package shapetype package shapetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1074-L1077 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1074-L1077 type ShapeType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardroutingstate/shardroutingstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardroutingstate/shardroutingstate.go index afdd29c807..f8903e4049 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package shardroutingstate package shardroutingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L169-L174 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c09f02701c..ae30b2d97b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package shardsstatsstage package shardsstatsstage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8e1a28ef1b..919860cf0c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package shardstoreallocation package shardstoreallocation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L45-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L48-L52 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 136e93d0ff..8c6edb8843 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package shardstorestatus package shardstorestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L60-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L63-L72 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 5c8ea93387..69f65d4be0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package shutdownstatus package shutdownstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 588beeaba0..d4e713918f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package shutdowntype package shutdowntype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7f18eb569d..fee41421fd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package snapshotsort package snapshotsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotInfo.ts#L73-L93 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d5040e65f5..a2b50d0aca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package snapshotupgradestate package snapshotupgradestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L94-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b7b87f3253..e455a1435f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package snowballlanguage package snowballlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/languages.ts#L57-L80 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c13a05396d..033f694a20 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package sortmode package sortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L103-L112 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L109-L118 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 99b52007c3..24f680952e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package sortorder package sortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L114-L123 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L120-L129 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 7696aa307a..7c6e47f41f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package sourcefieldmode package sourcefieldmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L67-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L67-L75 type SourceFieldMode struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/statslevel/statslevel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/statslevel/statslevel.go index 705466ce55..23cea0caf8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package statslevel package statslevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/_types/stats.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f1e9ebb258..ee48e074a9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package storagetype package storagetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L509-L537 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dda7c8ace6..4fa7c709be 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package stringdistance package stringdistance import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L469-L490 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 59a09961c3..a595471a2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package suggestmode package suggestmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L282-L295 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L282-L295 type SuggestMode struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort/suggestsort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort/suggestsort.go index 0ec80d3f28..3ee85185f6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package suggestsort package suggestsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L492-L501 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..1a301aa237 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package syncjobtriggermethod +package syncjobtriggermethod + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/SyncJob.ts#L48-L51 +type SyncJobTriggerMethod struct { + Name string +} + +var ( + Ondemand = SyncJobTriggerMethod{"on_demand"} + + Scheduled = SyncJobTriggerMethod{"scheduled"} +) + +func (s SyncJobTriggerMethod) MarshalText() (text []byte, err error) { + return []byte(s.String()), nil +} + +func (s *SyncJobTriggerMethod) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "on_demand": + *s = Ondemand + case "scheduled": + *s = Scheduled + default: + *s = SyncJobTriggerMethod{string(text)} + } + + return nil +} + +func (s SyncJobTriggerMethod) String() string { + return s.Name +} 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 new file mode 100644 index 0000000000..e21fcca25a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype/syncjobtype.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package syncjobtype +package syncjobtype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/SyncJob.ts#L42-L46 +type SyncJobType struct { + Name string +} + +var ( + Full = SyncJobType{"full"} + + Incremental = SyncJobType{"incremental"} + + Accesscontrol = SyncJobType{"access_control"} +) + +func (s SyncJobType) MarshalText() (text []byte, err error) { + return []byte(s.String()), nil +} + +func (s *SyncJobType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "full": + *s = Full + case "incremental": + *s = Incremental + case "access_control": + *s = Accesscontrol + default: + *s = SyncJobType{string(text)} + } + + return nil +} + +func (s SyncJobType) String() string { + return s.Name +} 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 new file mode 100644 index 0000000000..0bc77fa16b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus/syncstatus.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/19027dbdd366978ccae41842a040a636730e7c10 + +// Package syncstatus +package syncstatus + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L138-L146 +type SyncStatus struct { + Name string +} + +var ( + Canceling = SyncStatus{"canceling"} + + Canceled = SyncStatus{"canceled"} + + Completed = SyncStatus{"completed"} + + Error = SyncStatus{"error"} + + Inprogress = SyncStatus{"in_progress"} + + Pending = SyncStatus{"pending"} + + Suspended = SyncStatus{"suspended"} +) + +func (s SyncStatus) MarshalText() (text []byte, err error) { + return []byte(s.String()), nil +} + +func (s *SyncStatus) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "canceling": + *s = Canceling + case "canceled": + *s = Canceled + case "completed": + *s = Completed + case "error": + *s = Error + case "in_progress": + *s = Inprogress + case "pending": + *s = Pending + case "suspended": + *s = Suspended + default: + *s = SyncStatus{string(text)} + } + + return nil +} + +func (s SyncStatus) String() string { + return s.Name +} 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 3759a9d196..3f7df4530e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package synonymformat package synonymformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L105-L108 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L105-L108 type SynonymFormat struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype/tasktype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype/tasktype.go index ad5b7247ad..c65287cc42 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package tasktype package tasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/TaskType.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 078730159c..fb09911752 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package templateformat package templateformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleTemplate.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7bd27da1b5..4da58f1bf7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package termsaggregationcollectmode package termsaggregationcollectmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L982-L991 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L987-L996 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 23ecbb69f0..bb3b36c9b1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package termsaggregationexecutionhint package termsaggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L993-L998 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L998-L1003 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 1e83a449d7..7d3ff297c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package termvectoroption package termvectoroption import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/TermVectorOption.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8eaa9002ad..6423c710c2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package textquerytype package textquerytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L541-L567 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L541-L567 type TextQueryType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/threadtype/threadtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/threadtype/threadtype.go index f1e00448d1..5e65712faf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package threadtype package threadtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L297-L303 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L297-L303 type ThreadType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go index 2ef13bcaa0..d22a1ed3af 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package timeseriesmetrictype package timeseriesmetrictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/TimeSeriesMetricType.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 778b632014..34ab57ff65 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package timeunit package timeunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L69-L77 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 06aa446f09..9f9cb8b7cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package tokenchar package tokenchar import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L47-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L47-L54 type TokenChar struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go index a62d814610..40c43ebd9c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package tokenizationtruncate package tokenizationtruncate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L350-L354 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 04f43cf71d..4326050050 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package totalhitsrelation package totalhitsrelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L99-L104 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L100-L105 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 6831d6b167..dc2459e877 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package trainedmodeltype package trainedmodeltype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L258-L272 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L258-L272 type TrainedModelType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority/trainingpriority.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority/trainingpriority.go index a1d27490a8..b78cfa2a02 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package trainingpriority package trainingpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L311-L314 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L311-L314 type TrainingPriority struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/translogdurability/translogdurability.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/translogdurability/translogdurability.go index 32b84cb9a5..48f3bbf96a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package translogdurability package translogdurability import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L363-L378 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b62d8d1d09..f69b1a8c0c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package ttesttype package ttesttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L322-L335 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L322-L335 type TTestType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/type_/type_.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/type_/type_.go index 6d05ee10f0..9a26d5c116 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package type_ package type_ import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/_types/types.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0839bb9cf7..52f22ea2e2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package unassignedinformationreason package unassignedinformationreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L127-L146 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L127-L146 type UnassignedInformationReason struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty/useragentproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty/useragentproperty.go index 4aa472bf40..4b65f71d92 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty/useragentproperty.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty/useragentproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package useragentproperty package useragentproperty import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L266-L277 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L266-L277 type UserAgentProperty struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype/valuetype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype/valuetype.go index ad78170b6c..0477305066 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package valuetype package valuetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L424-L435 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L424-L435 type ValueType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype/versiontype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype/versiontype.go index 91bf63c4f8..c0777dec80 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package versiontype package versiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L106-L122 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L106-L122 type VersionType struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/waitforevents/waitforevents.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/waitforevents/waitforevents.go index e60df8117d..a4511ca90e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package waitforevents package waitforevents import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L311-L318 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L311-L318 type WaitForEvents struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watcherstate/watcherstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watcherstate/watcherstate.go index 63c6a195a5..c0a453b29d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package watcherstate package watcherstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/types.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/stats/types.ts#L26-L31 type WatcherState struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery/zerotermsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery/zerotermsquery.go index db674efd18..31fd9e1f29 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // Package zerotermsquery package zerotermsquery import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L569-L578 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L569-L578 type ZeroTermsQuery struct { Name string } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitmillis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitmillis.go index 3c1fac78aa..697c8dc588 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EpochTimeUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8f980d763d..299a429cdd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EpochTimeUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fb49021d29..ec79f9fced 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Eql type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L351-L354 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L351-L354 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 13882b61a6..cbe45956d4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EqlFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L99-L107 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L99-L107 type EqlFeatures struct { Event uint `json:"event"` Join uint `json:"join"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturesjoin.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturesjoin.go index 3adadc1846..76b37b96e4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EqlFeaturesJoin type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L109-L115 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L109-L115 type EqlFeaturesJoin struct { JoinQueriesFiveOrMore uint `json:"join_queries_five_or_more"` JoinQueriesFour uint `json:"join_queries_four"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatureskeys.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatureskeys.go index 4c25a93e5f..47c3c67a49 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EqlFeaturesKeys type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L117-L123 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L117-L123 type EqlFeaturesKeys struct { JoinKeysFiveOrMore uint `json:"join_keys_five_or_more"` JoinKeysFour uint `json:"join_keys_four"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturespipes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturespipes.go index 4c9e9727e1..c0747203e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EqlFeaturesPipes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L125-L128 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L125-L128 type EqlFeaturesPipes struct { PipeHead uint `json:"pipe_head"` PipeTail uint `json:"pipe_tail"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturessequences.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturessequences.go index 54278cbfaf..718bdb894d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EqlFeaturesSequences type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L130-L137 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L130-L137 type EqlFeaturesSequences struct { SequenceMaxspan uint `json:"sequence_maxspan"` SequenceQueriesFiveOrMore uint `json:"sequence_queries_five_or_more"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlhits.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlhits.go index 9714f82009..b9b8608d52 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EqlHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/_types/EqlHits.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ed4e0b9396..75118b36a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ErrorCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Errors.ts#L25-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4bb00f742e..196917829c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ErrorResponseBase type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Base.ts#L76-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 700d5be686..371f7529ba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // EsqlColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Binary.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Binary.ts#L24-L24 type EsqlColumns []byte diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eventdatastream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eventdatastream.go index 8231b3f3cd..936f0cd66d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // EventDataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c3bd45a82f..85fdd8512f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // EwmaModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L267-L269 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L267-L269 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 e5771920fa..7ab9ab95e4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // EwmaMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L252-L255 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L252-L255 type EwmaMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 898e21caf8..e5cc2e2bb9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // ExecuteEnrichPolicyStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/execute_policy/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 45ef33c1b7..957f9cf9bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ExecutingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/stats/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/stats/types.ts#L24-L27 type ExecutingPolicy struct { Name string `json:"name"` Task TaskInfo `json:"task"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresult.go index 881741c61a..c759c7b16d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ExecutionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L60-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 90fcd6f029..bdad18391f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // ExecutionResultAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L74-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a49ed20a7e..42f61df195 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // ExecutionResultCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L68-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9c2d41dd37..1bb68e44a6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,7 +29,7 @@ import ( // ExecutionResultInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L88-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cacc305552..a42a79b721 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExecutionState type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L120-L124 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L120-L124 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 37e6f57eee..4160e8bca9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExecutionThreadPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f842ac49dd..039abdd9ed 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExistsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L37-L42 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 8f281795bc..7a712469d3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // ExpandWildcards type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L217-L217 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L217-L217 type ExpandWildcards []expandwildcard.ExpandWildcard diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explainanalyzetoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explainanalyzetoken.go index 3c32d43502..2cd3195008 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExplainAnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L52-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 63c49c4f02..a9be26dddb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Explanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/explain/types.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 742efbd09d..265d452dbf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExplanationDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/explain/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dc6ac49324..83fe98bbb7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExploreControls type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/ExploreControls.ts#L24-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e3b2435276..aee744af04 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExtendedBoundsdouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L491-L500 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L491-L500 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 bef70a1c56..c55689caa6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ExtendedBoundsFieldDateMath type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L491-L500 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L491-L500 type ExtendedBoundsFieldDateMath struct { // Max Maximum value for the bound. Max FieldDateMath `json:"max,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedmemorystats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedmemorystats.go index 273454db3d..0e57da41e2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExtendedMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L622-L631 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L622-L631 type ExtendedMemoryStats struct { // AdjustedTotalInBytes If the amount of physical memory has been overridden using the // `es`.`total_memory_bytes` system property then this reports the overridden 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 63e2faa3c8..4b7b760785 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,31 +31,31 @@ import ( // ExtendedStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L278-L296 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L278-L296 type ExtendedStatsAggregate struct { - Avg Float64 `json:"avg,omitempty"` + Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` Count int64 `json:"count"` - Max Float64 `json:"max,omitempty"` + Max *Float64 `json:"max,omitempty"` MaxAsString *string `json:"max_as_string,omitempty"` Meta Metadata `json:"meta,omitempty"` - Min Float64 `json:"min,omitempty"` + Min *Float64 `json:"min,omitempty"` MinAsString *string `json:"min_as_string,omitempty"` - StdDeviation Float64 `json:"std_deviation,omitempty"` + StdDeviation *Float64 `json:"std_deviation,omitempty"` StdDeviationAsString *string `json:"std_deviation_as_string,omitempty"` StdDeviationBounds *StandardDeviationBounds `json:"std_deviation_bounds,omitempty"` StdDeviationBoundsAsString *StandardDeviationBoundsAsString `json:"std_deviation_bounds_as_string,omitempty"` - StdDeviationPopulation Float64 `json:"std_deviation_population,omitempty"` - StdDeviationSampling Float64 `json:"std_deviation_sampling,omitempty"` + StdDeviationPopulation *Float64 `json:"std_deviation_population,omitempty"` + StdDeviationSampling *Float64 `json:"std_deviation_sampling,omitempty"` Sum Float64 `json:"sum"` SumAsString *string `json:"sum_as_string,omitempty"` - SumOfSquares Float64 `json:"sum_of_squares,omitempty"` + SumOfSquares *Float64 `json:"sum_of_squares,omitempty"` SumOfSquaresAsString *string `json:"sum_of_squares_as_string,omitempty"` - Variance Float64 `json:"variance,omitempty"` + Variance *Float64 `json:"variance,omitempty"` VarianceAsString *string `json:"variance_as_string,omitempty"` - VariancePopulation Float64 `json:"variance_population,omitempty"` + VariancePopulation *Float64 `json:"variance_population,omitempty"` VariancePopulationAsString *string `json:"variance_population_as_string,omitempty"` - VarianceSampling Float64 `json:"variance_sampling,omitempty"` + VarianceSampling *Float64 `json:"variance_sampling,omitempty"` VarianceSamplingAsString *string `json:"variance_sampling_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 77f174c9a8..82006e0756 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L101-L106 type ExtendedStatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -39,7 +39,7 @@ type ExtendedStatsAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // Sigma The number of standard deviations above/below the mean to display. Sigma *Float64 `json:"sigma,omitempty"` } @@ -82,40 +82,9 @@ func (s *ExtendedStatsAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "sigma": var tmp any 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 1ecbfee595..f18371fa4b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,31 +31,31 @@ import ( // ExtendedStatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L298-L299 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L298-L299 type ExtendedStatsBucketAggregate struct { - Avg Float64 `json:"avg,omitempty"` + Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` Count int64 `json:"count"` - Max Float64 `json:"max,omitempty"` + Max *Float64 `json:"max,omitempty"` MaxAsString *string `json:"max_as_string,omitempty"` Meta Metadata `json:"meta,omitempty"` - Min Float64 `json:"min,omitempty"` + Min *Float64 `json:"min,omitempty"` MinAsString *string `json:"min_as_string,omitempty"` - StdDeviation Float64 `json:"std_deviation,omitempty"` + StdDeviation *Float64 `json:"std_deviation,omitempty"` StdDeviationAsString *string `json:"std_deviation_as_string,omitempty"` StdDeviationBounds *StandardDeviationBounds `json:"std_deviation_bounds,omitempty"` StdDeviationBoundsAsString *StandardDeviationBoundsAsString `json:"std_deviation_bounds_as_string,omitempty"` - StdDeviationPopulation Float64 `json:"std_deviation_population,omitempty"` - StdDeviationSampling Float64 `json:"std_deviation_sampling,omitempty"` + StdDeviationPopulation *Float64 `json:"std_deviation_population,omitempty"` + StdDeviationSampling *Float64 `json:"std_deviation_sampling,omitempty"` Sum Float64 `json:"sum"` SumAsString *string `json:"sum_as_string,omitempty"` - SumOfSquares Float64 `json:"sum_of_squares,omitempty"` + SumOfSquares *Float64 `json:"sum_of_squares,omitempty"` SumOfSquaresAsString *string `json:"sum_of_squares_as_string,omitempty"` - Variance Float64 `json:"variance,omitempty"` + Variance *Float64 `json:"variance,omitempty"` VarianceAsString *string `json:"variance_as_string,omitempty"` - VariancePopulation Float64 `json:"variance_population,omitempty"` + VariancePopulation *Float64 `json:"variance_population,omitempty"` VariancePopulationAsString *string `json:"variance_population_as_string,omitempty"` - VarianceSampling Float64 `json:"variance_sampling,omitempty"` + VarianceSampling *Float64 `json:"variance_sampling,omitempty"` VarianceSamplingAsString *string `json:"variance_sampling_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 f830e10097..99c292f5e1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ExtendedStatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L198-L203 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L198-L203 type ExtendedStatsBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 2f12d58492..978ff52b04 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FailProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L648-L654 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L648-L654 type FailProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 018247a771..eff7685f0b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Feature type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/features/_types/Feature.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..13ba1d522d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featureenabled.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// FeatureEnabled type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L215-L217 +type FeatureEnabled struct { + Enabled bool `json:"enabled"` +} + +func (s *FeatureEnabled) 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 + } + + } + } + return nil +} + +// NewFeatureEnabled returns a FeatureEnabled. +func NewFeatureEnabled() *FeatureEnabled { + r := &FeatureEnabled{} + + return r +} 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 e438effb7c..4ea3fa1799 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // Features type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get/IndicesGetRequest.ts#L95-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/get/IndicesGetRequest.ts#L95-L95 type Features []feature.Feature diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featuretoggle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featuretoggle.go index 2b27e9fd4c..1a8445c3e1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FeatureToggle type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L40-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L40-L42 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 24d47caaf4..47879a4590 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FetchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L139-L146 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L139-L146 type FetchProfile struct { Breakdown FetchProfileBreakdown `json:"breakdown"` Children []FetchProfile `json:"children,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofilebreakdown.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofilebreakdown.go index 6759a0c253..41b316a6e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FetchProfileBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L148-L157 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L148-L157 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 b544c2af87..f1cd741b5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FetchProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L159-L162 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L159-L162 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 cb8c8face7..75b88c5805 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // FieldAliasProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L55-L58 type FieldAliasProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -183,12 +183,6 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -207,6 +201,18 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -525,12 +531,6 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -549,6 +549,18 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldandformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldandformat.go index 5e30e19865..6f0444c474 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldAndFormat type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L505-L519 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L525-L539 type FieldAndFormat struct { // Field Wildcard pattern. The request returns values for field names matching this // pattern. @@ -49,7 +49,10 @@ func (s *FieldAndFormat) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Field) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 cd23090060..80567c506c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // FieldCapability type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/field_caps/types.ts#L23-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9333b123bc..6f350bd00c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldCollapse type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/FieldCollapse.ts#L24-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/FieldCollapse.ts#L24-L38 type FieldCollapse struct { Collapse *FieldCollapse `json:"collapse,omitempty"` // Field The field to collapse the result set on 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 f11fb52e62..fc819ae8c6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FielddataFrequencyFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c92bc2a06a..849722e1bb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FielddataRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/fielddata/types.ts#L20-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 aa10f9b915..e63274b3cc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FielddataStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L111-L116 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6639c847eb..1f07cc3de5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // Float64 // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L298-L305 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L298-L305 type FieldDateMath any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldlookup.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldlookup.go index ce4a963cc5..29ee1055e4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // FieldLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L409-L426 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 89759f1c95..cb733e84e2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/meta-fields.ts#L24-L27 type FieldMapping struct { FullName string `json:"full_name"` Mapping map[string]Property `json:"mapping"` @@ -182,12 +182,6 @@ func (s *FieldMapping) UnmarshalJSON(data []byte) error { return err } s.Mapping[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Mapping[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -206,6 +200,18 @@ func (s *FieldMapping) UnmarshalJSON(data []byte) error { return err } s.Mapping[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Mapping[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Mapping[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmemoryusage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmemoryusage.go index dfc6dd23f7..4a71e909eb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L118-L121 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b12605cdc5..05da629eb2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // FieldMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Metric.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8f2b881e82..315198cb9e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldNamesField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a8ae2e4053..b7997e6294 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // FieldRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleMappingRule.ts#L36-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleMappingRule.ts#L36-L44 type FieldRule struct { Dn []string `json:"dn,omitempty"` Groups []string `json:"groups,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fields.go index 6f792d7624..706dc21fbf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Fields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L140-L140 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L140-L140 type Fields []string diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsecurity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsecurity.go index 76de3442e6..15d1ca5037 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // FieldSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/FieldSecurity.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9cb02d0d68..e763295808 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldSizeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L92-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1ae32cfc0b..858a5b4fbc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -36,7 +36,7 @@ import ( // FieldSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L44-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L44-L53 type FieldSort struct { Format *string `json:"format,omitempty"` Missing Missing `json:"missing,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstat.go index 4db0514664..832e1a91c9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/find_structure/types.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f655ba579e..5b4553d519 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6a4a4b78ca..8e6e4391cf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L106-L139 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 486494c9f5..5c3d6b5d35 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // FieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L54-L63 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5e2f03fd4d..0f0f105f8f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -27,7 +27,7 @@ import ( // FieldsUsageBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L32-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 92c1dc0537..7e35331c31 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L136-L167 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d2a40fe76e..90d4e2c98c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FieldTypesMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L109-L134 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9247b67937..924653aec9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,5 +29,5 @@ package types // nil // json.RawMessage // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L25-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8621354f6f..377f8b55df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // FieldValueFactorScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L132-L151 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L133-L152 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 1ba4be908e..a0a06ee936 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FileCountSnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 69baff0a86..538c531fe2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FileDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L50-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1fae56d992..a9da967827 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L698-L716 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L698-L716 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 809b2bed46..eef4a0aa25 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FileSystemTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L757-L786 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L757-L786 type FileSystemTotal struct { // Available Total disk space available to this Java virtual machine on all file stores. // Depending on OS or process level restrictions, this might appear less than 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 98e26bb179..5b76463c9a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L266-L280 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1cd53ae0c8..e15b176a5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L411-L418 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4dbc11fa11..a1acabe479 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // FilterAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L495-L496 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L499-L500 type FilterAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 new file mode 100644 index 0000000000..9ff2b624c2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringadvancedsnippet.go @@ -0,0 +1,85 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// FilteringAdvancedSnippet type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` +} + +func (s *FilteringAdvancedSnippet) 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 "created_at": + if err := dec.Decode(&s.CreatedAt); err != nil { + return fmt.Errorf("%s | %w", "CreatedAt", err) + } + + case "updated_at": + if err := dec.Decode(&s.UpdatedAt); err != nil { + return fmt.Errorf("%s | %w", "UpdatedAt", err) + } + + 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) + } + + } + } + return nil +} + +// NewFilteringAdvancedSnippet returns a FilteringAdvancedSnippet. +func NewFilteringAdvancedSnippet() *FilteringAdvancedSnippet { + r := &FilteringAdvancedSnippet{ + Value: make(map[string]json.RawMessage, 0), + } + + 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 new file mode 100644 index 0000000000..86091f2ba1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringconfig.go @@ -0,0 +1,88 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// FilteringConfig type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L209-L213 +type FilteringConfig struct { + Active FilteringRules `json:"active"` + Domain *string `json:"domain,omitempty"` + Draft FilteringRules `json:"draft"` +} + +func (s *FilteringConfig) 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 "active": + if err := dec.Decode(&s.Active); err != nil { + return fmt.Errorf("%s | %w", "Active", err) + } + + case "domain": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Domain", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Domain = &o + + case "draft": + if err := dec.Decode(&s.Draft); err != nil { + return fmt.Errorf("%s | %w", "Draft", err) + } + + } + } + return nil +} + +// NewFilteringConfig returns a FilteringConfig. +func NewFilteringConfig() *FilteringConfig { + r := &FilteringConfig{} + + return r +} 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 new file mode 100644 index 0000000000..ad87429af4 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrule.go @@ -0,0 +1,132 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule" +) + +// FilteringRule type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L170-L179 +type FilteringRule struct { + CreatedAt DateTime `json:"created_at,omitempty"` + Field string `json:"field"` + Id string `json:"id"` + Order int `json:"order"` + Policy filteringpolicy.FilteringPolicy `json:"policy"` + Rule filteringrulerule.FilteringRuleRule `json:"rule"` + UpdatedAt DateTime `json:"updated_at,omitempty"` + Value string `json:"value"` +} + +func (s *FilteringRule) 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 "created_at": + if err := dec.Decode(&s.CreatedAt); err != nil { + return fmt.Errorf("%s | %w", "CreatedAt", err) + } + + case "field": + if err := dec.Decode(&s.Field); err != nil { + return fmt.Errorf("%s | %w", "Field", err) + } + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "order": + + 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", "Order", err) + } + s.Order = value + case float64: + f := int(v) + s.Order = f + } + + case "policy": + if err := dec.Decode(&s.Policy); err != nil { + return fmt.Errorf("%s | %w", "Policy", err) + } + + case "rule": + if err := dec.Decode(&s.Rule); err != nil { + return fmt.Errorf("%s | %w", "Rule", err) + } + + case "updated_at": + if err := dec.Decode(&s.UpdatedAt); err != nil { + return fmt.Errorf("%s | %w", "UpdatedAt", err) + } + + case "value": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Value", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Value = o + + } + } + return nil +} + +// NewFilteringRule returns a FilteringRule. +func NewFilteringRule() *FilteringRule { + r := &FilteringRule{} + + return r +} 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 new file mode 100644 index 0000000000..d2f19187c1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrules.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +// FilteringRules type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L203-L207 +type FilteringRules struct { + AdvancedSnippet FilteringAdvancedSnippet `json:"advanced_snippet"` + Rules []FilteringRule `json:"rules"` + Validation FilteringRulesValidation `json:"validation"` +} + +// NewFilteringRules returns a FilteringRules. +func NewFilteringRules() *FilteringRules { + r := &FilteringRules{} + + return r +} 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 new file mode 100644 index 0000000000..5d8edd830a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringrulesvalidation.go @@ -0,0 +1,40 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate" +) + +// FilteringRulesValidation type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L198-L201 +type FilteringRulesValidation struct { + Errors []FilteringValidation `json:"errors"` + State filteringvalidationstate.FilteringValidationState `json:"state"` +} + +// NewFilteringRulesValidation returns a FilteringRulesValidation. +func NewFilteringRulesValidation() *FilteringRulesValidation { + r := &FilteringRulesValidation{} + + return r +} diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configurations.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringvalidation.go similarity index 59% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configurations.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringvalidation.go index 1cc2b6eda9..79cb8134f3 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configurations.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteringvalidation.go @@ -16,22 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types -// Configurations type. +// FilteringValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L50-L54 -type Configurations struct { - Forcemerge *ForceMergeConfiguration `json:"forcemerge,omitempty"` - Rollover *RolloverConditions `json:"rollover,omitempty"` - Shrink *ShrinkConfiguration `json:"shrink,omitempty"` +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L181-L184 +type FilteringValidation struct { + Ids []string `json:"ids"` + Messages []string `json:"messages"` } -// NewConfigurations returns a Configurations. -func NewConfigurations() *Configurations { - r := &Configurations{} +// NewFilteringValidation returns a FilteringValidation. +func NewFilteringValidation() *FilteringValidation { + r := &FilteringValidation{} return r } 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 09497d3c24..46f215d35b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // FilterRef type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Filter.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 17b54c435a..b4f54316cf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // FiltersAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L568-L569 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L572-L573 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 86da25b83d..2602b81611 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L360-L380 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L360-L380 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 c85f524011..6f97bdb2f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // FiltersBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L571-L571 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L575-L575 type FiltersBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 64289bb023..6834794489 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FingerprintAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/fingerprinttokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprinttokenfilter.go index 591874e9c1..9a7ef4504b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FingerprintTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L196-L200 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L196-L200 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/flattened.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattened.go index 5a2b31fb26..7afc86de7d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Flattened type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L356-L358 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L356-L358 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 a5f36ef6e8..2bde7f587a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // FlattenedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L26-L37 type FlattenedProperty struct { Boost *Float64 `json:"boost,omitempty"` DepthLimit *int `json:"depth_limit,omitempty"` @@ -252,12 +252,6 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -276,6 +270,18 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -620,12 +626,6 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -644,6 +644,18 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 c760640049..528c530994 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // FloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L136-L139 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L142-L145 type FloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -51,7 +51,7 @@ type FloatNumberProperty struct { NullValue *float32 `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,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. @@ -261,12 +261,6 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -647,12 +653,6 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -671,6 +671,18 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -843,40 +855,9 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 6438c11546..48c08053d0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // FloatRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L38-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L38-L40 type FloatRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -249,12 +249,6 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -273,6 +267,18 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -600,12 +606,6 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -624,6 +624,18 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 b9109df979..21aa78d72a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FlushStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L123-L128 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1b9c48c2e4..baf313fab3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // FollowerIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_info/types.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow_info/types.ts#L22-L28 type FollowerIndex struct { FollowerIndex string `json:"follower_index"` LeaderIndex string `json:"leader_index"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindexparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindexparameters.go index 86b2a6ba05..101a6e635c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FollowerIndexParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_info/types.ts#L38-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/follow_info/types.ts#L38-L49 type FollowerIndexParameters struct { MaxOutstandingReadRequests int `json:"max_outstanding_read_requests"` MaxOutstandingWriteRequests int `json:"max_outstanding_write_requests"` 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 5ecee79886..43df386d6c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // FollowIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/_types/FollowIndexStats.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 179e39e042..fd11a2504d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // FollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/stats/types.ts.ts#L41-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ccr/stats/types.ts.ts#L41-L43 type FollowStats struct { Indices []FollowIndexStats `json:"indices"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeaction.go similarity index 63% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeconfiguration.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeaction.go index 607385ccf4..df48dedf37 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeconfiguration.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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,14 +29,15 @@ import ( "strconv" ) -// ForceMergeConfiguration type. +// ForceMergeAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L56-L58 -type ForceMergeConfiguration struct { - MaxNumSegments int `json:"max_num_segments"` +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L126-L129 +type ForceMergeAction struct { + IndexCodec *string `json:"index_codec,omitempty"` + MaxNumSegments int `json:"max_num_segments"` } -func (s *ForceMergeConfiguration) UnmarshalJSON(data []byte) error { +func (s *ForceMergeAction) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -51,6 +52,18 @@ func (s *ForceMergeConfiguration) UnmarshalJSON(data []byte) error { switch t { + case "index_codec": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "IndexCodec", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.IndexCodec = &o + case "max_num_segments": var tmp any @@ -72,9 +85,9 @@ func (s *ForceMergeConfiguration) UnmarshalJSON(data []byte) error { return nil } -// NewForceMergeConfiguration returns a ForceMergeConfiguration. -func NewForceMergeConfiguration() *ForceMergeConfiguration { - r := &ForceMergeConfiguration{} +// NewForceMergeAction returns a ForceMergeAction. +func NewForceMergeAction() *ForceMergeAction { + r := &ForceMergeAction{} return r } 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 d07de0a151..425719eea1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ForceMergeResponseBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/forcemerge/_types/response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/forcemerge/_types/response.ts#L22-L28 type ForceMergeResponseBody struct { Shards_ ShardStatistics `json:"_shards"` // Task task contains a task id returned when wait_for_completion=false, diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foreachprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foreachprocessor.go index 94c554d274..44e0a9d342 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ForeachProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L656-L670 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L656-L670 type ForeachProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 841425797f..a7bd59392f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FormattableMetricAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L51-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L51-L53 type FormattableMetricAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -39,7 +39,7 @@ type FormattableMetricAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *FormattableMetricAggregation) UnmarshalJSON(data []byte) error { @@ -80,40 +80,9 @@ func (s *FormattableMetricAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 1fc3317ae5..fb43106142 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FoundStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_privileges/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/frequencyencodingpreprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequencyencodingpreprocessor.go index 133c927fd1..29279b3f22 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FrequencyEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 65d52aad52..d77d1b2164 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L639-L640 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L643-L644 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 c63d134569..225dd2178f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FrequentItemSetsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1162-L1186 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1167-L1191 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 f7afb22943..916a13a072 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // FrequentItemSetsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L642-L645 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L646-L649 type FrequentItemSetsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 464579f58c..5a9fa07616 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1148-L1160 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1153-L1165 type FrequentItemSetsField struct { // Exclude Values to exclude. // Can be regular expression strings or arrays of strings of exact terms. @@ -78,9 +78,40 @@ func (s *FrequentItemSetsField) UnmarshalJSON(data []byte) error { } case "include": - if err := dec.Decode(&s.Include); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Include", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + include_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Include", err) + } + + switch t { + + case "num_partitions", "partition": + o := NewTermsPartition() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + s.Include = o + break include_field + + } + } + if s.Include == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Include); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + } } } 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 3761e28adb..9fed608d79 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FrozenIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L360-L362 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L360-L362 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 1681ff80cd..1245defd44 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FunctionScore type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L201-L241 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L210-L250 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. @@ -75,9 +75,18 @@ func (s *FunctionScore) UnmarshalJSON(data []byte) error { switch t { case "exp": - if err := dec.Decode(&s.Exp); err != nil { + var message json.RawMessage + err := dec.Decode(&message) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + + untyped := NewUntypedDecayFunction() + err = json.Unmarshal(message, &untyped) + if err != nil { return fmt.Errorf("%s | %w", "Exp", err) } + s.Exp = untyped case "field_value_factor": if err := dec.Decode(&s.FieldValueFactor); err != nil { @@ -90,14 +99,32 @@ func (s *FunctionScore) UnmarshalJSON(data []byte) error { } case "gauss": - if err := dec.Decode(&s.Gauss); err != nil { + var message json.RawMessage + err := dec.Decode(&message) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + + untyped := NewUntypedDecayFunction() + err = json.Unmarshal(message, &untyped) + if err != nil { return fmt.Errorf("%s | %w", "Gauss", err) } + s.Gauss = untyped case "linear": - if err := dec.Decode(&s.Linear); err != nil { + var message json.RawMessage + err := dec.Decode(&message) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + + untyped := NewUntypedDecayFunction() + err = json.Unmarshal(message, &untyped) + if err != nil { return fmt.Errorf("%s | %w", "Linear", err) } + s.Linear = untyped case "random_score": if err := dec.Decode(&s.RandomScore); err != nil { 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 141cfdc69e..1fda18bd5e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // FunctionScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L92-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L93-L119 type FunctionScoreQuery 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/fuzziness.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzziness.go index 5b044694a3..eca3e5a623 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L133-L134 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L133-L134 type Fuzziness any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzzyquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzzyquery.go index 763bae675c..d40f69306f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // FuzzyQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L43-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L44-L79 type FuzzyQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -63,7 +63,10 @@ func (s *FuzzyQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Value) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 01876aba3b..ba1a46cf3c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // GarbageCollector type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L923-L928 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L923-L928 type GarbageCollector struct { // Collectors Contains statistics about JVM garbage collectors for the node. Collectors map[string]GarbageCollectorTotal `json:"collectors,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollectortotal.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollectortotal.go index 9c76b3bdd1..6cd1625989 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GarbageCollectorTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L930-L943 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L930-L943 type GarbageCollectorTotal struct { // CollectionCount Total number of JVM garbage collectors that collect objects. CollectionCount *int64 `json:"collection_count,omitempty"` 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 528be73b75..080ab4fafa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GcsRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L45-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e580f637eb..5fc31a0d4f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GcsRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L85-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3c095be6e0..c54cf83c60 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // GeoBoundingBoxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L32-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L32-L53 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 8a55d21248..9dfef3db2c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -27,5 +27,5 @@ package types // TopRightBottomLeftGeoBounds // WktGeoBounds // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L135-L148 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e207ef920f..08c3e4cd94 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoBoundsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L303-L306 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L303-L306 type GeoBoundsAggregate struct { Bounds GeoBounds `json:"bounds,omitempty"` Meta Metadata `json:"meta,omitempty"` @@ -52,9 +52,67 @@ func (s *GeoBoundsAggregate) UnmarshalJSON(data []byte) error { switch t { case "bounds": - if err := dec.Decode(&s.Bounds); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Bounds", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + bounds_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Bounds", err) + } + + switch t { + + case "bottom", "left", "right", "top": + o := NewCoordsGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_right", "top_left": + o := NewTopLeftBottomRightGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_left", "top_right": + o := NewTopRightBottomLeftGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "wkt": + o := NewWktGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + } + } + if s.Bounds == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Bounds); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + } case "meta": if err := dec.Decode(&s.Meta); err != nil { 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 f5822ede4d..16e5ff6e83 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // GeoBoundsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L108-L114 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L108-L114 type GeoBoundsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // WrapLongitude Specifies whether the bounding box should be allowed to overlap the // international date line. WrapLongitude *bool `json:"wrap_longitude,omitempty"` @@ -70,40 +70,9 @@ func (s *GeoBoundsAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "wrap_longitude": var tmp any 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 d3c292d84e..d61aaae842 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L308-L312 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L308-L312 type GeoCentroidAggregate struct { Count int64 `json:"count"` Location GeoLocation `json:"location,omitempty"` @@ -69,9 +69,49 @@ func (s *GeoCentroidAggregate) UnmarshalJSON(data []byte) error { } case "location": - if err := dec.Decode(&s.Location); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Location", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + location_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Location", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Location", err) + } + s.Location = o + break location_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Location", err) + } + s.Location = o + break location_field + + } + } + if s.Location == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Location); err != nil { + return fmt.Errorf("%s | %w", "Location", err) + } + } case "meta": if err := dec.Decode(&s.Meta); err != nil { 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 9d698668b5..170df14799 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L116-L119 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L116-L119 type GeoCentroidAggregation struct { Count *int64 `json:"count,omitempty"` // Field The field on which to run the aggregation. @@ -40,7 +40,7 @@ type GeoCentroidAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *GeoCentroidAggregation) UnmarshalJSON(data []byte) error { @@ -79,50 +79,59 @@ func (s *GeoCentroidAggregation) UnmarshalJSON(data []byte) error { } case "location": - if err := dec.Decode(&s.Location); err != nil { - return fmt.Errorf("%s | %w", "Location", err) - } - - case "missing": - if err := dec.Decode(&s.Missing); err != nil { - return fmt.Errorf("%s | %w", "Missing", err) - } - - case "script": message := json.RawMessage{} if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Location", err) } keyDec := json.NewDecoder(bytes.NewReader(message)) + location_field: for { t, err := keyDec.Token() if err != nil { if errors.Is(err, io.EOF) { break } - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Location", err) } switch t { - case "lang", "options", "source": - o := NewInlineScript() + case "lat", "lon": + o := NewLatLonGeoLocation() localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Location", err) } - s.Script = o + s.Location = o + break location_field - case "id": - o := NewStoredScriptId() + case "geohash": + o := NewGeoHashLocation() localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Location", err) } - s.Script = o + s.Location = o + break location_field } } + if s.Location == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Location); err != nil { + return fmt.Errorf("%s | %w", "Location", err) + } + } + + case "missing": + if err := dec.Decode(&s.Missing); err != nil { + return fmt.Errorf("%s | %w", "Missing", err) + } + + case "script": + if err := dec.Decode(&s.Script); err != nil { + return fmt.Errorf("%s | %w", "Script", err) + } } } 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 300f0ae8c7..2c746076c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,9 +29,9 @@ import ( // GeoDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L190-L192 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L194-L197 type GeoDecayFunction struct { - GeoDecayFunction map[string]DecayPlacementGeoLocationDistance `json:"-"` + DecayFunctionBaseGeoLocationDistance map[string]DecayPlacementGeoLocationDistance `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the // decay contains multiple values. MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"` @@ -53,10 +53,10 @@ func (s GeoDecayFunction) MarshalJSON() ([]byte, error) { } // We inline the additional fields from the underlying map - for key, value := range s.GeoDecayFunction { + for key, value := range s.DecayFunctionBaseGeoLocationDistance { tmp[fmt.Sprintf("%s", key)] = value } - delete(tmp, "GeoDecayFunction") + delete(tmp, "DecayFunctionBaseGeoLocationDistance") data, err = json.Marshal(tmp) if err != nil { @@ -69,7 +69,7 @@ func (s GeoDecayFunction) MarshalJSON() ([]byte, error) { // NewGeoDecayFunction returns a GeoDecayFunction. func NewGeoDecayFunction() *GeoDecayFunction { r := &GeoDecayFunction{ - GeoDecayFunction: make(map[string]DecayPlacementGeoLocationDistance, 0), + DecayFunctionBaseGeoLocationDistance: make(map[string]DecayPlacementGeoLocationDistance, 0), } return r 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 1b00eb3265..bb25e25399 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoDistanceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L550-L554 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L554-L558 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 ad09aeb7bb..f13427bf07 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // GeoDistanceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L382-L405 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L382-L405 type GeoDistanceAggregation struct { // DistanceType The distance calculation type. DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` @@ -73,9 +73,49 @@ func (s *GeoDistanceAggregation) UnmarshalJSON(data []byte) error { } case "origin": - if err := dec.Decode(&s.Origin); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Origin", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + origin_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Origin", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + s.Origin = o + break origin_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + s.Origin = o + break origin_field + + } + } + if s.Origin == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Origin); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + } case "ranges": if err := dec.Decode(&s.Ranges); err != nil { 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 a92926a1bd..b67e32df71 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L62-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L67-L70 type GeoDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -99,9 +99,49 @@ func (s *GeoDistanceFeatureQuery) UnmarshalJSON(data []byte) error { } case "origin": - if err := dec.Decode(&s.Origin); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Origin", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + origin_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Origin", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + s.Origin = o + break origin_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + s.Origin = o + break origin_field + + } + } + if s.Origin == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Origin); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + } case "pivot": if err := dec.Decode(&s.Pivot); err != nil { 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 9b7a397953..a87cf725ac 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // GeoDistanceQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L57-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L60-L91 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 be0d63205d..d749989710 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -36,12 +36,13 @@ import ( // GeoDistanceSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L58-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L59-L71 type GeoDistanceSort struct { DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` GeoDistanceSort map[string][]GeoLocation `json:"-"` IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"` Mode *sortmode.SortMode `json:"mode,omitempty"` + Nested *NestedSortValue `json:"nested,omitempty"` Order *sortorder.SortOrder `json:"order,omitempty"` Unit *distanceunit.DistanceUnit `json:"unit,omitempty"` } @@ -85,6 +86,11 @@ func (s *GeoDistanceSort) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Mode", err) } + case "nested": + if err := dec.Decode(&s.Nested); err != nil { + return fmt.Errorf("%s | %w", "Nested", err) + } + case "order": if err := dec.Decode(&s.Order); err != nil { return fmt.Errorf("%s | %w", "Order", err) 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 3de2003546..3401f093f6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoHashGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L506-L508 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L510-L512 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 1caf86d307..eb3956348c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoHashGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L407-L432 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L407-L432 type GeoHashGridAggregation struct { // Bounds The bounding box to filter the points in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` @@ -66,9 +66,67 @@ func (s *GeoHashGridAggregation) UnmarshalJSON(data []byte) error { switch t { case "bounds": - if err := dec.Decode(&s.Bounds); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Bounds", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + bounds_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Bounds", err) + } + + switch t { + + case "bottom", "left", "right", "top": + o := NewCoordsGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_right", "top_left": + o := NewTopLeftBottomRightGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_left", "top_right": + o := NewTopRightBottomLeftGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "wkt": + o := NewWktGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + } + } + if s.Bounds == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Bounds); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + } case "field": if err := dec.Decode(&s.Field); err != nil { 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 b006a51acf..b73c4389a7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // GeoHashGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L510-L512 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L514-L516 type GeoHashGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 c8aaba6516..aa19cec4a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoHashLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L131-L133 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1d36f7d3ef..7c7f52f5ba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4f35058043..c1b3db8799 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoHexGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L522-L523 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L526-L527 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 80426cb31d..4f3a87d11d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeohexGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L462-L487 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L462-L487 type GeohexGridAggregation struct { // Bounds Bounding box used to filter the geo-points in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` @@ -63,9 +63,67 @@ func (s *GeohexGridAggregation) UnmarshalJSON(data []byte) error { switch t { case "bounds": - if err := dec.Decode(&s.Bounds); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Bounds", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + bounds_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Bounds", err) + } + + switch t { + + case "bottom", "left", "right", "top": + o := NewCoordsGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_right", "top_left": + o := NewTopLeftBottomRightGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_left", "top_right": + o := NewTopRightBottomLeftGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "wkt": + o := NewWktGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + } + } + if s.Bounds == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Bounds); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + } case "field": if err := dec.Decode(&s.Field); err != nil { 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 523e85b0ea..3fbbebd47f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // GeoHexGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L525-L527 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L529-L531 type GeoHexGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 5a115255cf..1bfe0761c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoIpDownloadStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/geo_ip_stats/types.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/geo_ip_stats/types.ts#L24-L35 type GeoIpDownloadStatistics struct { // DatabaseCount Current number of databases available for use. DatabaseCount int `json:"database_count"` 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 f9f2e4bdb3..41cded8a92 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoIpNodeDatabaseName type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/geo_ip_stats/types.ts#L45-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/geo_ip_stats/types.ts#L45-L48 type GeoIpNodeDatabaseName struct { // Name Name of the database. Name string `json:"name"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabases.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabases.go index 79dd6acf34..b9615202df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // GeoIpNodeDatabases type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/geo_ip_stats/types.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/geo_ip_stats/types.ts#L37-L43 type GeoIpNodeDatabases struct { // Databases Downloaded databases for the node. Databases []GeoIpNodeDatabaseName `json:"databases"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipprocessor.go index 2ed605052a..38d480288b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoIpProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L339-L368 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L339-L368 type GeoIpProcessor struct { // DatabaseFile The database filename referring to a database the module ships with // (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom 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 265d23e18c..898f78eaae 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoLine type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 56340dc128..f5bd64118f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoLineAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L784-L791 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L791-L798 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 5bdb86b6df..19d4662a23 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // GeoLineAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L121-L146 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L121-L146 type GeoLineAggregation struct { // IncludeSort When `true`, returns an additional array of the sort values in the feature // properties. 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 ef97d28560..98160cceb6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoLinePoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L155-L160 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L155-L160 type GeoLinePoint struct { // Field The name of the geo_point field. Field string `json:"field"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinesort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinesort.go index 4069e754e0..1ac029dbc7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoLineSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L148-L153 type GeoLineSort struct { // Field The name of the numeric field to use as the sort key for ordering the points. Field string `json:"field"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolocation.go index e3e37ad2e2..4a5c3e5fe1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -27,5 +27,5 @@ package types // []Float64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L104-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 699f2491fa..80dc831bbc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // GeoPointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L24-L32 type GeoPointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -49,7 +49,7 @@ type GeoPointProperty struct { NullValue GeoLocation `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Type string `json:"type,omitempty"` @@ -223,12 +223,6 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -247,6 +241,18 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -485,9 +491,49 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { } case "null_value": - if err := dec.Decode(&s.NullValue); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "NullValue", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + nullvalue_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "NullValue", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "NullValue", err) + } + s.NullValue = o + break nullvalue_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "NullValue", err) + } + s.NullValue = o + break nullvalue_field + + } + } + if s.NullValue == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.NullValue); err != nil { + return fmt.Errorf("%s | %w", "NullValue", err) + } + } case "on_script_error": if err := dec.Decode(&s.OnScriptError); err != nil { @@ -612,12 +658,6 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -636,6 +676,18 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -808,40 +860,9 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 c1135e0705..c2479a2268 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // GeoPolygonPoints type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L87-L89 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L93-L95 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 480c281ced..23bca89976 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // GeoPolygonQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L91-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L97-L108 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 d2cfe04503..dd21ed68c1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L145-L154 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b3d1895151..af5a9de23f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // GeoShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L106-L117 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L115-L126 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 e4a9236780..2743f1a4d0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // GeoShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L41-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L41-L54 type GeoShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -237,12 +237,6 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -261,6 +255,18 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -607,12 +613,6 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -631,6 +631,18 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 99ae982142..67d41ef6ad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L121-L131 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/geo.ts#L128-L143 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 33b3c42e2f..be0257f744 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GeoTileGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L514-L516 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L518-L520 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 5e362b0b9d..9ecc37a550 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L434-L460 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L434-L460 type GeoTileGridAggregation struct { // Bounds A bounding box to filter the geo-points or geo-shapes in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` @@ -66,9 +66,67 @@ func (s *GeoTileGridAggregation) UnmarshalJSON(data []byte) error { switch t { case "bounds": - if err := dec.Decode(&s.Bounds); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Bounds", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + bounds_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Bounds", err) + } + + switch t { + + case "bottom", "left", "right", "top": + o := NewCoordsGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_right", "top_left": + o := NewTopLeftBottomRightGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "bottom_left", "top_right": + o := NewTopRightBottomLeftGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + case "wkt": + o := NewWktGeoBounds() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + s.Bounds = o + break bounds_field + + } + } + if s.Bounds == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Bounds); err != nil { + return fmt.Errorf("%s | %w", "Bounds", err) + } + } case "field": if err := dec.Decode(&s.Field); err != nil { 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 4df5d53915..09ad00992d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // GeoTileGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L518-L520 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L522-L524 type GeoTileGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 75d4968881..74d60e7cee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // GetMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 caa944efde..c19e460212 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GetResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get/types.ts#L25-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/get/types.ts#L25-L35 type GetResult 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/getscriptcontext.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getscriptcontext.go index 67f3cb9451..22ee34855c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GetScriptContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_context/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d8460a7113..2cbbb555ef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GetStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L130-L141 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7129aa07b1..1d83763d23 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GetUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_user_profile/types.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a030974379..5d0f1eb270 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // GlobalAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L492-L493 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L496-L497 type GlobalAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 868bf5bcf8..5bc3d23fce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // GlobalAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L489-L489 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L489-L489 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 10a3d7866a..8eb2f9eb37 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // GlobalPrivilege type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L214-L216 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L340-L342 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 f136357e67..2048cf2340 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GoogleNormalizedDistanceHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L748-L753 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L748-L753 type GoogleNormalizedDistanceHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. 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 a2e83ff710..805e121e4f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // GrantApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/grant_api_key/types.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..aca3774a52 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/greaterthanvalidation.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GreaterThanValidation type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L63-L66 +type GreaterThanValidation struct { + Constraint Float64 `json:"constraint"` + Type string `json:"type,omitempty"` +} + +func (s *GreaterThanValidation) 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 "constraint": + 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", "Constraint", err) + } + f := Float64(value) + s.Constraint = f + case float64: + f := Float64(v) + s.Constraint = f + } + + 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 GreaterThanValidation) MarshalJSON() ([]byte, error) { + type innerGreaterThanValidation GreaterThanValidation + tmp := innerGreaterThanValidation{ + Constraint: s.Constraint, + Type: s.Type, + } + + tmp.Type = "greater_than" + + return json.Marshal(tmp) +} + +// NewGreaterThanValidation returns a GreaterThanValidation. +func NewGreaterThanValidation() *GreaterThanValidation { + r := &GreaterThanValidation{} + + 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 32ca301fa5..b63b6ee40a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GrokProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L672-L697 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L672-L697 type GrokProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 6b2474cfa1..6b20a285fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Groupings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Groupings.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7f86c52435..c5335e5c67 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // GsubProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L699-L723 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L699-L723 type GsubProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 37d6531396..acaec4ebee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // HalfFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L141-L144 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L147-L150 type HalfFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -51,7 +51,7 @@ type HalfFloatNumberProperty struct { NullValue *float32 `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,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. @@ -261,12 +261,6 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -647,12 +653,6 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -671,6 +671,18 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -843,40 +855,9 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 2a7b88553d..d1f1460dd3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // HasChildQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L41-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L41-L76 type HasChildQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 108bc92e27..25faffa560 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HasParentQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L78-L104 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L78-L104 type HasParentQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 dab1295927..c01157ada5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HasPrivilegesUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges_user_profile/types.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 666a45d3d3..70e35b57dd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HdrMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L216-L221 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L216-L221 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 c44f2f5ecb..f0a9513919 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // HdrPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L169-L170 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L169-L170 type HdrPercentileRanksAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentilesaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentilesaggregate.go index 43c9d65bf5..d88c350db9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // HdrPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L166-L167 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L166-L167 type HdrPercentilesAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthrecord.go index e2827c9808..b9d1eb6940 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HealthRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/health/types.ts#L23-L94 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/health/types.ts#L23-L94 type HealthRecord struct { // ActiveShardsPercent active number of shards in percent ActiveShardsPercent *string `json:"active_shards_percent,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthresponsebody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthresponsebody.go index c925a0cb78..313f3494be 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // HealthResponseBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/health/ClusterHealthResponse.ts#L39-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/health/ClusterHealthResponse.ts#L39-L72 type HealthResponseBody struct { // ActivePrimaryShards The number of active primary shards. ActivePrimaryShards int `json:"active_primary_shards"` 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 9aada13d0e..6623b484ba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HealthStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L153-L155 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L153-L155 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 b7d4781206..fab5531592 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HelpRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/help/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d36f315a6f..980c55de27 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -38,7 +38,7 @@ import ( // Highlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L153-L156 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L153-L156 type Highlight struct { // BoundaryChars A string that contains each boundary character. BoundaryChars *string `json:"boundary_chars,omitempty"` 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 0e045997a1..ecac6a740d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -37,7 +37,7 @@ import ( // HighlightField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L193-L197 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/highlighting.ts#L193-L197 type HighlightField struct { Analyzer Analyzer `json:"analyzer,omitempty"` // BoundaryChars A string that contains each boundary character. 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 2db0028a55..1a4906142e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Hint type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/suggest_user_profiles/types.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5cf8bfc5e5..9c6ec53463 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // HistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L340-L341 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L342-L343 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 52d133d84b..0368009daa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // HistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L502-L548 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L502-L548 type HistogramAggregation struct { // ExtendedBounds Enables extending the bounds of the histogram beyond the data itself. ExtendedBounds *ExtendedBoundsdouble `json:"extended_bounds,omitempty"` @@ -63,7 +63,7 @@ type HistogramAggregation struct { // Order The sort order of the returned buckets. // By default, the returned buckets are sorted by their key ascending. Order AggregateOrder `json:"order,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *HistogramAggregation) UnmarshalJSON(data []byte) error { @@ -208,40 +208,9 @@ func (s *HistogramAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 95cae4cb88..5851ed482a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // HistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L343-L346 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L345-L348 type HistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 1c899e9136..dd0be17512 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Groupings.ts#L84-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 be9fd970f8..35549bd873 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // HistogramProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L60-L63 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L60-L63 type HistogramProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -183,12 +183,6 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -207,6 +201,18 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -534,12 +540,6 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -558,6 +558,18 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hit.go index 44e7eba16c..c851874167 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Hit type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L40-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L40-L65 type Hit struct { Explanation_ *Explanation `json:"_explanation,omitempty"` Fields map[string]json.RawMessage `json:"fields,omitempty"` @@ -41,12 +41,13 @@ type Hit struct { Ignored_ []string `json:"_ignored,omitempty"` Index_ string `json:"_index"` InnerHits map[string]InnerHitsResult `json:"inner_hits,omitempty"` - MatchedQueries []string `json:"matched_queries,omitempty"` + MatchedQueries any `json:"matched_queries,omitempty"` Nested_ *NestedIdentity `json:"_nested,omitempty"` Node_ *string `json:"_node,omitempty"` PrimaryTerm_ *int64 `json:"_primary_term,omitempty"` + Rank_ *int `json:"_rank,omitempty"` Routing_ *string `json:"_routing,omitempty"` - Score_ Float64 `json:"_score,omitempty"` + Score_ *Float64 `json:"_score,omitempty"` SeqNo_ *int64 `json:"_seq_no,omitempty"` Shard_ *string `json:"_shard,omitempty"` Sort []FieldValue `json:"sort,omitempty"` @@ -122,8 +123,24 @@ func (s *Hit) UnmarshalJSON(data []byte) error { } case "matched_queries": - if err := dec.Decode(&s.MatchedQueries); err != nil { - return fmt.Errorf("%s | %w", "MatchedQueries", err) + + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + source := bytes.NewReader(rawMsg) + localDec := json.NewDecoder(source) + switch rawMsg[0] { + case '{': + o := make(map[string][]Float64, 0) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "MatchedQueries", err) + } + s.MatchedQueries = o + case '[': + o := []string{} + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "MatchedQueries", err) + } + s.MatchedQueries = o } case "_nested": @@ -158,6 +175,22 @@ func (s *Hit) UnmarshalJSON(data []byte) error { s.PrimaryTerm_ = &f } + case "_rank": + + 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", "Rank_", err) + } + s.Rank_ = &value + case float64: + f := int(v) + s.Rank_ = &f + } + case "_routing": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { 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 84a14e9523..6a6cb92b00 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,17 +26,21 @@ import ( "errors" "fmt" "io" + "strconv" ) // HitsEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/_types/EqlHits.ts#L41-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. Id_ string `json:"_id"` // Index_ Name of the index containing the event. Index_ string `json:"_index"` + // Missing Set to `true` for events in a timespan-constrained sequence that do not meet + // a given condition. + Missing *bool `json:"missing,omitempty"` // Source_ Original JSON body passed for the event at index time. Source_ json.RawMessage `json:"_source,omitempty"` } @@ -74,6 +78,20 @@ func (s *HitsEvent) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Index_", err) } + case "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", "Missing", err) + } + s.Missing = &value + case bool: + s.Missing = &v + } + case "_source": if err := dec.Decode(&s.Source_); err != nil { return fmt.Errorf("%s | %w", "Source_", err) 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 547cbb79c6..92d3359797 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,10 +30,10 @@ import ( // HitsMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L66-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L67-L73 type HitsMetadata struct { - Hits []Hit `json:"hits"` - MaxScore Float64 `json:"max_score,omitempty"` + Hits []Hit `json:"hits"` + MaxScore *Float64 `json:"max_score,omitempty"` // Total Total hit count information, present only if `track_total_hits` wasn't // `false` in the search request. Total *TotalHits `json:"total,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 1a73488e44..03cc8cf9dc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,13 +26,13 @@ import ( // HitsSequence type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/_types/EqlHits.ts#L51-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` // JoinKeys Shared field values used to constrain matches in the sequence. These are // defined using the by keyword in the EQL query syntax. - JoinKeys []json.RawMessage `json:"join_keys"` + JoinKeys []json.RawMessage `json:"join_keys,omitempty"` } // NewHitsSequence returns a HitsSequence. 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 b194239d62..a8d1951c91 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HoltLinearModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L271-L274 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L271-L274 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 dd93cc45b8..988bce211d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // HoltMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L257-L260 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L257-L260 type HoltMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 6943fc98c5..e56e522f2f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // HoltWintersModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L275-L282 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L275-L282 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 4bb6b0d167..ff659ba4ad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // HoltWintersMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L262-L265 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L262-L265 type HoltWintersMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 e022b0a26d..bf56180f0d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Hop type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Hop.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/graph/_types/Hop.ts#L23-L36 type Hop struct { // Connections Specifies one or more fields from which you want to extract terms that are // associated with the specified vertices. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go index a494c0b505..f493f13ead 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // HotThread type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/hot_threads/types.ts#L23-L28 +// 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"` 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 def3e48a5e..116642085f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // HourAndMinute type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L105-L108 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4c14a379c4..47dfc13683 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // HourlySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L47-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d21b9bf616..446f83b7b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // HtmlStripCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L43-L46 type HtmlStripCharFilter struct { EscapedTags []string `json:"escaped_tags,omitempty"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/http.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/http.go index 87ef8591f2..e469704c86 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Http type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L633-L647 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L633-L647 type Http struct { // Clients Information on current and recently-closed HTTP client connections. // Clients that have been closed longer than the 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 e671a832af..e96cdc6ba8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HttpEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4f69cc03c7..c95cc4ffea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // HttpHeaders type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L158-L158 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L158-L158 type HttpHeaders map[string][]string diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinput.go index ff8665cc73..0c37b19044 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // HttpInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 01caf87e16..610f7a423f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // HttpInputAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 15815d6749..b55bfecea7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // HttpInputBasicAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L54-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fca5ab7c7b..7cf616ac6c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // HttpInputProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6d6d16b98a..f81b5f9565 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // HttpInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L72-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6ca7b038cf..eda0b388e0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // HttpInputRequestResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L300-L300 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5772b9f8b4..a98e00cd54 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HttpInputResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/hunspelltokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hunspelltokenfilter.go index 8a9c03299e..1aacce240a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HunspellTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L202-L208 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L202-L208 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 d8a66f69a2..5433967781 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Hyperparameter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L217-L231 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L217-L231 type Hyperparameter struct { // AbsoluteImportance A positive number showing how much the parameter influences the variation of // the loss function. For hyperparameters with values that are not specified by 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 708b326017..f706140798 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Hyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L419-L525 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L419-L525 type Hyperparameters struct { // Alpha Advanced configuration option. // Machine learning uses loss guided tree growing, which means that the decision 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 ac62221b93..67b63d3bfd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // HyphenationDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L58-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L58-L60 type HyphenationDecompounderTokenFilter struct { HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` MaxSubwordSize *int `json:"max_subword_size,omitempty"` 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 914d6eeb92..353afbafe8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,7 +29,7 @@ import ( // IcuAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L67-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dd441810f3..48179e3a7a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -38,7 +38,7 @@ import ( // IcuCollationProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L94-L122 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L94-L118 type IcuCollationProperty struct { Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"` CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"` @@ -60,13 +60,11 @@ type IcuCollationProperty struct { Norms *bool `json:"norms,omitempty"` // NullValue Accepts a string value which is substituted for any explicit null values. // Defaults to null, which means the field is treated as missing. - NullValue *string `json:"null_value,omitempty"` - Numeric *bool `json:"numeric,omitempty"` - Properties map[string]Property `json:"properties,omitempty"` - Rules *string `json:"rules,omitempty"` - Similarity *string `json:"similarity,omitempty"` - // Store Whether the field value should be stored and retrievable separately from the - // `_source` field. + NullValue *string `json:"null_value,omitempty"` + Numeric *bool `json:"numeric,omitempty"` + Properties map[string]Property `json:"properties,omitempty"` + Rules *string `json:"rules,omitempty"` + Similarity *string `json:"similarity,omitempty"` Store *bool `json:"store,omitempty"` Strength *icucollationstrength.IcuCollationStrength `json:"strength,omitempty"` Type string `json:"type,omitempty"` @@ -283,12 +281,6 @@ func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -307,6 +299,18 @@ func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -705,12 +709,6 @@ func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -729,6 +727,18 @@ func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 85eed96bd7..e8349a723b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -36,7 +36,7 @@ import ( // IcuCollationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L51-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 470c3ae18f..4c9068b6ec 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IcuFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fcce75cd28..a2ffa10f89 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IcuNormalizationCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cb20aaf29f..62fc9a7a2e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // IcuNormalizationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a80dd65996..74c0c21881 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IcuTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8704d6ed88..41691878a7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IcuTransformTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 465c24650a..05b1e69580 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Ids type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L62-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 808f0df5bf..d68e1a479a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IdsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L80-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L81-L86 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 6b0be110c8..ea37064ebf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Ilm type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L162-L165 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L162-L165 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 new file mode 100644 index 0000000000..04376fb6ed --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmactions.go @@ -0,0 +1,60 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +// IlmActions type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L42-L96 +type IlmActions struct { + // Allocate Phases allowed: warm, cold. + Allocate *AllocateAction `json:"allocate,omitempty"` + // Delete Phases allowed: delete. + Delete *DeleteAction `json:"delete,omitempty"` + // Downsample Phases allowed: hot, warm, cold. + Downsample *DownsampleAction `json:"downsample,omitempty"` + // Forcemerge Phases allowed: hot, warm. + Forcemerge *ForceMergeAction `json:"forcemerge,omitempty"` + // Freeze The freeze action is a noop in 8.x + Freeze *EmptyObject `json:"freeze,omitempty"` + // Migrate Phases allowed: warm, cold. + Migrate *MigrateAction `json:"migrate,omitempty"` + // Readonly Phases allowed: hot, warm, cold. + Readonly *EmptyObject `json:"readonly,omitempty"` + // Rollover Phases allowed: hot. + Rollover *RolloverAction `json:"rollover,omitempty"` + // SearchableSnapshot Phases allowed: hot, cold, frozen. + SearchableSnapshot *SearchableSnapshotAction `json:"searchable_snapshot,omitempty"` + // SetPriority Phases allowed: hot, warm, cold. + SetPriority *SetPriorityAction `json:"set_priority,omitempty"` + // Shrink Phases allowed: hot, warm. + Shrink *ShrinkAction `json:"shrink,omitempty"` + // Unfollow Phases allowed: hot, warm, cold, frozen. + Unfollow *EmptyObject `json:"unfollow,omitempty"` + // WaitForSnapshot Phases allowed: delete. + WaitForSnapshot *WaitForSnapshotAction `json:"wait_for_snapshot,omitempty"` +} + +// NewIlmActions returns a IlmActions. +func NewIlmActions() *IlmActions { + r := &IlmActions{} + + return r +} 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 6b1bf0c9df..63f34703c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L145-L149 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L146-L150 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 b35e2cfae7..7a06e7f8fb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,10 +33,11 @@ import ( // IlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L150-L153 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L151-L155 type IlmIndicatorDetails struct { - IlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"` - Policies int64 `json:"policies"` + IlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"` + Policies int64 `json:"policies"` + StagnatingIndices int `json:"stagnating_indices"` } func (s *IlmIndicatorDetails) UnmarshalJSON(data []byte) error { @@ -74,6 +75,22 @@ func (s *IlmIndicatorDetails) UnmarshalJSON(data []byte) error { s.Policies = f } + case "stagnating_indices": + + 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", "StagnatingIndices", err) + } + s.StagnatingIndices = value + case float64: + f := int(v) + s.StagnatingIndices = f + } + } } return nil 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 aa23650629..6639221254 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IlmPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Policy.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 754dff3db4..45a20a0328 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IlmPolicyStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L157-L160 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L157-L160 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 805c83cf83..a149703f71 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // Impact type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L65-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L65-L70 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 new file mode 100644 index 0000000000..5598aad605 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/includedinvalidation.go @@ -0,0 +1,53 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "encoding/json" +) + +// IncludedInValidation type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L73-L76 +type IncludedInValidation struct { + Constraint []ScalarValue `json:"constraint"` + Type string `json:"type,omitempty"` +} + +// MarshalJSON override marshalling to include literal value +func (s IncludedInValidation) MarshalJSON() ([]byte, error) { + type innerIncludedInValidation IncludedInValidation + tmp := innerIncludedInValidation{ + Constraint: s.Constraint, + Type: s.Type, + } + + tmp.Type = "included_in" + + return json.Marshal(tmp) +} + +// NewIncludedInValidation returns a IncludedInValidation. +func NewIncludedInValidation() *IncludedInValidation { + r := &IncludedInValidation{} + + return r +} 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 bbbd42c1a8..ff16a2922a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L256-L265 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f974ed202a..17b82a62a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexAliases type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_alias/IndicesGetAliasResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 df60c3739f..6eb5a8a7f2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IndexAndDataStreamAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/modify_data_stream/types.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 321465821f..1329a96503 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_index_caps/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 06827eab94..ba3651d7a0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3cb23521b6..7e0c19646e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 11ada57c37..dc94a0d69f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndexHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/health/types.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/health/types.ts#L24-L34 type IndexHealthStats struct { ActivePrimaryShards int `json:"active_primary_shards"` ActiveShards int `json:"active_shards"` 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 4d22a17625..75cea7f932 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexingPressureMemorySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L580-L589 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5f1329971a..224d8a4bd8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexingSlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L552-L557 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4745b3a049..a49592243e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexingSlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L559-L566 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ad532d608e..3b59f35869 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L143-L159 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 799c3aca4e..51d06747f7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexMappingRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6079766d89..3f7f168704 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndexOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L132-L132 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9b09d002be..886774f7f5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndexPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L33-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a451d4b73d..355ed3abd7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L267-L269 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 60c0f6ca0d..2ccb1c4eeb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndexResultSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L271-L277 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 45d0bcd3fa..9c863cb598 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 59fc7c1917..6ff118a899 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // IndexRoutingAllocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L27-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d6f60e9f33..64e2baf210 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationDisk type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L62-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0acda245c9..2b93386d50 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 42cdc09115..75759c3d07 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IndexRoutingAllocationInitialRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L57-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 aebd3bbd57..4d48c41f73 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // IndexRoutingRebalance type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b8373eb228..b5c3e12410 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b190324fe2..9d7df5dee6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // IndexSegmentSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSegmentSort.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2dc6883dcc..e09b98504c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IndexSettingBlocks type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L252-L258 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 12fbcbbc6f..dd025eb22c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndexSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L69-L167 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 09555fce31..2418c73ac8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,7 +29,7 @@ import ( // IndexSettingsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L317-L323 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` 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 7fdef22084..c4153e482e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexSettingsLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L274-L307 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 86e581ad68..f58e6dd285 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsLifecycleStep type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L309-L315 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8400c6a22c..79cd3f8a95 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsTimeSeries type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L325-L328 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ea365f41d9..e221039480 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IndexState type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexState.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexState.ts#L27-L40 type IndexState struct { Aliases map[string]Alias `json:"aliases,omitempty"` DataStream *string `json:"data_stream,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstats.go index e685202f0d..780757b5f6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L52-L93 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 375c04b76f..6550e9b556 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexTemplate.ts#L31-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexTemplate.ts#L31-L70 type IndexTemplate struct { AllowAutoCreate *bool `json:"allow_auto_create,omitempty"` // ComposedOf An ordered list of component template names. 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 8a05e9bd11..a5393ee9cb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexTemplateDataStreamConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexTemplate.ts#L72-L83 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexTemplate.ts#L72-L83 type IndexTemplateDataStreamConfiguration struct { // AllowCustomRouting If true, the data stream supports custom routing. AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` 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 567d5f2887..04441628c2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IndexTemplateItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 240abafad8..eeed729744 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexTemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L121-L143 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2ce042c697..942a660549 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndexTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexTemplate.ts#L85-L107 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexTemplate.ts#L85-L107 type IndexTemplateSummary struct { // Aliases Aliases to add. // If the index template includes a `data_stream` object, these are data stream diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexversioning.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexversioning.go index 1af6396aa6..4d2f6172d5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndexVersioning type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L269-L272 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c636b91a1f..a2992ad333 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,10 +31,10 @@ import ( // IndicatorNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L90-L93 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L90-L93 type IndicatorNode struct { - Name string `json:"name,omitempty"` - NodeId string `json:"node_id,omitempty"` + Name *string `json:"name,omitempty"` + NodeId *string `json:"node_id,omitempty"` } func (s *IndicatorNode) UnmarshalJSON(data []byte) error { @@ -62,7 +62,7 @@ func (s *IndicatorNode) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Name = o + s.Name = &o case "node_id": var tmp json.RawMessage @@ -74,7 +74,7 @@ func (s *IndicatorNode) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.NodeId = o + s.NodeId = &o } } 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 010b554027..04e5c70434 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicators.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicators.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Indicators type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L32-L40 type Indicators struct { Disk *DiskIndicator `json:"disk,omitempty"` Ilm *IlmIndicator `json:"ilm,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indices.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indices.go index 7dc80439e7..15a2e0933a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Indices type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7e91848bb1..8338470c72 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndicesAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 59a8843088..2d4677f802 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndicesBlockStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5c3bd3824b..2529f105cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndicesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L539-L541 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2a210cf16e..be15d0848a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndicesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L543-L550 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d27ee1412f..611a828616 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndicesModifyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/modify_data_stream/types.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4eb192b485..9118ce41d6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndicesOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L332-L359 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L335-L362 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 1dca731d68..60524f628c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L104-L127 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L201-L225 type IndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited @@ -112,9 +112,49 @@ func (s *IndicesPrivileges) UnmarshalJSON(data []byte) error { } case "query": - if err := dec.Decode(&s.Query); err != nil { + 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) + } + } } } 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 cc0eac8084..6c93229d5b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ package types // Query // RoleTemplateQuery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L153-L161 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L251-L259 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 ffa5cce7f4..ca183134ee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndicesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/indices/types.ts#L20-L801 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/indices/types.ts#L20-L801 type IndicesRecord struct { // BulkAvgSizeInBytes average size in bytes of shard bulk BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"` @@ -50,9 +50,9 @@ type IndicesRecord struct { // CreationDateString index creation date (as string) CreationDateString *string `json:"creation.date.string,omitempty"` // DocsCount available docs - DocsCount string `json:"docs.count,omitempty"` + DocsCount *string `json:"docs.count,omitempty"` // DocsDeleted deleted docs - DocsDeleted string `json:"docs.deleted,omitempty"` + DocsDeleted *string `json:"docs.deleted,omitempty"` // FielddataEvictions fielddata evictions FielddataEvictions *string `json:"fielddata.evictions,omitempty"` // FielddataMemorySize used fielddata cache @@ -229,7 +229,7 @@ type IndicesRecord struct { // PriSegmentsVersionMapMemory memory used by version map PriSegmentsVersionMapMemory *string `json:"pri.segments.version_map_memory,omitempty"` // PriStoreSize store size of primaries - PriStoreSize string `json:"pri.store.size,omitempty"` + PriStoreSize *string `json:"pri.store.size,omitempty"` // PriSuggestCurrent number of current suggest ops PriSuggestCurrent *string `json:"pri.suggest.current,omitempty"` // PriSuggestTime time spend in suggest @@ -302,7 +302,7 @@ type IndicesRecord struct { // Status open/close status Status *string `json:"status,omitempty"` // StoreSize store size of primaries & replicas - StoreSize string `json:"store.size,omitempty"` + StoreSize *string `json:"store.size,omitempty"` // SuggestCurrent number of current suggest ops SuggestCurrent *string `json:"suggest.current,omitempty"` // SuggestTime time spend in suggest @@ -440,7 +440,7 @@ func (s *IndicesRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.DocsCount = o + s.DocsCount = &o case "docs.deleted", "dd", "docsDeleted": var tmp json.RawMessage @@ -452,7 +452,7 @@ func (s *IndicesRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.DocsDeleted = o + s.DocsDeleted = &o case "fielddata.evictions", "fe", "fielddataEvictions": var tmp json.RawMessage @@ -1508,7 +1508,7 @@ func (s *IndicesRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.PriStoreSize = o + s.PriStoreSize = &o case "pri.suggest.current": var tmp json.RawMessage @@ -1940,7 +1940,7 @@ func (s *IndicesRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.StoreSize = o + s.StoreSize = &o case "suggest.current", "suc", "suggestCurrent": var tmp json.RawMessage 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 9474e49c92..2f5832b531 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndicesShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L49-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 087fef505d..4e7ab2724d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // IndicesShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L192-L223 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9eae3d1393..8a09c667ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IndicesShardStores type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L26-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L26-L28 type IndicesShardStores struct { Shards map[string]ShardStoreWrapper `json:"shards"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesstats.go index ffd5f5142f..25f52d981e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IndicesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L95-L110 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9b82f931e7..b3227dbb82 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndicesValidationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9aecb8270d..ced816224f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IndicesVersions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L263-L268 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/inferenceaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregate.go index d48e8d7c33..d2ec9000f5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InferenceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L659-L670 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L663-L677 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 776580009a..7e516e1ed3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // InferenceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L205-L214 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L205-L214 type InferenceAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 e0952fb3d2..18b6ebdbb0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L684-L687 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L691-L694 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 a6053db544..9c4e1d118a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // InferenceConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L746-L758 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L746-L758 type InferenceConfig struct { // Classification Classification configuration for inference. Classification *InferenceConfigClassification `json:"classification,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigclassification.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigclassification.go index acbfbb3fd1..25417947b3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L773-L799 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L773-L799 type InferenceConfigClassification struct { // NumTopClasses Specifies the number of top class predictions to return. NumTopClasses *int `json:"num_top_classes,omitempty"` 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 37d3e9d303..534fe6da09 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // InferenceConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L216-L222 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L216-L222 type InferenceConfigContainer struct { // Classification Classification configuration for inference. Classification *ClassificationInferenceOptions `json:"classification,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcreatecontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcreatecontainer.go index 2001084bc6..2238f46d53 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // InferenceConfigCreateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L23-L80 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7317e8cf60..e0ffe70e3e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L760-L771 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L760-L771 type InferenceConfigRegression struct { // NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document. NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"` 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 6e5ff1f204..26086662f0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // InferenceConfigUpdateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L296-L318 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/modelconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpoint.go similarity index 78% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfig.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpoint.go index d363b6005d..c3b964b11a 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfig.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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,19 +29,19 @@ import ( "strconv" ) -// ModelConfig type. +// InferenceEndpoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Services.ts#L23-L39 -type ModelConfig struct { +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 model + // TaskSettings Task settings specific to the service and task type TaskSettings json.RawMessage `json:"task_settings"` } -func (s *ModelConfig) UnmarshalJSON(data []byte) error { +func (s *InferenceEndpoint) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -83,9 +83,9 @@ func (s *ModelConfig) UnmarshalJSON(data []byte) error { return nil } -// NewModelConfig returns a ModelConfig. -func NewModelConfig() *ModelConfig { - r := &ModelConfig{} +// NewInferenceEndpoint returns a InferenceEndpoint. +func NewInferenceEndpoint() *InferenceEndpoint { + r := &InferenceEndpoint{} return r } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfigcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpointinfo.go similarity index 75% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfigcontainer.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceendpointinfo.go index 8ead34121e..740c20bc00 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfigcontainer.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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,23 +31,23 @@ import ( "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" ) -// ModelConfigContainer type. +// InferenceEndpointInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Services.ts#L41-L53 -type ModelConfigContainer struct { - // ModelId The model Id - ModelId string `json:"model_id"` +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/inference/_types/Services.ts#L41-L53 +type InferenceEndpointInfo struct { + // InferenceId The inference Id + InferenceId string `json:"inference_id"` // 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 model + // TaskSettings Task settings specific to the service and task type TaskSettings json.RawMessage `json:"task_settings"` - // TaskType The model's task type + // TaskType The task type TaskType tasktype.TaskType `json:"task_type"` } -func (s *ModelConfigContainer) UnmarshalJSON(data []byte) error { +func (s *InferenceEndpointInfo) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -62,17 +62,17 @@ func (s *ModelConfigContainer) UnmarshalJSON(data []byte) error { switch t { - case "model_id": + case "inference_id": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "ModelId", err) + return fmt.Errorf("%s | %w", "InferenceId", err) } o := string(tmp[:]) o, err = strconv.Unquote(o) if err != nil { o = string(tmp[:]) } - s.ModelId = o + s.InferenceId = o case "service": var tmp json.RawMessage @@ -106,9 +106,9 @@ func (s *ModelConfigContainer) UnmarshalJSON(data []byte) error { return nil } -// NewModelConfigContainer returns a ModelConfigContainer. -func NewModelConfigContainer() *ModelConfigContainer { - r := &ModelConfigContainer{} +// NewInferenceEndpointInfo returns a InferenceEndpointInfo. +func NewInferenceEndpointInfo() *InferenceEndpointInfo { + r := &InferenceEndpointInfo{} return r } 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 a75965538f..1ce94a2275 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L678-L682 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L685-L689 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 1765aa11a2..7c7051d303 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InferenceProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L725-L744 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L725-L744 type InferenceProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 4091ee11ed..9dd5d9514e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InferenceResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L459-L506 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L459-L506 type InferenceResponseResult struct { // Entities If the model is trained for named entity recognition (NER) tasks, the // response contains the recognized entities. @@ -113,8 +113,19 @@ func (s *InferenceResponseResult) UnmarshalJSON(data []byte) error { } case "predicted_value": - if err := dec.Decode(&s.PredictedValue); err != nil { - return fmt.Errorf("%s | %w", "PredictedValue", err) + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(PredictedValue) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "PredictedValue", err) + } + + s.PredictedValue = append(s.PredictedValue, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.PredictedValue); err != nil { + return fmt.Errorf("%s | %w", "PredictedValue", err) + } } case "predicted_value_sequence": 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 32b8cba485..9c25f110cb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // InferenceResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L77-L87 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 62b0e288ed..32e4582e4d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InferenceTopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L672-L676 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L679-L683 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 616e6fd04b..6f5e036dc3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Influence type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L140-L143 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e90c947e51..1557120cb7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Influencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Influencer.ts#L31-L83 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Influencer.ts#L31-L83 type Influencer struct { // BucketSpan The length of the bucket in seconds. This value matches the bucket span that // is specified in the job. 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 812bfb81f0..5022fca69f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InfoFeatureState type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 96f02ba060..5953256b21 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IngestPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Pipeline.ts#L23-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Pipeline.ts#L23-L45 type IngestPipeline struct { // Description Description of the ingest pipeline. Description *string `json:"description,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipelineparams.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipelineparams.go new file mode 100644 index 0000000000..74bf7c3c9a --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipelineparams.go @@ -0,0 +1,121 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// IngestPipelineParams type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L148-L153 +type IngestPipelineParams struct { + ExtractBinaryContent bool `json:"extract_binary_content"` + Name string `json:"name"` + ReduceWhitespace bool `json:"reduce_whitespace"` + RunMlInference bool `json:"run_ml_inference"` +} + +func (s *IngestPipelineParams) 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 "extract_binary_content": + 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", "ExtractBinaryContent", err) + } + s.ExtractBinaryContent = value + case bool: + s.ExtractBinaryContent = v + } + + 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 "reduce_whitespace": + 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", "ReduceWhitespace", err) + } + s.ReduceWhitespace = value + case bool: + s.ReduceWhitespace = v + } + + case "run_ml_inference": + 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", "RunMlInference", err) + } + s.RunMlInference = value + case bool: + s.RunMlInference = v + } + + } + } + return nil +} + +// NewIngestPipelineParams returns a IngestPipelineParams. +func NewIngestPipelineParams() *IngestPipelineParams { + r := &IngestPipelineParams{} + + 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 6896896139..d30207542e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IngestTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L356-L377 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L356-L377 type IngestTotal struct { // Count Total number of documents ingested during the lifetime of this node. Count *int64 `json:"count,omitempty"` 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 52874d39ab..81f5f89fd5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InlineGet type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L321-L330 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L320-L333 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 04ce1a993f..b891d24bd7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InlineGetDictUserDefined type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L321-L330 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L320-L333 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/inlinescript.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinescript.go deleted file mode 100644 index 219a54c95e..0000000000 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinescript.go +++ /dev/null @@ -1,118 +0,0 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -// Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -package types - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" - "strconv" - - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" -) - -// InlineScript type. -// -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L67-L79 -type InlineScript struct { - // Lang Specifies the language the script is written in. - Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"` - Options map[string]string `json:"options,omitempty"` - // Params Specifies any named parameters that are passed into the script as variables. - // Use parameters instead of hard-coded values to decrease compile time. - Params map[string]json.RawMessage `json:"params,omitempty"` - // Source The script source. - Source string `json:"source"` -} - -func (s *InlineScript) UnmarshalJSON(data []byte) error { - - if !bytes.HasPrefix(data, []byte(`{`)) { - if !bytes.HasPrefix(data, []byte(`"`)) { - data = append([]byte{'"'}, data...) - data = append(data, []byte{'"'}...) - } - err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Source) - return err - } - - 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 "lang": - if err := dec.Decode(&s.Lang); err != nil { - return fmt.Errorf("%s | %w", "Lang", err) - } - - case "options": - if s.Options == nil { - s.Options = make(map[string]string, 0) - } - if err := dec.Decode(&s.Options); err != nil { - return fmt.Errorf("%s | %w", "Options", err) - } - - case "params": - if s.Params == nil { - s.Params = make(map[string]json.RawMessage, 0) - } - if err := dec.Decode(&s.Params); err != nil { - return fmt.Errorf("%s | %w", "Params", err) - } - - case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "Source", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Source = o - - } - } - return nil -} - -// NewInlineScript returns a InlineScript. -func NewInlineScript() *InlineScript { - r := &InlineScript{ - Options: make(map[string]string, 0), - Params: make(map[string]json.RawMessage, 0), - } - - return r -} 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 e02fb555be..0f4a787778 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InnerHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L106-L140 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L107-L141 type InnerHits struct { Collapse *FieldCollapse `json:"collapse,omitempty"` DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` @@ -207,9 +207,40 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } case "stored_fields": rawMsg := json.RawMessage{} 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 cbeb42f0f9..679e7e1d74 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // InnerHitsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L84-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L85-L87 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 4629ad1cb2..98ae9b1a73 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // InProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L131-L136 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9168c72769..ae851cdc67 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Input type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 617672feba..7436ea4189 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // IntegerNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L151-L154 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L157-L160 type IntegerNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -51,7 +51,7 @@ type IntegerNumberProperty struct { NullValue *int `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,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. @@ -261,12 +261,6 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -647,12 +653,6 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -671,6 +671,18 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -843,40 +855,9 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 98b874bff9..855e5d4b7d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IntegerRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L42-L44 type IntegerRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -249,12 +249,6 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -273,6 +267,18 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -600,12 +606,6 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -624,6 +624,18 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 77e0a2e067..697db778c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Intervals type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L83-L110 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9b7d8acd5c..10809be4d2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IntervalsAllOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L50-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8891c878b0..785945df3d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IntervalsAnyOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L72-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 501b1adb43..b60cc38539 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,21 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" -) - // IntervalsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L112-L152 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. @@ -58,103 +50,7 @@ type IntervalsFilter struct { Overlapping *Intervals `json:"overlapping,omitempty"` // Script Script used to return matching documents. // This script must return a boolean value: `true` or `false`. - Script Script `json:"script,omitempty"` -} - -func (s *IntervalsFilter) 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 "after": - if err := dec.Decode(&s.After); err != nil { - return fmt.Errorf("%s | %w", "After", err) - } - - case "before": - if err := dec.Decode(&s.Before); err != nil { - return fmt.Errorf("%s | %w", "Before", err) - } - - case "contained_by": - if err := dec.Decode(&s.ContainedBy); err != nil { - return fmt.Errorf("%s | %w", "ContainedBy", err) - } - - case "containing": - if err := dec.Decode(&s.Containing); err != nil { - return fmt.Errorf("%s | %w", "Containing", err) - } - - case "not_contained_by": - if err := dec.Decode(&s.NotContainedBy); err != nil { - return fmt.Errorf("%s | %w", "NotContainedBy", err) - } - - case "not_containing": - if err := dec.Decode(&s.NotContaining); err != nil { - return fmt.Errorf("%s | %w", "NotContaining", err) - } - - case "not_overlapping": - if err := dec.Decode(&s.NotOverlapping); err != nil { - return fmt.Errorf("%s | %w", "NotOverlapping", err) - } - - case "overlapping": - if err := dec.Decode(&s.Overlapping); err != nil { - return fmt.Errorf("%s | %w", "Overlapping", err) - } - - case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } - - } - } - return nil + Script *Script `json:"script,omitempty"` } // NewIntervalsFilter returns a IntervalsFilter. 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 fe2b2cf904..18fb5c34e3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IntervalsFuzzy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L154-L184 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b10c0aed07..2ab802a289 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IntervalsMatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L186-L216 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c4a3021c85..f09d6b7986 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IntervalsPrefix type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L218-L233 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a4ac2a7c20..a12815a209 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IntervalsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L235-L263 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L235-L263 type IntervalsQuery struct { // AllOf Returns matches that span a combination of other rules. AllOf *IntervalsAllOf `json:"all_of,omitempty"` 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 96cc5c4581..a948396257 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IntervalsWildcard type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L265-L280 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L265-L280 type IntervalsWildcard struct { // Analyzer Analyzer used to analyze the `pattern`. // Defaults to the top-level field's analyzer. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invertedindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invertedindex.go index fdb2c9e81e..cbab704317 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // InvertedIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L65-L73 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3169bc9c00..f6d164f7c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Invocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L138-L141 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3d2381a15d..3de139d59e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Invocations type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L44-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L44-L46 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 e07cf2175e..4daccd9845 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IoStatDevice type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L730-L755 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L730-L755 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 e2ebcf44a2..c5e0ddfb34 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // IoStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L718-L728 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L718-L728 type IoStats struct { // Devices Array of disk metrics for each device that is backing an Elasticsearch data // path. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipfilter.go index 15aea43c84..5cc0addb88 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IpFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L167-L170 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L167-L170 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 0bb19d0553..609aa5f5f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IpPrefixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L629-L630 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L633-L634 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 349e273103..bb410450db 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // IpPrefixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1117-L1146 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1122-L1151 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 ebb5b3d674..6a46f70d29 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // IpPrefixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L632-L637 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L636-L641 type IpPrefixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 c331cac0c3..404b1d8231 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // IpProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L65-L79 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L65-L79 type IpProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -49,7 +49,7 @@ type IpProperty struct { NullValue *string `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,omitempty"` + 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. @@ -242,12 +242,6 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -266,6 +260,18 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -624,12 +630,6 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -648,6 +648,18 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -820,40 +832,9 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 5b6ffb853e..b5d62bdc40 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L556-L558 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L560-L562 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 3c41382c2c..f573065bf4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L550-L559 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L550-L559 type IpRangeAggregation struct { // Field The date field whose values are used to build ranges. Field *string `json:"field,omitempty"` 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 85ea8bb639..5b1de194f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // IpRangeAggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L561-L574 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L561-L574 type IpRangeAggregationRange struct { // From Start of the range. - From string `json:"from,omitempty"` + From *string `json:"from,omitempty"` // Mask IP range defined as a CIDR mask. Mask *string `json:"mask,omitempty"` // To End of the range. - To string `json:"to,omitempty"` + To *string `json:"to,omitempty"` } func (s *IpRangeAggregationRange) UnmarshalJSON(data []byte) error { @@ -66,7 +66,7 @@ func (s *IpRangeAggregationRange) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.From = o + s.From = &o case "mask": var tmp json.RawMessage @@ -90,7 +90,7 @@ func (s *IpRangeAggregationRange) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.To = o + s.To = &o } } 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 1218ec8db1..ac0e4fe246 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // IpRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L560-L564 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L564-L568 type IpRangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 089ef1cce4..5d67c3786a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // IpRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L46-L48 type IpRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -249,12 +249,6 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -273,6 +267,18 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -600,12 +606,6 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -624,6 +624,18 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 7a70155f9d..80e8385a4e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Job type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L61-L180 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 84b11b8900..51f1768396 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // JobBlocked type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L392-L395 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 65bfbc9b7f..c336ebd34e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JobConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L182-L283 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3093f7e94e..0746ee8f6e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JobForecastStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L343-L350 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4ba607ad52..e6bcd7d21b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // JobsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_jobs/types.ts#L24-L347 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b3ca8dee2b..f2c82f5a46 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JobStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L54-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9923de7d87..b57f84c480 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // JobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L284-L330 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 00007a723e..a01cd99b88 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JobTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L332-L341 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b731e689b0..f235f95701 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JobUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L364-L370 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L364-L370 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 bdc1c135bb..8240a2f296 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JoinProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L801-L816 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L801-L816 type JoinProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 8bfdb6f74e..154e9f7d46 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // JoinProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L83-L87 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L89-L93 type JoinProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"` @@ -198,12 +198,6 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -222,6 +216,18 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -535,12 +541,6 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -559,6 +559,18 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jsonprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jsonprocessor.go index 9afeb1be50..65f7feb988 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // JsonProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L818-L847 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L818-L847 type JsonProcessor struct { // AddToRoot Flag that forces the parsed JSON to be added at the top level of the // document. 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 3b2a17ea9b..880dfc00c5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Jvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L811-L845 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L811-L845 type Jvm struct { // BufferPools Contains statistics about JVM buffer pools for the node. BufferPools map[string]NodeBufferPool `json:"buffer_pools,omitempty"` 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 8db60cc375..72bcb5a20a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JvmClasses type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L908-L921 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L908-L921 type JvmClasses struct { // CurrentLoadedCount Number of classes currently loaded by JVM. CurrentLoadedCount *int64 `json:"current_loaded_count,omitempty"` 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 92bfd7aa85..af8771298c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JvmMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L847-L876 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L847-L876 type JvmMemoryStats struct { // HeapCommittedInBytes Amount of memory, in bytes, available for use by the heap. HeapCommittedInBytes *int64 `json:"heap_committed_in_bytes,omitempty"` 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 1b397217ec..ba62e2cbe7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JvmStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/types.ts#L50-L63 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ddabc0362..fdeaa1c8a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // JvmThreads type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L897-L906 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L897-L906 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 ee146458af..ee62cb27c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // KeepTypesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L220-L224 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L220-L224 type KeepTypesTokenFilter struct { Mode *keeptypesmode.KeepTypesMode `json:"mode,omitempty"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keepwordstokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keepwordstokenfilter.go index 548ef8faad..1ff55ada23 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KeepWordsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L226-L231 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L226-L231 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 76cec40b07..e1882f1721 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // KeyedPercentiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L158-L158 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L158-L158 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 2b5ee9b57d..e9456d7ef2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KeyedProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L379-L382 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L379-L382 type KeyedProcessor struct { Stats *Processor `json:"stats,omitempty"` Type *string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyvalueprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyvalueprocessor.go index 10bf70e9b1..7bbf329f48 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KeyValueProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L856-L908 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L856-L908 type KeyValueProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 f047913a78..0bcebd92ee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // KeywordAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b6b967b2ec..db02015160 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KeywordMarkerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L233-L239 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L233-L239 type KeywordMarkerTokenFilter struct { IgnoreCase *bool `json:"ignore_case,omitempty"` Keywords []string `json:"keywords,omitempty"` 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 a76e891492..0dca728a95 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // KeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L89-L107 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L95-L113 type KeywordProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -53,7 +53,7 @@ type KeywordProperty struct { NullValue *string `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` Similarity *string `json:"similarity,omitempty"` SplitQueriesOnWhitespace *bool `json:"split_queries_on_whitespace,omitempty"` Store *bool `json:"store,omitempty"` @@ -261,12 +261,6 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -660,12 +666,6 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -684,6 +684,18 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -856,40 +868,9 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 a8f8085c3b..f50ea25836 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KeywordTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L62-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L62-L65 type KeywordTokenizer struct { BufferSize int `json:"buffer_size"` Type string `json:"type,omitempty"` 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 e6992f01bb..f728d6b3c4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KibanaToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enroll_kibana/Response.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/enroll_kibana/Response.ts#L27-L30 type KibanaToken struct { Name string `json:"name"` Value string `json:"value"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnquery.go index fd7f2e9ee0..2f65c7500b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Knn.ts#L54-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Knn.ts#L54-L67 type KnnQuery 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/knnretriever.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnretriever.go index 41e64799b9..9697e481c2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KnnRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retriever.ts#L58-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retriever.ts#L58-L71 type KnnRetriever 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/knnsearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnsearch.go index 2f65e8712b..5296a37ba6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KnnSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Knn.ts#L30-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bd51db43d4..f8636139d4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // KStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L241-L243 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L241-L243 type KStemTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojianalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojianalyzer.go index 78b505cc8d..a640a9d10f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // KuromojiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 428d0d231c..5fbc5e1b5e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KuromojiIterationMarkCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L31-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9ad097d136..8fb3f7451c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // KuromojiPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e6ad27d062..8f464e0bdf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KuromojiReadingFormTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a4267d8a4a..db38cf013d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // KuromojiStemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f47c97eedd..08a3921c5e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // KuromojiTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L58-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e51812b5fa..4723799272 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // LanguageAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L52-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8edd135863..d60652d7e7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // LanguageContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_languages/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d4dba5c4cd..4e9429b9a6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LaplaceSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L427-L432 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 da191ea709..b263339bef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Latest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L47-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c729e36f9c..9d03864f45 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LatLonGeoLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L120-L129 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/learningtorank.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/learningtorank.go index a0a5398c15..3c19b2cd36 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LearningToRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/rescoring.ts#L88-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2ce52069c8..415ff48b07 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LengthTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L245-L249 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L245-L249 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 new file mode 100644 index 0000000000..a6536ce3af --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lessthanvalidation.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// LessThanValidation type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L58-L61 +type LessThanValidation struct { + Constraint Float64 `json:"constraint"` + Type string `json:"type,omitempty"` +} + +func (s *LessThanValidation) 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 "constraint": + 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", "Constraint", err) + } + f := Float64(value) + s.Constraint = f + case float64: + f := Float64(v) + s.Constraint = f + } + + 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 LessThanValidation) MarshalJSON() ([]byte, error) { + type innerLessThanValidation LessThanValidation + tmp := innerLessThanValidation{ + Constraint: s.Constraint, + Type: s.Type, + } + + tmp.Type = "less_than" + + return json.Marshal(tmp) +} + +// NewLessThanValidation returns a LessThanValidation. +func NewLessThanValidation() *LessThanValidation { + r := &LessThanValidation{} + + return r +} 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 d20f86a0f4..6a94942cff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // LetterTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L67-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L67-L69 type LetterTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/license.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/license.go index 66773d0d4f..274863a368 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,13 +33,13 @@ import ( // License type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/_types/License.ts#L42-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/_types/License.ts#L42-L53 type License struct { ExpiryDateInMillis int64 `json:"expiry_date_in_millis"` IssueDateInMillis int64 `json:"issue_date_in_millis"` IssuedTo string `json:"issued_to"` Issuer string `json:"issuer"` - MaxNodes int64 `json:"max_nodes,omitempty"` + MaxNodes *int64 `json:"max_nodes,omitempty"` MaxResourceUnits *int64 `json:"max_resource_units,omitempty"` Signature string `json:"signature"` StartDateInMillis *int64 `json:"start_date_in_millis,omitempty"` 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 2721cf2a25..f35039ab2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // LicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/get/types.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/license/get/types.ts#L25-L38 type LicenseInformation struct { ExpiryDate DateTime `json:"expiry_date,omitempty"` ExpiryDateInMillis *int64 `json:"expiry_date_in_millis,omitempty"` @@ -42,8 +42,8 @@ type LicenseInformation struct { IssueDateInMillis int64 `json:"issue_date_in_millis"` IssuedTo string `json:"issued_to"` Issuer string `json:"issuer"` - MaxNodes int64 `json:"max_nodes,omitempty"` - MaxResourceUnits int `json:"max_resource_units,omitempty"` + MaxNodes *int64 `json:"max_nodes,omitempty"` + MaxResourceUnits *int `json:"max_resource_units,omitempty"` StartDateInMillis int64 `json:"start_date_in_millis"` Status licensestatus.LicenseStatus `json:"status"` Type licensetype.LicenseType `json:"type"` 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 4368fef740..24a1452c0b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Lifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/get_lifecycle/types.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dcba2757c2..57400eb6c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // LifecycleExplainManaged // LifecycleExplainUnmanaged // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/types.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ca02d7e854..2dcbcd6745 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LifecycleExplainManaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/types.ts#L26-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0c0df51e6c..0d865636e7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainPhaseExecution type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/types.ts#L64-L68 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ae5b3c5b1e..26dbcebc64 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainUnmanaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/types.ts#L54-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a8c5ce60db..75a96102be 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // LikeDocument // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L186-L191 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L195-L200 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 0d249fce68..2b1a338ac6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // LikeDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L162-L184 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L171-L193 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 357a54fc7a..9fa3eadb8b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Limits type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L34-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a15fd7b6fa..9ac5d1c87e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LimitTokenCountTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L251-L255 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L251-L255 type LimitTokenCountTokenFilter struct { ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"` MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` 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 2a051e130b..482604d6b4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LinearInterpolationSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L434-L438 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f5ed67af91..fdb3904bf4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // LinearMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L242-L245 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L242-L245 type LinearMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 new file mode 100644 index 0000000000..c1e514350e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/listtypevalidation.go @@ -0,0 +1,95 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ListTypeValidation type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L68-L71 +type ListTypeValidation struct { + Constraint string `json:"constraint"` + Type string `json:"type,omitempty"` +} + +func (s *ListTypeValidation) 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 "constraint": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Constraint", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Constraint = 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 ListTypeValidation) MarshalJSON() ([]byte, error) { + type innerListTypeValidation ListTypeValidation + tmp := innerListTypeValidation{ + Constraint: s.Constraint, + Type: s.Type, + } + + tmp.Type = "list_type" + + return json.Marshal(tmp) +} + +// NewListTypeValidation returns a ListTypeValidation. +func NewListTypeValidation() *ListTypeValidation { + r := &ListTypeValidation{} + + 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 ab73d8166f..60b27e9378 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LoggingAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L281-L285 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1e70c88c70..fa5509eba8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LoggingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L287-L289 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 de7f1acca3..2dcdaa3554 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LogstashPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/_types/Pipeline.ts#L60-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 759587061b..e62f33b3b0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // LongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L156-L159 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L162-L165 type LongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -51,7 +51,7 @@ type LongNumberProperty struct { NullValue *int64 `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,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. @@ -261,12 +261,6 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -646,12 +652,6 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -670,6 +670,18 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -842,40 +854,9 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 6f29954975..7d64c6b840 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // LongRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/range.ts#L50-L52 type LongRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -249,12 +249,6 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -273,6 +267,18 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -600,12 +606,6 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -624,6 +624,18 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 abdacad2ef..c61722eb0a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // LongRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L431-L436 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L433-L438 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 e0c1165767..7814799a6d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // LongRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L438-L441 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L440-L443 type LongRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 d0ea94218a..4f8baba223 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L399-L404 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L401-L406 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 a25ee91697..31575c7e59 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // LongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L406-L409 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L408-L411 type LongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 9b16e39adc..caf3f447bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // LowercaseNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/normalizers.ts#L26-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6a6f71222d..7d7d14d1bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LowercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L910-L926 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L910-L926 type LowercaseProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 d3389173e7..d378da5591 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // LowercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L257-L260 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L257-L260 type LowercaseTokenFilter struct { Language *string `json:"language,omitempty"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenizer.go index 781907328e..d7be1fb0cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // LowercaseTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L71-L73 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L71-L73 type LowercaseTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/machinelearning.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/machinelearning.go index 470add0880..6f517ab65e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MachineLearning type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L372-L379 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L372-L379 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 ec28209342..a39d711db2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ManageUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L222-L224 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L348-L350 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 e009663923..e9d12d0c2e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // MapboxVectorTiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Binary.ts#L21-L21 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 eff98a829f..b39e7f11a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MappingCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L48-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L48-L52 type MappingCharFilter struct { Mappings []string `json:"mappings,omitempty"` MappingsPath *string `json:"mappings_path,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettings.go index bdf96633f4..822a68ec47 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L409-L422 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 95ca656e3b..e60c3b21be 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDepth type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L434-L441 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 33de8afa3b..28b9192a97 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDimensionFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L471-L477 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3808414b4e..60665b2087 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsFieldNameLength type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L462-L469 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f19bec1353..10598c765a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L443-L451 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a77fa7a105..a5638e8e54 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedObjects type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L453-L460 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ac02a7ad4a..4d6f9e0383 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,8 +31,19 @@ import ( // MappingLimitSettingsTotalFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L424-L432 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 + // to false (the default), the index request of the document that tries to add a + // dynamic field to the mapping will fail + // with the message Limit of total fields [X] has been exceeded. When set to + // true, the index request will not fail. + // Instead, fields that would exceed the limit are not added to the mapping, + // similar to dynamic: false. + // The fields that were not added to the mapping will be added to the _ignored + // field. + IgnoreDynamicBeyondLimit *bool `json:"ignore_dynamic_beyond_limit,omitempty"` // Limit The maximum number of fields in an index. Field and object mappings, as well // as field aliases count towards this limit. // The limit is in place to prevent mappings and searches from becoming too @@ -57,6 +68,20 @@ func (s *MappingLimitSettingsTotalFields) UnmarshalJSON(data []byte) error { switch t { + case "ignore_dynamic_beyond_limit": + 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", "IgnoreDynamicBeyondLimit", err) + } + s.IgnoreDynamicBeyondLimit = &value + case bool: + s.IgnoreDynamicBeyondLimit = &v + } + case "limit": var tmp any dec.Decode(&tmp) 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 70ed02cc5e..1c2a125aa0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MappingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c7b4dcbb5b..a65e4e1105 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MasterIsStableIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L79-L83 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L79-L83 type MasterIsStableIndicator struct { Details *MasterIsStableIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorclusterformationnode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorclusterformationnode.go index ff4315c81b..9c037a0a6e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorClusterFormationNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L98-L102 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L98-L102 type MasterIsStableIndicatorClusterFormationNode struct { ClusterFormationMessage string `json:"cluster_formation_message"` Name *string `json:"name,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatordetails.go index 5e9325c536..abe5ddf0b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // MasterIsStableIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L84-L89 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L84-L89 type MasterIsStableIndicatorDetails struct { ClusterFormation []MasterIsStableIndicatorClusterFormationNode `json:"cluster_formation,omitempty"` CurrentMaster IndicatorNode `json:"current_master"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go index 3088f4ac3c..42f040c54b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorExceptionFetchingHistory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L94-L97 type MasterIsStableIndicatorExceptionFetchingHistory struct { Message string `json:"message"` StackTrace string `json:"stack_trace"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterrecord.go index b6f7cbda30..f0a1d7289d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MasterRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/master/types.ts#L20-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b525c18d9e..e79e1a2059 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MatchAllQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/MatchAllQuery.ts#L22-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/MatchAllQuery.ts#L22-L22 type MatchAllQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 8724fdd72d..781ea3ee24 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MatchBoolPrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L349-L403 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L349-L403 type MatchBoolPrefixQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -84,7 +84,10 @@ func (s *MatchBoolPrefixQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Query) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 07808e9416..ef068649b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MatchedField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/test_grok_pattern/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 412691accf..37344a4a8d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MatchedText type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/test_grok_pattern/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 37fd4072aa..5764cc082f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MatchNoneQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L22 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L22 type MatchNoneQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 b74e32dd8a..4c1c730f19 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MatchOnlyTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L218-L243 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L230-L255 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. @@ -194,12 +194,6 @@ func (s *MatchOnlyTextProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -218,6 +212,18 @@ func (s *MatchOnlyTextProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphraseprefixquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphraseprefixquery.go index 8efcfdfada..55519b4dbb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MatchPhrasePrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L428-L454 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L428-L454 type MatchPhrasePrefixQuery struct { // Analyzer Analyzer used to convert text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -64,7 +64,10 @@ func (s *MatchPhrasePrefixQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Query) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 3ff72530b0..72df23d09a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MatchPhraseQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L405-L426 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L405-L426 type MatchPhraseQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -61,7 +61,10 @@ func (s *MatchPhraseQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Query) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 ddf4bfe29f..470dbcf44e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // MatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L282-L347 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L282-L347 type MatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -82,7 +82,10 @@ func (s *MatchQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Query) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 16cd928d42..f33e1b1657 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MatrixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/matrix.ts#L26-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 56b5736ffd..b649b5f29f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L757-L761 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L764-L768 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 a02962ae1b..9c3e6b8cfe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // MatrixStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/matrix.ts#L38-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7884eb09ae..7461925b02 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L763-L772 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L770-L779 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 606fd4e9ca..b0bcfb7d46 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // MaxAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L200-L201 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L200-L201 type MaxAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *MaxAggregate) UnmarshalJSON(data []byte) error { 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 1e063fc6ad..e561a3e53c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MaxAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L162-L162 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L162-L162 type MaxAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -39,7 +39,7 @@ type MaxAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *MaxAggregation) UnmarshalJSON(data []byte) error { @@ -80,40 +80,9 @@ func (s *MaxAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 c2a93c9d9e..41d95a47cf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MaxBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L224-L224 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L224-L224 type MaxBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 67ea0396d0..ee030aed14 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // MedianAbsoluteDeviationAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L194-L195 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L194-L195 type MedianAbsoluteDeviationAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *MedianAbsoluteDeviationAggregate) UnmarshalJSON(data []byte) error { 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 c439072c20..e6113b17cc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L164-L170 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L164-L170 type MedianAbsoluteDeviationAggregation struct { // Compression Limits the maximum number of nodes used by the underlying TDigest algorithm // to `20 * compression`, enabling control of memory usage and approximation @@ -43,7 +43,7 @@ type MedianAbsoluteDeviationAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *MedianAbsoluteDeviationAggregation) UnmarshalJSON(data []byte) error { @@ -100,40 +100,9 @@ func (s *MedianAbsoluteDeviationAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 d0ffeb75a8..4de69bb109 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MemMlStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/types.ts#L90-L111 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 419dee0a52..0a2e423a0e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Memory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/types.ts#L25-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d2f6df77d2..ab8f7f85c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L596-L620 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L596-L620 type MemoryStats struct { // AdjustedTotalInBytes If the amount of physical memory has been overridden using the // `es`.`total_memory_bytes` system property then this reports the overridden 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 695d279424..e682cad25d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MemStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/types.ts#L65-L88 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f82a2215a8..ace3dffe9f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Merge type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L330-L332 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 eb64d2022f..3e0b284e56 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MergeScheduler type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L334-L337 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 74a52fe0eb..8539f30713 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MergesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L161-L178 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 807ee20d27..855761446a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ import ( // Metadata type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L99-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L99-L99 type Metadata map[string]json.RawMessage diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metrics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metrics.go index 575a16f60e..e8212e1481 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Metrics type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L76-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9a7ecbc8ca..97c3cec3d4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // MgetOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/types.ts#L32-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mget/types.ts#L32-L55 type MgetOperation struct { // Id_ The unique document ID. Id_ string `json:"_id"` @@ -80,9 +80,40 @@ func (s *MgetOperation) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } case "stored_fields": rawMsg := json.RawMessage{} 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 d5baba53a5..dd984a4e25 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // GetResult // MultiGetError // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/types.ts#L57-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..ad636d863c --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrateaction.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// MigrateAction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L144-L146 +type MigrateAction struct { + Enabled *bool `json:"enabled,omitempty"` +} + +func (s *MigrateAction) 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 + } + + } + } + return nil +} + +// NewMigrateAction returns a MigrateAction. +func NewMigrateAction() *MigrateAction { + r := &MigrateAction{} + + return r +} 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 9d10e00f6c..b79068b780 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MigrationFeatureIndexInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b97b57faec..c33b927221 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // MinAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L197-L198 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L197-L198 type MinAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *MinAggregate) UnmarshalJSON(data []byte) error { 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 43149463c8..c0f5246ce9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MinAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L172-L172 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L172-L172 type MinAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -39,7 +39,7 @@ type MinAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *MinAggregation) UnmarshalJSON(data []byte) error { @@ -80,40 +80,9 @@ func (s *MinAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 5c5cb15b1d..92ed011338 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MinBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L226-L226 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L226-L226 type MinBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 bc6720aa45..a21b42e7e5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // MinimalLicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b99b798bf9..d82dc35ab7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L163-L167 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L163-L167 type MinimumShouldMatch any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missing.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missing.go index 9aa57f7889..0d243b8d73 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -27,5 +27,5 @@ package types // Float64 // bool // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/AggregationContainer.ts#L516-L516 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/AggregationContainer.ts#L516-L516 type Missing any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregate.go index 0484f5f34a..4f2ee92cc9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // MissingAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L483-L484 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L487-L488 type MissingAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 49dd955780..4e39346550 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MissingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L576-L582 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L576-L582 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 6310358a22..1edb10e5cc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MlCounter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L255-L257 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L255-L257 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 0249064982..2ee4d549ad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MLDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L36-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L36-L57 type MLDatafeed struct { Aggregations map[string]Aggregations `json:"aggregations,omitempty"` // Authorization The security privileges that the datafeed uses to run its queries. If Elastic 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 a399cb3994..cd828ee172 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // MlDataFrameAnalyticsJobs type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L177-L182 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L177-L182 type MlDataFrameAnalyticsJobs struct { All_ MlDataFrameAnalyticsJobsCount `json:"_all"` AnalysisCounts *MlDataFrameAnalyticsJobsAnalysis `json:"analysis_counts,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsanalysis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsanalysis.go index e9fba3ae6e..3108792d31 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L184-L188 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L184-L188 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 d80cdfe073..09b7ddde51 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L194-L196 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L194-L196 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 d5ff44708f..ff4b580288 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // MlDataFrameAnalyticsJobsMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L190-L192 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L190-L192 type MlDataFrameAnalyticsJobsMemory struct { PeakUsageBytes JobStatistics `json:"peak_usage_bytes"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlfilter.go index f41670cd1f..e887717a90 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MLFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Filter.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cfd3f77279..81113ff154 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // MlInference type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L198-L206 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L198-L206 type MlInference struct { Deployments *MlInferenceDeployments `json:"deployments,omitempty"` IngestProcessors map[string]MlInferenceIngestProcessor `json:"ingest_processors"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeployments.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeployments.go index 06decbcf0f..df9f334bcb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeployments type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L227-L232 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L227-L232 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 f58c572b7d..53aebde141 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeploymentsTimeMs type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L234-L236 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L234-L236 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 31586d8ecc..a84310eebf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // MlInferenceIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L208-L213 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L208-L213 type MlInferenceIngestProcessor struct { NumDocsProcessed MlInferenceIngestProcessorCount `json:"num_docs_processed"` NumFailures MlInferenceIngestProcessorCount `json:"num_failures"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessorcount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessorcount.go index f2caaa42c0..661275ec37 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MlInferenceIngestProcessorCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L238-L242 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L238-L242 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 278d065e43..fe8408dc53 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // MlInferenceTrainedModels type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L215-L225 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L215-L225 type MlInferenceTrainedModels struct { All_ MlCounter `json:"_all"` Count *MlInferenceTrainedModelsCount `json:"count,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodelscount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodelscount.go index fa5a0b8125..0ec81b8a89 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MlInferenceTrainedModelsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L244-L253 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L244-L253 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 d1b3dc8aed..db046eabb7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MlJobForecasts type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L172-L175 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L172-L175 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 7d9b11c7f7..d8c9cca1cc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ModelPlotConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/ModelPlot.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a6557b7135..1b02f226aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // ModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L59-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 14dd80f3c6..3b05ff0b52 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ModelSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 13e962143b..c6efc00b1f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ModelSnapshotUpgrade type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L48-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 99556dcd6d..81ebf4c49f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Monitoring type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L381-L384 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L381-L384 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 2c8e8923d5..d8e9462a82 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MoreLikeThisQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L78-L160 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L87-L169 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 40f04b1773..01b70c8904 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MountedSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/mount/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bd76e97a9f..dc2a240577 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -28,5 +28,5 @@ package types // HoltMovingAverageAggregation // HoltWintersMovingAverageAggregation // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L228-L234 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L228-L234 type MovingAverageAggregation any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingfunctionaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingfunctionaggregation.go index 267a5d529d..55e89236a3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MovingFunctionAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L288-L303 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L288-L303 type MovingFunctionAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 36c525ad81..e8025e1587 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MovingPercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L305-L317 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L305-L317 type MovingPercentilesAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 ad3bda42d0..df3f0124da 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // MultisearchHeader // MultisearchBody // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ed4cb03a0f..97a6faa637 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // MultiSearchItem // ErrorResponseBase // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L208-L211 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L208-L211 type MsearchResponseItem any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mtermvectorsoperation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mtermvectorsoperation.go index 7dc569c3b5..bcd28c5796 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // MTermVectorsOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mtermvectors/types.ts#L35-L94 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 db94e9f848..aa03c5c828 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseAdjacencyMatrixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseAdjacencyMatrixBucket struct { Buckets BucketsAdjacencyMatrixBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasecompositebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasecompositebucket.go index e4b3054773..b52e605e44 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseCompositeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseCompositeBucket struct { Buckets BucketsCompositeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedatehistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedatehistogrambucket.go index 42264cfb06..bf31a78946 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseDateHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseDateHistogramBucket struct { Buckets BucketsDateHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedoubletermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedoubletermsbucket.go index bfa1c5ce01..8113077f05 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseDoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseDoubleTermsBucket struct { Buckets BucketsDoubleTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefiltersbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefiltersbucket.go index 0d33165cb0..ec0679f6e1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseFiltersBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseFiltersBucket struct { Buckets BucketsFiltersBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefrequentitemsetsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefrequentitemsetsbucket.go index 044fa7cde7..aad254eb99 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseFrequentItemSetsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseFrequentItemSetsBucket struct { Buckets BucketsFrequentItemSetsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohashgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohashgridbucket.go index ac4a4bbcdb..c3be70158e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseGeoHashGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseGeoHashGridBucket struct { Buckets BucketsGeoHashGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohexgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohexgridbucket.go index 2217c6fcf3..2dbf83c241 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseGeoHexGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseGeoHexGridBucket struct { Buckets BucketsGeoHexGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeotilegridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeotilegridbucket.go index 7557a34523..644c6c39a8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseGeoTileGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseGeoTileGridBucket struct { Buckets BucketsGeoTileGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasehistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasehistogrambucket.go index f7e002a37b..c744a2139c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseHistogramBucket struct { Buckets BucketsHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseipprefixbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseipprefixbucket.go index 260d6a1672..04db6d1bdd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseIpPrefixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseIpPrefixBucket struct { Buckets BucketsIpPrefixBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseiprangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseiprangebucket.go index 1148f6e5ad..ae1acaa26d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseIpRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseIpRangeBucket struct { Buckets BucketsIpRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongraretermsbucket.go index 729b486f6a..50a7e81331 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseLongRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseLongRareTermsBucket struct { Buckets BucketsLongRareTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongtermsbucket.go index a03f1bd056..d30146abfb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseLongTermsBucket struct { Buckets BucketsLongTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasemultitermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasemultitermsbucket.go index a32b33a324..6202588105 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseMultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseMultiTermsBucket struct { Buckets BucketsMultiTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaserangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaserangebucket.go index 00fb433876..73d0f4bd82 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseRangeBucket struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantlongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantlongtermsbucket.go index 23d8fd3b70..1f0599c499 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseSignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseSignificantLongTermsBucket struct { Buckets BucketsSignificantLongTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantstringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantstringtermsbucket.go index c014122afa..a38b01bd21 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseSignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseSignificantStringTermsBucket struct { Buckets BucketsSignificantStringTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringraretermsbucket.go index 9d290e60c7..0fa7205fd8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseStringRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseStringRareTermsBucket struct { Buckets BucketsStringRareTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringtermsbucket.go index 8967cc208c..08fa790338 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseStringTermsBucket struct { Buckets BucketsStringTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevariablewidthhistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevariablewidthhistogrambucket.go index c731fba5d4..696f571a6c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseVariableWidthHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 type MultiBucketAggregateBaseVariableWidthHistogramBucket struct { Buckets BucketsVariableWidthHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevoid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevoid.go index 836cf7cf86..3bc5f45ed9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiBucketAggregateBaseVoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L327-L329 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 91ecf8ca44..f00fa9b688 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiGetError type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/types.ts#L62-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6deeec0e0a..c3d1b32ec3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // MultiMatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L456-L539 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L456-L539 type MultiMatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` 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 6da06268ad..baf042af8e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiplexerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L262-L266 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L262-L266 type MultiplexerTokenFilter struct { Filters []string `json:"filters"` PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchbody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchbody.go index fd8144cbf2..39bc037d1f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MultisearchBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L70-L201 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L70-L201 type MultisearchBody struct { Aggregations map[string]Aggregations `json:"aggregations,omitempty"` Collapse *FieldCollapse `json:"collapse,omitempty"` @@ -349,9 +349,40 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } case "stats": if err := dec.Decode(&s.Stats); err != nil { 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 94cf783c3a..30fa43388b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // MultisearchHeader type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L52-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5165ae3ab5..ed2f69ab4a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // MultiSearchItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L213-L216 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L213-L216 type MultiSearchItem struct { Aggregations map[string]Aggregate `json:"aggregations,omitempty"` Clusters_ *ClusterStatistics `json:"_clusters,omitempty"` 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 63569cc118..3ae7e4fa21 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MultiSearchResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L203-L206 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/msearch/types.ts#L203-L206 type MultiSearchResult struct { Responses []MsearchResponseItem `json:"responses"` Took int64 `json:"took"` @@ -57,7 +57,7 @@ func (s *MultiSearchResult) UnmarshalJSON(data []byte) error { if err := dec.Decode(&messageArray); err != nil { return fmt.Errorf("%s | %w", "Responses", err) } - responses: + responses_field: for _, message := range messageArray { keyDec := json.NewDecoder(bytes.NewReader(message)) for { @@ -78,7 +78,7 @@ func (s *MultiSearchResult) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Responses", err) } s.Responses = append(s.Responses, o) - continue responses + continue responses_field case "error": o := NewErrorResponseBase() @@ -87,10 +87,17 @@ func (s *MultiSearchResult) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Responses", err) } s.Responses = append(s.Responses, o) - continue responses + continue responses_field } } + + var o any + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Responses", err) + } + s.Responses = append(s.Responses, o) } case "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 cd4cee107d..f7820a92a8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // MultiTermLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L626-L636 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L626-L636 type MultiTermLookup struct { // Field A fields from which to retrieve terms. Field string `json:"field"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregate.go index bc075aee02..4b3520e1aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MultiTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L461-L463 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L463-L465 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 c3f1a09655..7f40475644 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // MultiTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L584-L624 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L584-L624 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 dedcf5c47c..b09ed8bba1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // MultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L465-L469 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L467-L471 type MultiTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 6f9add1ed7..da874f51bd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // Murmur3HashProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L81-L83 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L81-L83 type Murmur3HashProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -216,12 +216,6 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -240,6 +234,18 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -553,12 +559,6 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -577,6 +577,18 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 eaa0d9446c..e1abb33fcc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // MutualInformationHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L755-L764 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L755-L764 type MutualInformationHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. 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 675104cc36..01f134efc4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Names type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L81-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a5d96450e4..0a82a0d0c7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NativeCode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 530e3ff052..29013925fb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NativeCodeInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f9aa159c4a..3946b2bb22 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NerInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L255-L264 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0fb703fa3a..169189e7d3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NerInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L404-L409 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c01815ff21..22665759cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // NestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L486-L487 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L490-L491 type NestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 7252b418b9..561fc14e91 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L638-L643 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L638-L643 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 d160c032e5..3e847990c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NestedIdentity type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L88-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L89-L93 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 26e95dcbfe..cc1943a666 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NestedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L39-L44 type NestedProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -218,12 +218,6 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -242,6 +236,18 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -583,12 +589,6 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -607,6 +607,18 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 f91418726b..428a5c4a05 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NestedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L106-L130 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L106-L130 type NestedQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 b43971c9bb..f88d89814a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NestedSortValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L30-L35 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/nevercondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nevercondition.go index 910a98d7b5..b1e16a8a48 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NeverCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L69-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9412ae255d..9c8d29019a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L268-L273 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L268-L273 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 b213f1743f..b5c11be301 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L39-L45 type NGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` MaxGram int `json:"max_gram"` 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 206ee378fe..ee1f030a97 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NlpBertTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L131-L158 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2dcea667c2..a3a219c08d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NlpRobertaTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L160-L187 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 981ce8165b..14bf65a44f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NlpTokenizationUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L356-L361 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c8d464b988..10f0f731fe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Node type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 148dfe5ccb..c63d4d72b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NodeAllocationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L97-L106 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L97-L106 type NodeAllocationExplanation struct { Deciders []AllocationDecision `json:"deciders"` NodeAttributes map[string]string `json:"node_attributes"` 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 1ddfb4e52c..a984e7fa4f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NodeAttributes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L41-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L41-L58 type NodeAttributes struct { // Attributes Lists node attributes. Attributes map[string]string `json:"attributes"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributesrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributesrecord.go index 135d174262..3525fdbc8a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeAttributesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/nodeattrs/types.ts#L20-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 eda8294327..2dfb5fd08f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeBufferPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L788-L809 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L788-L809 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 858dba8c95..f249658894 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NodeDiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L56-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L56-L60 type NodeDiskUsage struct { LeastAvailable DiskUsage `json:"least_available"` MostAvailable DiskUsage `json:"most_available"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeids.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeids.go index 6695bdefc3..5175ff817c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L64-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a4dd926236..663a3253b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L31-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 32dfda1e14..8111d1ac83 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L181-L183 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a690588390..d6babc18f4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L232-L234 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bdaeeaccd5..3d693ca052 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoBootstrap type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L201-L203 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9505ee64db..f055804def 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoClient type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L185-L187 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f574ce68ee..3e243dc7ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoDiscover type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L173-L179 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5549914ee1..75094cd3fe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L303-L308 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L306-L311 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 fb7888d5f7..19b3499caf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L224-L226 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4d0428245c..af51c3ec36 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestDownloader type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L128-L130 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1683686c63..88622ac448 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoIngestInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L124-L126 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 81dbbb6d0e..44a0d8aca8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L228-L230 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e1c09b3f4f..3e60f06fda 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L310-L321 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L313-L324 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 b1fd471d54..db53e78ac4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L323-L326 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L326-L329 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 15bee76ec8..43fa5c823a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L328-L331 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L331-L334 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 7517637705..e4d3d79393 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoNetworkInterface type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L333-L337 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L336-L340 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 f8ff560290..1e790ddb2c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoOSCPU type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L339-L348 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L342-L351 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 cb3eb0e27a..ed111e7270 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L158-L163 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1670e6a223..7fa7d566b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoRepositories type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L165-L167 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3ff421f179..48b295541c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoRepositoriesUrl type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L169-L171 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f01cbed45d..9ebba5866c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L281-L284 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L284-L287 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 88da5da716..e8d613ed2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L286-L288 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L289-L291 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 34ba67e867..9d9541b511 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSearchRemote type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L290-L292 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L293-L295 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 900d5990b6..2e0f2b2c31 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L69-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e233d2eeb1..0b984dfba6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L132-L142 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4bc16ee6f1..9f55a08f38 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsClusterElection type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L148-L150 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 23d4d3fa07..e4879a5a5f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L189-L194 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ebff8c56e8..7c39442944 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttpType type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L196-L199 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L199-L202 type NodeInfoSettingsHttpType struct { Default string `json:"default"` } @@ -44,7 +44,10 @@ func (s *NodeInfoSettingsHttpType) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Default) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 42b7963a17..314abcadf8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoSettingsIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L87-L122 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 39b2715cae..17a0ca8a8b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L220-L222 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L223-L225 type NodeInfoSettingsNetwork struct { Host *string `json:"host,omitempty"` } 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 32d6d0ecf0..a3f9fa8449 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L152-L156 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d52d5a8f90..23c0991ef2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e4b2d01fb8..5d63e623a3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L216-L218 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c55716cac1..3f4191c205 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportType type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L211-L214 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L214-L217 type NodeInfoSettingsTransportType struct { Default string `json:"default"` } @@ -44,7 +44,10 @@ func (s *NodeInfoSettingsTransportType) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Default) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 cd121330e8..53ee145eeb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L350-L354 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L353-L357 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 8a3b1a8d29..781ece98c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // NodeInfoXpack type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L236-L240 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L239-L243 type NodeInfoXpack struct { License *NodeInfoXpackLicense `json:"license,omitempty"` Notification map[string]json.RawMessage `json:"notification,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicense.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicense.go index f980494b80..26c2e1a88b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoXpackLicense type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L273-L275 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L276-L278 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 c44f0ae9bf..f6e6a284b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackLicenseType type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L277-L279 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L280-L282 type NodeInfoXpackLicenseType struct { Type string `json:"type"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurity.go index dca8d5b406..65adef1a1e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L242-L247 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L245-L250 type NodeInfoXpackSecurity struct { Authc *NodeInfoXpackSecurityAuthc `json:"authc,omitempty"` Enabled string `json:"enabled"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthc.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthc.go index 6e3046944c..6cb36a967d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthc.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthc.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoXpackSecurityAuthc type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L253-L256 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L256-L259 type NodeInfoXpackSecurityAuthc struct { Realms NodeInfoXpackSecurityAuthcRealms `json:"realms"` Token NodeInfoXpackSecurityAuthcToken `json:"token"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealms.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealms.go index aac9da387b..d4e14eae43 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoXpackSecurityAuthcRealms type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L258-L262 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L261-L265 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 97e43a4447..089a2bc7f7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcRealmsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L268-L271 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L271-L274 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 98b0b12a87..72db0a0192 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L264-L266 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L267-L269 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 db8a7df7ae..c28b315e58 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodeInfoXpackSecuritySsl type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L249-L251 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L252-L254 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 626cd9fd1e..6dbf26c2f6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeJvmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L356-L370 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L359-L373 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 6531846d03..ea36cad100 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeOperatingSystemInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L372-L389 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L375-L392 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 eeef62ddef..3dd7bde637 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodePackagingType type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L526-L539 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b4de914184..a9acf66849 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeProcessInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L391-L398 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L394-L401 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 1ce90c8ea0..203d930550 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NodeReloadError type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/NodeReloadResult.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f929aad15c..9dc1db0791 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // Stats // NodeReloadError // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/NodeReloadResult.ts#L29-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1d0699701f..48d085d61b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodesContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L997-L1002 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L997-L1002 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 d1fb30be91..4563bd4fde 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodesCredentials type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_credentials/types.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 999b4670b3..94188f9baf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodesCredentialsFileToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_credentials/types.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 67086d0f54..d50307f1fc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,14 +33,14 @@ import ( // NodeShard type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L60-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L60-L71 type NodeShard struct { AllocationId map[string]string `json:"allocation_id,omitempty"` Index string `json:"index"` Node *string `json:"node,omitempty"` Primary bool `json:"primary"` RecoverySource map[string]string `json:"recovery_source,omitempty"` - RelocatingNode string `json:"relocating_node,omitempty"` + RelocatingNode *string `json:"relocating_node,omitempty"` RelocationFailureInfo *RelocationFailureInfo `json:"relocation_failure_info,omitempty"` Shard int `json:"shard"` State shardroutingstate.ShardRoutingState `json:"state"` 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 3a5c776559..04d47cd81b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // NodeShutdownStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c90b0c0b99..6f8eedc855 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L116-L121 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1820cb56bb..9c4186fd88 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L123-L142 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bc1076ba24..e185ef6e0b 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesingest.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesingest.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // NodesIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L345-L354 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L345-L354 type NodesIngest struct { // Pipelines Contains statistics about ingest pipelines for the node. Pipelines map[string]IngestTotal `json:"pipelines,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesrecord.go index cae7d2b614..6a3fe25dd6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/nodes/types.ts#L23-L542 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d41861677a..eeb81d1b61 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L28-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c358818ec1..498b1539c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NodeTasks type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/TaskListResponseBase.ts#L49-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5003506090..abef5028a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // NodeThreadPoolInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L294-L301 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/info/types.ts#L297-L304 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 a11d008657..f597025d97 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NodeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/usage/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 87e80fd16d..1992239fb6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NoriAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L66-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L66-L72 type NoriAnalyzer struct { DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"` Stoptags []string `json:"stoptags,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noripartofspeechtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noripartofspeechtokenfilter.go index e96283284d..ae6e28199c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // NoriPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L275-L278 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L275-L278 type NoriPartOfSpeechTokenFilter struct { Stoptags []string `json:"stoptags,omitempty"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noritokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noritokenizer.go index e987688d4b..f88642fe40 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NoriTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L81-L87 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L81-L87 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 afa7631fd3..11b421c58e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // NormalizeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L319-L324 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L319-L324 type NormalizeAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 d55ad87205..bdef424e50 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // LowercaseNormalizer // CustomNormalizer // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/normalizers.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/normalizers.ts#L20-L24 type Normalizer any 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 a81c045a48..7dfa7b55e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // NumberRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L145-L164 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L157-L157 type NumberRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -41,7 +41,7 @@ type NumberRangeQuery 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"` - From Float64 `json:"from,omitempty"` + From *Float64 `json:"from,omitempty"` // Gt Greater than. Gt *Float64 `json:"gt,omitempty"` // Gte Greater than or equal to. @@ -53,7 +53,7 @@ type NumberRangeQuery struct { QueryName_ *string `json:"_name,omitempty"` // Relation Indicates how the range query matches values for `range` fields. Relation *rangerelation.RangeRelation `json:"relation,omitempty"` - To Float64 `json:"to,omitempty"` + To *Float64 `json:"to,omitempty"` } func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error { 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 84c1459440..cfb9d786d3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,12 +29,12 @@ import ( // NumericDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L182-L184 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L192-L192 type NumericDecayFunction struct { + DecayFunctionBasedoubledouble map[string]DecayPlacementdoubledouble `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the // decay contains multiple values. - MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"` - NumericDecayFunction map[string]DecayPlacementdoubledouble `json:"-"` + MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"` } // MarhsalJSON overrides marshalling for types with additional properties @@ -53,10 +53,10 @@ func (s NumericDecayFunction) MarshalJSON() ([]byte, error) { } // We inline the additional fields from the underlying map - for key, value := range s.NumericDecayFunction { + for key, value := range s.DecayFunctionBasedoubledouble { tmp[fmt.Sprintf("%s", key)] = value } - delete(tmp, "NumericDecayFunction") + delete(tmp, "DecayFunctionBasedoubledouble") data, err = json.Marshal(tmp) if err != nil { @@ -69,7 +69,7 @@ func (s NumericDecayFunction) MarshalJSON() ([]byte, error) { // NewNumericDecayFunction returns a NumericDecayFunction. func NewNumericDecayFunction() *NumericDecayFunction { r := &NumericDecayFunction{ - NumericDecayFunction: make(map[string]DecayPlacementdoubledouble, 0), + DecayFunctionBasedoubledouble: make(map[string]DecayPlacementdoubledouble, 0), } return r 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 1d7f83c986..b4d34ad111 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // NumericFielddata type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/NumericFielddata.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3fb663794b..c5bc3ef108 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ObjectProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L46-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/complex.ts#L46-L50 type ObjectProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -217,12 +217,6 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -241,6 +235,18 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -554,12 +560,6 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -578,6 +578,18 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 e56e97617c..0b20d7e2a4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // OneHotEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cb7f996d36..09e083972f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // OperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L945-L951 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L945-L951 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 d3986f9914..215955347a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // OperatingSystemMemoryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L541-L568 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 07b463ce8b..28b9efd868 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // OperationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L145-L167 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 32f9439dd2..5dd97fd9bf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // OutlierDetectionParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L527-L561 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L527-L561 type OutlierDetectionParameters struct { // ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled. ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"` 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 7be5ccbcce..649387ea20 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // OverallBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Bucket.ts#L130-L145 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Bucket.ts#L130-L145 type OverallBucket struct { // BucketSpan The length of the bucket in seconds. Matches the job with the longest // bucket_span value. 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 99d8d8237e..57db768624 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // OverallBucketJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Bucket.ts#L146-L149 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Bucket.ts#L146-L149 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 3ce8d37be1..5b8504f83a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Overlapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1fa2f6b490..57f6dcfa98 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Page type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Page.ts#L22-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f456878f7b..2b5e61a3b4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // PagerDutyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L54-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 540270f7f9..6ab8ed56c6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // PagerDutyContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 84c3f0c2b4..11dfaef942 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // PagerDutyEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L40-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 121bf5ab13..099cbae2cf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PagerDutyEventProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L56-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4f9f49969e..f283636b3f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PagerDutyResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L78-L83 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 864d5fd3f5..0171b052c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // PainlessContextSetup type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scripts_painless_execute/types.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/scripts_painless_execute/types.ts#L25-L39 type PainlessContextSetup struct { // Document Document that’s temporarily indexed in-memory and accessible from the script. Document json.RawMessage `json:"document,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregate.go index 819025f8c6..598066c325 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ParentAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L779-L780 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L786-L787 type ParentAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 38b1501c24..e0de972ec7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ParentAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L645-L650 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L645-L650 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 b9469adb58..efd86c13ab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ParentIdQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L132-L146 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/joining.ts#L132-L146 type ParentIdQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 4e523af964..02c0706579 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ParentTaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fa9df17a88..366ff0f08a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L224-L231 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f8f68944ee..85f12f47c6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L385-L390 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a1ffc6fd65..1a88d768ab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PathHierarchyTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L89-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L89-L96 type PathHierarchyTokenizer struct { BufferSize Stringifiedinteger `json:"buffer_size,omitempty"` Delimiter *string `json:"delimiter,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternanalyzer.go index 17887360e8..adc87aaa9f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PatternAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L74-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L74-L81 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 361855ca0b..621fccf099 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // PatternCaptureTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L280-L284 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L280-L284 type PatternCaptureTokenFilter struct { Patterns []string `json:"patterns"` PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacecharfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacecharfilter.go index 6b1d9ccd63..c6e38acfc5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L54-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/char_filters.ts#L54-L59 type PatternReplaceCharFilter struct { Flags *string `json:"flags,omitempty"` Pattern string `json:"pattern"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacetokenfilter.go index aefced26a9..2e0f511a3c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L286-L292 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L286-L292 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 6e6542a3f5..2a1aaec315 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PatternTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L98-L103 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L98-L103 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 d759d0dc3b..34c7b2a96d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PendingTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/pending_tasks/types.ts#L23-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 55a1807e7c..9322537f35 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PendingTasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/pending_tasks/types.ts#L20-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 66ffc8d28a..c705f7eb9e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // float32 // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Numeric.ts#L28-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d9147dadd7..c82e62f798 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // PercentageScoreHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L766-L766 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L766-L766 type PercentageScoreHeuristic struct { } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentileranksaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentileranksaggregation.go index a2e314dbbc..d56172393a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PercentileRanksAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L174-L193 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L174-L193 type PercentileRanksAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -46,12 +46,12 @@ type PercentileRanksAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // Tdigest Sets parameters for the default TDigest algorithm used to calculate // percentile ranks. Tdigest *TDigest `json:"tdigest,omitempty"` // Values An array of values for which to calculate the percentile ranks. - Values []Float64 `json:"values,omitempty"` + Values *[]Float64 `json:"values,omitempty"` } func (s *PercentileRanksAggregation) UnmarshalJSON(data []byte) error { @@ -111,40 +111,9 @@ func (s *PercentileRanksAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "tdigest": if err := dec.Decode(&s.Tdigest); err != nil { 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 6a8cae167f..888e2e5186 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // KeyedPercentiles // []ArrayPercentilesItem // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L150-L151 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L150-L151 type Percentiles any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesaggregation.go index 47ffde8582..b038cc033e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L195-L214 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L195-L214 type PercentilesAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -48,7 +48,7 @@ type PercentilesAggregation struct { Missing Missing `json:"missing,omitempty"` // Percents The percentiles to calculate. Percents []Float64 `json:"percents,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // Tdigest Sets parameters for the default TDigest algorithm used to calculate // percentiles. Tdigest *TDigest `json:"tdigest,omitempty"` @@ -116,40 +116,9 @@ func (s *PercentilesAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "tdigest": if err := dec.Decode(&s.Tdigest); err != nil { 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 7a8c66a378..5d98ef70a9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // PercentilesBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L178-L179 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L178-L179 type PercentilesBucketAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregation.go index 3dbe56860d..a3475649c1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // PercentilesBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L354-L359 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L354-L359 type PercentilesBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 fd0610f211..25000d8a6a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PercolateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L193-L230 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L202-L239 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 c7e0d587d2..855d029bff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // PercolatorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L182-L184 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L188-L190 type PercolatorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -182,12 +182,6 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -206,6 +200,18 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -519,12 +525,6 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -543,6 +543,18 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/perpartitioncategorization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/perpartitioncategorization.go index d7ab446a1e..77b62be3cc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PerPartitionCategorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L150-L159 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/persistenttaskstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persistenttaskstatus.go index ba125796df..a80d551270 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // PersistentTaskStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f15920fa8e..db9d034449 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,11 +30,10 @@ import ( // Phase type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L25-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L26-L32 type Phase struct { - Actions json.RawMessage `json:"actions,omitempty"` - Configurations *Configurations `json:"configurations,omitempty"` - MinAge *Duration `json:"min_age,omitempty"` + Actions *IlmActions `json:"actions,omitempty"` + MinAge *Duration `json:"min_age,omitempty"` } func (s *Phase) UnmarshalJSON(data []byte) error { @@ -57,11 +56,6 @@ func (s *Phase) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Actions", err) } - case "configurations": - if err := dec.Decode(&s.Configurations); err != nil { - return fmt.Errorf("%s | %w", "Configurations", err) - } - case "min_age": if err := dec.Decode(&s.MinAge); err != nil { return fmt.Errorf("%s | %w", "MinAge", err) 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 32ec5e8187..815ec10662 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Phases type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L38-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3b26b23796..7ddb884f56 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -36,7 +36,7 @@ import ( // PhoneticTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L64-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/phonetic-plugin.ts#L64-L72 type PhoneticTokenFilter struct { Encoder phoneticencoder.PhoneticEncoder `json:"encoder"` Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset"` 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 278d36c164..bb0150f0b8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 629d4f7726..42820b7936 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestCollate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L330-L343 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0396a97e18..17b0cb46b6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestCollateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L345-L354 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 80dc5a5bfa..6a1809fda3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L356-L414 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 352063115d..5405b0baf4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L416-L425 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b863f2a727..c14ca6808d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 52c1f70570..bd715db007 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // PinnedDoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L253-L262 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L262-L271 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 fbccf67f0a..7fb3107669 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PinnedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L232-L251 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L241-L260 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 b94fe04869..c982e068a4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PipelineConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Pipeline.ts#L61-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Pipeline.ts#L61-L75 type PipelineConfig struct { // Description Description of the ingest pipeline. Description *string `json:"description,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinemetadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinemetadata.go index e77273c3df..b4f77cf79d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PipelineMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/_types/Pipeline.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c349544973..f483b74948 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PipelineProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L928-L939 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L928-L939 type PipelineProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 bba1a7bab5..9b54c55366 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PipelineSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/_types/Pipeline.ts#L28-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 95a89d0fe9..1fb409dc33 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // PipelineSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/types.ts#L33-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/types.ts#L33-L39 type PipelineSimulation struct { Doc *DocumentSimulation `json:"doc,omitempty"` ProcessorResults []PipelineSimulation `json:"processor_results,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipeseparatedflagssimplequerystringflag.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipeseparatedflagssimplequerystringflag.go index 1323bf3742..8111728446 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // simplequerystringflag.SimpleQueryStringFlag // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b4abf1142f..36337d213d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Pivot type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L54-L68 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c35d386863..cc50348dba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // PivotGroupByContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L70-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2f617c34f4..5e4e7085bb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PluginsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/plugins/types.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a3497341db..24e3abd096 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // PluginsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d61dd948e6..56cf5f7b45 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PluginStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L180-L190 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 60c8e26baa..a7a2483ca5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // PointInTimeReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/PointInTimeReference.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 509d36fcaf..bc13b9635a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // PointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L66-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L66-L71 type PointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -219,12 +219,6 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -243,6 +237,18 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -596,12 +602,6 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -620,6 +620,18 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 17d67312d8..6caf284676 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Pool type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L878-L895 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L878-L895 type Pool struct { // MaxInBytes Maximum amount of memory, in bytes, available for use by the heap. MaxInBytes *int64 `json:"max_in_bytes,omitempty"` 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 4353708440..04815bb36f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // PorterStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L294-L296 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L294-L296 type PorterStemTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/postmigrationfeature.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/postmigrationfeature.go index c02a716566..8c089943fc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PostMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8e37b6264e..685970c0a3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // PredicateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L298-L301 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L298-L301 type PredicateTokenFilter struct { Script Script `json:"script"` Type string `json:"type,omitempty"` @@ -53,40 +53,9 @@ func (s *PredicateTokenFilter) UnmarshalJSON(data []byte) error { switch t { case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "type": if err := dec.Decode(&s.Type); err != nil { 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 e315061747..a12393564d 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predictedvalue.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predictedvalue.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -27,5 +27,5 @@ package types // bool // int // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L457-L457 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/inference.ts#L457-L457 type PredictedValue any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/prefixquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/prefixquery.go index ef5c1c402d..d5e0f275eb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L87-L106 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L88-L107 type PrefixQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -59,7 +59,10 @@ func (s *PrefixQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Value) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 0a516a3f5a..74d3c6854f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Preprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b1cc61fa6a..e1e2b2ee58 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L144-L199 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7c78aa6872..5d123cd37c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Privileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L48-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2d138c6863..ac8ad60eab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PrivilegesActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_privileges/types.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6489a17bb7..cde43efbf4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // PrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges_user_profile/types.ts#L30-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 15bd00ca47..bc533a2cb3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Process type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L953-L975 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L953-L975 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 862d2ead24..c2e5cc89a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Processor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L384-L401 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L384-L401 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 4c22b0935b..a457360924 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ProcessorContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L27-L239 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L27-L239 type ProcessorContainer struct { // Append Appends one or more values to an existing array if the field already exists // and it is an array. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/profile.go index b4641e82a9..cd94088b9f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Profile type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L93-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L93-L95 type Profile struct { Shards []ShardProfile `json:"shards"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/property.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/property.go index af226ab880..95fca430c9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -39,10 +39,11 @@ package types // DateProperty // AggregateMetricDoubleProperty // DenseVectorProperty -// SparseVectorProperty // FlattenedProperty // NestedProperty // ObjectProperty +// SemanticTextProperty +// SparseVectorProperty // CompletionProperty // ConstantKeywordProperty // FieldAliasProperty @@ -71,5 +72,5 @@ package types // LongRangeProperty // IcuCollationProperty // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/Property.ts#L95-L162 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d49cd1a89c..1425e75d37 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // PublishedClusterStates type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L263-L276 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ca65886e04..02bff5ba78 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Queries type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L401-L403 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f41228113a..d78aff9bcb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Query type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L100-L407 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` @@ -131,13 +131,15 @@ type Query struct { // `rank_feature` or `rank_features` field. RankFeature *RankFeatureQuery `json:"rank_feature,omitempty"` // Regexp Returns documents that contain terms matching a regular expression. - Regexp map[string]RegexpQuery `json:"regexp,omitempty"` - RuleQuery *RuleQuery `json:"rule_query,omitempty"` + Regexp map[string]RegexpQuery `json:"regexp,omitempty"` + Rule *RuleQuery `json:"rule,omitempty"` // Script Filters documents based on a provided script. // The script query is typically used in a filter context. Script *ScriptQuery `json:"script,omitempty"` // ScriptScore Uses a script to provide a custom score for returned documents. ScriptScore *ScriptScoreQuery `json:"script_score,omitempty"` + // Semantic A semantic query to semantic_text field types + Semantic *SemanticQuery `json:"semantic,omitempty"` // Shape Queries documents that contain fields indexed using the `shape` type. Shape *ShapeQuery `json:"shape,omitempty"` // SimpleQueryString Returns documents based on a provided query string, using a parser with a @@ -167,6 +169,10 @@ type Query struct { SpanTerm map[string]SpanTermQuery `json:"span_term,omitempty"` // SpanWithin Returns matches which are enclosed inside another span query. SpanWithin *SpanWithinQuery `json:"span_within,omitempty"` + // SparseVector Using input query vectors or a natural language processing model to convert a + // query into a list of token-weight pairs, queries against a sparse vector + // field. + SparseVector *SparseVectorQuery `json:"sparse_vector,omitempty"` // Term Returns documents that contain an exact term in a provided field. // To return a document, the query term must exactly match the queried field's // value, including whitespace and capitalization. @@ -243,19 +249,18 @@ func (s *Query) UnmarshalJSON(data []byte) error { } case "distance_feature": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "DistanceFeature", err) + var message json.RawMessage + err := dec.Decode(&message) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) } - o := NewGeoDistanceFeatureQuery() - err := json.Unmarshal(message, &o) + + untyped := NewUntypedDistanceFeatureQuery() + err = json.Unmarshal(message, &untyped) if err != nil { - o := NewDateDistanceFeatureQuery() - err := json.Unmarshal(message, &o) - if err != nil { - return fmt.Errorf("%s | %w", "DistanceFeature", err) - } + return fmt.Errorf("%s | %w", "DistanceFeature", err) } + s.DistanceFeature = untyped case "exists": if err := dec.Decode(&s.Exists); err != nil { @@ -412,10 +417,21 @@ func (s *Query) UnmarshalJSON(data []byte) error { if s.Range == nil { s.Range = make(map[string]RangeQuery, 0) } - if err := dec.Decode(&s.Range); err != nil { + messages := make(map[string]json.RawMessage) + err := dec.Decode(&messages) + if err != nil { return fmt.Errorf("%s | %w", "Range", err) } + untyped := NewUntypedRangeQuery() + for key, message := range messages { + err := json.Unmarshal(message, &untyped) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + s.Range[key] = untyped + } + case "rank_feature": if err := dec.Decode(&s.RankFeature); err != nil { return fmt.Errorf("%s | %w", "RankFeature", err) @@ -429,9 +445,9 @@ func (s *Query) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Regexp", err) } - case "rule_query": - if err := dec.Decode(&s.RuleQuery); err != nil { - return fmt.Errorf("%s | %w", "RuleQuery", err) + case "rule": + if err := dec.Decode(&s.Rule); err != nil { + return fmt.Errorf("%s | %w", "Rule", err) } case "script": @@ -444,6 +460,11 @@ func (s *Query) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "ScriptScore", err) } + case "semantic": + if err := dec.Decode(&s.Semantic); err != nil { + return fmt.Errorf("%s | %w", "Semantic", err) + } + case "shape": if err := dec.Decode(&s.Shape); err != nil { return fmt.Errorf("%s | %w", "Shape", err) @@ -502,6 +523,11 @@ func (s *Query) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "SpanWithin", err) } + case "sparse_vector": + if err := dec.Decode(&s.SparseVector); err != nil { + return fmt.Errorf("%s | %w", "SparseVector", err) + } + case "term": if s.Term == nil { s.Term = make(map[string]TermQuery, 0) 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 ed04db7151..9d496195f4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // QueryBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L97-L116 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L97-L116 type QueryBreakdown struct { Advance int64 `json:"advance"` AdvanceCount int64 `json:"advance_count"` 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 e58858b6cc..df54740e90 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // QueryCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L192-L226 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ff57adb337..322740b842 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // QueryProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L118-L124 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L118-L124 type QueryProfile struct { Breakdown QueryBreakdown `json:"breakdown"` Children []QueryProfile `json:"children,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrole.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrole.go new file mode 100644 index 0000000000..8257321507 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrole.go @@ -0,0 +1,169 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" +) + +// QueryRole type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_role/types.ts#L103-L109 +type QueryRole struct { + // Applications A list of application privilege entries + Applications []ApplicationPrivileges `json:"applications,omitempty"` + // Cluster A list of cluster privileges. These privileges define the cluster level + // actions that API keys are able to execute. + Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"` + // Description Optional description of the role descriptor + Description *string `json:"description,omitempty"` + // Global An object defining global privileges. A global privilege is a form of cluster + // privilege that is request-aware. Support for global privileges is currently + // limited to the management of application privileges. + Global []GlobalPrivilege `json:"global,omitempty"` + // Indices A list of indices permissions entries. + Indices []IndicesPrivileges `json:"indices,omitempty"` + // Metadata Optional meta-data. Within the metadata object, keys that begin with `_` are + // reserved for system usage. + Metadata Metadata `json:"metadata,omitempty"` + // Name Name of the role. + Name string `json:"name"` + // RunAs A list of users that the API keys 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. + RunAs []string `json:"run_as,omitempty"` + Sort_ []FieldValue `json:"_sort,omitempty"` + TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"` +} + +func (s *QueryRole) 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 "applications": + if err := dec.Decode(&s.Applications); err != nil { + return fmt.Errorf("%s | %w", "Applications", err) + } + + case "cluster": + if err := dec.Decode(&s.Cluster); err != nil { + return fmt.Errorf("%s | %w", "Cluster", 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 "global": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := NewGlobalPrivilege() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Global", err) + } + + s.Global = append(s.Global, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Global); err != nil { + return fmt.Errorf("%s | %w", "Global", err) + } + } + + case "indices", "index": + if err := dec.Decode(&s.Indices); err != nil { + return fmt.Errorf("%s | %w", "Indices", err) + } + + case "metadata": + if err := dec.Decode(&s.Metadata); err != nil { + return fmt.Errorf("%s | %w", "Metadata", 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 "run_as": + if err := dec.Decode(&s.RunAs); err != nil { + return fmt.Errorf("%s | %w", "RunAs", err) + } + + case "_sort": + if err := dec.Decode(&s.Sort_); err != nil { + return fmt.Errorf("%s | %w", "Sort_", err) + } + + case "transient_metadata": + if s.TransientMetadata == nil { + s.TransientMetadata = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.TransientMetadata); err != nil { + return fmt.Errorf("%s | %w", "TransientMetadata", err) + } + + } + } + return nil +} + +// NewQueryRole returns a QueryRole. +func NewQueryRole() *QueryRole { + r := &QueryRole{ + TransientMetadata: make(map[string]json.RawMessage, 0), + } + + return r +} 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 12ed8f4463..cdb6bf37c0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,16 +26,18 @@ import ( "errors" "fmt" "io" + "strconv" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" ) // QueryRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L36-L42 type QueryRule struct { Actions QueryRuleActions `json:"actions"` Criteria []QueryRuleCriteria `json:"criteria"` + Priority *int `json:"priority,omitempty"` RuleId string `json:"rule_id"` Type queryruletype.QueryRuleType `json:"type"` } @@ -61,8 +63,35 @@ func (s *QueryRule) UnmarshalJSON(data []byte) error { } case "criteria": - if err := dec.Decode(&s.Criteria); err != nil { - return fmt.Errorf("%s | %w", "Criteria", err) + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := NewQueryRuleCriteria() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Criteria", err) + } + + s.Criteria = append(s.Criteria, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Criteria); err != nil { + return fmt.Errorf("%s | %w", "Criteria", err) + } + } + + case "priority": + + 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", "Priority", err) + } + s.Priority = &value + case float64: + f := int(v) + s.Priority = &f } case "rule_id": 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 aef9bc6a6f..5c93a85115 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // QueryRuleActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L69-L72 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 5defbfb3ff..8b931b3281 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,9 +33,9 @@ import ( // QueryRuleCriteria type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L48-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/_types/QueryRuleset.ts#L48-L52 type QueryRuleCriteria struct { - Metadata string `json:"metadata"` + Metadata *string `json:"metadata,omitempty"` Type queryrulecriteriatype.QueryRuleCriteriaType `json:"type"` Values []json.RawMessage `json:"values,omitempty"` } @@ -65,7 +65,7 @@ func (s *QueryRuleCriteria) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Metadata = o + s.Metadata = &o case "type": if err := dec.Decode(&s.Type); err != nil { 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 c54964bd94..15e4c856a9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // QueryRuleset type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3b0ca64662..e0d8cdec81 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,10 +31,12 @@ import ( // QueryRulesetListItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/list/types.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/query_rules/list_rulesets/types.ts#L23-L37 type QueryRulesetListItem struct { - // RulesCount The number of rules associated with this ruleset - RulesCount int `json:"rules_count"` + // RuleCriteriaTypesCounts A map of criteria type to the number of rules of that type + RuleCriteriaTypesCounts map[string]int `json:"rule_criteria_types_counts"` + // RuleTotalCount The number of rules associated with this ruleset + RuleTotalCount int `json:"rule_total_count"` // RulesetId Ruleset unique identifier RulesetId string `json:"ruleset_id"` } @@ -54,7 +56,15 @@ func (s *QueryRulesetListItem) UnmarshalJSON(data []byte) error { switch t { - case "rules_count": + case "rule_criteria_types_counts": + if s.RuleCriteriaTypesCounts == nil { + s.RuleCriteriaTypesCounts = make(map[string]int, 0) + } + if err := dec.Decode(&s.RuleCriteriaTypesCounts); err != nil { + return fmt.Errorf("%s | %w", "RuleCriteriaTypesCounts", err) + } + + case "rule_total_count": var tmp any dec.Decode(&tmp) @@ -62,12 +72,12 @@ func (s *QueryRulesetListItem) UnmarshalJSON(data []byte) error { case string: value, err := strconv.Atoi(v) if err != nil { - return fmt.Errorf("%s | %w", "RulesCount", err) + return fmt.Errorf("%s | %w", "RuleTotalCount", err) } - s.RulesCount = value + s.RuleTotalCount = value case float64: f := int(v) - s.RulesCount = f + s.RuleTotalCount = f } case "ruleset_id": @@ -82,7 +92,9 @@ func (s *QueryRulesetListItem) UnmarshalJSON(data []byte) error { // NewQueryRulesetListItem returns a QueryRulesetListItem. func NewQueryRulesetListItem() *QueryRulesetListItem { - r := &QueryRulesetListItem{} + r := &QueryRulesetListItem{ + RuleCriteriaTypesCounts: make(map[string]int, 0), + } 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 d8f969b704..6f21a5f6a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // QueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L580-L700 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L580-L700 type QueryStringQuery struct { // AllowLeadingWildcard If `true`, the wildcard characters `*` and `?` are allowed as the first // character of the query string. 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 new file mode 100644 index 0000000000..c621246c59 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryuser.go @@ -0,0 +1,127 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// QueryUser type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/query_user/types.ts#L103-L105 +type QueryUser struct { + Email *string `json:"email,omitempty"` + Enabled bool `json:"enabled"` + FullName *string `json:"full_name,omitempty"` + Metadata Metadata `json:"metadata"` + ProfileUid *string `json:"profile_uid,omitempty"` + Roles []string `json:"roles"` + Sort_ []FieldValue `json:"_sort,omitempty"` + Username string `json:"username"` +} + +func (s *QueryUser) 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 "email": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Email", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Email = &o + + 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 "full_name": + if err := dec.Decode(&s.FullName); err != nil { + return fmt.Errorf("%s | %w", "FullName", err) + } + + case "metadata": + if err := dec.Decode(&s.Metadata); err != nil { + return fmt.Errorf("%s | %w", "Metadata", err) + } + + case "profile_uid": + if err := dec.Decode(&s.ProfileUid); err != nil { + return fmt.Errorf("%s | %w", "ProfileUid", err) + } + + case "roles": + if err := dec.Decode(&s.Roles); err != nil { + return fmt.Errorf("%s | %w", "Roles", err) + } + + case "_sort": + if err := dec.Decode(&s.Sort_); err != nil { + return fmt.Errorf("%s | %w", "Sort_", err) + } + + case "username": + if err := dec.Decode(&s.Username); err != nil { + return fmt.Errorf("%s | %w", "Username", err) + } + + } + } + return nil +} + +// NewQueryUser returns a QueryUser. +func NewQueryUser() *QueryUser { + r := &QueryUser{} + + return r +} 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 f4becf1a21..45d5558606 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // QueryVectorBuilder type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Knn.ts#L69-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Knn.ts#L69-L72 type QueryVectorBuilder struct { TextEmbedding *TextEmbedding `json:"text_embedding,omitempty"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querywatch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querywatch.go index 5511ee9c7d..77ec5a7341 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // QueryWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Watch.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5f13fe3161..ad198d2e0b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L282-L292 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 35703c2397..8fe9c5af08 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L420-L431 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/randomscorefunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomscorefunction.go index 0cc5870387..4798e21e8a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RandomScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L127-L130 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L128-L131 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 dc871d10fc..f6bca2d5fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L531-L532 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L535-L536 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 e34fb9bc49..13bf79e12f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L652-L672 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L652-L672 type RangeAggregation struct { // Field The date field whose values are use to build ranges. Field *string `json:"field,omitempty"` @@ -44,7 +44,7 @@ type RangeAggregation struct { Missing *int `json:"missing,omitempty"` // Ranges An array of ranges used to bucket documents. Ranges []AggregationRange `json:"ranges,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *RangeAggregation) UnmarshalJSON(data []byte) error { @@ -115,40 +115,9 @@ func (s *RangeAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 650e1070c9..c56a0b7a3f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // RangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L534-L541 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L538-L545 type RangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 8b9eb00b33..e44f182ea0 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,14 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RangeQuery holds the union for the following types: // +// UntypedRangeQuery // DateRangeQuery // NumberRangeQuery +// TermRangeQuery // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L166-L168 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L161-L170 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 new file mode 100644 index 0000000000..e4f1b4686f --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedatemath.go @@ -0,0 +1,147 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" +) + +// RangeQueryBaseDateMath type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L109-L133 +type RangeQueryBaseDateMath struct { + // Boost Floating point number used to decrease or increase the relevance scores of + // the query. + // Boost values are relative to the default value of 1.0. + // A boost value between 0 and 1.0 decreases the relevance score. + // A value greater than 1.0 increases the relevance score. + Boost *float32 `json:"boost,omitempty"` + From *string `json:"from,omitempty"` + // Gt Greater than. + Gt *string `json:"gt,omitempty"` + // Gte Greater than or equal to. + Gte *string `json:"gte,omitempty"` + // Lt Less than. + Lt *string `json:"lt,omitempty"` + // Lte Less than or equal to. + Lte *string `json:"lte,omitempty"` + QueryName_ *string `json:"_name,omitempty"` + // Relation Indicates how the range query matches values for `range` fields. + Relation *rangerelation.RangeRelation `json:"relation,omitempty"` + To *string `json:"to,omitempty"` +} + +func (s *RangeQueryBaseDateMath) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "boost": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Boost", err) + } + f := float32(value) + s.Boost = &f + case float64: + f := float32(v) + s.Boost = &f + } + + case "from": + if err := dec.Decode(&s.From); err != nil { + return fmt.Errorf("%s | %w", "From", err) + } + + case "gt": + if err := dec.Decode(&s.Gt); err != nil { + return fmt.Errorf("%s | %w", "Gt", err) + } + + case "gte": + if err := dec.Decode(&s.Gte); err != nil { + return fmt.Errorf("%s | %w", "Gte", err) + } + + case "lt": + if err := dec.Decode(&s.Lt); err != nil { + return fmt.Errorf("%s | %w", "Lt", err) + } + + case "lte": + if err := dec.Decode(&s.Lte); err != nil { + return fmt.Errorf("%s | %w", "Lte", err) + } + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "QueryName_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.QueryName_ = &o + + case "relation": + if err := dec.Decode(&s.Relation); err != nil { + return fmt.Errorf("%s | %w", "Relation", err) + } + + case "to": + if err := dec.Decode(&s.To); err != nil { + return fmt.Errorf("%s | %w", "To", err) + } + + } + } + return nil +} + +// NewRangeQueryBaseDateMath returns a RangeQueryBaseDateMath. +func NewRangeQueryBaseDateMath() *RangeQueryBaseDateMath { + r := &RangeQueryBaseDateMath{} + + return r +} 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 new file mode 100644 index 0000000000..8348be88f6 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasedouble.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" +) + +// RangeQueryBasedouble type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L109-L133 +type RangeQueryBasedouble struct { + // Boost Floating point number used to decrease or increase the relevance scores of + // the query. + // Boost values are relative to the default value of 1.0. + // A boost value between 0 and 1.0 decreases the relevance score. + // A value greater than 1.0 increases the relevance score. + Boost *float32 `json:"boost,omitempty"` + From *Float64 `json:"from,omitempty"` + // Gt Greater than. + Gt *Float64 `json:"gt,omitempty"` + // Gte Greater than or equal to. + Gte *Float64 `json:"gte,omitempty"` + // Lt Less than. + Lt *Float64 `json:"lt,omitempty"` + // Lte Less than or equal to. + Lte *Float64 `json:"lte,omitempty"` + QueryName_ *string `json:"_name,omitempty"` + // Relation Indicates how the range query matches values for `range` fields. + Relation *rangerelation.RangeRelation `json:"relation,omitempty"` + To *Float64 `json:"to,omitempty"` +} + +func (s *RangeQueryBasedouble) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "boost": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Boost", err) + } + f := float32(value) + s.Boost = &f + case float64: + f := float32(v) + s.Boost = &f + } + + case "from": + if err := dec.Decode(&s.From); err != nil { + return fmt.Errorf("%s | %w", "From", err) + } + + case "gt": + 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", "Gt", err) + } + f := Float64(value) + s.Gt = &f + case float64: + f := Float64(v) + s.Gt = &f + } + + case "gte": + 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", "Gte", err) + } + f := Float64(value) + s.Gte = &f + case float64: + f := Float64(v) + s.Gte = &f + } + + case "lt": + 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", "Lt", err) + } + f := Float64(value) + s.Lt = &f + case float64: + f := Float64(v) + s.Lt = &f + } + + case "lte": + 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", "Lte", err) + } + f := Float64(value) + s.Lte = &f + case float64: + f := Float64(v) + s.Lte = &f + } + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "QueryName_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.QueryName_ = &o + + case "relation": + if err := dec.Decode(&s.Relation); err != nil { + return fmt.Errorf("%s | %w", "Relation", err) + } + + case "to": + if err := dec.Decode(&s.To); err != nil { + return fmt.Errorf("%s | %w", "To", err) + } + + } + } + return nil +} + +// NewRangeQueryBasedouble returns a RangeQueryBasedouble. +func NewRangeQueryBasedouble() *RangeQueryBasedouble { + r := &RangeQueryBasedouble{} + + return r +} 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 new file mode 100644 index 0000000000..e8dfa00751 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequerybasestring.go @@ -0,0 +1,189 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" +) + +// RangeQueryBasestring type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L109-L133 +type RangeQueryBasestring struct { + // Boost Floating point number used to decrease or increase the relevance scores of + // the query. + // Boost values are relative to the default value of 1.0. + // A boost value between 0 and 1.0 decreases the relevance score. + // A value greater than 1.0 increases the relevance score. + Boost *float32 `json:"boost,omitempty"` + From *string `json:"from,omitempty"` + // Gt Greater than. + Gt *string `json:"gt,omitempty"` + // Gte Greater than or equal to. + Gte *string `json:"gte,omitempty"` + // Lt Less than. + Lt *string `json:"lt,omitempty"` + // Lte Less than or equal to. + Lte *string `json:"lte,omitempty"` + QueryName_ *string `json:"_name,omitempty"` + // Relation Indicates how the range query matches values for `range` fields. + Relation *rangerelation.RangeRelation `json:"relation,omitempty"` + To *string `json:"to,omitempty"` +} + +func (s *RangeQueryBasestring) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "boost": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Boost", err) + } + f := float32(value) + s.Boost = &f + case float64: + f := float32(v) + s.Boost = &f + } + + case "from": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "From", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.From = &o + + case "gt": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Gt", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Gt = &o + + case "gte": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Gte", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Gte = &o + + case "lt": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Lt", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Lt = &o + + case "lte": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Lte", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Lte = &o + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "QueryName_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.QueryName_ = &o + + case "relation": + if err := dec.Decode(&s.Relation); err != nil { + return fmt.Errorf("%s | %w", "Relation", err) + } + + case "to": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "To", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.To = &o + + } + } + return nil +} + +// NewRangeQueryBasestring returns a RangeQueryBasestring. +func NewRangeQueryBasestring() *RangeQueryBasestring { + r := &RangeQueryBasestring{} + + return r +} 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 e7a436cfd1..384c6f4c52 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RankContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Rank.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 107b224c06..b5b919eb71 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L66-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a8bfd68ebc..d3e658477b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L141-L145 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L141-L145 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 c1f6b142a2..118582d706 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,10 +30,10 @@ import ( // RankEvalHitItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L136-L139 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L136-L139 type RankEvalHitItem struct { Hit RankEvalHit `json:"hit"` - Rating Float64 `json:"rating,omitempty"` + Rating *Float64 `json:"rating,omitempty"` } func (s *RankEvalHitItem) UnmarshalJSON(data []byte) error { 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 3c4e1fd713..d897fa0bf1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RankEvalMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L90-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0f46e67a2f..e09c4cb9d6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L125-L134 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L125-L134 type RankEvalMetricDetail struct { // Hits The hits section shows a grouping of the search results with their supplied // ratings 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 3ea0cce8ec..61afa7b966 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDiscountedCumulativeGain type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L66-L77 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4f47b1cebc..54eec8f0ba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricExpectedReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L79-L88 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 28593ecacf..a52d9d3f2d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricMeanReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L60-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7341424506..b349726ab3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L42-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 14eef26722..931071dd4d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricRatingTreshold type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ad36c0ef5c..62f0dd5fa5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L54-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 31b6975672..1f9747ac2c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankEvalQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L111-L114 type RankEvalQuery struct { Query Query `json:"query"` Size *int `json:"size,omitempty"` 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 0714ced7dd..54a16a5f0c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RankEvalRequestItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L98-L109 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 67b50dbaaa..72c2863a37 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RankFeatureFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L264-L264 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L273-L273 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 81b862d375..2c5343be36 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RankFeatureFunctionLinear type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L266-L266 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L275-L275 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 fe957d054c..b1d45ed8cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionLogarithm type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L268-L273 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L277-L282 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 ee01d14505..e89c75f45d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSaturation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L275-L280 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L284-L289 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 36a905b634..12eacd75af 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSigmoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L282-L291 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L291-L300 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 0765517f2f..c9bb41fb82 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // RankFeatureProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L186-L189 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L192-L195 type RankFeatureProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -183,12 +183,6 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -207,6 +201,18 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -534,12 +540,6 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -558,6 +558,18 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturequery.go index 3360ce622a..0760ff1eaa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RankFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L293-L316 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L302-L325 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 aa7f355b80..5f70ab204f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // RankFeaturesProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L191-L194 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L197-L200 type RankFeaturesProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -183,12 +183,6 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -207,6 +201,18 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -534,12 +540,6 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -558,6 +558,18 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/raretermsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/raretermsaggregation.go index 88af3235d2..83cbd07bcc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RareTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L689-L719 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L689-L719 type RareTermsAggregation struct { // Exclude Terms that should be excluded from the aggregation. Exclude []string `json:"exclude,omitempty"` @@ -87,9 +87,40 @@ func (s *RareTermsAggregation) UnmarshalJSON(data []byte) error { } case "include": - if err := dec.Decode(&s.Include); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Include", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + include_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Include", err) + } + + switch t { + + case "num_partitions", "partition": + o := NewTermsPartition() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + s.Include = o + break include_field + + } + } + if s.Include == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Include); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + } case "max_doc_count": var tmp any 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 0650b697e1..9d9b2af32f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RateAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L741-L745 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L748-L752 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 7038ce8eed..b91547a2db 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // RateAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L230-L241 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L230-L241 type RateAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -44,7 +44,7 @@ type RateAggregation struct { Missing Missing `json:"missing,omitempty"` // Mode How the rate is calculated. Mode *ratemode.RateMode `json:"mode,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // Unit The interval used to calculate the rate. // By default, the interval of the `date_histogram` is used. Unit *calendarinterval.CalendarInterval `json:"unit,omitempty"` @@ -93,40 +93,9 @@ func (s *RateAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "unit": if err := dec.Decode(&s.Unit); err != nil { 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 a6f08e5514..9c2bd11800 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ReadException type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/_types/FollowIndexStats.ts#L71-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 afeb429fd8..d9a4bcfa95 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ReadOnlyUrlRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L60-L63 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dc8658c1b7..506fea6974 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ReadOnlyUrlRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L110-L115 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3523dbd8de..825eff9e8e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RealmCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L266-L268 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L266-L268 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 c20a9d18ce..4b2ca43c7f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RealmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RealmInfo.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 630bac8e4b..89c052dadd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Recording type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d22e27e5d6..40ee054805 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RecoveryBytes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L38-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fcd44140e3..922a0ce108 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RecoveryFiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 540688bce9..18d0b18836 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RecoveryIndexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L64-L74 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dfa86db6ae..736d071494 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RecoveryOrigin type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L76-L89 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dec807602b..16055cc020 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RecoveryRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/recovery/types.ts#L24-L155 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 448e156b57..e323ea7f4c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RecoveryStartStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L91-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 668c39331a..2397742cdf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RecoveryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L228-L233 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5f2a7b097f..7ba8ce67e1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RecoveryStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L98-L100 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/recovery/types.ts#L98-L100 type RecoveryStatus struct { Shards []ShardRecovery `json:"shards"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/refreshstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/refreshstats.go index 7bf7795493..7015fc2434 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RefreshStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L235-L242 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d24f7370f2..71a230e5f9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RegexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L180-L191 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a3f135a0d6..b2f82ed1ab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RegexpQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L185-L215 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L187-L217 type RegexpQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -63,7 +63,10 @@ func (s *RegexpQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Value) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 new file mode 100644 index 0000000000..585aab54fd --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexvalidation.go @@ -0,0 +1,95 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RegexValidation type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L78-L81 +type RegexValidation struct { + Constraint string `json:"constraint"` + Type string `json:"type,omitempty"` +} + +func (s *RegexValidation) 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 "constraint": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Constraint", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Constraint = 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 RegexValidation) MarshalJSON() ([]byte, error) { + type innerRegexValidation RegexValidation + tmp := innerRegexValidation{ + Constraint: s.Constraint, + Type: s.Type, + } + + tmp.Type = "regex" + + return json.Marshal(tmp) +} + +// NewRegexValidation returns a RegexValidation. +func NewRegexValidation() *RegexValidation { + r := &RegexValidation{} + + 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 78e66031c7..7c4863a9e0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RegressionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L82-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5883a33cc0..4ee12d024a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // ReindexDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/types.ts#L39-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ca6a7419ec..22dba1ff06 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ReindexNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex_rethrottle/types.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d39abb1a04..cde9ee2a5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ReindexSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/types.ts#L66-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 de6c8c3f40..fe350d60de 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ReindexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex_rethrottle/types.ts#L37-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 beeec30c3a..76194cd08e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ReindexTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex_rethrottle/types.ts#L87-L98 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3f32bb2772..6605baf5a9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ReloadDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/reload_search_analyzers/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5d432a385d..e3e2032f5f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ReloadResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/reload_search_analyzers/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0cd2826f21..d9dd5c661b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RelocationFailureInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L73-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Node.ts#L73-L75 type RelocationFailureInfo struct { FailedAttempts int `json:"failed_attempts"` } 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 8530633775..c940da70ae 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RemoteSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/types.ts#L99-L125 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3e29d21cde..e6a421cb55 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RemoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/types.ts#L97-L122 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8c58509905..4ec63206ea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RemoveDuplicatesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L303-L305 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L303-L305 type RemoveDuplicatesTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeindexaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeindexaction.go index 19582b8737..a67a011162 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RemoveIndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/types.ts#L124-L139 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fce6e015e2..5a0b7cb0af 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RemoveProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L941-L955 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L941-L955 type RemoveProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 01facddc2f..5f0811d201 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RenameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L957-L973 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L957-L973 type RenameProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 ce418c26ba..5442360c03 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ReportingEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L224-L232 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e003ac494f..3a1ee371cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RepositoriesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/repositories/types.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dc5bc3f86f..0d91d67829 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,5 +29,5 @@ package types // ReadOnlyUrlRepository // SourceOnlyRepository // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f72994c72e..382414af73 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // RepositoryIntegrityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L134-L138 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L135-L139 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 eeaf0a1815..c81a6f62ab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RepositoryIntegrityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L139-L143 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L140-L144 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 d957cf9395..0747ea750b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RepositoryLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9083b5e794..ce54a46bda 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RepositoryMeteringInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7b6d2b436b..3890a7203e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RequestCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L244-L250 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 45836513dd..5a5d58d817 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RequestCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a1a5c7cdb7..70a91e195c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // MultisearchHeader // TemplateConfig // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch_template/types.ts#L25-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e461ccac63..eb6d81c420 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RerouteDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9a56b1238c..d101aa69c9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RerouteExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L92-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8fd471d109..df90f7677f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RerouteParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L98-L105 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4ddb6a97b8..bc66be796b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RerouteProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L975-L1003 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L975-L1003 type RerouteProcessor struct { // Dataset Field references or a static value for the dataset part of the data stream // name. 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 1a74360b0d..51f89a4f37 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Rescore type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/rescoring.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d088c3a3a6..bb2d131d67 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // RescoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/rescoring.ts#L40-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3bbf381f69..a20d0a3a48 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ReservedSize type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L71-L76 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L71-L76 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 1df2325b4c..802b3c30b6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ResolveClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9947c98df6..5c1c0a108b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexAliasItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 04b96a036d..6c6811f96a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexDataStreamsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e432945702..f93047f1dc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 63b20606c3..1f173b64a6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ResourcePrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L47-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 77e2f934a5..fe2acb568b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ResponseBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/SearchResponse.ts#L38-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/SearchResponse.ts#L38-L54 type ResponseBody struct { Aggregations map[string]Aggregate `json:"aggregations,omitempty"` Clusters_ *ClusterStatistics `json:"_clusters,omitempty"` 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 74514f2d34..7ff389a024 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L37-L81 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. @@ -39,7 +39,7 @@ type ResponseItem struct { ForcedRefresh *bool `json:"forced_refresh,omitempty"` Get *InlineGetDictUserDefined `json:"get,omitempty"` // Id_ The document ID associated with the operation. - Id_ string `json:"_id,omitempty"` + Id_ *string `json:"_id,omitempty"` // Index_ Name of the index associated with the operation. // If the operation targeted a data stream, this is the backing index into which // the document was written. @@ -111,7 +111,7 @@ func (s *ResponseItem) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Id_ = o + s.Id_ = &o case "_index": var tmp json.RawMessage 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 99274c6e80..1aafeeb532 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Retention type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L84-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6366e990da..df678b6f95 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RetentionLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L65-L67 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d2f3470821..26a2f6ee39 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RetentionPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L88-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 971cb50ecf..4be165e345 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RetentionPolicyContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L80-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 715aea1020..bfdcc0d95b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Retries type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retries.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d7ddef4277..6f8a9b7025 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RetrieverContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retriever.ts#L26-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retriever.ts#L26-L36 type RetrieverContainer struct { // Knn A retriever that replaces the functionality of a knn search. Knn *KnnRetriever `json:"knn,omitempty"` 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 5630ea1968..9dc9368746 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ReverseNestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L489-L490 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L493-L494 type ReverseNestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 fade9b406d..5149b2d6a2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ReverseNestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L721-L727 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L721-L727 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 31616ec935..59b300ed38 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ReverseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L307-L309 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L307-L309 type ReverseTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/role.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/role.go index b68d8d5942..2da4d6eb13 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Role type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_role/types.ts#L29-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1055d2c4b1..4e29bced30 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,17 +26,22 @@ import ( "errors" "fmt" "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" ) // RoleDescriptor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleDescriptor.ts#L28-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleDescriptor.ts#L28-L61 type RoleDescriptor struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` // Cluster A list of cluster privileges. These privileges define the cluster level // actions that API keys are able to execute. - Cluster []string `json:"cluster,omitempty"` + Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"` + // Description Optional description of the role descriptor + Description *string `json:"description,omitempty"` // Global An object defining global privileges. A global privilege is a form of cluster // privilege that is request-aware. Support for global privileges is currently // limited to the management of application privileges. @@ -46,7 +51,9 @@ type RoleDescriptor struct { // Metadata Optional meta-data. Within the metadata object, keys that begin with `_` are // reserved for system usage. Metadata Metadata `json:"metadata,omitempty"` - // RunAs A list of users that the API keys can impersonate. + // RunAs A list of users that the API keys 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. RunAs []string `json:"run_as,omitempty"` TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"` } @@ -76,6 +83,18 @@ func (s *RoleDescriptor) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Cluster", 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 "global": rawMsg := json.RawMessage{} dec.Decode(&rawMsg) 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 0ddf5daf45..52b9380152 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,17 +26,22 @@ import ( "errors" "fmt" "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" ) // RoleDescriptorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleDescriptor.ts#L58-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleDescriptor.ts#L63-L95 type RoleDescriptorRead struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` // Cluster A list of cluster privileges. These privileges define the cluster level // actions that API keys are able to execute. - Cluster []string `json:"cluster"` + Cluster []clusterprivilege.ClusterPrivilege `json:"cluster"` + // Description Optional description of the role descriptor + Description *string `json:"description,omitempty"` // Global An object defining global privileges. A global privilege is a form of cluster // privilege that is request-aware. Support for global privileges is currently // limited to the management of application privileges. @@ -76,6 +81,18 @@ func (s *RoleDescriptorRead) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Cluster", 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 "global": rawMsg := json.RawMessage{} dec.Decode(&rawMsg) 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 05514fa0d2..2e8c8a5c48 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RoleDescriptorWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_accounts/types.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3f4ff1e62b..e1b7b17df2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RoleMappingRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleMappingRule.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleMappingRule.ts#L23-L34 type RoleMappingRule struct { All []RoleMappingRule `json:"all,omitempty"` Any []RoleMappingRule `json:"any,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolequerycontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolequerycontainer.go new file mode 100644 index 0000000000..09f47183b1 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolequerycontainer.go @@ -0,0 +1,178 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// RoleQueryContainer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` + // Exists Returns roles that contain an indexed value for a field. + Exists *ExistsQuery `json:"exists,omitempty"` + // Ids Returns roles based on their IDs. + // This query uses role document IDs stored in the `_id` field. + Ids *IdsQuery `json:"ids,omitempty"` + // Match Returns roles that match a provided text, number, date or boolean value. + // The provided text is analyzed before matching. + Match map[string]MatchQuery `json:"match,omitempty"` + // MatchAll Matches all roles, giving them all a `_score` of 1.0. + MatchAll *MatchAllQuery `json:"match_all,omitempty"` + // Prefix Returns roles that contain a specific prefix in a provided field. + Prefix map[string]PrefixQuery `json:"prefix,omitempty"` + // Range Returns roles that contain terms within a provided range. + Range map[string]RangeQuery `json:"range,omitempty"` + // SimpleQueryString Returns roles based on a provided query string, using a parser with a limited + // but fault-tolerant syntax. + SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"` + // Term Returns roles that contain an exact term in a provided field. + // To return a document, the query term must exactly match the queried field's + // value, including whitespace and capitalization. + Term map[string]TermQuery `json:"term,omitempty"` + // Terms Returns roles that contain one or more exact terms in a provided field. + // To return a document, one or more terms must exactly match a field value, + // including whitespace and capitalization. + Terms *TermsQuery `json:"terms,omitempty"` + // Wildcard Returns roles that contain terms matching a wildcard pattern. + Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"` +} + +func (s *RoleQueryContainer) 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 "bool": + if err := dec.Decode(&s.Bool); err != nil { + return fmt.Errorf("%s | %w", "Bool", err) + } + + case "exists": + if err := dec.Decode(&s.Exists); err != nil { + return fmt.Errorf("%s | %w", "Exists", err) + } + + case "ids": + if err := dec.Decode(&s.Ids); err != nil { + return fmt.Errorf("%s | %w", "Ids", err) + } + + case "match": + if s.Match == nil { + s.Match = make(map[string]MatchQuery, 0) + } + if err := dec.Decode(&s.Match); err != nil { + return fmt.Errorf("%s | %w", "Match", err) + } + + case "match_all": + if err := dec.Decode(&s.MatchAll); err != nil { + return fmt.Errorf("%s | %w", "MatchAll", err) + } + + case "prefix": + if s.Prefix == nil { + s.Prefix = make(map[string]PrefixQuery, 0) + } + if err := dec.Decode(&s.Prefix); err != nil { + return fmt.Errorf("%s | %w", "Prefix", err) + } + + case "range": + if s.Range == nil { + s.Range = make(map[string]RangeQuery, 0) + } + messages := make(map[string]json.RawMessage) + err := dec.Decode(&messages) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + + untyped := NewUntypedRangeQuery() + for key, message := range messages { + err := json.Unmarshal(message, &untyped) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + s.Range[key] = untyped + } + + case "simple_query_string": + if err := dec.Decode(&s.SimpleQueryString); err != nil { + return fmt.Errorf("%s | %w", "SimpleQueryString", err) + } + + case "term": + if s.Term == nil { + s.Term = make(map[string]TermQuery, 0) + } + if err := dec.Decode(&s.Term); err != nil { + return fmt.Errorf("%s | %w", "Term", err) + } + + case "terms": + if err := dec.Decode(&s.Terms); err != nil { + return fmt.Errorf("%s | %w", "Terms", err) + } + + case "wildcard": + if s.Wildcard == nil { + s.Wildcard = make(map[string]WildcardQuery, 0) + } + if err := dec.Decode(&s.Wildcard); err != nil { + return fmt.Errorf("%s | %w", "Wildcard", err) + } + + } + } + return nil +} + +// NewRoleQueryContainer returns a RoleQueryContainer. +func NewRoleQueryContainer() *RoleQueryContainer { + r := &RoleQueryContainer{ + Match: make(map[string]MatchQuery, 0), + Prefix: make(map[string]PrefixQuery, 0), + Range: make(map[string]RangeQuery, 0), + Term: make(map[string]TermQuery, 0), + Wildcard: make(map[string]WildcardQuery, 0), + } + + return r +} 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 c289c6b41b..8423c19f38 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,89 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/templateformat" ) // RoleTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleTemplate.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/RoleTemplate.ts#L28-L31 type RoleTemplate struct { Format *templateformat.TemplateFormat `json:"format,omitempty"` Template Script `json:"template"` } -func (s *RoleTemplate) UnmarshalJSON(data []byte) error { - - dec := json.NewDecoder(bytes.NewReader(data)) - - for { - t, err := dec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return err - } - - switch t { - - case "format": - if err := dec.Decode(&s.Format); err != nil { - return fmt.Errorf("%s | %w", "Format", err) - } - - case "template": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Template", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Template", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Template", err) - } - s.Template = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Template", err) - } - s.Template = o - - } - } - - } - } - return nil -} - // NewRoleTemplate returns a RoleTemplate. func NewRoleTemplate() *RoleTemplate { r := &RoleTemplate{} 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 fb9b9cbdbb..bcbf5cd2b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // Query // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L182-L183 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L293-L294 type RoleTemplateInlineQuery any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinescript.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinescript.go deleted file mode 100644 index 61c2f3e9d9..0000000000 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinescript.go +++ /dev/null @@ -1,119 +0,0 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -// Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -package types - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" - - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" -) - -// RoleTemplateInlineScript type. -// -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L175-L180 -type RoleTemplateInlineScript struct { - Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"` - Options map[string]string `json:"options,omitempty"` - // Params Specifies any named parameters that are passed into the script as variables. - // Use parameters instead of hard-coded values to decrease compile time. - Params map[string]json.RawMessage `json:"params,omitempty"` - Source RoleTemplateInlineQuery `json:"source"` -} - -func (s *RoleTemplateInlineScript) UnmarshalJSON(data []byte) error { - - if !bytes.HasPrefix(data, []byte(`{`)) { - err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Source) - return err - } - - 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 "lang": - if err := dec.Decode(&s.Lang); err != nil { - return fmt.Errorf("%s | %w", "Lang", err) - } - - case "options": - if s.Options == nil { - s.Options = make(map[string]string, 0) - } - if err := dec.Decode(&s.Options); err != nil { - return fmt.Errorf("%s | %w", "Options", err) - } - - case "params": - if s.Params == nil { - s.Params = make(map[string]json.RawMessage, 0) - } - if err := dec.Decode(&s.Params); err != nil { - return fmt.Errorf("%s | %w", "Params", err) - } - - case "source": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - o := NewQuery() - if err := localDec.Decode(&o); err != nil { - return err - } - s.Source = *o - - default: - if err := localDec.Decode(&s.Source); err != nil { - return fmt.Errorf("%s | %w", "Source", err) - } - } - - } - } - return nil -} - -// NewRoleTemplateInlineScript returns a RoleTemplateInlineScript. -func NewRoleTemplateInlineScript() *RoleTemplateInlineScript { - r := &RoleTemplateInlineScript{ - Options: make(map[string]string, 0), - Params: make(map[string]json.RawMessage, 0), - } - - return r -} 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 b0bc5c523d..50f6ecd8c8 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,21 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" -) - // RoleTemplateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L163-L173 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L261-L271 type RoleTemplateQuery struct { // Template When you create a role, you can specify a query that defines the document // level security permissions. You can optionally @@ -40,63 +32,7 @@ type RoleTemplateQuery struct { // can specify inline, stored, or file-based // templates and define custom parameters. You access the details for the // current authenticated user through the _user parameter. - Template RoleTemplateScript `json:"template,omitempty"` -} - -func (s *RoleTemplateQuery) 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 "template": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Template", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Template", err) - } - - switch t { - - case "lang", "options", "source": - o := NewRoleTemplateInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Template", err) - } - s.Template = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Template", err) - } - s.Template = o - - } - } - - } - } - return nil + Template *RoleTemplateScript `json:"template,omitempty"` } // NewRoleTemplateQuery returns a RoleTemplateQuery. 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 8d046cbd16..1f3f9d4128 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,14 +16,128 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types -// RoleTemplateScript holds the union for the following types: -// -// RoleTemplateInlineScript -// StoredScriptId +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" +) + +// RoleTemplateScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L185-L186 -type RoleTemplateScript any +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L273-L291 +type RoleTemplateScript struct { + // Id The `id` for a stored script. + Id *string `json:"id,omitempty"` + // Lang Specifies the language the script is written in. + Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"` + Options map[string]string `json:"options,omitempty"` + // Params Specifies any named parameters that are passed into the script as variables. + // Use parameters instead of hard-coded values to decrease compile time. + Params map[string]json.RawMessage `json:"params,omitempty"` + Source RoleTemplateInlineQuery `json:"source,omitempty"` +} + +func (s *RoleTemplateScript) UnmarshalJSON(data []byte) error { + + if !bytes.HasPrefix(data, []byte(`{`)) { + err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Source) + return err + } + + 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 "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "lang": + if err := dec.Decode(&s.Lang); err != nil { + return fmt.Errorf("%s | %w", "Lang", err) + } + + case "options": + if s.Options == nil { + s.Options = make(map[string]string, 0) + } + if err := dec.Decode(&s.Options); err != nil { + return fmt.Errorf("%s | %w", "Options", err) + } + + case "params": + if s.Params == nil { + s.Params = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.Params); err != nil { + return fmt.Errorf("%s | %w", "Params", err) + } + + case "source": + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", 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", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + } + + } + } + return nil +} + +// NewRoleTemplateScript returns a RoleTemplateScript. +func NewRoleTemplateScript() *RoleTemplateScript { + r := &RoleTemplateScript{ + Options: make(map[string]string, 0), + Params: make(map[string]json.RawMessage, 0), + } + + return r +} 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 new file mode 100644 index 0000000000..22cb116ab2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloveraction.go @@ -0,0 +1,163 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RolloverAction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L102-L113 +type RolloverAction struct { + MaxAge Duration `json:"max_age,omitempty"` + MaxDocs *int64 `json:"max_docs,omitempty"` + MaxPrimaryShardDocs *int64 `json:"max_primary_shard_docs,omitempty"` + MaxPrimaryShardSize ByteSize `json:"max_primary_shard_size,omitempty"` + MaxSize ByteSize `json:"max_size,omitempty"` + MinAge Duration `json:"min_age,omitempty"` + MinDocs *int64 `json:"min_docs,omitempty"` + MinPrimaryShardDocs *int64 `json:"min_primary_shard_docs,omitempty"` + MinPrimaryShardSize ByteSize `json:"min_primary_shard_size,omitempty"` + MinSize ByteSize `json:"min_size,omitempty"` +} + +func (s *RolloverAction) 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_age": + if err := dec.Decode(&s.MaxAge); err != nil { + return fmt.Errorf("%s | %w", "MaxAge", err) + } + + case "max_docs": + 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", "MaxDocs", err) + } + s.MaxDocs = &value + case float64: + f := int64(v) + s.MaxDocs = &f + } + + case "max_primary_shard_docs": + 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", "MaxPrimaryShardDocs", err) + } + s.MaxPrimaryShardDocs = &value + case float64: + f := int64(v) + s.MaxPrimaryShardDocs = &f + } + + case "max_primary_shard_size": + if err := dec.Decode(&s.MaxPrimaryShardSize); err != nil { + return fmt.Errorf("%s | %w", "MaxPrimaryShardSize", err) + } + + case "max_size": + if err := dec.Decode(&s.MaxSize); err != nil { + return fmt.Errorf("%s | %w", "MaxSize", err) + } + + case "min_age": + if err := dec.Decode(&s.MinAge); err != nil { + return fmt.Errorf("%s | %w", "MinAge", err) + } + + case "min_docs": + 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", "MinDocs", err) + } + s.MinDocs = &value + case float64: + f := int64(v) + s.MinDocs = &f + } + + case "min_primary_shard_docs": + 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", "MinPrimaryShardDocs", err) + } + s.MinPrimaryShardDocs = &value + case float64: + f := int64(v) + s.MinPrimaryShardDocs = &f + } + + case "min_primary_shard_size": + if err := dec.Decode(&s.MinPrimaryShardSize); err != nil { + return fmt.Errorf("%s | %w", "MinPrimaryShardSize", err) + } + + case "min_size": + if err := dec.Decode(&s.MinSize); err != nil { + return fmt.Errorf("%s | %w", "MinSize", err) + } + + } + } + return nil +} + +// NewRolloverAction returns a RolloverAction. +func NewRolloverAction() *RolloverAction { + r := &RolloverAction{} + + return r +} 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 f9345e1cc9..733f5c3d6e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/rollover/types.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c08ef785c3..0ac9e987cf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RollupCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_caps/types.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_caps/types.ts#L25-L27 type RollupCapabilities struct { RollupJobs []RollupCapabilitySummary `json:"rollup_jobs"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilitysummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilitysummary.go index d4e83a2efb..4f96583560 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RollupCapabilitySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_caps/types.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_caps/types.ts#L29-L34 type RollupCapabilitySummary struct { Fields map[string][]RollupFieldSummary `json:"fields"` IndexPattern string `json:"index_pattern"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupfieldsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupfieldsummary.go index 7ea2865e3d..ee0271f50f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RollupFieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_caps/types.ts#L36-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_caps/types.ts#L36-L40 type RollupFieldSummary struct { Agg string `json:"agg"` CalendarInterval Duration `json:"calendar_interval,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjob.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjob.go index 5bf2689991..cd3ac70ffd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RollupJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ce35d5db50..0de6aa9cc4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RollupJobConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L34-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e5cd51d900..712e7d2b5c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RollupJobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L45-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b3bbd4d208..ad2d546770 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // RollupJobStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L60-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5cc9b84dae..9b362e159e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_index_caps/types.ts#L28-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 86d12145cc..ea943d2563 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummaryField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_index_caps/types.ts#L35-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/rollup/get_rollup_index_caps/types.ts#L35-L39 type RollupJobSummaryField struct { Agg string `json:"agg"` CalendarInterval Duration `json:"calendar_interval,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/routingfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/routingfield.go index 4a153ac097..4c55753ad7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RoutingField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 58dd56f2e4..56eca05e70 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,13 +31,13 @@ import ( // RrfRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Rank.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 RankConstant *int64 `json:"rank_constant,omitempty"` - // WindowSize Size of the individual result sets per query - WindowSize *int64 `json:"window_size,omitempty"` + // RankWindowSize Size of the individual result sets per query + RankWindowSize *int64 `json:"rank_window_size,omitempty"` } func (s *RrfRank) UnmarshalJSON(data []byte) error { @@ -70,19 +70,19 @@ func (s *RrfRank) UnmarshalJSON(data []byte) error { s.RankConstant = &f } - case "window_size": + case "rank_window_size": 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", "WindowSize", err) + return fmt.Errorf("%s | %w", "RankWindowSize", err) } - s.WindowSize = &value + s.RankWindowSize = &value case float64: f := int64(v) - s.WindowSize = &f + s.RankWindowSize = &f } } 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 63d1302959..d8da939898 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,18 +31,18 @@ import ( // RRFRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retriever.ts#L73-L80 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retriever.ts#L73-L80 type RRFRetriever struct { // Filter Query to filter the documents that can match. Filter []Query `json:"filter,omitempty"` // RankConstant This value determines how much influence documents in individual result sets // per query have over the final ranked result set. RankConstant *int `json:"rank_constant,omitempty"` + // RankWindowSize This value determines the size of the individual result sets per query. + RankWindowSize *int `json:"rank_window_size,omitempty"` // Retrievers A list of child retrievers to specify which sets of returned top documents // will have the RRF formula applied to them. Retrievers []RetrieverContainer `json:"retrievers"` - // WindowSize This value determines the size of the individual result sets per query. - WindowSize *int `json:"window_size,omitempty"` } func (s *RRFRetriever) UnmarshalJSON(data []byte) error { @@ -92,12 +92,7 @@ func (s *RRFRetriever) UnmarshalJSON(data []byte) error { s.RankConstant = &f } - case "retrievers": - if err := dec.Decode(&s.Retrievers); err != nil { - return fmt.Errorf("%s | %w", "Retrievers", err) - } - - case "window_size": + case "rank_window_size": var tmp any dec.Decode(&tmp) @@ -105,12 +100,17 @@ func (s *RRFRetriever) UnmarshalJSON(data []byte) error { case string: value, err := strconv.Atoi(v) if err != nil { - return fmt.Errorf("%s | %w", "WindowSize", err) + return fmt.Errorf("%s | %w", "RankWindowSize", err) } - s.WindowSize = &value + s.RankWindowSize = &value case float64: f := int(v) - s.WindowSize = &f + s.RankWindowSize = &f + } + + case "retrievers": + if err := dec.Decode(&s.Retrievers); err != nil { + return fmt.Errorf("%s | %w", "Retrievers", err) } } 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 4a94c90826..04850d723f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // RuleCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L52-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1d9becbafe..8770d8bc31 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RuleQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L369-L373 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L381-L385 type RuleQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -42,7 +42,7 @@ type RuleQuery struct { MatchCriteria json.RawMessage `json:"match_criteria,omitempty"` Organic *Query `json:"organic,omitempty"` QueryName_ *string `json:"_name,omitempty"` - RulesetId string `json:"ruleset_id"` + RulesetIds []string `json:"ruleset_ids"` } func (s *RuleQuery) UnmarshalJSON(data []byte) error { @@ -98,9 +98,9 @@ func (s *RuleQuery) UnmarshalJSON(data []byte) error { } s.QueryName_ = &o - case "ruleset_id": - if err := dec.Decode(&s.RulesetId); err != nil { - return fmt.Errorf("%s | %w", "RulesetId", err) + case "ruleset_ids": + if err := dec.Decode(&s.RulesetIds); err != nil { + return fmt.Errorf("%s | %w", "RulesetIds", err) } } 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 6610e488c4..2d83c9334f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // RunningStateSearchInterval type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L213-L230 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/Datafeed.ts#L213-L230 type RunningStateSearchInterval struct { // End The end time. End Duration `json:"end,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefield.go index 4bff0e07f9..a2322eb02a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // RuntimeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/RuntimeFields.ts#L26-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/RuntimeFields.ts#L26-L48 type RuntimeField struct { // FetchFields For type `lookup` FetchFields []RuntimeFieldFetchFields `json:"fetch_fields,omitempty"` @@ -42,7 +42,7 @@ type RuntimeField struct { // InputField For type `lookup` InputField *string `json:"input_field,omitempty"` // Script Painless script executed at query time. - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // TargetField For type `lookup` TargetField *string `json:"target_field,omitempty"` // TargetIndex For type `lookup` @@ -90,40 +90,9 @@ func (s *RuntimeField) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "target_field": if err := dec.Decode(&s.TargetField); err != nil { 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 25753f8591..15583b6565 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldFetchFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/RuntimeFields.ts#L50-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/RuntimeFields.ts#L50-L54 type RuntimeFieldFetchFields struct { Field string `json:"field"` Format *string `json:"format,omitempty"` @@ -45,7 +45,10 @@ func (s *RuntimeFieldFetchFields) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Field) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 528c8f428a..2f5df043f0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // RuntimeFields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/RuntimeFields.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c574ffa85e..07feb7ff06 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldsType type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L279-L294 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L279-L294 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/s3repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repository.go index a8ca0f6987..14ab23352d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // S3Repository type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b23a8995d2..4d1554c824 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // S3RepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L93-L102 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0580669996..b84e0caf1a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SampleDiversity type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/ExploreControls.ts#L51-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 de08965e5a..1d4728d0b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // SamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L498-L499 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L502-L503 type SamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 cffe51f9e7..529cf20d7c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L729-L735 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L729-L735 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 38f8be41e3..99dbe84773 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -28,5 +28,5 @@ package types // bool // nil // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 530cbe84d5..5bd032ffc3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // ScaledFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L176-L180 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L182-L186 type ScaledFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -52,7 +52,7 @@ type ScaledFloatNumberProperty struct { OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` ScalingFactor *Float64 `json:"scaling_factor,omitempty"` - Script Script `json:"script,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. @@ -262,12 +262,6 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -286,6 +280,18 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -648,12 +654,6 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -672,6 +672,18 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -860,40 +872,9 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 2418b5f52f..3de2564156 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ScheduleContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L80-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3d26bcc49b..32c6878db6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // HourAndMinute // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L98-L103 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ba4113ac82..130f5b6764 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ScheduleTriggerEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L93-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..8e5d850278 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulingconfiguration.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +// SchedulingConfiguration type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L231-L235 +type SchedulingConfiguration struct { + AccessControl *ConnectorScheduling `json:"access_control,omitempty"` + Full *ConnectorScheduling `json:"full,omitempty"` + Incremental *ConnectorScheduling `json:"incremental,omitempty"` +} + +// NewSchedulingConfiguration returns a SchedulingConfiguration. +func NewSchedulingConfiguration() *SchedulingConfiguration { + r := &SchedulingConfiguration{} + + return r +} 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 9a2704e537..68bdcb2cc1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // ScoreSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L55-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L55-L57 type ScoreSort struct { Order *sortorder.SortOrder `json:"order,omitempty"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/script.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/script.go index d31d924a9e..fe558b4b7d 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,14 +16,113 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types -// Script holds the union for the following types: -// -// InlineScript -// StoredScriptId +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" +) + +// Script type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L88-L89 -type Script any +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Scripting.ts#L73-L97 +type Script struct { + // Id The `id` for a stored script. + Id *string `json:"id,omitempty"` + // Lang Specifies the language the script is written in. + Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"` + Options map[string]string `json:"options,omitempty"` + // Params Specifies any named parameters that are passed into the script as variables. + // Use parameters instead of hard-coded values to decrease compile time. + Params map[string]json.RawMessage `json:"params,omitempty"` + // Source The script source. + Source *string `json:"source,omitempty"` +} + +func (s *Script) UnmarshalJSON(data []byte) error { + + if !bytes.HasPrefix(data, []byte(`{`)) { + if !bytes.HasPrefix(data, []byte(`"`)) { + data = append([]byte{'"'}, data...) + data = append(data, []byte{'"'}...) + } + err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Source) + if err != nil { + return err + } + return nil + } + + 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 "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "lang": + if err := dec.Decode(&s.Lang); err != nil { + return fmt.Errorf("%s | %w", "Lang", err) + } + + case "options": + if s.Options == nil { + s.Options = make(map[string]string, 0) + } + if err := dec.Decode(&s.Options); err != nil { + return fmt.Errorf("%s | %w", "Options", err) + } + + case "params": + if s.Params == nil { + s.Params = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.Params); err != nil { + return fmt.Errorf("%s | %w", "Params", err) + } + + case "source": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Source = &o + + } + } + return nil +} + +// NewScript returns a Script. +func NewScript() *Script { + r := &Script{ + Options: make(map[string]string, 0), + Params: make(map[string]json.RawMessage, 0), + } + + return r +} 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 77a65ca742..45dc16fed6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ScriptCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L1031-L1045 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L1031-L1045 type ScriptCache struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` 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 ac5aad273d..d46c31697c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ScriptCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L76-L84 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 de6005bf3c..c8f2974cea 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,81 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" -) - // ScriptedHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L768-L770 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L768-L770 type ScriptedHeuristic struct { Script Script `json:"script"` } -func (s *ScriptedHeuristic) 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 "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } - - } - } - return nil -} - // NewScriptedHeuristic returns a ScriptedHeuristic. func NewScriptedHeuristic() *ScriptedHeuristic { r := &ScriptedHeuristic{} 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 0af05977e3..8cc9413a99 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L649-L652 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L653-L656 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 c4a69aa6de..3260f47329 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,20 +30,20 @@ import ( // ScriptedMetricAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L254-L280 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L254-L280 type ScriptedMetricAggregation struct { // CombineScript Runs once on each shard after document collection is complete. // Allows the aggregation to consolidate the state returned from each shard. - CombineScript Script `json:"combine_script,omitempty"` + CombineScript *Script `json:"combine_script,omitempty"` // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` // InitScript Runs prior to any collection of documents. // Allows the aggregation to set up any initial state. - InitScript Script `json:"init_script,omitempty"` + InitScript *Script `json:"init_script,omitempty"` // MapScript Run once per document collected. // If no `combine_script` is specified, the resulting state needs to be stored // in the `state` object. - MapScript Script `json:"map_script,omitempty"` + MapScript *Script `json:"map_script,omitempty"` // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` @@ -55,8 +55,8 @@ type ScriptedMetricAggregation struct { // results. // The script is provided with access to a variable `states`, which is an array // of the result of the `combine_script` on each shard. - ReduceScript Script `json:"reduce_script,omitempty"` - Script Script `json:"script,omitempty"` + ReduceScript *Script `json:"reduce_script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *ScriptedMetricAggregation) UnmarshalJSON(data []byte) error { @@ -75,40 +75,9 @@ func (s *ScriptedMetricAggregation) UnmarshalJSON(data []byte) error { switch t { case "combine_script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.CombineScript); err != nil { return fmt.Errorf("%s | %w", "CombineScript", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "CombineScript", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "CombineScript", err) - } - s.CombineScript = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "CombineScript", err) - } - s.CombineScript = o - - } - } case "field": if err := dec.Decode(&s.Field); err != nil { @@ -116,76 +85,14 @@ func (s *ScriptedMetricAggregation) UnmarshalJSON(data []byte) error { } case "init_script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.InitScript); err != nil { return fmt.Errorf("%s | %w", "InitScript", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "InitScript", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "InitScript", err) - } - s.InitScript = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "InitScript", err) - } - s.InitScript = o - - } - } case "map_script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.MapScript); err != nil { return fmt.Errorf("%s | %w", "MapScript", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "MapScript", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "MapScript", err) - } - s.MapScript = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "MapScript", err) - } - s.MapScript = o - - } - } case "missing": if err := dec.Decode(&s.Missing); err != nil { @@ -201,76 +108,14 @@ func (s *ScriptedMetricAggregation) UnmarshalJSON(data []byte) error { } case "reduce_script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.ReduceScript); err != nil { return fmt.Errorf("%s | %w", "ReduceScript", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "ReduceScript", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "ReduceScript", err) - } - s.ReduceScript = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "ReduceScript", err) - } - s.ReduceScript = o - - } - } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 2396f26819..313f5bfd01 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ScriptField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L91-L94 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Scripting.ts#L99-L102 type ScriptField struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Script Script `json:"script"` @@ -67,40 +67,9 @@ func (s *ScriptField) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 8900cae55d..5d6568a3d0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Scripting type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L977-L995 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L977-L995 type Scripting struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` 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 a2958cc977..8c0c1cf1aa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ScriptProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1005-L1025 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1005-L1025 type ScriptProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 4e38bc5273..d37e63cff4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ScriptQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L318-L324 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L327-L333 type ScriptQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -89,40 +89,9 @@ func (s *ScriptQuery) UnmarshalJSON(data []byte) error { s.QueryName_ = &o case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 d95a54902c..3f059d13a3 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,82 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" -) - // ScriptScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L120-L125 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L121-L126 type ScriptScoreFunction struct { // Script A script that computes a score. Script Script `json:"script"` } -func (s *ScriptScoreFunction) 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 "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } - - } - } - return nil -} - // NewScriptScoreFunction returns a ScriptScoreFunction. func NewScriptScoreFunction() *ScriptScoreFunction { r := &ScriptScoreFunction{} 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 67aa4ea2ed..5c1e44aadf 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ScriptScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L326-L340 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L335-L349 type ScriptScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -116,40 +116,9 @@ func (s *ScriptScoreQuery) UnmarshalJSON(data []byte) error { s.QueryName_ = &o case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 b8583765a3..8d888f7263 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,17 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptsorttype" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" @@ -34,7 +28,7 @@ import ( // ScriptSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L73-L79 type ScriptSort struct { Mode *sortmode.SortMode `json:"mode,omitempty"` Nested *NestedSortValue `json:"nested,omitempty"` @@ -43,82 +37,6 @@ type ScriptSort struct { Type *scriptsorttype.ScriptSortType `json:"type,omitempty"` } -func (s *ScriptSort) 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 "mode": - if err := dec.Decode(&s.Mode); err != nil { - return fmt.Errorf("%s | %w", "Mode", err) - } - - case "nested": - if err := dec.Decode(&s.Nested); err != nil { - return fmt.Errorf("%s | %w", "Nested", err) - } - - case "order": - if err := dec.Decode(&s.Order); err != nil { - return fmt.Errorf("%s | %w", "Order", err) - } - - case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } - - case "type": - if err := dec.Decode(&s.Type); err != nil { - return fmt.Errorf("%s | %w", "Type", err) - } - - } - } - return nil -} - // NewScriptSort returns a ScriptSort. func NewScriptSort() *ScriptSort { r := &ScriptSort{} 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 6120b3e9e2..39451e6c1f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ScriptTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Transform.ts#L36-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dcc7a27353..441481706e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ScrollIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L56-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..2b843db7fb --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshotaction.go @@ -0,0 +1,91 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SearchableSnapshotAction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L131-L134 +type SearchableSnapshotAction struct { + ForceMergeIndex *bool `json:"force_merge_index,omitempty"` + SnapshotRepository string `json:"snapshot_repository"` +} + +func (s *SearchableSnapshotAction) 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 "force_merge_index": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "ForceMergeIndex", err) + } + s.ForceMergeIndex = &value + case bool: + s.ForceMergeIndex = &v + } + + case "snapshot_repository": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "SnapshotRepository", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.SnapshotRepository = o + + } + } + return nil +} + +// NewSearchableSnapshotAction returns a SearchableSnapshotAction. +func NewSearchableSnapshotAction() *SearchableSnapshotAction { + r := &SearchableSnapshotAction{} + + return r +} 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 9092ab0bfb..5b8ccfde32 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshots type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L428-L432 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L428-L432 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 2f22547373..3f20cdad5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SearchApplication type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/_types/SearchApplication.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 444046913c..85eaf56d36 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SearchApplicationListItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/list/SearchApplicationsListResponse.ts#L31-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 49d6cd962a..abb330bd17 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,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SearchApplicationTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/_types/SearchApplication.ts#L47-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/search_application/_types/SearchApplication.ts#L47-L52 type SearchApplicationTemplate struct { // Script The associated mustache template. - Script InlineScript `json:"script"` + Script Script `json:"script"` } // NewSearchApplicationTemplate returns a SearchApplicationTemplate. 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 79c8c266b9..5b9f1f6ab0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // SearchAsYouTypeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L200-L210 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L212-L222 type SearchAsYouTypeProperty struct { Analyzer *string `json:"analyzer,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -223,12 +223,6 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -247,6 +241,18 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -609,12 +615,6 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -633,6 +633,18 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 433975d1c1..a26bdc14da 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SearchIdle type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L243-L246 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a5932f3f48..5a54db69b0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SearchInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L112-L116 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7a0252d5b6..2123f9898b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SearchInputRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L147-L149 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e535cb08b5..b3c708b321 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SearchInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L118-L125 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 295ca73ec9..c921725f38 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SearchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L126-L130 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L126-L130 type SearchProfile struct { Collector []Collector `json:"collector"` Query []QueryProfile `json:"query"` 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 cffe73ccc7..0e6e62eaf1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SearchStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L252-L271 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 01f81b7b20..f4db97ef0a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SearchTemplateRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L128-L145 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5677f90a18..40472cb0c5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SearchTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Transform.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3dcf990a76..c83fc499dd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Security type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L434-L447 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L434-L447 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 dd560d5cd7..da898f7cc9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SecurityRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleMapping.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8d3e9d774f..1bc9b4d9ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SecurityRoles type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L296-L300 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L296-L300 type SecurityRoles struct { Dls SecurityRolesDls `json:"dls"` File SecurityRolesFile `json:"file"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdls.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdls.go index 43d65cb29b..f092da7cc1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SecurityRolesDls type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L308-L310 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L308-L310 type SecurityRolesDls struct { BitSetCache SecurityRolesDlsBitSetCache `json:"bit_set_cache"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdlsbitsetcache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdlsbitsetcache.go index 98a437e37f..76e86bbf0c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesDlsBitSetCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L312-L316 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L312-L316 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 684b846c51..67e2468ea0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesFile type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L318-L322 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L318-L322 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 af4111ef36..e80b2144a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesNative type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L302-L306 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 39bfe2441e..de64793a3c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Segment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/types.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bf327a0a30..b6720d7135 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SegmentsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/segments/types.ts#L22-L107 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5993b88a71..86c759ed2b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SegmentsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L273-L366 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..8444a50287 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/selectoption.go @@ -0,0 +1,82 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SelectOption type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L25-L28 +type SelectOption struct { + Label string `json:"label"` + Value ScalarValue `json:"value"` +} + +func (s *SelectOption) 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 "label": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Label", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Label = o + + case "value": + if err := dec.Decode(&s.Value); err != nil { + return fmt.Errorf("%s | %w", "Value", err) + } + + } + } + return nil +} + +// NewSelectOption returns a SelectOption. +func NewSelectOption() *SelectOption { + r := &SelectOption{} + + return r +} 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 new file mode 100644 index 0000000000..6bf3ff5b2d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semanticquery.go @@ -0,0 +1,126 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SemanticQuery type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/SemanticQuery.ts#L22-L27 +type SemanticQuery struct { + // Boost Floating point number used to decrease or increase the relevance scores of + // the query. + // Boost values are relative to the default value of 1.0. + // A boost value between 0 and 1.0 decreases the relevance score. + // A value greater than 1.0 increases the relevance score. + Boost *float32 `json:"boost,omitempty"` + // Field The field to query, which must be a semantic_text field type + Field string `json:"field"` + // Query The query text + Query string `json:"query"` + QueryName_ *string `json:"_name,omitempty"` +} + +func (s *SemanticQuery) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "boost": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Boost", err) + } + f := float32(value) + s.Boost = &f + case float64: + f := float32(v) + s.Boost = &f + } + + case "field": + 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 "query": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Query = o + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "QueryName_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.QueryName_ = &o + + } + } + return nil +} + +// NewSemanticQuery returns a SemanticQuery. +func NewSemanticQuery() *SemanticQuery { + r := &SemanticQuery{} + + return r +} 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 new file mode 100644 index 0000000000..fbce05b8f8 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/semantictextproperty.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// SemanticTextProperty type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L206-L210 +type SemanticTextProperty struct { + InferenceId string `json:"inference_id"` + Meta map[string]string `json:"meta,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *SemanticTextProperty) 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 "inference_id": + if err := dec.Decode(&s.InferenceId); err != nil { + return fmt.Errorf("%s | %w", "InferenceId", err) + } + + case "meta": + if s.Meta == nil { + s.Meta = make(map[string]string, 0) + } + if err := dec.Decode(&s.Meta); err != nil { + return fmt.Errorf("%s | %w", "Meta", err) + } + + case "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 SemanticTextProperty) MarshalJSON() ([]byte, error) { + type innerSemanticTextProperty SemanticTextProperty + tmp := innerSemanticTextProperty{ + InferenceId: s.InferenceId, + Meta: s.Meta, + Type: s.Type, + } + + tmp.Type = "semantic_text" + + return json.Marshal(tmp) +} + +// NewSemanticTextProperty returns a SemanticTextProperty. +func NewSemanticTextProperty() *SemanticTextProperty { + r := &SemanticTextProperty{ + Meta: make(map[string]string, 0), + } + + 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 56c81267c2..ccdc304fda 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SerialDifferencingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L361-L367 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L361-L367 type SerialDifferencingAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 28f28b2a90..5f7da4b814 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SerializedClusterState type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L232-L238 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d0889071f5..47962cd343 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SerializedClusterStateDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L240-L246 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cc59cc78ec..595bc46752 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ServiceToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/create_service_token/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/shrinkconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setpriorityaction.go similarity index 65% rename from vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkconfiguration.go rename to vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setpriorityaction.go index 573ca14c61..3347cca135 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkconfiguration.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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -29,14 +29,14 @@ import ( "strconv" ) -// ShrinkConfiguration type. +// SetPriorityAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L60-L62 -type ShrinkConfiguration struct { - NumberOfShards int `json:"number_of_shards"` +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L98-L100 +type SetPriorityAction struct { + Priority *int `json:"priority,omitempty"` } -func (s *ShrinkConfiguration) UnmarshalJSON(data []byte) error { +func (s *SetPriorityAction) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -51,7 +51,7 @@ func (s *ShrinkConfiguration) UnmarshalJSON(data []byte) error { switch t { - case "number_of_shards": + case "priority": var tmp any dec.Decode(&tmp) @@ -59,12 +59,12 @@ func (s *ShrinkConfiguration) UnmarshalJSON(data []byte) error { case string: value, err := strconv.Atoi(v) if err != nil { - return fmt.Errorf("%s | %w", "NumberOfShards", err) + return fmt.Errorf("%s | %w", "Priority", err) } - s.NumberOfShards = value + s.Priority = &value case float64: f := int(v) - s.NumberOfShards = f + s.Priority = &f } } @@ -72,9 +72,9 @@ func (s *ShrinkConfiguration) UnmarshalJSON(data []byte) error { return nil } -// NewShrinkConfiguration returns a ShrinkConfiguration. -func NewShrinkConfiguration() *ShrinkConfiguration { - r := &ShrinkConfiguration{} +// NewSetPriorityAction returns a SetPriorityAction. +func NewSetPriorityAction() *SetPriorityAction { + r := &SetPriorityAction{} return r } 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 d64b482afa..5cfbabc134 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SetProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1027-L1061 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1027-L1061 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 fcb4b08fa3..7403943ab4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SetSecurityUserProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1063-L1072 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1063-L1072 type SetSecurityUserProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 f73a7085e0..fc5a753f8a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Settings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L98-L144 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a9a8597956..e4d554d025 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SettingsAnalyze type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L233-L236 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4cf4a4eb49..05b7093f4e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SettingsHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L228-L231 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cdcda61ff6..2da241c01b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SettingsQueryString type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L248-L250 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2bbff134f3..9c26ba4bb5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SettingsSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L238-L241 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 17dca951b4..ab6f18d95e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,5 +31,5 @@ package types // SettingsSimilarityLmj // SettingsSimilarityScripted // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L169-L180 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1c816ea0d7..a6b8110db5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityBm25 type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L186-L191 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bc30b2b768..3d1163eab9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityBoolean type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L182-L184 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cfc262fb02..5d4d8d00b4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -28,7 +28,7 @@ import ( // SettingsSimilarityDfi type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L193-L196 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 17fb3246ee..8b724959ef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SettingsSimilarityDfr type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L198-L203 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ce262e3820..a86e54b9f3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SettingsSimilarityIb type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L205-L210 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d50f5f45e8..d7b224f3d0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmd type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L212-L215 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e7ac31a678..5a6d80516b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmj type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L217-L220 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6c53a1fe05..baed4222e0 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,122 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types import ( - "bytes" "encoding/json" - "errors" - "fmt" - "io" ) // SettingsSimilarityScripted type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L222-L226 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/_types/IndexSettings.ts#L224-L228 type SettingsSimilarityScripted struct { - Script Script `json:"script"` - Type string `json:"type,omitempty"` - WeightScript Script `json:"weight_script,omitempty"` -} - -func (s *SettingsSimilarityScripted) 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 "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } - - case "type": - if err := dec.Decode(&s.Type); err != nil { - return fmt.Errorf("%s | %w", "Type", err) - } - - case "weight_script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "WeightScript", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "WeightScript", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "WeightScript", err) - } - s.WeightScript = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "WeightScript", err) - } - s.WeightScript = o - - } - } - - } - } - return nil + Script Script `json:"script"` + Type string `json:"type,omitempty"` + WeightScript *Script `json:"weight_script,omitempty"` } // MarshalJSON override marshalling to include literal value 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 1babf97637..ec2b6c4d2e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L354-L367 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L366-L379 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 9ff5b1de24..ba78c8aaf8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // ShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L73-L85 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/geo.ts#L73-L85 type ShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -235,12 +235,6 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -259,6 +253,18 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -605,12 +611,6 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -629,6 +629,18 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 f5e048ec0b..2c99c46852 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L344-L352 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L351-L364 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 25e459c6f8..88373fb488 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardCommit type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L112-L117 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bf9223fd45..28a2e1e477 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Errors.ts#L50-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f72c40b728..5a8ef3cd59 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardFileSizeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L124-L131 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0c03947d82..bf13424fda 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ShardHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/health/types.ts#L36-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/health/types.ts#L36-L43 type ShardHealthStats struct { ActiveShards int `json:"active_shards"` InitializingShards int `json:"initializing_shards"` 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 8c9c160906..cdfc851ff4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L133-L138 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 906833d3e2..a7b4d610ee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // ShardMigrationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3adf04ca2b..298caa96b7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L140-L144 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 55c117aa93..7ce03826b5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L132-L137 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/profile.ts#L132-L137 type ShardProfile struct { Aggregations []AggregationProfile `json:"aggregations"` Fetch *FetchProfile `json:"fetch,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardquerycache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardquerycache.go index cf3f8fa9ff..a17fb9dd12 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardQueryCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L146-L154 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c53de6cd47..04ac9ff3fd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L118-L135 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8750ac2e03..48a65d2b48 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardRetentionLeases type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L156-L160 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b389487693..714adfeee0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,11 +33,11 @@ import ( // ShardRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L162-L167 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/stats/types.ts#L162-L167 type ShardRouting struct { Node string `json:"node"` Primary bool `json:"primary"` - RelocatingNode string `json:"relocating_node,omitempty"` + RelocatingNode *string `json:"relocating_node,omitempty"` State shardroutingstate.ShardRoutingState `json:"state"` } @@ -92,7 +92,7 @@ func (s *ShardRouting) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.RelocatingNode = o + s.RelocatingNode = &o case "state": if err := dec.Decode(&s.State); err != nil { 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 a4bced2499..f36fc4fba7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ShardsAvailabilityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L104-L108 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L104-L108 type ShardsAvailabilityIndicator struct { Details *ShardsAvailabilityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicatordetails.go index e0ad49267d..c7c87ee315 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,9 +31,10 @@ import ( // ShardsAvailabilityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L109-L119 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L109-L120 type ShardsAvailabilityIndicatorDetails struct { CreatingPrimaries int64 `json:"creating_primaries"` + CreatingReplicas int64 `json:"creating_replicas"` InitializingPrimaries int64 `json:"initializing_primaries"` InitializingReplicas int64 `json:"initializing_replicas"` RestartingPrimaries int64 `json:"restarting_primaries"` @@ -74,6 +75,21 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error { s.CreatingPrimaries = f } + case "creating_replicas": + 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", "CreatingReplicas", err) + } + s.CreatingReplicas = value + case float64: + f := int64(v) + s.CreatingReplicas = f + } + case "initializing_primaries": var tmp any dec.Decode(&tmp) 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 61c972b83f..f1768a42e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // ShardsCapacityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L171-L175 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L173-L177 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 73ff365def..0cd7b18a91 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ShardsCapacityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L177-L180 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L179-L182 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 7a0075d99f..bf68603599 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardsCapacityIndicatorTierDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L182-L185 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L184-L187 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 57e568be83..11a73dd184 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardSegmentRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/types.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3451bd4651..28d60c8a55 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardSequenceNumber type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L176-L180 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 72c966be68..0e110ef4a5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/shards/types.ts#L20-L421 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cat/shards/types.ts#L20-L421 type ShardsRecord struct { // BulkAvgSizeInBytes The average size in bytes of shard bulk operations. BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"` @@ -46,7 +46,7 @@ type ShardsRecord struct { // CompletionSize The size of completion. CompletionSize *string `json:"completion.size,omitempty"` // Docs The number of documents in the shard. - Docs string `json:"docs,omitempty"` + Docs *string `json:"docs,omitempty"` // FielddataEvictions The fielddata cache evictions. FielddataEvictions *string `json:"fielddata.evictions,omitempty"` // FielddataMemorySize The used fielddata cache memory. @@ -88,7 +88,7 @@ type ShardsRecord struct { // IndexingIndexTotal The number of indexing operations. IndexingIndexTotal *string `json:"indexing.index_total,omitempty"` // Ip The IP address of the node. - Ip string `json:"ip,omitempty"` + Ip *string `json:"ip,omitempty"` // MergesCurrent The number of current merge operations. MergesCurrent *string `json:"merges.current,omitempty"` // MergesCurrentDocs The number of current merging documents. @@ -104,7 +104,7 @@ type ShardsRecord struct { // MergesTotalTime The time spent merging documents. MergesTotalTime *string `json:"merges.total_time,omitempty"` // Node The name of node. - Node string `json:"node,omitempty"` + Node *string `json:"node,omitempty"` // PathData The shard data path. PathData *string `json:"path.data,omitempty"` // PathState The shard state path. @@ -174,7 +174,7 @@ type ShardsRecord struct { // `UNASSIGNED`: The shard is not assigned to any node. State *string `json:"state,omitempty"` // Store The disk space used by the shard. - Store string `json:"store,omitempty"` + Store *string `json:"store,omitempty"` // SyncId The sync identifier. SyncId *string `json:"sync_id,omitempty"` // UnassignedAt The time at which the shard became unassigned in Coordinated Universal Time @@ -324,7 +324,7 @@ func (s *ShardsRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Docs = o + s.Docs = &o case "fielddata.evictions", "fe", "fielddataEvictions": var tmp json.RawMessage @@ -576,7 +576,7 @@ func (s *ShardsRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Ip = o + s.Ip = &o case "merges.current", "mc", "mergesCurrent": var tmp json.RawMessage @@ -672,7 +672,7 @@ func (s *ShardsRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Node = o + s.Node = &o case "path.data", "pd", "dataPath": var tmp json.RawMessage @@ -1056,7 +1056,7 @@ func (s *ShardsRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Store = o + s.Store = &o case "sync_id": var tmp json.RawMessage 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 c05997fd8e..d10c0cdacb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardsSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/types.ts#L46-L51 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5cc6e97173..d6d36d8768 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // ShardsStatsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7dba12302e..d392c2d088 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardsStatsSummaryItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 438e32c814..bcd54407e7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ShardStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L54-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4c070dd574..acc10ebcda 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // ShardStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L30-L37 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 b6f7b2094b..0345a4eb30 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardStoreException type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L51-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L54-L57 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 a449b0ed2c..3b708dd2f3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ShardStoreIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_shards/SearchShardsResponse.ts#L33-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search_shards/SearchShardsResponse.ts#L33-L36 type ShardStoreIndex struct { Aliases []string `json:"aliases,omitempty"` Filter *Query `json:"filter,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorenode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorenode.go index 5d96c068f8..251ce86653 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardStoreNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L36-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L39-L46 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 1b328ea54c..73021739f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // ShardStoreWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/shard_stores/types.ts#L59-L61 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 92df520ecd..543e256c4c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShardsTotalStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L182-L184 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 49ef690e04..5e2cd26156 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Shared type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0445624e9d..bba622295c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SharedFileSystemRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4d28ec5671..f426156a25 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SharedFileSystemRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L104-L108 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cc926b7e9c..aed1938eea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ShingleTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L87-L95 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L87-L95 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 384ab4ae62..2e5a70b918 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // ShortNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L161-L164 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L167-L170 type ShortNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -51,7 +51,7 @@ type ShortNumberProperty struct { NullValue *int `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,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. @@ -261,12 +261,6 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -636,12 +642,6 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -660,6 +660,18 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -832,40 +844,9 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 new file mode 100644 index 0000000000..459085c97d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkaction.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ShrinkAction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` + NumberOfShards *int `json:"number_of_shards,omitempty"` +} + +func (s *ShrinkAction) 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_write_after_shrink": + 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", "AllowWriteAfterShrink", err) + } + s.AllowWriteAfterShrink = &value + case bool: + s.AllowWriteAfterShrink = &v + } + + case "max_primary_shard_size": + if err := dec.Decode(&s.MaxPrimaryShardSize); err != nil { + return fmt.Errorf("%s | %w", "MaxPrimaryShardSize", err) + } + + case "number_of_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", "NumberOfShards", err) + } + s.NumberOfShards = &value + case float64: + f := int(v) + s.NumberOfShards = &f + } + + } + } + return nil +} + +// NewShrinkAction returns a ShrinkAction. +func NewShrinkAction() *ShrinkAction { + r := &ShrinkAction{} + + return r +} 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 c1540ccdff..76ba0a0777 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SignificantLongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L588-L590 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L592-L594 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 53ca288567..8884bc53c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // SignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L597-L600 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L601-L604 type SignificantLongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` 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 cb6fbda414..96e8a16816 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SignificantStringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L602-L604 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L606-L608 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 329926b136..a0b523e656 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // SignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L606-L608 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L610-L612 type SignificantStringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` 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 e48926f408..ada9c28d1c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SignificantTermsAggregateBaseSignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L581-L586 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L585-L590 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 5686ef08fd..600550f7b9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SignificantTermsAggregateBaseSignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L581-L586 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L585-L590 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 2990a19bb6..6860067dea 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SignificantTermsAggregateBaseVoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L581-L586 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L585-L590 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 afe0ebae3c..c324bd4086 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SignificantTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L772-L836 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L772-L836 type SignificantTermsAggregation struct { // BackgroundFilter A background filter that can be used to focus in on significant terms within // a narrower context, instead of the entire index. @@ -135,9 +135,40 @@ func (s *SignificantTermsAggregation) UnmarshalJSON(data []byte) error { } case "include": - if err := dec.Decode(&s.Include); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Include", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + include_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Include", err) + } + + switch t { + + case "num_partitions", "partition": + o := NewTermsPartition() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + s.Include = o + break include_field + + } + } + if s.Include == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Include); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + } case "jlh": if err := dec.Decode(&s.Jlh); err != nil { 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 fbe5c0792b..09fc9b6a8c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SignificantTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L838-L910 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L838-L910 type SignificantTextAggregation struct { // BackgroundFilter A background filter that can be used to focus in on significant terms within // a narrower context, instead of the entire index. @@ -153,9 +153,40 @@ func (s *SignificantTextAggregation) UnmarshalJSON(data []byte) error { } case "include": - if err := dec.Decode(&s.Include); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Include", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + include_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Include", err) + } + + switch t { + + case "num_partitions", "partition": + o := NewTermsPartition() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + s.Include = o + break include_field + + } + } + if s.Include == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Include); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + } case "jlh": if err := dec.Decode(&s.Jlh); err != nil { 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 b3dccd968e..8e328d3845 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SimpleAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L83-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L83-L86 type SimpleAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplemovingaverageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplemovingaverageaggregation.go index c163b3ed84..168a7c2a6d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SimpleMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L247-L250 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L247-L250 type SimpleMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 dd7adb195f..0b43d778e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SimpleQueryStringFlags type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L702-L706 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L702-L706 type SimpleQueryStringFlags PipeSeparatedFlagsSimpleQueryStringFlag diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringquery.go index 6380ba89a3..3d1b45049a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SimpleQueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L765-L830 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/fulltext.ts#L765-L830 type SimpleQueryStringQuery struct { // AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string. AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"` 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 8601360e70..f6be1a8bfd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // SimpleValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L224-L225 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L224-L225 type SimpleValueAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *SimpleValueAggregate) UnmarshalJSON(data []byte) error { 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 2528664bbb..2ac2c53b18 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SimulatedActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L96-L100 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L96-L100 type SimulatedActions struct { Actions []string `json:"actions"` All *SimulatedActions `json:"all,omitempty"` 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 6e3fbefa2e..2e04d0692d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SimulateIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/types.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/simulate/types.ts#L28-L31 type SimulateIngest struct { Pipeline *string `json:"pipeline,omitempty"` Timestamp DateTime `json:"timestamp"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizefield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizefield.go index cf3a6991d3..39a85d3ae9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SizeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/slackaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackaction.go index e1a744b915..a3c9688c71 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlackAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L91-L94 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c2ffc86487..7a6c96ba76 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlackAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L101-L117 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7ce5cee871..e73527b8c7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlackAttachmentField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L119-L123 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 be0c3c5373..94303f51ef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlackDynamicAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L125-L128 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 106db6c71d..d5ea427946 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlackMessage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L130-L137 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bb068930cc..6791162835 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlackResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L96-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9d8e2f9ca4..ab56c176a6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlicedScroll type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/SlicedScroll.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b194e317bf..0d694733f6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int // slicescalculation.SlicesCalculation // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L361-L366 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L364-L369 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 ee8bdff627..2920d4126d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Slm type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L449-L452 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L449-L452 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 a099e67d9f..6304146ff2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L155-L159 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L157-L161 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 3c44570b7a..bb8058ae04 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,11 +33,11 @@ import ( // SlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L160-L164 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L162-L166 type SlmIndicatorDetails struct { Policies int64 `json:"policies"` SlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"slm_status"` - UnhealthyPolicies SlmIndicatorUnhealthyPolicies `json:"unhealthy_policies"` + UnhealthyPolicies *SlmIndicatorUnhealthyPolicies `json:"unhealthy_policies,omitempty"` } func (s *SlmIndicatorDetails) UnmarshalJSON(data []byte) error { 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 dc921bddc6..1bc36a1e2a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlmIndicatorUnhealthyPolicies type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/health_report/types.ts#L168-L171 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 8e077c3083..92f18cd304 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SLMPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L76-L82 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f8bf62356a..fff99fd200 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L479-L484 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a629fa1c1b..0f0aafe959 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SlowlogTresholdLevels type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L491-L496 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 727c6615a4..793e8cebbe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L486-L489 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 97a2f976c0..8bc6779c4e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SmoothingModelContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L442-L458 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 40f6a178ab..e2c15e9842 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SnapshotIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 19e095279c..6d5852e4f5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SnapshotInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a4999211b4..db684a59a6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SnapshotLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L38-L49 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a920ab59b2..947e8bb8e2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SnapshotResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/get/SnapshotGetResponse.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2f82a7a006..7841c8db15 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SnapshotRestore type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/restore/SnapshotRestoreResponse.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/restore/SnapshotRestoreResponse.ts#L27-L31 type SnapshotRestore struct { Indices []string `json:"indices"` Shards ShardStatistics `json:"shards"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardfailure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardfailure.go index e25db17e2f..dce5dd77c7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SnapshotShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L28 type SnapshotShardFailure struct { Index string `json:"index"` NodeId *string `json:"node_id,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstats.go index 54bdbbe460..81440280e8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SnapshotShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9c9e7d17ff..c5a792a279 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // SnapshotShardsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f79575ffae..65f439e498 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SnapshotsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/snapshots/types.ts#L24-L96 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` @@ -166,20 +166,36 @@ func (s *SnapshotsRecord) UnmarshalJSON(data []byte) error { } case "start_time", "sti", "startTime": - - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - source := bytes.NewReader(rawMsg) - localDec := json.NewDecoder(source) - switch rawMsg[0] { - case '{': - o := NewHourAndMinute() - if err := localDec.Decode(&o); err != nil { - return err + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "StartTime", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + starttime_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "StartTime", err) } - s.StartTime = *o - default: + switch t { + + case "hour", "minute": + o := NewHourAndMinute() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "StartTime", err) + } + s.StartTime = o + break starttime_field + + } + } + if s.StartTime == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&s.StartTime); err != nil { return fmt.Errorf("%s | %w", "StartTime", err) } 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 9d37dddab9..520e41b1ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotStats.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fc349a3d7d..1e938b5927 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // SnowballAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L88-L93 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L88-L93 type SnowballAnalyzer struct { Language snowballlanguage.SnowballLanguage `json:"language"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballtokenfilter.go index fae6367b09..2859018445 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,11 +32,11 @@ import ( // SnowballTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L311-L314 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L311-L314 type SnowballTokenFilter struct { - Language snowballlanguage.SnowballLanguage `json:"language"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + Language *snowballlanguage.SnowballLanguage `json:"language,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *SnowballTokenFilter) UnmarshalJSON(data []byte) error { 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 596fb3ecf1..4f109f0f2b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SoftDeletes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L50-L63 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/sort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sort.go index 1b8ba9816c..acf7e59d70 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Sort type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L99-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L105-L105 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 b4adcac89b..0791852c87 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // SortOptions // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L93-L97 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L99-L103 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 b5d43e697c..a831840012 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -27,7 +27,7 @@ import ( // SortOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L82-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/sort.ts#L87-L97 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 a30a5d5197..6fbabb8276 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SortProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1079-L1095 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1079-L1095 type SortProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 7c39fcf4af..2a83e6243a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // bool // SourceFilter // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/SourceFilter.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6cd1fd776c..2231bae8d8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // bool // []string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/SourceFilter.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 50e255e74e..7d06d85b73 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SourceField type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L58-L65 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8af4cefe97..a1bd28e3a7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SourceFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/SourceFilter.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/SourceFilter.ts#L23-L31 type SourceFilter struct { Excludes []string `json:"excludes,omitempty"` Includes []string `json:"includes,omitempty"` @@ -39,8 +39,13 @@ type SourceFilter struct { func (s *SourceFilter) UnmarshalJSON(data []byte) error { if !bytes.HasPrefix(data, []byte(`{`)) { - err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Includes) - return err + var item string + err := json.NewDecoder(bytes.NewReader(data)).Decode(&item) + if err != nil { + return err + } + s.Includes = append(s.Includes, item) + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 9343e75a2a..615f1a1759 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SourceOnlyRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L65-L68 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3b5eb6a951..a4898b33e2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SourceOnlyRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L117-L124 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4b3d9af002..7544248168 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanContainingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L25-L36 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L25-L36 type SpanContainingQuery struct { // Big Can be any span query. // Matching spans from `big` that contain matches from `little` are returned. 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 7301b67928..f90a997bad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanFieldMaskingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L38-L41 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L38-L41 type SpanFieldMaskingQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 c8eba6324b..822fb8dc40 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanFirstQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L43-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L43-L52 type SpanFirstQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 3a2a9dbe99..3588cc0ba8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SpanGapQuery type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L54-L56 type SpanGapQuery map[string]int diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanmultitermquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanmultitermquery.go index b41a67deac..9ec9fc2c82 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanMultiTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L58-L63 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L58-L63 type SpanMultiTermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 b869cf460a..f24770f832 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanNearQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L65-L78 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L65-L78 type SpanNearQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 b6ec0cebba..4236e97b30 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanNotQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L80-L104 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L80-L104 type SpanNotQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 203507f523..ceda221185 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanOrQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L106-L111 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L106-L111 type SpanOrQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 6bb901d738..b52b4a8326 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SpanQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L131-L173 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L131-L173 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 610df5b8f8..ab4797619d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L113-L116 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L113-L116 type SpanTermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -51,7 +51,10 @@ func (s *SpanTermQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Value) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 6f937533fe..669725aced 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SpanWithinQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L118-L129 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/span.ts#L118-L129 type SpanWithinQuery struct { // Big Can be any span query. // Matching spans from `little` that are enclosed within `big` are returned. 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 dca3580f15..f848792d82 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SparseEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L35-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 289cd8f76a..8e8ef8af4a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SparseVector type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c67f330f28..1c18360b4a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SparseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L196-L198 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L202-L204 type SparseVectorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -182,12 +182,6 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -206,6 +200,18 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -519,12 +525,6 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -543,6 +543,18 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 new file mode 100644 index 0000000000..d3824856e5 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorquery.go @@ -0,0 +1,179 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SparseVectorQuery type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L79 +type SparseVectorQuery struct { + // Boost Floating point number used to decrease or increase the relevance scores of + // the query. + // Boost values are relative to the default value of 1.0. + // A boost value between 0 and 1.0 decreases the relevance score. + // A value greater than 1.0 increases the relevance score. + Boost *float32 `json:"boost,omitempty"` + // Field The name of the field that contains the token-weight pairs to be searched + // against. + // This field must be a mapped sparse_vector field. + Field string `json:"field"` + // InferenceId The inference ID to use to convert the query text into token-weight pairs. + // It must be the same inference ID that was used to create the tokens from the + // input text. + // Only one of inference_id and query_vector is allowed. + // If inference_id is specified, query must also be specified. + // Only one of inference_id or query_vector may be supplied in a request. + InferenceId *string `json:"inference_id,omitempty"` + // Prune Whether to perform pruning, omitting the non-significant tokens from the + // query to improve query performance. + // If prune is true but the pruning_config is not specified, pruning will occur + // but default values will be used. + // Default: false + Prune *bool `json:"prune,omitempty"` + // PruningConfig Optional pruning configuration. + // If enabled, this will omit non-significant tokens from the query in order to + // improve query performance. + // This is only used if prune is set to true. + // If prune is set to true but pruning_config is not specified, default values + // will be used. + PruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"` + // Query The query text you want to use for search. + // If inference_id is specified, query must also be specified. + Query *string `json:"query,omitempty"` + QueryName_ *string `json:"_name,omitempty"` + // QueryVector Dictionary of precomputed sparse vectors and their associated weights. + // Only one of inference_id or query_vector may be supplied in a request. + QueryVector map[string]float32 `json:"query_vector,omitempty"` +} + +func (s *SparseVectorQuery) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "boost": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Boost", err) + } + f := float32(value) + s.Boost = &f + case float64: + f := float32(v) + s.Boost = &f + } + + case "field": + if err := dec.Decode(&s.Field); err != nil { + return fmt.Errorf("%s | %w", "Field", err) + } + + case "inference_id": + if err := dec.Decode(&s.InferenceId); err != nil { + return fmt.Errorf("%s | %w", "InferenceId", err) + } + + case "prune": + 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", "Prune", err) + } + s.Prune = &value + case bool: + s.Prune = &v + } + + case "pruning_config": + if err := dec.Decode(&s.PruningConfig); err != nil { + return fmt.Errorf("%s | %w", "PruningConfig", err) + } + + case "query": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Query = &o + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "QueryName_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.QueryName_ = &o + + case "query_vector": + if s.QueryVector == nil { + s.QueryVector = make(map[string]float32, 0) + } + if err := dec.Decode(&s.QueryVector); err != nil { + return fmt.Errorf("%s | %w", "QueryVector", err) + } + + } + } + return nil +} + +// NewSparseVectorQuery returns a SparseVectorQuery. +func NewSparseVectorQuery() *SparseVectorQuery { + r := &SparseVectorQuery{ + QueryVector: make(map[string]float32, 0), + } + + return r +} 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 ac07a810e7..ee8774c41f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SplitProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1097-L1122 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1097-L1122 type SplitProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 9588eb2351..af6f3dcb9a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Sql type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L386-L389 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L386-L389 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 53eb46f457..2a7554f623 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Ssl type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L391-L394 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L391-L394 type Ssl struct { Http FeatureToggle `json:"http"` Transport FeatureToggle `json:"transport"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardanalyzer.go index e0b9bd26a5..bf013cb064 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StandardAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L95-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L95-L99 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 2bb116d693..2f28851358 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,14 +30,14 @@ import ( // StandardDeviationBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L260-L267 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L260-L267 type StandardDeviationBounds struct { - Lower Float64 `json:"lower,omitempty"` - LowerPopulation Float64 `json:"lower_population,omitempty"` - LowerSampling Float64 `json:"lower_sampling,omitempty"` - Upper Float64 `json:"upper,omitempty"` - UpperPopulation Float64 `json:"upper_population,omitempty"` - UpperSampling Float64 `json:"upper_sampling,omitempty"` + Lower *Float64 `json:"lower,omitempty"` + LowerPopulation *Float64 `json:"lower_population,omitempty"` + LowerSampling *Float64 `json:"lower_sampling,omitempty"` + Upper *Float64 `json:"upper,omitempty"` + UpperPopulation *Float64 `json:"upper_population,omitempty"` + UpperSampling *Float64 `json:"upper_sampling,omitempty"` } func (s *StandardDeviationBounds) UnmarshalJSON(data []byte) error { 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 770dc2ac42..c6d1bd36f0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StandardDeviationBoundsAsString type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L269-L276 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L269-L276 type StandardDeviationBoundsAsString struct { Lower string `json:"lower"` LowerPopulation string `json:"lower_population"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardretriever.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardretriever.go index bab9543ca0..4abe6eef27 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StandardRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retriever.ts#L43-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Retriever.ts#L43-L56 type StandardRetriever struct { // Collapse Collapses the top documents by a specified key into a single top document per // key. 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 61bc3f8366..e11ddfb69b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StandardTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L105-L108 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L105-L108 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 867f1749f9..1cf36bdb05 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Statistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L51-L74 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 824962d0c9..267be49526 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // Stats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L30-L114 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6a182f3fd3..1697f28716 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,15 +31,15 @@ import ( // StatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L240-L255 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L240-L255 type StatsAggregate struct { - Avg Float64 `json:"avg,omitempty"` + Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` Count int64 `json:"count"` - Max Float64 `json:"max,omitempty"` + Max *Float64 `json:"max,omitempty"` MaxAsString *string `json:"max_as_string,omitempty"` Meta Metadata `json:"meta,omitempty"` - Min Float64 `json:"min,omitempty"` + Min *Float64 `json:"min,omitempty"` MinAsString *string `json:"min_as_string,omitempty"` Sum Float64 `json:"sum"` SumAsString *string `json:"sum_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 51d2aa5190..70681c6ede 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L282-L282 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L282-L282 type StatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -39,7 +39,7 @@ type StatsAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *StatsAggregation) UnmarshalJSON(data []byte) error { @@ -80,40 +80,9 @@ func (s *StatsAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 01174ff13a..e926493411 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,15 +31,15 @@ import ( // StatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L257-L258 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L257-L258 type StatsBucketAggregate struct { - Avg Float64 `json:"avg,omitempty"` + Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` Count int64 `json:"count"` - Max Float64 `json:"max,omitempty"` + Max *Float64 `json:"max,omitempty"` MaxAsString *string `json:"max_as_string,omitempty"` Meta Metadata `json:"meta,omitempty"` - Min Float64 `json:"min,omitempty"` + Min *Float64 `json:"min,omitempty"` MinAsString *string `json:"min_as_string,omitempty"` Sum Float64 `json:"sum"` SumAsString *string `json:"sum_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 65e04a3813..c7a80d3ebe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // StatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L369-L369 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L369-L369 type StatsBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 f498837865..079858b1f5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Status type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotStatus.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8058252265..f96be661b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StemmerOverrideTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L316-L320 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L316-L320 type StemmerOverrideTokenFilter struct { Rules []string `json:"rules,omitempty"` RulesPath *string `json:"rules_path,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmertokenfilter.go index f4a0e3beab..8519462e74 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L322-L326 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L322-L326 type StemmerTokenFilter struct { Language *string `json:"language,omitempty"` Type string `json:"type,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stepkey.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stepkey.go index 29d937241b..71c6c81c4f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StepKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/move_to_step/types.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/move_to_step/types.ts#L20-L24 type StepKey struct { Action string `json:"action"` Name string `json:"name"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopanalyzer.go index 0dc015bb73..9c02eb59df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StopAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L101-L106 type StopAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stoptokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stoptokenfilter.go index 10a0ab2b93..12480c374a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StopTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L97-L103 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L97-L103 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 dcf1ab26a4..ae18919566 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // StopWords type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/StopWords.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 176109fba4..740d894024 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // Storage type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L498-L507 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d53ff2af87..f32738e580 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // StoredScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L47-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8f73d81d22..7f900c9660 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StoreStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L368-L395 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ad821b46d3..3fe9fd0991 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // bool // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_spec_utils/Stringified.ts#L20-L27 type Stringifiedboolean any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitmillis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitmillis.go index 2339b4dc8e..7096b90829 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 51dd02004f..f28f36d7b8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 19c058a3ec..d87e38ddef 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ea7c4abbb5..b856fe4931 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d0453cc9a7..e4232d4ecc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // StringRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L443-L447 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L445-L449 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 d11a20a3d4..98b22c22a3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // StringRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L449-L451 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L451-L453 type StringRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 33e09c984b..d8fa4516ac 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,18 +31,18 @@ import ( // StringStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L693-L704 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L700-L711 type StringStatsAggregate struct { - AvgLength Float64 `json:"avg_length,omitempty"` - AvgLengthAsString *string `json:"avg_length_as_string,omitempty"` - Count int64 `json:"count"` - Distribution map[string]Float64 `json:"distribution,omitempty"` - Entropy Float64 `json:"entropy,omitempty"` - MaxLength int `json:"max_length,omitempty"` - MaxLengthAsString *string `json:"max_length_as_string,omitempty"` - Meta Metadata `json:"meta,omitempty"` - MinLength int `json:"min_length,omitempty"` - MinLengthAsString *string `json:"min_length_as_string,omitempty"` + AvgLength *Float64 `json:"avg_length,omitempty"` + AvgLengthAsString *string `json:"avg_length_as_string,omitempty"` + Count int64 `json:"count"` + Distribution *map[string]Float64 `json:"distribution,omitempty"` + Entropy *Float64 `json:"entropy,omitempty"` + MaxLength *int `json:"max_length,omitempty"` + MaxLengthAsString *string `json:"max_length_as_string,omitempty"` + Meta Metadata `json:"meta,omitempty"` + MinLength *int `json:"min_length,omitempty"` + MinLengthAsString *string `json:"min_length_as_string,omitempty"` } func (s *StringStatsAggregate) UnmarshalJSON(data []byte) error { 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 21e14c5024..0e46ba6376 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // StringStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L284-L290 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L284-L290 type StringStatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // ShowDistribution Shows the probability distribution for all characters. ShowDistribution *bool `json:"show_distribution,omitempty"` } @@ -69,40 +69,9 @@ func (s *StringStatsAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "show_distribution": var tmp any 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 3a9b9b4638..8caf2ddb2f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L384-L389 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L386-L391 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 5dac630e7c..84019d1c23 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // StringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L395-L397 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L397-L399 type StringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 187cfd91ef..cbeb99d064 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // StupidBackoffSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L460-L465 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 09fdc104b1..676d0c9308 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ package types // PhraseSuggest // TermSuggest // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 94e1c18266..c91ce595c5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SuggestContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 09cb09d789..6adfd6a14a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Suggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2f0c8b8501..bc12f785f3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SuggestFuzziness type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L193-L221 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f518d4baaa..aa77e681cb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // SumAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L203-L207 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L203-L207 type SumAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *SumAggregate) UnmarshalJSON(data []byte) error { 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 9abfb9f37b..2b4a738a91 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L292-L292 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L292-L292 type SumAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -39,7 +39,7 @@ type SumAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *SumAggregation) UnmarshalJSON(data []byte) error { @@ -80,40 +80,9 @@ func (s *SumAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 b33b697149..c8082c9a80 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SumBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L371-L371 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/pipeline.ts#L371-L371 type SumBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` 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 70241a1040..d49857e25c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // Summary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/_types/Policy.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/enrich/_types/Policy.ts#L24-L26 type Summary struct { Config map[policytype.PolicyType]EnrichPolicy `json:"config"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synccontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synccontainer.go index ed5cd0fb14..8fdc7e9f21 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // SyncContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L169-L175 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..8d4d329b0b --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncjobconnectorreference.go @@ -0,0 +1,132 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SyncJobConnectorReference type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/SyncJob.ts#L31-L40 +type SyncJobConnectorReference struct { + Configuration ConnectorConfiguration `json:"configuration"` + Filtering FilteringRules `json:"filtering"` + Id string `json:"id"` + IndexName string `json:"index_name"` + Language *string `json:"language,omitempty"` + Pipeline *IngestPipelineParams `json:"pipeline,omitempty"` + ServiceType string `json:"service_type"` + SyncCursor json.RawMessage `json:"sync_cursor,omitempty"` +} + +func (s *SyncJobConnectorReference) 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 "configuration": + if err := dec.Decode(&s.Configuration); err != nil { + return fmt.Errorf("%s | %w", "Configuration", err) + } + + case "filtering": + if err := dec.Decode(&s.Filtering); err != nil { + return fmt.Errorf("%s | %w", "Filtering", err) + } + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "index_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "IndexName", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.IndexName = o + + case "language": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Language", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Language = &o + + case "pipeline": + if err := dec.Decode(&s.Pipeline); err != nil { + return fmt.Errorf("%s | %w", "Pipeline", err) + } + + case "service_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceType = o + + case "sync_cursor": + if err := dec.Decode(&s.SyncCursor); err != nil { + return fmt.Errorf("%s | %w", "SyncCursor", err) + } + + } + } + return nil +} + +// NewSyncJobConnectorReference returns a SyncJobConnectorReference. +func NewSyncJobConnectorReference() *SyncJobConnectorReference { + r := &SyncJobConnectorReference{} + + return r +} 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 new file mode 100644 index 0000000000..93656a7b65 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/syncrulesfeature.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +// SyncRulesFeature type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/connector/_types/Connector.ts#L219-L222 +type SyncRulesFeature struct { + Advanced *FeatureEnabled `json:"advanced,omitempty"` + Basic *FeatureEnabled `json:"basic,omitempty"` +} + +// NewSyncRulesFeature returns a SyncRulesFeature. +func NewSyncRulesFeature() *SyncRulesFeature { + r := &SyncRulesFeature{} + + return r +} 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 c6ec5e386e..313c1c080f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SynonymGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L110-L120 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L110-L120 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 6082dc581f..97683a9ac3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SynonymRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/_types/SynonymRule.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d874f69a24..84d9725320 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // SynonymRuleRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/_types/SynonymRule.ts#L38-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ffd44d193d..1e178bbc5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // SynonymsSetItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L30-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 99015d884e..cb1c62cbdb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // SynonymsUpdateResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/_types/SynonymsUpdateResult.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4a7c01f92a..e7ce3b004e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // SynonymTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L122-L132 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L122-L132 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/targetmeanencodingpreprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/targetmeanencodingpreprocessor.go index 268a1ea3c2..4dc345dcf9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TargetMeanEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L49-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c132fc3d7f..8689730b16 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TaskFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Errors.ts#L66-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 533a98fc0c..4441552b5b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L132-L132 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L132-L132 type TaskId any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfo.go index 3456926fea..998ac45a73 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/TaskInfo.ts#L32-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cca5326074..7f7df8d179 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // []TaskInfo // map[string]ParentTaskInfo // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/TaskListResponseBase.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 253b1eb7d3..297af432cb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/tasks/types.ts#L22-L101 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8912e01b93..49ea6186e8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TDigest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L223-L228 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L223-L228 type TDigest struct { // Compression Limits the maximum number of nodes used by the underlying TDigest algorithm // to `20 * compression`, enabling control of memory usage and approximation 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 5663aead61..88762aa43f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L175-L176 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L175-L176 type TDigestPercentileRanksAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentilesaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentilesaggregate.go index 599ed07f1a..4ba6c994e1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L172-L173 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L172-L173 type TDigestPercentilesAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/template.go index d2dc7b5fc0..90a87c062b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // Template type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 22aa255bce..0255ee8b0f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TemplateConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch_template/types.ts#L28-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c195df8800..d15ebab0b6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/TemplateMapping.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fe0f206430..0d8d7e8e1b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TemplatesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/templates/types.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` @@ -42,7 +42,7 @@ type TemplatesRecord struct { // Order The template application order or priority number. Order *string `json:"order,omitempty"` // Version The template version. - Version string `json:"version,omitempty"` + Version *string `json:"version,omitempty"` } func (s *TemplatesRecord) UnmarshalJSON(data []byte) error { 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 bd5cd39a95..11a9c17d38 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Term type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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/termquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termquery.go index d13d96fd3d..4261bd5551 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L217-L231 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L219-L233 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 new file mode 100644 index 0000000000..57d6f91de2 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termrangequery.go @@ -0,0 +1,189 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" +) + +// TermRangeQuery type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L159-L159 +type TermRangeQuery struct { + // Boost Floating point number used to decrease or increase the relevance scores of + // the query. + // Boost values are relative to the default value of 1.0. + // A boost value between 0 and 1.0 decreases the relevance score. + // A value greater than 1.0 increases the relevance score. + Boost *float32 `json:"boost,omitempty"` + From *string `json:"from,omitempty"` + // Gt Greater than. + Gt *string `json:"gt,omitempty"` + // Gte Greater than or equal to. + Gte *string `json:"gte,omitempty"` + // Lt Less than. + Lt *string `json:"lt,omitempty"` + // Lte Less than or equal to. + Lte *string `json:"lte,omitempty"` + QueryName_ *string `json:"_name,omitempty"` + // Relation Indicates how the range query matches values for `range` fields. + Relation *rangerelation.RangeRelation `json:"relation,omitempty"` + To *string `json:"to,omitempty"` +} + +func (s *TermRangeQuery) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "boost": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Boost", err) + } + f := float32(value) + s.Boost = &f + case float64: + f := float32(v) + s.Boost = &f + } + + case "from": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "From", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.From = &o + + case "gt": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Gt", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Gt = &o + + case "gte": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Gte", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Gte = &o + + case "lt": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Lt", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Lt = &o + + case "lte": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Lte", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Lte = &o + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "QueryName_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.QueryName_ = &o + + case "relation": + if err := dec.Decode(&s.Relation); err != nil { + return fmt.Errorf("%s | %w", "Relation", err) + } + + case "to": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "To", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.To = &o + + } + } + return nil +} + +// NewTermRangeQuery returns a TermRangeQuery. +func NewTermRangeQuery() *TermRangeQuery { + r := &TermRangeQuery{} + + return r +} 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 48a0494a6f..e4c95612e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseDoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 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 990e12afd6..205f2f98c8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 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 434ee3d6cf..a09446fe25 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseMultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 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 47ebd60028..f4997a48e7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 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 e8b09c530b..265b49b9ff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermsAggregateBaseVoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L379-L384 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 85bb80821e..4b8535f33d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -36,7 +36,7 @@ import ( // TermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L912-L972 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L912-L977 type TermsAggregation struct { // CollectMode Determines how child aggregations should be calculated: breadth-first or // depth-first. @@ -63,7 +63,12 @@ type TermsAggregation struct { // Order Specifies the sort order of the buckets. // Defaults to sorting by descending document count. Order AggregateOrder `json:"order,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` + // ShardMinDocCount Regulates the certainty a shard has if the term should actually be added to + // the candidate list or not with respect to the `min_doc_count`. + // Terms will only be considered if their local shard frequency within the set + // is higher than the `shard_min_doc_count`. + ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"` // ShardSize The number of candidate terms produced by each shard. // By default, `shard_size` will be automatically estimated based on the number // of shards and the `size` parameter. @@ -136,9 +141,40 @@ func (s *TermsAggregation) UnmarshalJSON(data []byte) error { s.Format = &o case "include": - if err := dec.Decode(&s.Include); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Include", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + include_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Include", err) + } + + switch t { + + case "num_partitions", "partition": + o := NewTermsPartition() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + s.Include = o + break include_field + + } + } + if s.Include == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Include); err != nil { + return fmt.Errorf("%s | %w", "Include", err) + } + } case "min_doc_count": @@ -202,39 +238,23 @@ func (s *TermsAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o + case "shard_min_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", "ShardMinDocCount", err) } + s.ShardMinDocCount = &value + case float64: + f := int64(v) + s.ShardMinDocCount = &f } case "shard_size": 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 3b94e1dbc8..8919ea22a4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TermsExclude type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1003-L1004 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1008-L1009 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 e027398b62..215d9eb21e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TermsGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Groupings.ts#L75-L82 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 be9d9f923f..bdbbe844c4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,5 +26,5 @@ package types // []string // TermsPartition // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1000-L1001 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1005-L1006 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 6c4e549fc9..f6b6adc166 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TermsLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L242-L247 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L247-L252 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 c3fc2a661f..faecd6d60e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermsPartition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1006-L1015 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1011-L1020 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 5da4ee031a..485fa1858b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L233-L235 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L235-L240 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 217519576a..97c8882e5b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // []FieldValue // TermsLookup // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L237-L240 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L242-L245 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 6283afd133..0393324973 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermsSetQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L249-L262 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L254-L267 type TermsSetQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -44,7 +44,7 @@ type TermsSetQuery struct { MinimumShouldMatchField *string `json:"minimum_should_match_field,omitempty"` // MinimumShouldMatchScript Custom script containing the number of matching terms required to return a // document. - MinimumShouldMatchScript Script `json:"minimum_should_match_script,omitempty"` + MinimumShouldMatchScript *Script `json:"minimum_should_match_script,omitempty"` QueryName_ *string `json:"_name,omitempty"` // Terms Array of terms you wish to find in the provided field. Terms []string `json:"terms"` @@ -87,40 +87,9 @@ func (s *TermsSetQuery) UnmarshalJSON(data []byte) error { } case "minimum_should_match_script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.MinimumShouldMatchScript); err != nil { return fmt.Errorf("%s | %w", "MinimumShouldMatchScript", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "MinimumShouldMatchScript", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "MinimumShouldMatchScript", err) - } - s.MinimumShouldMatchScript = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "MinimumShouldMatchScript", err) - } - s.MinimumShouldMatchScript = o - - } - } case "_name": var tmp json.RawMessage 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 051c90e740..f9c18d67fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L64-L69 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 00ab328243..b0b357329d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // TermSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L503-L565 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 89c1d333e7..6abb1d8abc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 36991eb0b3..1bcf73d362 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,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TermVector type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/termvectors/types.ts#L23-L26 type TermVector struct { - FieldStatistics FieldStatistics `json:"field_statistics"` - Terms map[string]Term `json:"terms"` + FieldStatistics *FieldStatistics `json:"field_statistics,omitempty"` + Terms map[string]Term `json:"terms"` } // NewTermVector returns a TermVector. 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 8627807361..58eea55454 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermVectorsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L49-L86 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 1c0f2289a2..ce2320491c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,11 +31,11 @@ import ( // TermVectorsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mtermvectors/types.ts#L96-L104 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/mtermvectors/types.ts#L96-L104 type TermVectorsResult struct { Error *ErrorCause `json:"error,omitempty"` Found *bool `json:"found,omitempty"` - Id_ string `json:"_id"` + Id_ *string `json:"_id,omitempty"` Index_ string `json:"_index"` TermVectors map[string]TermVector `json:"term_vectors,omitempty"` Took *int64 `json:"took,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 5a09765332..3940dbd1d1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TermVectorsToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L42-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 135e9ce268..24ae6c6e8a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,13 +30,13 @@ import ( // TestPopulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L310-L320 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L310-L320 type TestPopulation struct { // Field The field to aggregate. Field string `json:"field"` // Filter A filter used to define a set of records to run unpaired t-test on. - Filter *Query `json:"filter,omitempty"` - Script Script `json:"script,omitempty"` + Filter *Query `json:"filter,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *TestPopulation) UnmarshalJSON(data []byte) error { @@ -65,40 +65,9 @@ func (s *TestPopulation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 9d4989916b..18bc56b6a8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L189-L199 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cdba6b77f5..ecfe67dfbd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L363-L372 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d83027f8eb..be93da0e98 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextEmbedding type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Knn.ts#L74-L77 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Knn.ts#L74-L77 type TextEmbedding struct { ModelId string `json:"model_id"` ModelText string `json:"model_text"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingbyteresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingbyteresult.go index 62dc6fa8bc..d65e398e5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingByteResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 813c5f90bd..8920dee1f1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L237-L245 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ace85c205f..50273cee24 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L392-L396 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 09a8b3dd03..7201485af8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L52-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 80c79bb173..18b528f5a1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L247-L253 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2a9b631350..868dec4e88 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L398-L402 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 6b80e90cef..2a05990609 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextExpansionQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L33 type TextExpansionQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 bf056c4030..84f551cb39 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TextIndexPrefixes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L252-L255 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L264-L267 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 c66c23a8fc..0a97816c35 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // TextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L257-L273 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L269-L285 type TextProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` @@ -278,12 +278,6 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -302,6 +296,18 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -683,12 +689,6 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -707,6 +707,18 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 733cd69875..fe53ecf7e6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TextToAnalyze type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L66-L66 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/indices/analyze/types.ts#L69-L69 type TextToAnalyze []string diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadcount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadcount.go index 30c8bac8be..3fbc820dbd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ThreadCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L1004-L1029 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L1004-L1029 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 dbd373a805..d5e7229881 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // ThreadPoolRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/thread_pool/types.ts#L22-L124 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` // Completed The number of completed tasks. Completed *string `json:"completed,omitempty"` // Core The core number of active threads allowed in a scaling thread pool. - Core string `json:"core,omitempty"` + Core *string `json:"core,omitempty"` // EphemeralNodeId The ephemeral node identifier. EphemeralNodeId *string `json:"ephemeral_node_id,omitempty"` // Host The host name for the current node. @@ -46,11 +46,11 @@ type ThreadPoolRecord struct { // Ip The IP address for the current node. Ip *string `json:"ip,omitempty"` // KeepAlive The thread keep alive time. - KeepAlive string `json:"keep_alive,omitempty"` + KeepAlive *string `json:"keep_alive,omitempty"` // Largest The highest number of active threads in the current thread pool. Largest *string `json:"largest,omitempty"` // Max The maximum number of active threads allowed in a scaling thread pool. - Max string `json:"max,omitempty"` + Max *string `json:"max,omitempty"` // Name The thread pool name. Name *string `json:"name,omitempty"` // NodeId The persistent node identifier. @@ -70,7 +70,7 @@ type ThreadPoolRecord struct { // Rejected The number of rejected tasks. Rejected *string `json:"rejected,omitempty"` // Size The number of active threads allowed in a fixed thread pool. - Size string `json:"size,omitempty"` + Size *string `json:"size,omitempty"` // Type The thread pool type. // Returned values include `fixed`, `fixed_auto_queue_size`, `direct`, and // `scaling`. @@ -126,7 +126,7 @@ func (s *ThreadPoolRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Core = o + s.Core = &o case "ephemeral_node_id", "eid": var tmp json.RawMessage @@ -174,7 +174,7 @@ func (s *ThreadPoolRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.KeepAlive = o + s.KeepAlive = &o case "largest", "l": var tmp json.RawMessage @@ -198,7 +198,7 @@ func (s *ThreadPoolRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Max = o + s.Max = &o case "name", "n": var tmp json.RawMessage @@ -311,7 +311,7 @@ func (s *ThreadPoolRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Size = o + s.Size = &o case "type", "t": var tmp json.RawMessage 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 64a59345cb..f37b1ec57f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ThrottleState type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L126-L129 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L126-L129 type ThrottleState struct { Reason string `json:"reason"` Timestamp DateTime `json:"timestamp"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofmonth.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofmonth.go index e1d897868c..69c86a09e1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TimeOfMonth type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L110-L113 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d9a9b2a653..1d4173fccb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // TimeOfWeek type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 513106bbf7..ab7c9faeac 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // TimeOfYear type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L120-L124 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Schedule.ts#L120-L124 type TimeOfYear struct { At []string `json:"at"` Int []month.Month `json:"int"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timesync.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timesync.go index 89d4d02e0a..dbfad21de8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TimeSync type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L177-L189 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 dcf7ae8d94..7f59d93b56 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L563-L568 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L563-L568 type TimingStats struct { // ElapsedTime Runtime of the analysis in milliseconds. ElapsedTime int64 `json:"elapsed_time"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokencountproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokencountproperty.go index 0096df2b97..f5cc35094f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // TokenCountProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/specialized.ts#L85-L92 type TokenCountProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` @@ -263,12 +263,6 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -287,6 +281,18 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -630,12 +636,6 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -654,6 +654,18 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 a23724ebc0..943ff74f39 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TokenDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L68-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 452b49ddd4..5f519725a9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // TokenFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L346-L348 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L346-L348 type TokenFilter any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilterdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilterdefinition.go index ce98a3317f..525e2dbc64 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -70,5 +70,5 @@ package types // PhoneticTokenFilter // DictionaryDecompounderTokenFilter // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L350-L402 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L350-L402 type TokenFilterDefinition any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizationconfigcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizationconfigcontainer.go index 7ee7ee79c6..aff6f37e8f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TokenizationConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L110-L129 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 275ef9ed82..a57846eb5c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // string // TokenizerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L120-L122 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L120-L122 type Tokenizer any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizerdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizerdefinition.go index 0e7542c87c..24581b086f 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizerdefinition.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizerdefinition.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -37,5 +37,5 @@ package types // PatternTokenizer // IcuTokenizer // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L124-L142 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L124-L142 type TokenizerDefinition any diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenpruningconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenpruningconfig.go index 931724da69..8839153f37 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TokenPruningConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/TokenPruningConfig.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d293bc28b4..a47ff6d7d7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L440-L444 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 91553d124b..97a74b0ef0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TopHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/find_structure/types.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d34bcd1479..6e53d27aee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TopHitsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L654-L657 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L658-L661 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 3b7df53287..397104d673 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TopHitsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L337-L397 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L337-L397 type TopHitsAggregation struct { // DocvalueFields Fields for which to return doc values. DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` @@ -51,7 +51,7 @@ type TopHitsAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // ScriptFields Returns the result of one or more script evaluations for each hit. ScriptFields map[string]ScriptField `json:"script_fields,omitempty"` // SeqNoPrimaryTerm If `true`, returns sequence number and primary term of the last modification @@ -145,40 +145,9 @@ func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "script_fields": if s.ScriptFields == nil { @@ -235,9 +204,40 @@ func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error { } case "_source": - if err := dec.Decode(&s.Source_); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source_", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source_", err) + } + + switch t { + + case "excludes", "includes": + o := NewSourceFilter() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + s.Source_ = o + break source__field + + } + } + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) + } + } case "stored_fields": rawMsg := json.RawMessage{} 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 7ce8c0eca9..067cf2695b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TopLeftBottomRightGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L161-L164 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L161-L164 type TopLeftBottomRightGeoBounds struct { BottomRight GeoLocation `json:"bottom_right"` TopLeft GeoLocation `json:"top_left"` @@ -52,14 +52,94 @@ func (s *TopLeftBottomRightGeoBounds) UnmarshalJSON(data []byte) error { switch t { case "bottom_right": - if err := dec.Decode(&s.BottomRight); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "BottomRight", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + bottomright_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "BottomRight", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "BottomRight", err) + } + s.BottomRight = o + break bottomright_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "BottomRight", err) + } + s.BottomRight = o + break bottomright_field + + } + } + if s.BottomRight == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.BottomRight); err != nil { + return fmt.Errorf("%s | %w", "BottomRight", err) + } + } case "top_left": - if err := dec.Decode(&s.TopLeft); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "TopLeft", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + topleft_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "TopLeft", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "TopLeft", err) + } + s.TopLeft = o + break topleft_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "TopLeft", err) + } + s.TopLeft = o + break topleft_field + + } + } + if s.TopLeft == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.TopLeft); err != nil { + return fmt.Errorf("%s | %w", "TopLeft", err) + } + } } } 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 0d50a3a0a7..21edc4d75f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TopMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L729-L733 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L736-L740 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 c86532c1df..5e67bc53ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TopMetricsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L724-L727 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L731-L734 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 686c34ea44..ae79c9e88e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TopMetricsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L399-L413 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L399-L413 type TopMetricsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -40,7 +40,7 @@ type TopMetricsAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // Size The number of top documents from which to return metrics. Size *int `json:"size,omitempty"` // Sort The sort order of the documents. @@ -89,40 +89,9 @@ func (s *TopMetricsAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "size": 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 6e1d9e82ba..0b7e04e149 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TopMetricsValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L415-L420 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L415-L420 type TopMetricsValue struct { // Field A field to return as a metric. Field string `json:"field"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/toprightbottomleftgeobounds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/toprightbottomleftgeobounds.go index 662db95606..30d7f39ec5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TopRightBottomLeftGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/Geo.ts#L166-L169 type TopRightBottomLeftGeoBounds struct { BottomLeft GeoLocation `json:"bottom_left"` TopRight GeoLocation `json:"top_right"` @@ -52,14 +52,94 @@ func (s *TopRightBottomLeftGeoBounds) UnmarshalJSON(data []byte) error { switch t { case "bottom_left": - if err := dec.Decode(&s.BottomLeft); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "BottomLeft", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + bottomleft_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "BottomLeft", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "BottomLeft", err) + } + s.BottomLeft = o + break bottomleft_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "BottomLeft", err) + } + s.BottomLeft = o + break bottomleft_field + + } + } + if s.BottomLeft == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.BottomLeft); err != nil { + return fmt.Errorf("%s | %w", "BottomLeft", err) + } + } case "top_right": - if err := dec.Decode(&s.TopRight); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "TopRight", err) } + keyDec := json.NewDecoder(bytes.NewReader(message)) + topright_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "TopRight", err) + } + + switch t { + + case "lat", "lon": + o := NewLatLonGeoLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "TopRight", err) + } + s.TopRight = o + break topright_field + + case "geohash": + o := NewGeoHashLocation() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "TopRight", err) + } + s.TopRight = o + break topright_field + + } + } + if s.TopRight == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.TopRight); err != nil { + return fmt.Errorf("%s | %w", "TopRight", err) + } + } } } 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 d0ba7d84ab..2282fefcb0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L233-L240 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L233-L240 type TotalFeatureImportance struct { // Classes If the trained model is a classification model, feature importance statistics // are gathered per target class value. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportanceclass.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportanceclass.go index 790521291b..43b07ccd3c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportanceClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L242-L247 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L242-L247 type TotalFeatureImportanceClass struct { // ClassName The target class value. Could be a string, boolean, or number. ClassName string `json:"class_name"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportancestatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportancestatistics.go index 16e2df5480..f8d2198fd1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TotalFeatureImportanceStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L249-L256 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L249-L256 type TotalFeatureImportanceStatistics struct { // Max The maximum importance value across all the training data for this feature. Max int `json:"max"` 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 549be96f8a..d9fca4e974 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TotalUserProfiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/suggest_user_profiles/Response.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7959642b0f..b4bd5cebd6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // bool // int // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L142-L150 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/search/_types/hits.ts#L143-L151 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 752141db68..c3a614b0c6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TrainedModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 3fec9f03a4..ef19ab0f28 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignment type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L403-L418 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L403-L418 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 db6f5a7994..46f25a6038 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentRoutingTable type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L374-L392 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L374-L392 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 5327c9bf31..856b57044f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentTaskParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L316-L349 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L316-L349 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 e4b4a62c22..7d6646964f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // TrainedModelConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L165-L200 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L165-L200 type TrainedModelConfig struct { CompressedDefinition *string `json:"compressed_definition,omitempty"` // CreateTime The time when the trained model was created. 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 11989a86fe..861a8866fe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TrainedModelConfigInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L202-L205 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L202-L205 type TrainedModelConfigInput struct { // FieldNames An array of input field names for the model. FieldNames []string `json:"field_names"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfigmetadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfigmetadata.go index d0906efa45..eb5cd5b115 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TrainedModelConfigMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L207-L215 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L207-L215 type TrainedModelConfigMetadata struct { // FeatureImportanceBaseline An object that contains the baseline for feature importance values. For // regression analysis, it is a single value. For classification analysis, there diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentallocationstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentallocationstatus.go index 97aec605e0..98be337f8e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // TrainedModelDeploymentAllocationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L394-L401 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L394-L401 type TrainedModelDeploymentAllocationStatus struct { // AllocationCount The current number of nodes where the model is allocated. AllocationCount int `json:"allocation_count"` 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 f095501892..9cd2f778d4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelDeploymentNodesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L133-L163 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L133-L163 type TrainedModelDeploymentNodesStats struct { // AverageInferenceTimeMs The average time for each inference call to complete on this node. AverageInferenceTimeMs Float64 `json:"average_inference_time_ms"` 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 effe91501f..46972112f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // TrainedModelDeploymentStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L62-L102 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L62-L102 type TrainedModelDeploymentStats struct { // AllocationStatus The detailed allocation status for the deployment. AllocationStatus TrainedModelDeploymentAllocationStatus `json:"allocation_status"` @@ -48,7 +48,7 @@ type TrainedModelDeploymentStats struct { ModelId string `json:"model_id"` // Nodes The deployment stats for each node that currently has the model allocated. // In serverless, stats are reported for a single unnamed virtual node. - Nodes TrainedModelDeploymentNodesStats `json:"nodes"` + Nodes []TrainedModelDeploymentNodesStats `json:"nodes"` // NumberOfAllocations The number of allocations requested. NumberOfAllocations int `json:"number_of_allocations"` // QueueCapacity The number of inference requests that can be queued before new requests are 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 6c52552f03..4adbdebde3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelEntities type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L433-L439 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c781200dcc..d267ae510b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L446-L449 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 8c7fe223bd..34bf9981ab 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L451-L455 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7a2aa2094d..af15a70999 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L104-L124 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L104-L124 type TrainedModelInferenceStats struct { // CacheMissCount The number of times the model was loaded for inference and was not retrieved // from the cache. @@ -49,7 +49,7 @@ type TrainedModelInferenceStats struct { // were missing. MissingAllFieldsCount int `json:"missing_all_fields_count"` // Timestamp The time when the statistics were last updated. - Timestamp DateTime `json:"timestamp"` + Timestamp int64 `json:"timestamp"` } func (s *TrainedModelInferenceStats) UnmarshalJSON(data []byte) error { 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 14f8b2116a..48274720f1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TrainedModelLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L420-L422 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L420-L422 type TrainedModelLocation struct { Index TrainedModelLocationIndex `json:"index"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocationindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocationindex.go index 6fa7c32cc8..504cc3f6f1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TrainedModelLocationIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L424-L426 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L424-L426 type TrainedModelLocationIndex struct { Name string `json:"name"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelprefixstrings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelprefixstrings.go index 04c76d0a9d..77d67f5c12 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelPrefixStrings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L428-L437 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L428-L437 type TrainedModelPrefixStrings struct { // Ingest String prepended to input at ingest Ingest *string `json:"ingest,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsizestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsizestats.go index aa66e22697..7e2a7bad7c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,17 +26,16 @@ import ( "errors" "fmt" "io" - "strconv" ) // TrainedModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L126-L131 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L126-L131 type TrainedModelSizeStats struct { // ModelSizeBytes The size of the model in bytes. ModelSizeBytes ByteSize `json:"model_size_bytes"` // RequiredNativeMemoryBytes The amount of memory required to load the model in bytes. - RequiredNativeMemoryBytes int `json:"required_native_memory_bytes"` + RequiredNativeMemoryBytes ByteSize `json:"required_native_memory_bytes"` } func (s *TrainedModelSizeStats) UnmarshalJSON(data []byte) error { @@ -60,19 +59,8 @@ func (s *TrainedModelSizeStats) UnmarshalJSON(data []byte) error { } case "required_native_memory_bytes": - - 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", "RequiredNativeMemoryBytes", err) - } - s.RequiredNativeMemoryBytes = value - case float64: - f := int(v) - s.RequiredNativeMemoryBytes = f + if err := dec.Decode(&s.RequiredNativeMemoryBytes); err != nil { + return fmt.Errorf("%s | %w", "RequiredNativeMemoryBytes", err) } } 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 36aeff2d08..93c41d534d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_trained_models/types.ts#L23-L115 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c2d4295996..298650433e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L42-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/TrainedModel.ts#L42-L60 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 185173c408..4131a9dced 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTree type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f65dd89934..5da1b8e6fc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTreeNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L81-L91 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 30a9900f71..e52485baad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TransformAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Authorization.ts#L59-L71 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f7b072e464..4be1138519 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TransformContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Transform.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9f0f5e9437..0d2b232fff 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TransformDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L34-L45 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 ccc7c8279e..1817e29e5a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TransformIndexerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L56-L74 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 751bf78300..d933305cba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,13 +31,13 @@ import ( // TransformProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L48-L54 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/transform/get_transform_stats/types.ts#L48-L54 type TransformProgress struct { - DocsIndexed int64 `json:"docs_indexed"` - DocsProcessed int64 `json:"docs_processed"` - DocsRemaining int64 `json:"docs_remaining"` - PercentComplete Float64 `json:"percent_complete"` - TotalDocs int64 `json:"total_docs"` + DocsIndexed int64 `json:"docs_indexed"` + DocsProcessed int64 `json:"docs_processed"` + DocsRemaining *int64 `json:"docs_remaining,omitempty"` + PercentComplete *Float64 `json:"percent_complete,omitempty"` + TotalDocs *int64 `json:"total_docs,omitempty"` } func (s *TransformProgress) UnmarshalJSON(data []byte) error { @@ -94,10 +94,10 @@ func (s *TransformProgress) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "DocsRemaining", err) } - s.DocsRemaining = value + s.DocsRemaining = &value case float64: f := int64(v) - s.DocsRemaining = f + s.DocsRemaining = &f } case "percent_complete": @@ -110,10 +110,10 @@ func (s *TransformProgress) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "PercentComplete", err) } f := Float64(value) - s.PercentComplete = f + s.PercentComplete = &f case float64: f := Float64(v) - s.PercentComplete = f + s.PercentComplete = &f } case "total_docs": @@ -125,10 +125,10 @@ func (s *TransformProgress) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "TotalDocs", err) } - s.TotalDocs = value + s.TotalDocs = &value case float64: f := int64(v) - s.TotalDocs = f + s.TotalDocs = &f } } 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 d4a529dc75..2c4befd9f3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TransformSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L146-L165 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 04757c9811..3de0757a55 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,17 +31,17 @@ import ( // TransformsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/transforms/types.ts#L22-L197 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` + ChangesLastDetectionTime *string `json:"changes_last_detection_time,omitempty"` // Checkpoint The sequence number for the checkpoint. Checkpoint *string `json:"checkpoint,omitempty"` // CheckpointDurationTimeExpAvg The exponential moving average of the duration of the checkpoint, in // milliseconds. CheckpointDurationTimeExpAvg *string `json:"checkpoint_duration_time_exp_avg,omitempty"` // CheckpointProgress The progress of the next checkpoint that is currently in progress. - CheckpointProgress string `json:"checkpoint_progress,omitempty"` + CheckpointProgress *string `json:"checkpoint_progress,omitempty"` // CreateTime The time the transform was created. CreateTime *string `json:"create_time,omitempty"` // DeleteTime The total time spent deleting documents, in milliseconds. @@ -77,7 +77,7 @@ type TransformsRecord struct { IndexedDocumentsExpAvg *string `json:"indexed_documents_exp_avg,omitempty"` // LastSearchTime The timestamp of the last search in the source indices. // This field is shown only if the transform is running. - LastSearchTime string `json:"last_search_time,omitempty"` + LastSearchTime *string `json:"last_search_time,omitempty"` // MaxPageSearchSize The initial page size that is used for the composite aggregation for each // checkpoint. MaxPageSearchSize *string `json:"max_page_search_size,omitempty"` @@ -150,7 +150,7 @@ func (s *TransformsRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.ChangesLastDetectionTime = o + s.ChangesLastDetectionTime = &o case "checkpoint", "c": var tmp json.RawMessage @@ -186,7 +186,7 @@ func (s *TransformsRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.CheckpointProgress = o + s.CheckpointProgress = &o case "create_time", "ct", "createTime": var tmp json.RawMessage @@ -359,7 +359,7 @@ func (s *TransformsRecord) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.LastSearchTime = o + s.LastSearchTime = &o case "max_page_search_size", "mpsz": var tmp json.RawMessage 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 aa8fb5397b..fa4be06fb3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TransformStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L31-L42 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 76385c7b6e..d2cbc6f501 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // TransformStatsHealth type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L44-L46 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e623382939..f7e739b9bd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TransformSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform/types.ts#L33-L61 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 fc45efaec4..9ed6d9b619 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // Translog type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L339-L361 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 06b0fb255b..8d40fc0316 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TranslogRetention type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L380-L399 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0c940a29ee..d62014014a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TranslogStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L397-L405 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7f4fbe0d73..192f6f54fa 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TranslogStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L102-L109 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 369bb80f56..f444228dad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Transport type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L1047-L1090 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L1047-L1090 type Transport struct { // InboundHandlingTimeHistogram The distribution of the time spent handling each inbound message on a // transport thread, represented as a histogram. 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 60ae545838..1cd969c230 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TransportHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L1092-L1106 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/nodes/_types/Stats.ts#L1092-L1106 type TransportHistogram struct { // Count The number of times a transport thread took a period of time within the // bounds of this bucket to handle an inbound message. 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 5da58f85d0..a876699c56 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TriggerContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Trigger.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c3cfcd6f89..42ef7bb3c2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TriggerEventContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Trigger.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 abd18643e4..aadf7273cd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TriggerEventResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Trigger.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b753944d09..291553dd0a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TrimProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1124-L1140 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1124-L1140 type TrimProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 ddda762b20..9758cd0dad 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // TrimTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L328-L330 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L328-L330 type TrimTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/truncatetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/truncatetokenfilter.go index 9792bd3cd0..7008c5e097 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TruncateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L332-L335 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L332-L335 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 433afc04f1..74ee82ab17 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,10 +31,10 @@ import ( // TTestAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L735-L739 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L742-L746 type TTestAggregate struct { Meta Metadata `json:"meta,omitempty"` - Value Float64 `json:"value,omitempty"` + Value *Float64 `json:"value,omitempty"` ValueAsString *string `json:"value_as_string,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 ebe4430991..492d4636c6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // TTestAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L294-L308 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L294-L308 type TTestAggregation struct { // A Test population A. A *TestPopulation `json:"a,omitempty"` 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 fe3cdfe610..4df7dfc16b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // TypeFieldMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_field_mapping/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 4cfbfa8a64..70b0344b00 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // TypeMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/TypeMapping.ts#L34-L57 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/TypeMapping.ts#L34-L57 type TypeMapping struct { AllField *AllField `json:"all_field,omitempty"` DataStreamTimestamp_ *DataStreamTimestamp `json:"_data_stream_timestamp,omitempty"` @@ -269,12 +269,6 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -293,6 +287,18 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 e37e999498..a33571ab3a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // TypeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L264-L266 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L269-L271 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 9171b1da96..0e776f2d27 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UaxEmailUrlTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L110-L113 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L110-L113 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 2032a0f906..6b5b8018e9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // UnassignedInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L117-L125 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/cluster/allocation_explain/types.ts#L117-L125 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 1093a479f6..5013ff8fe2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UniqueTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L337-L340 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L337-L340 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 c75cb254c2..3799c644d9 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // UnmappedRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L453-L459 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L455-L461 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 8717184fd5..4819433634 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // UnmappedSamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L501-L502 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L505-L506 type UnmappedSamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 8c9b040993..0fd34324e4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UnmappedSignificantTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L610-L616 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L614-L620 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 1a5ae96af4..37684087bb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UnmappedTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L423-L429 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L425-L431 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 d3f3f65501..f2750949e1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // UnratedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L147-L150 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_global/rank_eval/types.ts#L147-L150 type UnratedDocument struct { Id_ string `json:"_id"` Index_ string `json:"_index"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unsignedlongnumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unsignedlongnumberproperty.go index 30b1aa83aa..ecd8a47f65 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -35,7 +35,7 @@ import ( // UnsignedLongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L171-L174 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L177-L180 type UnsignedLongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -51,7 +51,7 @@ type UnsignedLongNumberProperty struct { NullValue *uint64 `json:"null_value,omitempty"` OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` - Script Script `json:"script,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. @@ -261,12 +261,6 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -285,6 +279,18 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -636,12 +642,6 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -660,6 +660,18 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -832,40 +844,9 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "similarity": var tmp json.RawMessage 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 new file mode 100644 index 0000000000..9cb0620a35 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddecayfunction.go @@ -0,0 +1,76 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" +) + +// UntypedDecayFunction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/compound.ts#L188-L191 +type UntypedDecayFunction struct { + DecayFunctionBase map[string]DecayPlacement `json:"-"` + // MultiValueMode Determines how the distance is calculated when a field used for computing the + // decay contains multiple values. + MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"` +} + +// MarhsalJSON overrides marshalling for types with additional properties +func (s UntypedDecayFunction) MarshalJSON() ([]byte, error) { + type opt UntypedDecayFunction + // 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.DecayFunctionBase { + tmp[fmt.Sprintf("%s", key)] = value + } + delete(tmp, "DecayFunctionBase") + + data, err = json.Marshal(tmp) + if err != nil { + return nil, err + } + + return data, nil +} + +// NewUntypedDecayFunction returns a UntypedDecayFunction. +func NewUntypedDecayFunction() *UntypedDecayFunction { + r := &UntypedDecayFunction{ + DecayFunctionBase: make(map[string]DecayPlacement, 0), + } + + return r +} 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 new file mode 100644 index 0000000000..0d23c20beb --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypeddistancefeaturequery.go @@ -0,0 +1,133 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// UntypedDistanceFeatureQuery type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/specialized.ts#L62-L65 +type UntypedDistanceFeatureQuery struct { + // Boost Floating point number used to decrease or increase the relevance scores of + // the query. + // Boost values are relative to the default value of 1.0. + // A boost value between 0 and 1.0 decreases the relevance score. + // A value greater than 1.0 increases the relevance score. + Boost *float32 `json:"boost,omitempty"` + // Field Name of the field used to calculate distances. This field must meet the + // following criteria: + // be a `date`, `date_nanos` or `geo_point` field; + // have an `index` mapping parameter value of `true`, which is the default; + // have an `doc_values` mapping parameter value of `true`, which is the default. + Field string `json:"field"` + // Origin Date or point of origin used to calculate distances. + // If the `field` value is a `date` or `date_nanos` field, the `origin` value + // must be a date. + // Date Math, such as `now-1h`, is supported. + // If the field value is a `geo_point` field, the `origin` value must be a + // geopoint. + Origin json.RawMessage `json:"origin,omitempty"` + // Pivot Distance from the `origin` at which relevance scores receive half of the + // `boost` value. + // If the `field` value is a `date` or `date_nanos` field, the `pivot` value + // must be a time unit, such as `1h` or `10d`. If the `field` value is a + // `geo_point` field, the `pivot` value must be a distance unit, such as `1km` + // or `12m`. + Pivot json.RawMessage `json:"pivot,omitempty"` + QueryName_ *string `json:"_name,omitempty"` +} + +func (s *UntypedDistanceFeatureQuery) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "boost": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Boost", err) + } + f := float32(value) + s.Boost = &f + case float64: + f := float32(v) + s.Boost = &f + } + + case "field": + if err := dec.Decode(&s.Field); err != nil { + return fmt.Errorf("%s | %w", "Field", err) + } + + case "origin": + if err := dec.Decode(&s.Origin); err != nil { + return fmt.Errorf("%s | %w", "Origin", err) + } + + case "pivot": + if err := dec.Decode(&s.Pivot); err != nil { + return fmt.Errorf("%s | %w", "Pivot", err) + } + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "QueryName_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.QueryName_ = &o + + } + } + return nil +} + +// NewUntypedDistanceFeatureQuery returns a UntypedDistanceFeatureQuery. +func NewUntypedDistanceFeatureQuery() *UntypedDistanceFeatureQuery { + r := &UntypedDistanceFeatureQuery{} + + return r +} 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 new file mode 100644 index 0000000000..670e47ee7e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/untypedrangequery.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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" +) + +// UntypedRangeQuery type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L135-L144 +type UntypedRangeQuery struct { + // Boost Floating point number used to decrease or increase the relevance scores of + // the query. + // Boost values are relative to the default value of 1.0. + // A boost value between 0 and 1.0 decreases the relevance score. + // A value greater than 1.0 increases the relevance score. + Boost *float32 `json:"boost,omitempty"` + // Format Date format used to convert `date` values in the query. + Format *string `json:"format,omitempty"` + From *json.RawMessage `json:"from,omitempty"` + // Gt Greater than. + Gt json.RawMessage `json:"gt,omitempty"` + // Gte Greater than or equal to. + Gte json.RawMessage `json:"gte,omitempty"` + // Lt Less than. + Lt json.RawMessage `json:"lt,omitempty"` + // Lte Less than or equal to. + Lte json.RawMessage `json:"lte,omitempty"` + QueryName_ *string `json:"_name,omitempty"` + // Relation Indicates how the range query matches values for `range` fields. + Relation *rangerelation.RangeRelation `json:"relation,omitempty"` + // TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert + // `date` values in the query to UTC. + TimeZone *string `json:"time_zone,omitempty"` + To *json.RawMessage `json:"to,omitempty"` +} + +func (s *UntypedRangeQuery) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "boost": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Boost", err) + } + f := float32(value) + s.Boost = &f + case float64: + f := float32(v) + s.Boost = &f + } + + case "format": + if err := dec.Decode(&s.Format); err != nil { + return fmt.Errorf("%s | %w", "Format", err) + } + + case "from": + if err := dec.Decode(&s.From); err != nil { + return fmt.Errorf("%s | %w", "From", err) + } + + case "gt": + if err := dec.Decode(&s.Gt); err != nil { + return fmt.Errorf("%s | %w", "Gt", err) + } + + case "gte": + if err := dec.Decode(&s.Gte); err != nil { + return fmt.Errorf("%s | %w", "Gte", err) + } + + case "lt": + if err := dec.Decode(&s.Lt); err != nil { + return fmt.Errorf("%s | %w", "Lt", err) + } + + case "lte": + if err := dec.Decode(&s.Lte); err != nil { + return fmt.Errorf("%s | %w", "Lte", err) + } + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "QueryName_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.QueryName_ = &o + + case "relation": + if err := dec.Decode(&s.Relation); err != nil { + return fmt.Errorf("%s | %w", "Relation", err) + } + + case "time_zone": + if err := dec.Decode(&s.TimeZone); err != nil { + return fmt.Errorf("%s | %w", "TimeZone", err) + } + + case "to": + if err := dec.Decode(&s.To); err != nil { + return fmt.Errorf("%s | %w", "To", err) + } + + } + } + return nil +} + +// NewUntypedRangeQuery returns a UntypedRangeQuery. +func NewUntypedRangeQuery() *UntypedRangeQuery { + r := &UntypedRangeQuery{} + + return r +} 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 770d76bb26..975ce972e8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UpdateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L169-L205 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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. @@ -41,7 +41,7 @@ type UpdateAction struct { // DocAsUpsert Set to true to use the contents of 'doc' as the value of 'upsert' DocAsUpsert *bool `json:"doc_as_upsert,omitempty"` // Script Script to execute to update the document. - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` // ScriptedUpsert Set to true to execute the script whether or not the document exists. ScriptedUpsert *bool `json:"scripted_upsert,omitempty"` // Source_ Set to false to disable source retrieval. You can also specify a @@ -103,58 +103,58 @@ func (s *UpdateAction) UnmarshalJSON(data []byte) error { } case "script": + if err := dec.Decode(&s.Script); err != nil { + return fmt.Errorf("%s | %w", "Script", err) + } + + case "scripted_upsert": + 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", "ScriptedUpsert", err) + } + s.ScriptedUpsert = &value + case bool: + s.ScriptedUpsert = &v + } + + case "_source": message := json.RawMessage{} if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Source_", err) } keyDec := json.NewDecoder(bytes.NewReader(message)) + source__field: for { t, err := keyDec.Token() if err != nil { if errors.Is(err, io.EOF) { break } - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Source_", err) } switch t { - case "lang", "options", "source": - o := NewInlineScript() + case "excludes", "includes": + o := NewSourceFilter() localDec := json.NewDecoder(bytes.NewReader(message)) if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) + return fmt.Errorf("%s | %w", "Source_", err) } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o + s.Source_ = o + break source__field } } - - case "scripted_upsert": - 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", "ScriptedUpsert", err) + if s.Source_ == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source_); err != nil { + return fmt.Errorf("%s | %w", "Source_", err) } - s.ScriptedUpsert = &value - case bool: - s.ScriptedUpsert = &v - } - - case "_source": - if err := dec.Decode(&s.Source_); err != nil { - return fmt.Errorf("%s | %w", "Source_", err) } case "upsert": 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 1d6e065d35..556454971a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // UpdateByQueryRethrottleNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 23ba5b9d3f..a109925ebe 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // UpdateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L136-L143 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b6db73156d..ea910db25d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UppercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1142-L1158 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1142-L1158 type UppercaseProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 7adfb2441d..a6ebefc6cb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // UppercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L342-L344 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L342-L344 type UppercaseTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/urldecodeprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/urldecodeprocessor.go index a5204bd1fd..be5acfdf8d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UrlDecodeProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1160-L1176 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L1160-L1176 type UrlDecodeProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 b1cbe06b89..243eef715d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // UsageStatsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L38-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 e80ea79959..82d3c74cec 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UsageStatsShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 91bf298084..45e3514775 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,11 +31,11 @@ import ( // User type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/User.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/User.ts#L23-L31 type User struct { - Email string `json:"email,omitempty"` + Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` - FullName string `json:"full_name,omitempty"` + FullName *string `json:"full_name,omitempty"` Metadata Metadata `json:"metadata"` ProfileUid *string `json:"profile_uid,omitempty"` Roles []string `json:"roles"` @@ -67,7 +67,7 @@ func (s *User) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Email = o + s.Email = &o case "enabled": var tmp any 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 60b872b07f..fef11abe6f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // UserAgentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L370-L390 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ingest/_types/Processors.ts#L370-L390 type UserAgentProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. 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 e551bd1878..91f10b8960 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // UserIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L129-L151 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/Privileges.ts#L227-L249 type UserIndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited @@ -112,9 +112,52 @@ func (s *UserIndicesPrivileges) UnmarshalJSON(data []byte) error { } case "query": - if err := dec.Decode(&s.Query); err != nil { + messageArray := []json.RawMessage{} + if err := dec.Decode(&messageArray); err != nil { return fmt.Errorf("%s | %w", "Query", err) } + query_field: + for _, message := range messageArray { + keyDec := json.NewDecoder(bytes.NewReader(message)) + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "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 = append(s.Query, o) + continue 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 = append(s.Query, o) + continue query_field + + } + } + + var o any + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + s.Query = append(s.Query, o) + } } } 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 074f49ca00..b8ce21ef10 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UserProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/UserProfile.ts#L42-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/UserProfile.ts#L42-L48 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 9637b5a323..b2d2ca46ba 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UserProfileHitMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/UserProfile.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/UserProfile.ts#L28-L31 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 58a5bb7eab..0f760865ca 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,10 +31,10 @@ import ( // UserProfileUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/UserProfile.ts#L33-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/UserProfile.ts#L33-L40 type UserProfileUser struct { - Email string `json:"email,omitempty"` - FullName string `json:"full_name,omitempty"` + Email *string `json:"email,omitempty"` + FullName *string `json:"full_name,omitempty"` RealmDomain *string `json:"realm_domain,omitempty"` RealmName string `json:"realm_name"` Roles []string `json:"roles"` @@ -66,7 +66,7 @@ func (s *UserProfileUser) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Email = o + s.Email = &o case "full_name": if err := dec.Decode(&s.FullName); err != nil { 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 b5c538b511..6de4baa578 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UserProfileWithMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/UserProfile.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/security/_types/UserProfile.ts#L50-L53 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 new file mode 100644 index 0000000000..5e2dd94964 --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userquerycontainer.go @@ -0,0 +1,178 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// UserQueryContainer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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"` + // Exists Returns users that contain an indexed value for a field. + Exists *ExistsQuery `json:"exists,omitempty"` + // Ids Returns users based on their IDs. + // This query uses the user document IDs stored in the `_id` field. + Ids *IdsQuery `json:"ids,omitempty"` + // Match Returns users that match a provided text, number, date or boolean value. + // The provided text is analyzed before matching. + Match map[string]MatchQuery `json:"match,omitempty"` + // MatchAll Matches all users, giving them all a `_score` of 1.0. + MatchAll *MatchAllQuery `json:"match_all,omitempty"` + // Prefix Returns users that contain a specific prefix in a provided field. + Prefix map[string]PrefixQuery `json:"prefix,omitempty"` + // Range Returns users that contain terms within a provided range. + Range map[string]RangeQuery `json:"range,omitempty"` + // SimpleQueryString Returns users based on a provided query string, using a parser with a limited + // but fault-tolerant syntax. + SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"` + // Term Returns users that contain an exact term in a provided field. + // To return a document, the query term must exactly match the queried field's + // value, including whitespace and capitalization. + Term map[string]TermQuery `json:"term,omitempty"` + // Terms Returns users that contain one or more exact terms in a provided field. + // To return a document, one or more terms must exactly match a field value, + // including whitespace and capitalization. + Terms *TermsQuery `json:"terms,omitempty"` + // Wildcard Returns users that contain terms matching a wildcard pattern. + Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"` +} + +func (s *UserQueryContainer) 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 "bool": + if err := dec.Decode(&s.Bool); err != nil { + return fmt.Errorf("%s | %w", "Bool", err) + } + + case "exists": + if err := dec.Decode(&s.Exists); err != nil { + return fmt.Errorf("%s | %w", "Exists", err) + } + + case "ids": + if err := dec.Decode(&s.Ids); err != nil { + return fmt.Errorf("%s | %w", "Ids", err) + } + + case "match": + if s.Match == nil { + s.Match = make(map[string]MatchQuery, 0) + } + if err := dec.Decode(&s.Match); err != nil { + return fmt.Errorf("%s | %w", "Match", err) + } + + case "match_all": + if err := dec.Decode(&s.MatchAll); err != nil { + return fmt.Errorf("%s | %w", "MatchAll", err) + } + + case "prefix": + if s.Prefix == nil { + s.Prefix = make(map[string]PrefixQuery, 0) + } + if err := dec.Decode(&s.Prefix); err != nil { + return fmt.Errorf("%s | %w", "Prefix", err) + } + + case "range": + if s.Range == nil { + s.Range = make(map[string]RangeQuery, 0) + } + messages := make(map[string]json.RawMessage) + err := dec.Decode(&messages) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + + untyped := NewUntypedRangeQuery() + for key, message := range messages { + err := json.Unmarshal(message, &untyped) + if err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + s.Range[key] = untyped + } + + case "simple_query_string": + if err := dec.Decode(&s.SimpleQueryString); err != nil { + return fmt.Errorf("%s | %w", "SimpleQueryString", err) + } + + case "term": + if s.Term == nil { + s.Term = make(map[string]TermQuery, 0) + } + if err := dec.Decode(&s.Term); err != nil { + return fmt.Errorf("%s | %w", "Term", err) + } + + case "terms": + if err := dec.Decode(&s.Terms); err != nil { + return fmt.Errorf("%s | %w", "Terms", err) + } + + case "wildcard": + if s.Wildcard == nil { + s.Wildcard = make(map[string]WildcardQuery, 0) + } + if err := dec.Decode(&s.Wildcard); err != nil { + return fmt.Errorf("%s | %w", "Wildcard", err) + } + + } + } + return nil +} + +// NewUserQueryContainer returns a UserQueryContainer. +func NewUserQueryContainer() *UserQueryContainer { + r := &UserQueryContainer{ + Match: make(map[string]MatchQuery, 0), + Prefix: make(map[string]PrefixQuery, 0), + Range: make(map[string]RangeQuery, 0), + Term: make(map[string]TermQuery, 0), + Wildcard: make(map[string]WildcardQuery, 0), + } + + return r +} 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 7a1781c1d2..03db83b2a0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // UserRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/types.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 new file mode 100644 index 0000000000..223a38457e --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validation.go @@ -0,0 +1,32 @@ +// 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/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +// Validation holds the union for the following types: +// +// LessThanValidation +// GreaterThanValidation +// ListTypeValidation +// IncludedInValidation +// RegexValidation +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b794f7fbd7..da93a174dd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ValidationLoss type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L570-L575 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ml/_types/DataframeAnalytics.ts#L570-L575 type ValidationLoss struct { // FoldValues Validation loss values for every added decision tree during the forest // growing procedure. diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregate.go index bbc716346b..14042db8b3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // ValueCountAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L218-L222 type ValueCountAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *ValueCountAggregate) UnmarshalJSON(data []byte) error { 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 4b84b936f9..e931156ce5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L422-L422 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L422-L422 type ValueCountAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -39,7 +39,7 @@ type ValueCountAggregation struct { // Missing The value to apply to documents that do not have a value. // By default, documents without a value are ignored. Missing Missing `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *ValueCountAggregation) UnmarshalJSON(data []byte) error { @@ -80,40 +80,9 @@ func (s *ValueCountAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 cc40d56165..a8ee1c47bd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // VariableWidthHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L362-L364 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L364-L366 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 8d1498a950..eeb707f232 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // VariableWidthHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1017-L1038 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/bucket.ts#L1022-L1043 type VariableWidthHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` @@ -40,8 +40,8 @@ type VariableWidthHistogramAggregation struct { // InitialBuffer Specifies the number of individual documents that will be stored in memory on // a shard before the initial bucketing algorithm is run. // Defaults to `min(10 * shard_size, 50000)`. - InitialBuffer *int `json:"initial_buffer,omitempty"` - Script Script `json:"script,omitempty"` + InitialBuffer *int `json:"initial_buffer,omitempty"` + Script *Script `json:"script,omitempty"` // ShardSize The number of buckets that the coordinating node will request from each // shard. // Defaults to `buckets * 50`. @@ -101,40 +101,9 @@ func (s *VariableWidthHistogramAggregation) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } case "shard_size": 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 cb02c5246d..d642cbb6df 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // VariableWidthHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L366-L373 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L368-L375 type VariableWidthHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` 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 b77eb981f0..1c76563594 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Vector type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L454-L458 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L454-L458 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 ba1de9723c..85b1c8c9a3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // VerifyIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L111-L116 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f9f95ff40c..cbd6f73ec7 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // VersionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L275-L277 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L287-L289 type VersionProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -216,12 +216,6 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -240,6 +234,18 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -553,12 +559,6 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -577,6 +577,18 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 265e539328..51f02f29d2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Vertex type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Vertex.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d819adfc81..b1b21b87f1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // VertexDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Vertex.ts#L30-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 a7dd8b5a7d..5ad26b323e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // VertexInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Vertex.ts#L61-L64 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 97547de0f2..14d6d9e6f8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Vocabulary type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L233-L235 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 363349529f..119ddf7596 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -25,5 +25,5 @@ package types // int // waitforactiveshardoptions.WaitForActiveShardOptions // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L142-L143 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/common.ts#L142-L143 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 new file mode 100644 index 0000000000..ef3102519d --- /dev/null +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforsnapshotaction.go @@ -0,0 +1,76 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// WaitForSnapshotAction type. +// +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/ilm/_types/Phase.ts#L148-L150 +type WaitForSnapshotAction struct { + Policy string `json:"policy"` +} + +func (s *WaitForSnapshotAction) 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 "policy": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Policy", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Policy = o + + } + } + return nil +} + +// NewWaitForSnapshotAction returns a WaitForSnapshotAction. +func NewWaitForSnapshotAction() *WaitForSnapshotAction { + r := &WaitForSnapshotAction{} + + return r +} 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 e149e24add..44969c2892 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WarmerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L407-L412 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 7690ca470c..4f58716f47 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // Watch type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Watch.ts#L37-L47 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 cdf2eb7654..8622c29776 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Watcher type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L460-L464 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L460-L464 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 048d89889d..d2b9c63932 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // WatcherAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L41-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L41-L60 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 ffa7745b13..e4818648b1 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // WatcherActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L396-L398 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L396-L398 type WatcherActions struct { Actions map[string]WatcherActionTotals `json:"actions"` } diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractiontotals.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractiontotals.go index 99ff996ec6..35df8ecd9b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // WatcherActionTotals type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L412-L415 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L412-L415 type WatcherActionTotals struct { Total Duration `json:"total"` TotalTimeInMs int64 `json:"total_time_in_ms"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchercondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchercondition.go index 8072c373a4..8c99eeffbd 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // WatcherCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L47-L59 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9bfd235c06..a426602e97 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -26,7 +26,7 @@ import ( // WatcherInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L90-L98 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9745f01374..effcbc76ee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // WatcherNodeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/types.ts#L33-L40 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 34f9a40414..d0e8193d49 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // WatcherStatusActions type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L62-L62 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/watcher/_types/Action.ts#L62-L62 type WatcherStatusActions map[string]ActionStatus diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatch.go index 7be913fbee..6bdc4f713b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // WatcherWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L400-L405 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L400-L405 type WatcherWatch struct { Action map[string]Counter `json:"action,omitempty"` Condition map[string]Counter `json:"condition,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtrigger.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtrigger.go index 38790f519f..0886484c9b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // WatcherWatchTrigger type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L407-L410 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L407-L410 type WatcherWatchTrigger struct { All_ Counter `json:"_all"` Schedule *WatcherWatchTriggerSchedule `json:"schedule,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtriggerschedule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtriggerschedule.go index 39dc1524e6..11583c6437 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WatcherWatchTriggerSchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L466-L469 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L466-L469 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 fa81c6b093..368fd15ebb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // WatchRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/execute_watch/types.ts#L27-L39 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 12c80a6d94..b52d55da36 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // WatchRecordQueuedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/types.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9ece4af98b..dee922bcc5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -32,7 +32,7 @@ import ( // WatchRecordStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/types.ts#L54-L60 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 36720d1af1..246a8ac5d0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WatchStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Watch.ts#L49-L56 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 33ce9819ef..a542b885f4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -34,7 +34,7 @@ import ( // WebhookAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L293-L293 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d842d215e2..21b2aef44b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // WebhookResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L295-L298 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 81e52d51c5..68f2a6fad3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // WeightedAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L437-L451 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L437-L451 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 8ad59f2137..3c5a7e8ee4 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,13 +31,13 @@ import ( // WeightedAverageValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L453-L463 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/metric.ts#L453-L463 type WeightedAverageValue struct { // Field The field from which to extract the values or weights. Field *string `json:"field,omitempty"` // Missing A value or weight to use if the field is missing. Missing *Float64 `json:"missing,omitempty"` - Script Script `json:"script,omitempty"` + Script *Script `json:"script,omitempty"` } func (s *WeightedAverageValue) UnmarshalJSON(data []byte) error { @@ -77,40 +77,9 @@ func (s *WeightedAverageValue) UnmarshalJSON(data []byte) error { } case "script": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { + if err := dec.Decode(&s.Script); err != nil { return fmt.Errorf("%s | %w", "Script", err) } - keyDec := json.NewDecoder(bytes.NewReader(message)) - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "Script", err) - } - - switch t { - - case "lang", "options", "source": - o := NewInlineScript() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - case "id": - o := NewStoredScriptId() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Script", err) - } - s.Script = o - - } - } } } 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 f2842b91ad..8e2b47d1e5 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,14 +31,14 @@ import ( // WeightedAvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L212-L216 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/aggregations/Aggregate.ts#L212-L216 type WeightedAvgAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to // aggregate, // unless specified otherwise. - Value Float64 `json:"value,omitempty"` - ValueAsString *string `json:"value_as_string,omitempty"` + Value *Float64 `json:"value,omitempty"` + ValueAsString *string `json:"value_as_string,omitempty"` } func (s *WeightedAvgAggregate) UnmarshalJSON(data []byte) error { 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 b95b36016b..b553a16bde 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WeightedTokensQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/WeightedTokensQuery.ts#L27-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/WeightedTokensQuery.ts#L27-L32 type WeightedTokensQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. 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 b9a7e84a01..eabad9be4a 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // Weights type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L108-L110 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5bfdef6716..86828e9610 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -30,7 +30,7 @@ import ( // WhitespaceAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L108-L111 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/analyzers.ts#L108-L111 type WhitespaceAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespacetokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespacetokenizer.go index 0a3a9b2a60..e6de6f2f83 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WhitespaceTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/tokenizers.ts#L115-L118 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 fc225405b8..16fcf2093c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // WildcardProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L279-L286 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/mapping/core.ts#L291-L298 type WildcardProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -217,12 +217,6 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Fields[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -241,6 +235,18 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error { return err } s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Fields[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { @@ -566,12 +572,6 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo - case "sparse_vector": - oo := NewSparseVectorProperty() - if err := localDec.Decode(&oo); err != nil { - return err - } - s.Properties[key] = oo case "flattened": oo := NewFlattenedProperty() if err := localDec.Decode(&oo); err != nil { @@ -590,6 +590,18 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error { return err } s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return err + } + s.Properties[key] = oo case "completion": oo := NewCompletionProperty() if err := localDec.Decode(&oo); err != nil { 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 109df1b7ac..541f9b4dac 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WildcardQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L268-L285 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/term.ts#L273-L290 type WildcardQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -62,7 +62,10 @@ func (s *WildcardQuery) UnmarshalJSON(data []byte) error { data = append(data, []byte{'"'}...) } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Value) - return err + if err != nil { + return err + } + return nil } dec := json.NewDecoder(bytes.NewReader(data)) 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 9328985b7d..3ed120980c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WktGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L150-L152 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 078e0912e0..b7dcb6db1d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WordDelimiterGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L151-L168 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L151-L168 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 a99dea3811..a2b29e4820 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WordDelimiterTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L134-L149 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/analysis/token_filters.ts#L134-L149 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 d324098769..50fb40bcec 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // WrapperQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L481-L487 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/_types/query_dsl/abstractions.ts#L501-L507 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 f547b70d09..546b15cb88 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -33,7 +33,7 @@ import ( // WriteOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L109-L128 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2d9ca00993..416e4d6b21 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // XpackDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L77-L79 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L77-L79 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 794eab2906..f91e28e047 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // XpackFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/info/types.ts#L77-L82 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 abbdd4f3d5..bbacc5665c 100644 --- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeatures.go +++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeatures.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types // XpackFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L42-L75 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/info/types.ts#L42-L75 type XpackFeatures struct { AggregateMetric XpackFeature `json:"aggregate_metric"` Analytics XpackFeature `json:"analytics"` diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackquery.go index e536a60312..341a24c4a0 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // XpackQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L259-L264 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L259-L264 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 5824a098af..7c0b431810 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // XpackRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L417-L426 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L417-L426 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 871b67f8df..31b6b5115b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // XpackRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L270-L273 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L270-L273 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 9ff530a8e0..a340a35a66 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // XpackRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L275-L277 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/specification/xpack/usage/types.ts#L275-L277 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 b93c8deb2d..2d249bbf83 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L201-L222 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 010c8a1d25..a22722bb33 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L374-L383 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 c77070b241..c3a447f8c6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 621512fc7d..307146401d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package ackwatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package ackwatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d1625e7ff4..c3271abfcc 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 8973971232..de92cb45b2 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package activatewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package activatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f649a29d86..6d419927ce 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 e1a990e817..0676583dd6 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deactivatewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deactivatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bed0a92eea..6e8e170f53 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 6f87db6a10..6d8c410343 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package deletewatch // Response holds the response body struct for the package deletewatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/delete_watch/DeleteWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 f3a1ae3508..9909256b93 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,9 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef - -// Forces the execution of a stored watch. +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 + +// 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. +// For testing and debugging purposes, you also have fine-grained control on how +// the watch runs. You can execute the watch without executing all of its +// actions or alternatively by simulating them. You can also force execution by +// ignoring the watch condition and control whether a watch record would be +// written to the watch history after execution. package executewatch import ( @@ -80,7 +86,13 @@ func NewExecuteWatchFunc(tp elastictransport.Interface) NewExecuteWatch { } } -// Forces the execution of a stored watch. +// 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. +// For testing and debugging purposes, you also have fine-grained control on how +// the watch runs. You can execute the watch without executing all of its +// actions or alternatively by simulating them. You can also force execution by +// ignoring the watch condition and control whether a watch record would be +// written to the watch history after execution. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html func New(tp elastictransport.Interface) *ExecuteWatch { diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/request.go index f9b6fc0119..45ebbb0b52 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package executewatch @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L79 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 87f2ae0f96..eda16492fb 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package executewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 d8066cc0a6..5c7b885b5f 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 f2df59fc76..8170c4b35c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 bf069be19a..4540dba958 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package getwatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getwatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/get_watch/GetWatchResponse.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 69da2bd315..c7d30e4d8e 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 4c4f58f32c..4b7a9bbe05 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putwatch @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/put_watch/WatcherPutWatchRequest.ts#L30-L53 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 b9f22af9ef..b8696ce172 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package putwatch // Response holds the response body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 9f90202452..76f7b6f185 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 53e35495e7..edad2b6269 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package querywatches @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L48 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 bf55f72a7a..393729f594 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package querywatches @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 0e36f3fbd1..57c58b311c 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/start/WatcherStartResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 37b44bd437..3b6edae5c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 669a15a9c1..9f0a464551 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/WatcherStatsResponse.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 63f3426377..2fb709a5c3 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 0f55e2687f..fc75499960 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stop/WatcherStopResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5bdfc6ad1a..91e5c3d0ee 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 2c39bc29ff..fcdca0b2c8 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 // 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 0097aa178d..8eb0d5974f 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,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves information about the installed X-Pack features. +// Provides general information about the installed X-Pack features. package info import ( @@ -68,7 +68,7 @@ func NewInfoFunc(tp elastictransport.Interface) NewInfo { } } -// Retrieves information about the installed X-Pack features. +// Provides general information about the installed X-Pack features. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html func New(tp elastictransport.Interface) *Info { 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 5343351513..b9bf39ca1d 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/XPackInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 5d9c191dbc..481cb3c68b 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/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 package usage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/XPackUsageResponse.ts#L43-L79 +// https://github.com/elastic/elasticsearch-specification/blob/19027dbdd366978ccae41842a040a636730e7c10/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 2424a02af8..5df877f8d3 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,9 +16,10 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef +// https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10 -// Retrieves usage information about the installed X-Pack features. +// This API provides information about which features are currently enabled and +// available under the current license and some usage statistics. package usage import ( @@ -68,7 +69,8 @@ func NewUsageFunc(tp elastictransport.Interface) NewUsage { } } -// Retrieves usage information about the installed X-Pack features. +// This API provides information about which features are currently enabled and +// available under the current license and some usage statistics. // // https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html func New(tp elastictransport.Interface) *Usage { diff --git a/vendor/github.com/gorilla/websocket/.editorconfig b/vendor/github.com/gorilla/websocket/.editorconfig deleted file mode 100644 index 2940ec92ac..0000000000 --- a/vendor/github.com/gorilla/websocket/.editorconfig +++ /dev/null @@ -1,20 +0,0 @@ -; https://editorconfig.org/ - -root = true - -[*] -insert_final_newline = true -charset = utf-8 -trim_trailing_whitespace = true -indent_style = space -indent_size = 2 - -[{Makefile,go.mod,go.sum,*.go,.gitmodules}] -indent_style = tab -indent_size = 4 - -[*.md] -indent_size = 4 -trim_trailing_whitespace = false - -eclint_indent_style = unset diff --git a/vendor/github.com/gorilla/websocket/.gitignore b/vendor/github.com/gorilla/websocket/.gitignore index 84039fec68..cd3fcd1ef7 100644 --- a/vendor/github.com/gorilla/websocket/.gitignore +++ b/vendor/github.com/gorilla/websocket/.gitignore @@ -1 +1,25 @@ -coverage.coverprofile +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe + +.idea/ +*.iml diff --git a/vendor/github.com/gorilla/websocket/.golangci.yml b/vendor/github.com/gorilla/websocket/.golangci.yml deleted file mode 100644 index 34882139e1..0000000000 --- a/vendor/github.com/gorilla/websocket/.golangci.yml +++ /dev/null @@ -1,3 +0,0 @@ -run: - skip-dirs: - - examples/*.go diff --git a/vendor/github.com/gorilla/websocket/AUTHORS b/vendor/github.com/gorilla/websocket/AUTHORS new file mode 100644 index 0000000000..1931f40068 --- /dev/null +++ b/vendor/github.com/gorilla/websocket/AUTHORS @@ -0,0 +1,9 @@ +# This is the official list of Gorilla WebSocket authors for copyright +# purposes. +# +# Please keep the list sorted. + +Gary Burd +Google LLC (https://opensource.google.com/) +Joachim Bauch + diff --git a/vendor/github.com/gorilla/websocket/LICENSE b/vendor/github.com/gorilla/websocket/LICENSE index bb9d80bc9b..9171c97225 100644 --- a/vendor/github.com/gorilla/websocket/LICENSE +++ b/vendor/github.com/gorilla/websocket/LICENSE @@ -1,27 +1,22 @@ -Copyright (c) 2023 The Gorilla Authors. All rights reserved. +Copyright (c) 2013 The Gorilla WebSocket Authors. All rights reserved. Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: +modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. + Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/gorilla/websocket/Makefile b/vendor/github.com/gorilla/websocket/Makefile deleted file mode 100644 index 603a63f50a..0000000000 --- a/vendor/github.com/gorilla/websocket/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -GO_LINT=$(shell which golangci-lint 2> /dev/null || echo '') -GO_LINT_URI=github.com/golangci/golangci-lint/cmd/golangci-lint@latest - -GO_SEC=$(shell which gosec 2> /dev/null || echo '') -GO_SEC_URI=github.com/securego/gosec/v2/cmd/gosec@latest - -GO_VULNCHECK=$(shell which govulncheck 2> /dev/null || echo '') -GO_VULNCHECK_URI=golang.org/x/vuln/cmd/govulncheck@latest - -.PHONY: golangci-lint -golangci-lint: - $(if $(GO_LINT), ,go install $(GO_LINT_URI)) - @echo "##### Running golangci-lint" - golangci-lint run -v - -.PHONY: gosec -gosec: - $(if $(GO_SEC), ,go install $(GO_SEC_URI)) - @echo "##### Running gosec" - gosec -exclude-dir examples ./... - -.PHONY: govulncheck -govulncheck: - $(if $(GO_VULNCHECK), ,go install $(GO_VULNCHECK_URI)) - @echo "##### Running govulncheck" - govulncheck ./... - -.PHONY: verify -verify: golangci-lint gosec govulncheck - -.PHONY: test -test: - @echo "##### Running tests" - go test -race -cover -coverprofile=coverage.coverprofile -covermode=atomic -v ./... diff --git a/vendor/github.com/gorilla/websocket/README.md b/vendor/github.com/gorilla/websocket/README.md index 1fd5e9c4e7..d33ed7fdd8 100644 --- a/vendor/github.com/gorilla/websocket/README.md +++ b/vendor/github.com/gorilla/websocket/README.md @@ -1,13 +1,10 @@ -# gorilla/websocket +# Gorilla WebSocket -![testing](https://github.com/gorilla/websocket/actions/workflows/test.yml/badge.svg) -[![codecov](https://codecov.io/github/gorilla/websocket/branch/main/graph/badge.svg)](https://codecov.io/github/gorilla/websocket) -[![godoc](https://godoc.org/github.com/gorilla/websocket?status.svg)](https://godoc.org/github.com/gorilla/websocket) -[![sourcegraph](https://sourcegraph.com/github.com/gorilla/websocket/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/websocket?badge) +[![GoDoc](https://godoc.org/github.com/gorilla/websocket?status.svg)](https://godoc.org/github.com/gorilla/websocket) +[![CircleCI](https://circleci.com/gh/gorilla/websocket.svg?style=svg)](https://circleci.com/gh/gorilla/websocket) -Gorilla WebSocket is a [Go](http://golang.org/) implementation of the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol. - -![Gorilla Logo](https://github.com/gorilla/.github/assets/53367916/d92caabf-98e0-473e-bfbf-ab554ba435e5) +Gorilla WebSocket is a [Go](http://golang.org/) implementation of the +[WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol. ### Documentation @@ -17,7 +14,6 @@ Gorilla WebSocket is a [Go](http://golang.org/) implementation of the [WebSocket * [Command example](https://github.com/gorilla/websocket/tree/master/examples/command) * [Client and server example](https://github.com/gorilla/websocket/tree/master/examples/echo) * [File watch example](https://github.com/gorilla/websocket/tree/master/examples/filewatch) -* [Write buffer pool example](https://github.com/gorilla/websocket/tree/master/examples/bufferpool) ### Status @@ -34,3 +30,4 @@ package API is stable. The Gorilla WebSocket package passes the server tests in the [Autobahn Test Suite](https://github.com/crossbario/autobahn-testsuite) using the application in the [examples/autobahn subdirectory](https://github.com/gorilla/websocket/tree/master/examples/autobahn). + diff --git a/vendor/github.com/gorilla/websocket/client.go b/vendor/github.com/gorilla/websocket/client.go index 815b0ca5c8..04fdafee18 100644 --- a/vendor/github.com/gorilla/websocket/client.go +++ b/vendor/github.com/gorilla/websocket/client.go @@ -11,16 +11,13 @@ import ( "errors" "fmt" "io" - "log" - + "io/ioutil" "net" "net/http" "net/http/httptrace" "net/url" "strings" "time" - - "golang.org/x/net/proxy" ) // ErrBadHandshake is returned when the server response to opening handshake is @@ -228,7 +225,6 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h k == "Connection" || k == "Sec-Websocket-Key" || k == "Sec-Websocket-Version" || - //#nosec G101 (CWE-798): Potential HTTP request smuggling via parameter pollution k == "Sec-Websocket-Extensions" || (k == "Sec-Websocket-Protocol" && len(d.Subprotocols) > 0): return nil, nil, errors.New("websocket: duplicate header not allowed: " + k) @@ -294,9 +290,7 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h } err = c.SetDeadline(deadline) if err != nil { - if err := c.Close(); err != nil { - log.Printf("websocket: failed to close network connection: %v", err) - } + c.Close() return nil, err } return c, nil @@ -310,7 +304,7 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h return nil, nil, err } if proxyURL != nil { - dialer, err := proxy.FromURL(proxyURL, netDialerFunc(netDial)) + dialer, err := proxy_FromURL(proxyURL, netDialerFunc(netDial)) if err != nil { return nil, nil, err } @@ -336,9 +330,7 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h defer func() { if netConn != nil { - if err := netConn.Close(); err != nil { - log.Printf("websocket: failed to close network connection: %v", err) - } + netConn.Close() } }() @@ -408,7 +400,7 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h // debugging. buf := make([]byte, 1024) n, _ := io.ReadFull(resp.Body, buf) - resp.Body = io.NopCloser(bytes.NewReader(buf[:n])) + resp.Body = ioutil.NopCloser(bytes.NewReader(buf[:n])) return nil, resp, ErrBadHandshake } @@ -426,19 +418,17 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h break } - resp.Body = io.NopCloser(bytes.NewReader([]byte{})) + resp.Body = ioutil.NopCloser(bytes.NewReader([]byte{})) conn.subprotocol = resp.Header.Get("Sec-Websocket-Protocol") - if err := netConn.SetDeadline(time.Time{}); err != nil { - return nil, nil, err - } + netConn.SetDeadline(time.Time{}) netConn = nil // to avoid close in defer. return conn, resp, nil } func cloneTLSConfig(cfg *tls.Config) *tls.Config { if cfg == nil { - return &tls.Config{MinVersion: tls.VersionTLS12} + return &tls.Config{} } return cfg.Clone() } diff --git a/vendor/github.com/gorilla/websocket/compression.go b/vendor/github.com/gorilla/websocket/compression.go index 9fed0ef521..813ffb1e84 100644 --- a/vendor/github.com/gorilla/websocket/compression.go +++ b/vendor/github.com/gorilla/websocket/compression.go @@ -8,7 +8,6 @@ import ( "compress/flate" "errors" "io" - "log" "strings" "sync" ) @@ -34,9 +33,7 @@ func decompressNoContextTakeover(r io.Reader) io.ReadCloser { "\x01\x00\x00\xff\xff" fr, _ := flateReaderPool.Get().(io.ReadCloser) - if err := fr.(flate.Resetter).Reset(io.MultiReader(r, strings.NewReader(tail)), nil); err != nil { - panic(err) - } + fr.(flate.Resetter).Reset(io.MultiReader(r, strings.NewReader(tail)), nil) return &flateReadWrapper{fr} } @@ -135,9 +132,7 @@ func (r *flateReadWrapper) Read(p []byte) (int, error) { // Preemptively place the reader back in the pool. This helps with // scenarios where the application does not call NextReader() soon after // this final read. - if err := r.Close(); err != nil { - log.Printf("websocket: flateReadWrapper.Close() returned error: %v", err) - } + r.Close() } return n, err } diff --git a/vendor/github.com/gorilla/websocket/conn.go b/vendor/github.com/gorilla/websocket/conn.go index 221e6cf798..5161ef81f6 100644 --- a/vendor/github.com/gorilla/websocket/conn.go +++ b/vendor/github.com/gorilla/websocket/conn.go @@ -6,11 +6,11 @@ package websocket import ( "bufio" - "crypto/rand" "encoding/binary" "errors" "io" - "log" + "io/ioutil" + "math/rand" "net" "strconv" "strings" @@ -181,20 +181,13 @@ var ( errInvalidControlFrame = errors.New("websocket: invalid control frame") ) -// maskRand is an io.Reader for generating mask bytes. The reader is initialized -// to crypto/rand Reader. Tests swap the reader to a math/rand reader for -// reproducible results. -var maskRand = rand.Reader - -// newMaskKey returns a new 32 bit value for masking client frames. func newMaskKey() [4]byte { - var k [4]byte - _, _ = io.ReadFull(maskRand, k[:]) - return k + n := rand.Uint32() + return [4]byte{byte(n), byte(n >> 8), byte(n >> 16), byte(n >> 24)} } func hideTempErr(err error) error { - if e, ok := err.(net.Error); ok { + if e, ok := err.(net.Error); ok && e.Temporary() { err = &netError{msg: e.Error(), timeout: e.Timeout()} } return err @@ -379,9 +372,7 @@ func (c *Conn) read(n int) ([]byte, error) { if err == io.EOF { err = errUnexpectedEOF } - if _, err := c.br.Discard(len(p)); err != nil { - return p, err - } + c.br.Discard(len(p)) return p, err } @@ -396,9 +387,7 @@ func (c *Conn) write(frameType int, deadline time.Time, buf0, buf1 []byte) error return err } - if err := c.conn.SetWriteDeadline(deadline); err != nil { - return c.writeFatal(err) - } + c.conn.SetWriteDeadline(deadline) if len(buf1) == 0 { _, err = c.conn.Write(buf0) } else { @@ -408,7 +397,7 @@ func (c *Conn) write(frameType int, deadline time.Time, buf0, buf1 []byte) error return c.writeFatal(err) } if frameType == CloseMessage { - _ = c.writeFatal(ErrCloseSent) + c.writeFatal(ErrCloseSent) } return nil } @@ -449,7 +438,7 @@ func (c *Conn) WriteControl(messageType int, data []byte, deadline time.Time) er d := 1000 * time.Hour if !deadline.IsZero() { - d = time.Until(deadline) + d = deadline.Sub(time.Now()) if d < 0 { return errWriteTimeout } @@ -471,15 +460,13 @@ func (c *Conn) WriteControl(messageType int, data []byte, deadline time.Time) er return err } - if err := c.conn.SetWriteDeadline(deadline); err != nil { - return c.writeFatal(err) - } + c.conn.SetWriteDeadline(deadline) _, err = c.conn.Write(buf) if err != nil { return c.writeFatal(err) } if messageType == CloseMessage { - _ = c.writeFatal(ErrCloseSent) + c.writeFatal(ErrCloseSent) } return err } @@ -490,9 +477,7 @@ func (c *Conn) beginMessage(mw *messageWriter, messageType int) error { // probably better to return an error in this situation, but we cannot // change this without breaking existing applications. if c.writer != nil { - if err := c.writer.Close(); err != nil { - log.Printf("websocket: discarding writer close error: %v", err) - } + c.writer.Close() c.writer = nil } @@ -645,7 +630,7 @@ func (w *messageWriter) flushFrame(final bool, extra []byte) error { } if final { - _ = w.endMessage(errWriteClosed) + w.endMessage(errWriteClosed) return nil } @@ -810,7 +795,7 @@ func (c *Conn) advanceFrame() (int, error) { // 1. Skip remainder of previous frame. if c.readRemaining > 0 { - if _, err := io.CopyN(io.Discard, c.br, c.readRemaining); err != nil { + if _, err := io.CopyN(ioutil.Discard, c.br, c.readRemaining); err != nil { return noFrame, err } } @@ -832,9 +817,7 @@ func (c *Conn) advanceFrame() (int, error) { rsv2 := p[0]&rsv2Bit != 0 rsv3 := p[0]&rsv3Bit != 0 mask := p[1]&maskBit != 0 - if err := c.setReadRemaining(int64(p[1] & 0x7f)); err != nil { - return noFrame, err - } + c.setReadRemaining(int64(p[1] & 0x7f)) c.readDecompress = false if rsv1 { @@ -939,9 +922,7 @@ func (c *Conn) advanceFrame() (int, error) { } if c.readLimit > 0 && c.readLength > c.readLimit { - if err := c.WriteControl(CloseMessage, FormatCloseMessage(CloseMessageTooBig, ""), time.Now().Add(writeWait)); err != nil { - return noFrame, err - } + c.WriteControl(CloseMessage, FormatCloseMessage(CloseMessageTooBig, ""), time.Now().Add(writeWait)) return noFrame, ErrReadLimit } @@ -953,9 +934,7 @@ func (c *Conn) advanceFrame() (int, error) { var payload []byte if c.readRemaining > 0 { payload, err = c.read(int(c.readRemaining)) - if err := c.setReadRemaining(0); err != nil { - return noFrame, err - } + c.setReadRemaining(0) if err != nil { return noFrame, err } @@ -1002,9 +981,7 @@ func (c *Conn) handleProtocolError(message string) error { if len(data) > maxControlFramePayloadSize { data = data[:maxControlFramePayloadSize] } - if err := c.WriteControl(CloseMessage, data, time.Now().Add(writeWait)); err != nil { - return err - } + c.WriteControl(CloseMessage, data, time.Now().Add(writeWait)) return errors.New("websocket: " + message) } @@ -1021,9 +998,7 @@ func (c *Conn) handleProtocolError(message string) error { func (c *Conn) NextReader() (messageType int, r io.Reader, err error) { // Close previous reader, only relevant for decompression. if c.reader != nil { - if err := c.reader.Close(); err != nil { - log.Printf("websocket: discarding reader close error: %v", err) - } + c.reader.Close() c.reader = nil } @@ -1079,9 +1054,7 @@ func (r *messageReader) Read(b []byte) (int, error) { } rem := c.readRemaining rem -= int64(n) - if err := c.setReadRemaining(rem); err != nil { - return 0, err - } + c.setReadRemaining(rem) if c.readRemaining > 0 && c.readErr == io.EOF { c.readErr = errUnexpectedEOF } @@ -1121,7 +1094,7 @@ func (c *Conn) ReadMessage() (messageType int, p []byte, err error) { if err != nil { return messageType, nil, err } - p, err = io.ReadAll(r) + p, err = ioutil.ReadAll(r) return messageType, p, err } @@ -1163,9 +1136,7 @@ func (c *Conn) SetCloseHandler(h func(code int, text string) error) { if h == nil { h = func(code int, text string) error { message := FormatCloseMessage(code, "") - if err := c.WriteControl(CloseMessage, message, time.Now().Add(writeWait)); err != nil { - return err - } + c.WriteControl(CloseMessage, message, time.Now().Add(writeWait)) return nil } } @@ -1190,7 +1161,7 @@ func (c *Conn) SetPingHandler(h func(appData string) error) { err := c.WriteControl(PongMessage, []byte(message), time.Now().Add(writeWait)) if err == ErrCloseSent { return nil - } else if _, ok := err.(net.Error); ok { + } else if e, ok := err.(net.Error); ok && e.Temporary() { return nil } return err diff --git a/vendor/github.com/gorilla/websocket/mask.go b/vendor/github.com/gorilla/websocket/mask.go index 67d0968be8..d0742bf2a5 100644 --- a/vendor/github.com/gorilla/websocket/mask.go +++ b/vendor/github.com/gorilla/websocket/mask.go @@ -9,7 +9,6 @@ package websocket import "unsafe" -// #nosec G103 -- (CWE-242) Has been audited const wordSize = int(unsafe.Sizeof(uintptr(0))) func maskBytes(key [4]byte, pos int, b []byte) int { @@ -23,7 +22,6 @@ func maskBytes(key [4]byte, pos int, b []byte) int { } // Mask one byte at a time to word boundary. - //#nosec G103 -- (CWE-242) Has been audited if n := int(uintptr(unsafe.Pointer(&b[0]))) % wordSize; n != 0 { n = wordSize - n for i := range b[:n] { @@ -38,13 +36,11 @@ func maskBytes(key [4]byte, pos int, b []byte) int { for i := range k { k[i] = key[(pos+i)&3] } - //#nosec G103 -- (CWE-242) Has been audited kw := *(*uintptr)(unsafe.Pointer(&k)) // Mask one word at a time. n := (len(b) / wordSize) * wordSize for i := 0; i < n; i += wordSize { - //#nosec G103 -- (CWE-242) Has been audited *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&b[0])) + uintptr(i))) ^= kw } diff --git a/vendor/github.com/gorilla/websocket/proxy.go b/vendor/github.com/gorilla/websocket/proxy.go index 80f55d1eac..e0f466b72f 100644 --- a/vendor/github.com/gorilla/websocket/proxy.go +++ b/vendor/github.com/gorilla/websocket/proxy.go @@ -8,13 +8,10 @@ import ( "bufio" "encoding/base64" "errors" - "log" "net" "net/http" "net/url" "strings" - - "golang.org/x/net/proxy" ) type netDialerFunc func(network, addr string) (net.Conn, error) @@ -24,7 +21,7 @@ func (fn netDialerFunc) Dial(network, addr string) (net.Conn, error) { } func init() { - proxy.RegisterDialerType("http", func(proxyURL *url.URL, forwardDialer proxy.Dialer) (proxy.Dialer, error) { + proxy_RegisterDialerType("http", func(proxyURL *url.URL, forwardDialer proxy_Dialer) (proxy_Dialer, error) { return &httpProxyDialer{proxyURL: proxyURL, forwardDial: forwardDialer.Dial}, nil }) } @@ -58,9 +55,7 @@ func (hpd *httpProxyDialer) Dial(network string, addr string) (net.Conn, error) } if err := connectReq.Write(conn); err != nil { - if err := conn.Close(); err != nil { - log.Printf("httpProxyDialer: failed to close connection: %v", err) - } + conn.Close() return nil, err } @@ -69,16 +64,12 @@ func (hpd *httpProxyDialer) Dial(network string, addr string) (net.Conn, error) br := bufio.NewReader(conn) resp, err := http.ReadResponse(br, connectReq) if err != nil { - if err := conn.Close(); err != nil { - log.Printf("httpProxyDialer: failed to close connection: %v", err) - } + conn.Close() return nil, err } if resp.StatusCode != 200 { - if err := conn.Close(); err != nil { - log.Printf("httpProxyDialer: failed to close connection: %v", err) - } + conn.Close() f := strings.SplitN(resp.Status, " ", 2) return nil, errors.New(f[1]) } diff --git a/vendor/github.com/gorilla/websocket/server.go b/vendor/github.com/gorilla/websocket/server.go index 1e720e1da4..bb33597432 100644 --- a/vendor/github.com/gorilla/websocket/server.go +++ b/vendor/github.com/gorilla/websocket/server.go @@ -8,7 +8,6 @@ import ( "bufio" "errors" "io" - "log" "net/http" "net/url" "strings" @@ -184,9 +183,7 @@ func (u *Upgrader) Upgrade(w http.ResponseWriter, r *http.Request, responseHeade } if brw.Reader.Buffered() > 0 { - if err := netConn.Close(); err != nil { - log.Printf("websocket: failed to close network connection: %v", err) - } + netConn.Close() return nil, errors.New("websocket: client sent data before handshake is complete") } @@ -251,34 +248,17 @@ func (u *Upgrader) Upgrade(w http.ResponseWriter, r *http.Request, responseHeade p = append(p, "\r\n"...) // Clear deadlines set by HTTP server. - if err := netConn.SetDeadline(time.Time{}); err != nil { - if err := netConn.Close(); err != nil { - log.Printf("websocket: failed to close network connection: %v", err) - } - return nil, err - } + netConn.SetDeadline(time.Time{}) if u.HandshakeTimeout > 0 { - if err := netConn.SetWriteDeadline(time.Now().Add(u.HandshakeTimeout)); err != nil { - if err := netConn.Close(); err != nil { - log.Printf("websocket: failed to close network connection: %v", err) - } - return nil, err - } + netConn.SetWriteDeadline(time.Now().Add(u.HandshakeTimeout)) } if _, err = netConn.Write(p); err != nil { - if err := netConn.Close(); err != nil { - log.Printf("websocket: failed to close network connection: %v", err) - } + netConn.Close() return nil, err } if u.HandshakeTimeout > 0 { - if err := netConn.SetWriteDeadline(time.Time{}); err != nil { - if err := netConn.Close(); err != nil { - log.Printf("websocket: failed to close network connection: %v", err) - } - return nil, err - } + netConn.SetWriteDeadline(time.Time{}) } return c, nil @@ -376,12 +356,8 @@ func bufioWriterBuffer(originalWriter io.Writer, bw *bufio.Writer) []byte { // bufio.Writer's underlying writer. var wh writeHook bw.Reset(&wh) - if err := bw.WriteByte(0); err != nil { - panic(err) - } - if err := bw.Flush(); err != nil { - log.Printf("websocket: bufioWriterBuffer: Flush: %v", err) - } + bw.WriteByte(0) + bw.Flush() bw.Reset(originalWriter) diff --git a/vendor/github.com/gorilla/websocket/tls_handshake.go b/vendor/github.com/gorilla/websocket/tls_handshake.go index 7f38645348..a62b68ccb1 100644 --- a/vendor/github.com/gorilla/websocket/tls_handshake.go +++ b/vendor/github.com/gorilla/websocket/tls_handshake.go @@ -1,3 +1,6 @@ +//go:build go1.17 +// +build go1.17 + package websocket import ( diff --git a/vendor/github.com/gorilla/websocket/tls_handshake_116.go b/vendor/github.com/gorilla/websocket/tls_handshake_116.go new file mode 100644 index 0000000000..e1b2b44f6e --- /dev/null +++ b/vendor/github.com/gorilla/websocket/tls_handshake_116.go @@ -0,0 +1,21 @@ +//go:build !go1.17 +// +build !go1.17 + +package websocket + +import ( + "context" + "crypto/tls" +) + +func doHandshake(ctx context.Context, tlsConn *tls.Conn, cfg *tls.Config) error { + if err := tlsConn.Handshake(); err != nil { + return err + } + if !cfg.InsecureSkipVerify { + if err := tlsConn.VerifyHostname(cfg.ServerName); err != nil { + return err + } + } + return nil +} diff --git a/vendor/github.com/gorilla/websocket/util.go b/vendor/github.com/gorilla/websocket/util.go index 9b1a629bff..31a5dee646 100644 --- a/vendor/github.com/gorilla/websocket/util.go +++ b/vendor/github.com/gorilla/websocket/util.go @@ -6,7 +6,7 @@ package websocket import ( "crypto/rand" - "crypto/sha1" //#nosec G505 -- (CWE-327) https://datatracker.ietf.org/doc/html/rfc6455#page-54 + "crypto/sha1" "encoding/base64" "io" "net/http" @@ -17,7 +17,7 @@ import ( var keyGUID = []byte("258EAFA5-E914-47DA-95CA-C5AB0DC85B11") func computeAcceptKey(challengeKey string) string { - h := sha1.New() //#nosec G401 -- (CWE-326) https://datatracker.ietf.org/doc/html/rfc6455#page-54 + h := sha1.New() h.Write([]byte(challengeKey)) h.Write(keyGUID) return base64.StdEncoding.EncodeToString(h.Sum(nil)) diff --git a/vendor/github.com/gorilla/websocket/x_net_proxy.go b/vendor/github.com/gorilla/websocket/x_net_proxy.go new file mode 100644 index 0000000000..2e668f6b88 --- /dev/null +++ b/vendor/github.com/gorilla/websocket/x_net_proxy.go @@ -0,0 +1,473 @@ +// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT. +//go:generate bundle -o x_net_proxy.go golang.org/x/net/proxy + +// Package proxy provides support for a variety of protocols to proxy network +// data. +// + +package websocket + +import ( + "errors" + "io" + "net" + "net/url" + "os" + "strconv" + "strings" + "sync" +) + +type proxy_direct struct{} + +// Direct is a direct proxy: one that makes network connections directly. +var proxy_Direct = proxy_direct{} + +func (proxy_direct) Dial(network, addr string) (net.Conn, error) { + return net.Dial(network, addr) +} + +// A PerHost directs connections to a default Dialer unless the host name +// requested matches one of a number of exceptions. +type proxy_PerHost struct { + def, bypass proxy_Dialer + + bypassNetworks []*net.IPNet + bypassIPs []net.IP + bypassZones []string + bypassHosts []string +} + +// NewPerHost returns a PerHost Dialer that directs connections to either +// defaultDialer or bypass, depending on whether the connection matches one of +// the configured rules. +func proxy_NewPerHost(defaultDialer, bypass proxy_Dialer) *proxy_PerHost { + return &proxy_PerHost{ + def: defaultDialer, + bypass: bypass, + } +} + +// Dial connects to the address addr on the given network through either +// defaultDialer or bypass. +func (p *proxy_PerHost) Dial(network, addr string) (c net.Conn, err error) { + host, _, err := net.SplitHostPort(addr) + if err != nil { + return nil, err + } + + return p.dialerForRequest(host).Dial(network, addr) +} + +func (p *proxy_PerHost) dialerForRequest(host string) proxy_Dialer { + if ip := net.ParseIP(host); ip != nil { + for _, net := range p.bypassNetworks { + if net.Contains(ip) { + return p.bypass + } + } + for _, bypassIP := range p.bypassIPs { + if bypassIP.Equal(ip) { + return p.bypass + } + } + return p.def + } + + for _, zone := range p.bypassZones { + if strings.HasSuffix(host, zone) { + return p.bypass + } + if host == zone[1:] { + // For a zone ".example.com", we match "example.com" + // too. + return p.bypass + } + } + for _, bypassHost := range p.bypassHosts { + if bypassHost == host { + return p.bypass + } + } + return p.def +} + +// AddFromString parses a string that contains comma-separated values +// specifying hosts that should use the bypass proxy. Each value is either an +// IP address, a CIDR range, a zone (*.example.com) or a host name +// (localhost). A best effort is made to parse the string and errors are +// ignored. +func (p *proxy_PerHost) AddFromString(s string) { + hosts := strings.Split(s, ",") + for _, host := range hosts { + host = strings.TrimSpace(host) + if len(host) == 0 { + continue + } + if strings.Contains(host, "/") { + // We assume that it's a CIDR address like 127.0.0.0/8 + if _, net, err := net.ParseCIDR(host); err == nil { + p.AddNetwork(net) + } + continue + } + if ip := net.ParseIP(host); ip != nil { + p.AddIP(ip) + continue + } + if strings.HasPrefix(host, "*.") { + p.AddZone(host[1:]) + continue + } + p.AddHost(host) + } +} + +// AddIP specifies an IP address that will use the bypass proxy. Note that +// this will only take effect if a literal IP address is dialed. A connection +// to a named host will never match an IP. +func (p *proxy_PerHost) AddIP(ip net.IP) { + p.bypassIPs = append(p.bypassIPs, ip) +} + +// AddNetwork specifies an IP range that will use the bypass proxy. Note that +// this will only take effect if a literal IP address is dialed. A connection +// to a named host will never match. +func (p *proxy_PerHost) AddNetwork(net *net.IPNet) { + p.bypassNetworks = append(p.bypassNetworks, net) +} + +// AddZone specifies a DNS suffix that will use the bypass proxy. A zone of +// "example.com" matches "example.com" and all of its subdomains. +func (p *proxy_PerHost) AddZone(zone string) { + if strings.HasSuffix(zone, ".") { + zone = zone[:len(zone)-1] + } + if !strings.HasPrefix(zone, ".") { + zone = "." + zone + } + p.bypassZones = append(p.bypassZones, zone) +} + +// AddHost specifies a host name that will use the bypass proxy. +func (p *proxy_PerHost) AddHost(host string) { + if strings.HasSuffix(host, ".") { + host = host[:len(host)-1] + } + p.bypassHosts = append(p.bypassHosts, host) +} + +// A Dialer is a means to establish a connection. +type proxy_Dialer interface { + // Dial connects to the given address via the proxy. + Dial(network, addr string) (c net.Conn, err error) +} + +// Auth contains authentication parameters that specific Dialers may require. +type proxy_Auth struct { + User, Password string +} + +// FromEnvironment returns the dialer specified by the proxy related variables in +// the environment. +func proxy_FromEnvironment() proxy_Dialer { + allProxy := proxy_allProxyEnv.Get() + if len(allProxy) == 0 { + return proxy_Direct + } + + proxyURL, err := url.Parse(allProxy) + if err != nil { + return proxy_Direct + } + proxy, err := proxy_FromURL(proxyURL, proxy_Direct) + if err != nil { + return proxy_Direct + } + + noProxy := proxy_noProxyEnv.Get() + if len(noProxy) == 0 { + return proxy + } + + perHost := proxy_NewPerHost(proxy, proxy_Direct) + perHost.AddFromString(noProxy) + return perHost +} + +// proxySchemes is a map from URL schemes to a function that creates a Dialer +// from a URL with such a scheme. +var proxy_proxySchemes map[string]func(*url.URL, proxy_Dialer) (proxy_Dialer, error) + +// RegisterDialerType takes a URL scheme and a function to generate Dialers from +// a URL with that scheme and a forwarding Dialer. Registered schemes are used +// by FromURL. +func proxy_RegisterDialerType(scheme string, f func(*url.URL, proxy_Dialer) (proxy_Dialer, error)) { + if proxy_proxySchemes == nil { + proxy_proxySchemes = make(map[string]func(*url.URL, proxy_Dialer) (proxy_Dialer, error)) + } + proxy_proxySchemes[scheme] = f +} + +// FromURL returns a Dialer given a URL specification and an underlying +// Dialer for it to make network requests. +func proxy_FromURL(u *url.URL, forward proxy_Dialer) (proxy_Dialer, error) { + var auth *proxy_Auth + if u.User != nil { + auth = new(proxy_Auth) + auth.User = u.User.Username() + if p, ok := u.User.Password(); ok { + auth.Password = p + } + } + + switch u.Scheme { + case "socks5": + return proxy_SOCKS5("tcp", u.Host, auth, forward) + } + + // If the scheme doesn't match any of the built-in schemes, see if it + // was registered by another package. + if proxy_proxySchemes != nil { + if f, ok := proxy_proxySchemes[u.Scheme]; ok { + return f(u, forward) + } + } + + return nil, errors.New("proxy: unknown scheme: " + u.Scheme) +} + +var ( + proxy_allProxyEnv = &proxy_envOnce{ + names: []string{"ALL_PROXY", "all_proxy"}, + } + proxy_noProxyEnv = &proxy_envOnce{ + names: []string{"NO_PROXY", "no_proxy"}, + } +) + +// envOnce looks up an environment variable (optionally by multiple +// names) once. It mitigates expensive lookups on some platforms +// (e.g. Windows). +// (Borrowed from net/http/transport.go) +type proxy_envOnce struct { + names []string + once sync.Once + val string +} + +func (e *proxy_envOnce) Get() string { + e.once.Do(e.init) + return e.val +} + +func (e *proxy_envOnce) init() { + for _, n := range e.names { + e.val = os.Getenv(n) + if e.val != "" { + return + } + } +} + +// SOCKS5 returns a Dialer that makes SOCKSv5 connections to the given address +// with an optional username and password. See RFC 1928 and RFC 1929. +func proxy_SOCKS5(network, addr string, auth *proxy_Auth, forward proxy_Dialer) (proxy_Dialer, error) { + s := &proxy_socks5{ + network: network, + addr: addr, + forward: forward, + } + if auth != nil { + s.user = auth.User + s.password = auth.Password + } + + return s, nil +} + +type proxy_socks5 struct { + user, password string + network, addr string + forward proxy_Dialer +} + +const proxy_socks5Version = 5 + +const ( + proxy_socks5AuthNone = 0 + proxy_socks5AuthPassword = 2 +) + +const proxy_socks5Connect = 1 + +const ( + proxy_socks5IP4 = 1 + proxy_socks5Domain = 3 + proxy_socks5IP6 = 4 +) + +var proxy_socks5Errors = []string{ + "", + "general failure", + "connection forbidden", + "network unreachable", + "host unreachable", + "connection refused", + "TTL expired", + "command not supported", + "address type not supported", +} + +// Dial connects to the address addr on the given network via the SOCKS5 proxy. +func (s *proxy_socks5) Dial(network, addr string) (net.Conn, error) { + switch network { + case "tcp", "tcp6", "tcp4": + default: + return nil, errors.New("proxy: no support for SOCKS5 proxy connections of type " + network) + } + + conn, err := s.forward.Dial(s.network, s.addr) + if err != nil { + return nil, err + } + if err := s.connect(conn, addr); err != nil { + conn.Close() + return nil, err + } + return conn, nil +} + +// connect takes an existing connection to a socks5 proxy server, +// and commands the server to extend that connection to target, +// which must be a canonical address with a host and port. +func (s *proxy_socks5) connect(conn net.Conn, target string) error { + host, portStr, err := net.SplitHostPort(target) + if err != nil { + return err + } + + port, err := strconv.Atoi(portStr) + if err != nil { + return errors.New("proxy: failed to parse port number: " + portStr) + } + if port < 1 || port > 0xffff { + return errors.New("proxy: port number out of range: " + portStr) + } + + // the size here is just an estimate + buf := make([]byte, 0, 6+len(host)) + + buf = append(buf, proxy_socks5Version) + if len(s.user) > 0 && len(s.user) < 256 && len(s.password) < 256 { + buf = append(buf, 2 /* num auth methods */, proxy_socks5AuthNone, proxy_socks5AuthPassword) + } else { + buf = append(buf, 1 /* num auth methods */, proxy_socks5AuthNone) + } + + if _, err := conn.Write(buf); err != nil { + return errors.New("proxy: failed to write greeting to SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + + if _, err := io.ReadFull(conn, buf[:2]); err != nil { + return errors.New("proxy: failed to read greeting from SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + if buf[0] != 5 { + return errors.New("proxy: SOCKS5 proxy at " + s.addr + " has unexpected version " + strconv.Itoa(int(buf[0]))) + } + if buf[1] == 0xff { + return errors.New("proxy: SOCKS5 proxy at " + s.addr + " requires authentication") + } + + // See RFC 1929 + if buf[1] == proxy_socks5AuthPassword { + buf = buf[:0] + buf = append(buf, 1 /* password protocol version */) + buf = append(buf, uint8(len(s.user))) + buf = append(buf, s.user...) + buf = append(buf, uint8(len(s.password))) + buf = append(buf, s.password...) + + if _, err := conn.Write(buf); err != nil { + return errors.New("proxy: failed to write authentication request to SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + + if _, err := io.ReadFull(conn, buf[:2]); err != nil { + return errors.New("proxy: failed to read authentication reply from SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + + if buf[1] != 0 { + return errors.New("proxy: SOCKS5 proxy at " + s.addr + " rejected username/password") + } + } + + buf = buf[:0] + buf = append(buf, proxy_socks5Version, proxy_socks5Connect, 0 /* reserved */) + + if ip := net.ParseIP(host); ip != nil { + if ip4 := ip.To4(); ip4 != nil { + buf = append(buf, proxy_socks5IP4) + ip = ip4 + } else { + buf = append(buf, proxy_socks5IP6) + } + buf = append(buf, ip...) + } else { + if len(host) > 255 { + return errors.New("proxy: destination host name too long: " + host) + } + buf = append(buf, proxy_socks5Domain) + buf = append(buf, byte(len(host))) + buf = append(buf, host...) + } + buf = append(buf, byte(port>>8), byte(port)) + + if _, err := conn.Write(buf); err != nil { + return errors.New("proxy: failed to write connect request to SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + + if _, err := io.ReadFull(conn, buf[:4]); err != nil { + return errors.New("proxy: failed to read connect reply from SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + + failure := "unknown error" + if int(buf[1]) < len(proxy_socks5Errors) { + failure = proxy_socks5Errors[buf[1]] + } + + if len(failure) > 0 { + return errors.New("proxy: SOCKS5 proxy at " + s.addr + " failed to connect: " + failure) + } + + bytesToDiscard := 0 + switch buf[3] { + case proxy_socks5IP4: + bytesToDiscard = net.IPv4len + case proxy_socks5IP6: + bytesToDiscard = net.IPv6len + case proxy_socks5Domain: + _, err := io.ReadFull(conn, buf[:1]) + if err != nil { + return errors.New("proxy: failed to read domain length from SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + bytesToDiscard = int(buf[0]) + default: + return errors.New("proxy: got unknown address type " + strconv.Itoa(int(buf[3])) + " from SOCKS5 proxy at " + s.addr) + } + + if cap(buf) < bytesToDiscard { + buf = make([]byte, bytesToDiscard) + } else { + buf = buf[:bytesToDiscard] + } + if _, err := io.ReadFull(conn, buf); err != nil { + return errors.New("proxy: failed to read address from SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + + // Also need to discard the port number + if _, err := io.ReadFull(conn, buf[:2]); err != nil { + return errors.New("proxy: failed to read port from SOCKS5 proxy at " + s.addr + ": " + err.Error()) + } + + return nil +} diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_parser.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_parser.go index bb52a0ec3d..f0702d9d30 100644 --- a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_parser.go +++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_parser.go @@ -305,7 +305,7 @@ func (ejp *extJSONParser) readValue(t bsontype.Type) (*extJSONValue, error) { } // remove hyphens - uuidNoHyphens := strings.Replace(uuid, "-", "", -1) + uuidNoHyphens := strings.ReplaceAll(uuid, "-", "") if len(uuidNoHyphens) != 32 { return nil, fmt.Errorf("$uuid value does not follow RFC 4122 format regarding length and hyphens") } diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_writer.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_writer.go index bb9303167c..57781ff9f3 100644 --- a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_writer.go +++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_writer.go @@ -628,13 +628,14 @@ func (ejvw *extJSONValueWriter) WriteArrayEnd() error { func formatDouble(f float64) string { var s string - if math.IsInf(f, 1) { + switch { + case math.IsInf(f, 1): s = "Infinity" - } else if math.IsInf(f, -1) { + case math.IsInf(f, -1): s = "-Infinity" - } else if math.IsNaN(f) { + case math.IsNaN(f): s = "NaN" - } else { + default: // Print exactly one decimalType place for integers; otherwise, print as many are necessary to // perfectly represent it. s = strconv.FormatFloat(f, 'G', -1, 64) @@ -739,9 +740,7 @@ func (ss sortableString) Less(i, j int) bool { } func (ss sortableString) Swap(i, j int) { - oldI := ss[i] - ss[i] = ss[j] - ss[j] = oldI + ss[i], ss[j] = ss[j], ss[i] } func sortStringAlphebeticAscending(s string) string { diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/json_scanner.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/json_scanner.go index 43f3e4f383..9782891916 100644 --- a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/json_scanner.go +++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/json_scanner.go @@ -82,12 +82,13 @@ func (js *jsonScanner) nextToken() (*jsonToken, error) { return js.scanString() default: // check if it's a number - if c == '-' || isDigit(c) { + switch { + case c == '-' || isDigit(c): return js.scanNumber(c) - } else if c == 't' || c == 'f' || c == 'n' { + case c == 't' || c == 'f' || c == 'n': // maybe a literal return js.scanLiteral(c) - } else { + default: return nil, fmt.Errorf("invalid JSON input. Position: %d. Character: %c", js.pos-1, c) } } @@ -174,7 +175,7 @@ func getu4(s []byte) rune { for _, c := range s[:4] { switch { case '0' <= c && c <= '9': - c = c - '0' + c -= '0' case 'a' <= c && c <= 'f': c = c - 'a' + 10 case 'A' <= c && c <= 'F': @@ -325,13 +326,14 @@ func (js *jsonScanner) scanLiteral(first byte) (*jsonToken, error) { c5, err := js.readNextByte() - if bytes.Equal([]byte("true"), lit) && (isValueTerminator(c5) || errors.Is(err, io.EOF)) { + switch { + case bytes.Equal([]byte("true"), lit) && (isValueTerminator(c5) || errors.Is(err, io.EOF)): js.pos = int(math.Max(0, float64(js.pos-1))) return &jsonToken{t: jttBool, v: true, p: p}, nil - } else if bytes.Equal([]byte("null"), lit) && (isValueTerminator(c5) || errors.Is(err, io.EOF)) { + case bytes.Equal([]byte("null"), lit) && (isValueTerminator(c5) || errors.Is(err, io.EOF)): js.pos = int(math.Max(0, float64(js.pos-1))) return &jsonToken{t: jttNull, v: nil, p: p}, nil - } else if bytes.Equal([]byte("fals"), lit) { + case bytes.Equal([]byte("fals"), lit): if c5 == 'e' { c5, err = js.readNextByte() @@ -430,12 +432,13 @@ func (js *jsonScanner) scanNumber(first byte) (*jsonToken, error) { case '}', ']', ',': s = nssDone default: - if isWhiteSpace(c) || errors.Is(err, io.EOF) { + switch { + case isWhiteSpace(c) || errors.Is(err, io.EOF): s = nssDone - } else if isDigit(c) { + case isDigit(c): s = nssSawIntegerDigits b.WriteByte(c) - } else { + default: s = nssInvalid } } @@ -455,12 +458,13 @@ func (js *jsonScanner) scanNumber(first byte) (*jsonToken, error) { case '}', ']', ',': s = nssDone default: - if isWhiteSpace(c) || errors.Is(err, io.EOF) { + switch { + case isWhiteSpace(c) || errors.Is(err, io.EOF): s = nssDone - } else if isDigit(c) { + case isDigit(c): s = nssSawFractionDigits b.WriteByte(c) - } else { + default: s = nssInvalid } } @@ -490,12 +494,13 @@ func (js *jsonScanner) scanNumber(first byte) (*jsonToken, error) { case '}', ']', ',': s = nssDone default: - if isWhiteSpace(c) || errors.Is(err, io.EOF) { + switch { + case isWhiteSpace(c) || errors.Is(err, io.EOF): s = nssDone - } else if isDigit(c) { + case isDigit(c): s = nssSawExponentDigits b.WriteByte(c) - } else { + default: s = nssInvalid } } diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/value_writer.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/value_writer.go index 311518a80d..501c6d7f97 100644 --- a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/value_writer.go +++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/value_writer.go @@ -598,7 +598,7 @@ func (vw *valueWriter) writeLength() error { return errMaxDocumentSizeExceeded{size: int64(len(vw.buf))} } frame := &vw.stack[vw.frame] - length = length - int(frame.start) + length -= int(frame.start) start := frame.start _ = vw.buf[start+3] // BCE diff --git a/vendor/go.mongodb.org/mongo-driver/bson/doc.go b/vendor/go.mongodb.org/mongo-driver/bson/doc.go index af6098475e..fb075b4789 100644 --- a/vendor/go.mongodb.org/mongo-driver/bson/doc.go +++ b/vendor/go.mongodb.org/mongo-driver/bson/doc.go @@ -107,10 +107,13 @@ // The name may be empty in order to specify options without overriding the default field name. The following options can // be used to configure behavior: // -// 1. omitempty: If the omitempty struct tag is specified on a field, the field will be omitted from the marshaling if -// the field has an empty value, defined as false, 0, a nil pointer, a nil interface value, and any empty array, -// slice, map, or string. -// NOTE: It is recommended that this tag be used for all slice and map fields. +// 1. omitempty: If the "omitempty" struct tag is specified on a field, the field will not be marshaled if it is set to +// an "empty" value. Numbers, booleans, and strings are considered empty if their value is equal to the zero value for +// the type (i.e. 0 for numbers, false for booleans, and "" for strings). Slices, maps, and arrays are considered +// empty if they are of length zero. Interfaces and pointers are considered empty if their value is nil. By default, +// structs are only considered empty if the struct type implements [bsoncodec.Zeroer] and the IsZero +// method returns true. Struct types that do not implement [bsoncodec.Zeroer] are never considered empty and will be +// marshaled as embedded documents. NOTE: It is recommended that this tag be used for all slice and map fields. // // 2. minsize: If the minsize struct tag is specified on a field of type int64, uint, uint32, or uint64 and the value of // the field can fit in a signed int32, the field will be serialized as a BSON int32 rather than a BSON int64. For diff --git a/vendor/go.mongodb.org/mongo-driver/bson/primitive/decimal.go b/vendor/go.mongodb.org/mongo-driver/bson/primitive/decimal.go index 08c39514be..db8be74d84 100644 --- a/vendor/go.mongodb.org/mongo-driver/bson/primitive/decimal.go +++ b/vendor/go.mongodb.org/mongo-driver/bson/primitive/decimal.go @@ -70,7 +70,6 @@ func (d Decimal128) String() string { // Bits: 1*sign 2*ignored 14*exponent 111*significand. // Implicit 0b100 prefix in significand. exp = int(d.h >> 47 & (1<<14 - 1)) - //high = 4<<47 | d.h&(1<<47-1) // Spec says all of these values are out of range. high, low = 0, 0 } else { @@ -152,13 +151,12 @@ func (d Decimal128) BigInt() (*big.Int, int, error) { // Bits: 1*sign 2*ignored 14*exponent 111*significand. // Implicit 0b100 prefix in significand. exp = int(high >> 47 & (1<<14 - 1)) - //high = 4<<47 | d.h&(1<<47-1) // Spec says all of these values are out of range. high, low = 0, 0 } else { // Bits: 1*sign 14*exponent 113*significand exp = int(high >> 49 & (1<<14 - 1)) - high = high & (1<<49 - 1) + high &= (1<<49 - 1) } exp += MinDecimal128Exp @@ -352,7 +350,7 @@ var ( // ParseDecimal128FromBigInt attempts to parse the given significand and exponent into a valid Decimal128 value. func ParseDecimal128FromBigInt(bi *big.Int, exp int) (Decimal128, bool) { - //copy + // copy bi = new(big.Int).Set(bi) q := new(big.Int) diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/bulk_write.go b/vendor/go.mongodb.org/mongo-driver/mongo/bulk_write.go index 3fdb67b9a2..40f1181e0e 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/bulk_write.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/bulk_write.go @@ -186,7 +186,7 @@ func (bw *bulkWrite) runInsert(ctx context.Context, batch bulkWriteBatch) (opera Database(bw.collection.db.name).Collection(bw.collection.name). Deployment(bw.collection.client.deployment).Crypt(bw.collection.client.cryptFLE). ServerAPI(bw.collection.client.serverAPI).Timeout(bw.collection.client.timeout). - Logger(bw.collection.client.logger) + Logger(bw.collection.client.logger).Authenticator(bw.collection.client.authenticator) if bw.comment != nil { comment, err := marshalValue(bw.comment, bw.collection.bsonOpts, bw.collection.registry) if err != nil { @@ -256,7 +256,7 @@ func (bw *bulkWrite) runDelete(ctx context.Context, batch bulkWriteBatch) (opera Database(bw.collection.db.name).Collection(bw.collection.name). Deployment(bw.collection.client.deployment).Crypt(bw.collection.client.cryptFLE).Hint(hasHint). ServerAPI(bw.collection.client.serverAPI).Timeout(bw.collection.client.timeout). - Logger(bw.collection.client.logger) + Logger(bw.collection.client.logger).Authenticator(bw.collection.client.authenticator) if bw.comment != nil { comment, err := marshalValue(bw.comment, bw.collection.bsonOpts, bw.collection.registry) if err != nil { @@ -387,7 +387,8 @@ func (bw *bulkWrite) runUpdate(ctx context.Context, batch bulkWriteBatch) (opera Database(bw.collection.db.name).Collection(bw.collection.name). Deployment(bw.collection.client.deployment).Crypt(bw.collection.client.cryptFLE).Hint(hasHint). ArrayFilters(hasArrayFilters).ServerAPI(bw.collection.client.serverAPI). - Timeout(bw.collection.client.timeout).Logger(bw.collection.client.logger) + Timeout(bw.collection.client.timeout).Logger(bw.collection.client.logger). + Authenticator(bw.collection.client.authenticator) if bw.comment != nil { comment, err := marshalValue(bw.comment, bw.collection.bsonOpts, bw.collection.registry) if err != nil { diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/change_stream.go b/vendor/go.mongodb.org/mongo-driver/mongo/change_stream.go index 8d0a2031de..3ea8baf1f2 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/change_stream.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/change_stream.go @@ -137,7 +137,8 @@ func newChangeStream(ctx context.Context, config changeStreamConfig, pipeline in ReadPreference(config.readPreference).ReadConcern(config.readConcern). Deployment(cs.client.deployment).ClusterClock(cs.client.clock). CommandMonitor(cs.client.monitor).Session(cs.sess).ServerSelector(cs.selector).Retry(driver.RetryNone). - ServerAPI(cs.client.serverAPI).Crypt(config.crypt).Timeout(cs.client.timeout) + ServerAPI(cs.client.serverAPI).Crypt(config.crypt).Timeout(cs.client.timeout). + Authenticator(cs.client.authenticator) if cs.options.Collation != nil { cs.aggregate.Collation(bsoncore.Document(cs.options.Collation.ToDocument())) diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/client.go b/vendor/go.mongodb.org/mongo-driver/mongo/client.go index 4266412aab..0ce6d2e24b 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/client.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/client.go @@ -26,6 +26,7 @@ import ( "go.mongodb.org/mongo-driver/mongo/writeconcern" "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" "go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt" mcopts "go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options" "go.mongodb.org/mongo-driver/x/mongo/driver/operation" @@ -79,6 +80,7 @@ type Client struct { metadataClientFLE *Client internalClientFLE *Client encryptedFieldsMap map[string]interface{} + authenticator driver.Authenticator } // Connect creates a new Client and then initializes it using the Connect method. This is equivalent to calling @@ -209,10 +211,22 @@ func NewClient(opts ...*options.ClientOptions) (*Client, error) { clientOpt.SetMaxPoolSize(defaultMaxPoolSize) } - cfg, err := topology.NewConfig(clientOpt, client.clock) + if clientOpt.Auth != nil { + client.authenticator, err = auth.CreateAuthenticator( + clientOpt.Auth.AuthMechanism, + topology.ConvertCreds(clientOpt.Auth), + clientOpt.HTTPClient, + ) + if err != nil { + return nil, fmt.Errorf("error creating authenticator: %w", err) + } + } + + cfg, err := topology.NewConfigWithAuthenticator(clientOpt, client.clock, client.authenticator) if err != nil { return nil, err } + client.serverAPI = topology.ServerAPIFromServerOptions(cfg.ServerOpts) if client.deployment == nil { @@ -690,7 +704,7 @@ func (c *Client) ListDatabases(ctx context.Context, filter interface{}, opts ... op := operation.NewListDatabases(filterDoc). Session(sess).ReadPreference(c.readPreference).CommandMonitor(c.monitor). ServerSelector(selector).ClusterClock(c.clock).Database("admin").Deployment(c.deployment).Crypt(c.cryptFLE). - ServerAPI(c.serverAPI).Timeout(c.timeout) + ServerAPI(c.serverAPI).Timeout(c.timeout).Authenticator(c.authenticator) if ldo.NameOnly != nil { op = op.NameOnly(*ldo.NameOnly) diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/client_encryption.go b/vendor/go.mongodb.org/mongo-driver/mongo/client_encryption.go index b51f57b473..352dac1f05 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/client_encryption.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/client_encryption.go @@ -204,7 +204,12 @@ func transformExplicitEncryptionOptions(opts ...*options.EncryptOptions) *mcopts if eo.RangeOptions.Precision != nil { transformedRange.Precision = eo.RangeOptions.Precision } - transformedRange.Sparsity = eo.RangeOptions.Sparsity + if eo.RangeOptions.Sparsity != nil { + transformedRange.Sparsity = eo.RangeOptions.Sparsity + } + if eo.RangeOptions.TrimFactor != nil { + transformedRange.TrimFactor = eo.RangeOptions.TrimFactor + } transformed.SetRangeOptions(transformedRange) } return transformed @@ -230,8 +235,7 @@ func (ce *ClientEncryption) Encrypt(ctx context.Context, val bson.RawValue, // 2. An Aggregate Expression of this form: // {$and: [{$gt: [, ]}, {$lt: [, ]}] // $gt may also be $gte. $lt may also be $lte. -// Only supported for queryType "rangePreview" -// Beta: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes. +// Only supported for queryType "range" func (ce *ClientEncryption) EncryptExpression(ctx context.Context, expr interface{}, result interface{}, opts ...*options.EncryptOptions) error { transformed := transformExplicitEncryptionOptions(opts...) diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/collection.go b/vendor/go.mongodb.org/mongo-driver/mongo/collection.go index 4cf6fd1a1a..dbe238a9e3 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/collection.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/collection.go @@ -291,7 +291,8 @@ func (coll *Collection) insert(ctx context.Context, documents []interface{}, ServerSelector(selector).ClusterClock(coll.client.clock). Database(coll.db.name).Collection(coll.name). Deployment(coll.client.deployment).Crypt(coll.client.cryptFLE).Ordered(true). - ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout).Logger(coll.client.logger) + ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout).Logger(coll.client.logger). + Authenticator(coll.client.authenticator) imo := options.MergeInsertManyOptions(opts...) if imo.BypassDocumentValidation != nil && *imo.BypassDocumentValidation { op = op.BypassDocumentValidation(*imo.BypassDocumentValidation) @@ -471,7 +472,8 @@ func (coll *Collection) delete(ctx context.Context, filter interface{}, deleteOn ServerSelector(selector).ClusterClock(coll.client.clock). Database(coll.db.name).Collection(coll.name). Deployment(coll.client.deployment).Crypt(coll.client.cryptFLE).Ordered(true). - ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout).Logger(coll.client.logger) + ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout).Logger(coll.client.logger). + Authenticator(coll.client.authenticator) if do.Comment != nil { comment, err := marshalValue(do.Comment, coll.bsonOpts, coll.registry) if err != nil { @@ -588,7 +590,7 @@ func (coll *Collection) updateOrReplace(ctx context.Context, filter bsoncore.Doc Database(coll.db.name).Collection(coll.name). Deployment(coll.client.deployment).Crypt(coll.client.cryptFLE).Hint(uo.Hint != nil). ArrayFilters(uo.ArrayFilters != nil).Ordered(true).ServerAPI(coll.client.serverAPI). - Timeout(coll.client.timeout).Logger(coll.client.logger) + Timeout(coll.client.timeout).Logger(coll.client.logger).Authenticator(coll.client.authenticator) if uo.Let != nil { let, err := marshal(uo.Let, coll.bsonOpts, coll.registry) if err != nil { @@ -861,7 +863,8 @@ func aggregate(a aggregateParams) (cur *Cursor, err error) { ServerAPI(a.client.serverAPI). HasOutputStage(hasOutputStage). Timeout(a.client.timeout). - MaxTime(ao.MaxTime) + MaxTime(ao.MaxTime). + Authenticator(a.client.authenticator) // Omit "maxTimeMS" from operations that return a user-managed cursor to // prevent confusing "cursor not found" errors. To maintain existing @@ -992,7 +995,7 @@ func (coll *Collection) CountDocuments(ctx context.Context, filter interface{}, op := operation.NewAggregate(pipelineArr).Session(sess).ReadConcern(rc).ReadPreference(coll.readPreference). CommandMonitor(coll.client.monitor).ServerSelector(selector).ClusterClock(coll.client.clock).Database(coll.db.name). Collection(coll.name).Deployment(coll.client.deployment).Crypt(coll.client.cryptFLE).ServerAPI(coll.client.serverAPI). - Timeout(coll.client.timeout).MaxTime(countOpts.MaxTime) + Timeout(coll.client.timeout).MaxTime(countOpts.MaxTime).Authenticator(coll.client.authenticator) if countOpts.Collation != nil { op.Collation(bsoncore.Document(countOpts.Collation.ToDocument())) } @@ -1077,7 +1080,7 @@ func (coll *Collection) EstimatedDocumentCount(ctx context.Context, Database(coll.db.name).Collection(coll.name).CommandMonitor(coll.client.monitor). Deployment(coll.client.deployment).ReadConcern(rc).ReadPreference(coll.readPreference). ServerSelector(selector).Crypt(coll.client.cryptFLE).ServerAPI(coll.client.serverAPI). - Timeout(coll.client.timeout).MaxTime(co.MaxTime) + Timeout(coll.client.timeout).MaxTime(co.MaxTime).Authenticator(coll.client.authenticator) if co.Comment != nil { comment, err := marshalValue(co.Comment, coll.bsonOpts, coll.registry) @@ -1144,7 +1147,7 @@ func (coll *Collection) Distinct(ctx context.Context, fieldName string, filter i Database(coll.db.name).Collection(coll.name).CommandMonitor(coll.client.monitor). Deployment(coll.client.deployment).ReadConcern(rc).ReadPreference(coll.readPreference). ServerSelector(selector).Crypt(coll.client.cryptFLE).ServerAPI(coll.client.serverAPI). - Timeout(coll.client.timeout).MaxTime(option.MaxTime) + Timeout(coll.client.timeout).MaxTime(option.MaxTime).Authenticator(coll.client.authenticator) if option.Collation != nil { op.Collation(bsoncore.Document(option.Collation.ToDocument())) @@ -1257,7 +1260,7 @@ func (coll *Collection) find( ClusterClock(coll.client.clock).Database(coll.db.name).Collection(coll.name). Deployment(coll.client.deployment).Crypt(coll.client.cryptFLE).ServerAPI(coll.client.serverAPI). Timeout(coll.client.timeout).MaxTime(fo.MaxTime).Logger(coll.client.logger). - OmitCSOTMaxTimeMS(omitCSOTMaxTimeMS) + OmitCSOTMaxTimeMS(omitCSOTMaxTimeMS).Authenticator(coll.client.authenticator) cursorOpts := coll.client.createBaseCursorOptions() @@ -1521,7 +1524,7 @@ func (coll *Collection) FindOneAndDelete(ctx context.Context, filter interface{} } fod := options.MergeFindOneAndDeleteOptions(opts...) op := operation.NewFindAndModify(f).Remove(true).ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout). - MaxTime(fod.MaxTime) + MaxTime(fod.MaxTime).Authenticator(coll.client.authenticator) if fod.Collation != nil { op = op.Collation(bsoncore.Document(fod.Collation.ToDocument())) } @@ -1601,7 +1604,8 @@ func (coll *Collection) FindOneAndReplace(ctx context.Context, filter interface{ fo := options.MergeFindOneAndReplaceOptions(opts...) op := operation.NewFindAndModify(f).Update(bsoncore.Value{Type: bsontype.EmbeddedDocument, Data: r}). - ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout).MaxTime(fo.MaxTime) + ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout).MaxTime(fo.MaxTime).Authenticator(coll.client.authenticator) + if fo.BypassDocumentValidation != nil && *fo.BypassDocumentValidation { op = op.BypassDocumentValidation(*fo.BypassDocumentValidation) } @@ -1688,7 +1692,7 @@ func (coll *Collection) FindOneAndUpdate(ctx context.Context, filter interface{} fo := options.MergeFindOneAndUpdateOptions(opts...) op := operation.NewFindAndModify(f).ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout). - MaxTime(fo.MaxTime) + MaxTime(fo.MaxTime).Authenticator(coll.client.authenticator) u, err := marshalUpdateValue(update, coll.bsonOpts, coll.registry, true) if err != nil { @@ -1894,7 +1898,8 @@ func (coll *Collection) drop(ctx context.Context) error { ServerSelector(selector).ClusterClock(coll.client.clock). Database(coll.db.name).Collection(coll.name). Deployment(coll.client.deployment).Crypt(coll.client.cryptFLE). - ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout) + ServerAPI(coll.client.serverAPI).Timeout(coll.client.timeout). + Authenticator(coll.client.authenticator) err = op.Execute(ctx) // ignore namespace not found errors diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/database.go b/vendor/go.mongodb.org/mongo-driver/mongo/database.go index 57c0186eca..5344c9641e 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/database.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/database.go @@ -189,7 +189,7 @@ func (db *Database) processRunCommand(ctx context.Context, cmd interface{}, ServerSelector(readSelect).ClusterClock(db.client.clock). Database(db.name).Deployment(db.client.deployment). Crypt(db.client.cryptFLE).ReadPreference(ro.ReadPreference).ServerAPI(db.client.serverAPI). - Timeout(db.client.timeout).Logger(db.client.logger), sess, nil + Timeout(db.client.timeout).Logger(db.client.logger).Authenticator(db.client.authenticator), sess, nil } // RunCommand executes the given command against the database. @@ -308,7 +308,7 @@ func (db *Database) Drop(ctx context.Context) error { Session(sess).WriteConcern(wc).CommandMonitor(db.client.monitor). ServerSelector(selector).ClusterClock(db.client.clock). Database(db.name).Deployment(db.client.deployment).Crypt(db.client.cryptFLE). - ServerAPI(db.client.serverAPI) + ServerAPI(db.client.serverAPI).Authenticator(db.client.authenticator) err = op.Execute(ctx) @@ -402,7 +402,7 @@ func (db *Database) ListCollections(ctx context.Context, filter interface{}, opt Session(sess).ReadPreference(db.readPreference).CommandMonitor(db.client.monitor). ServerSelector(selector).ClusterClock(db.client.clock). Database(db.name).Deployment(db.client.deployment).Crypt(db.client.cryptFLE). - ServerAPI(db.client.serverAPI).Timeout(db.client.timeout) + ServerAPI(db.client.serverAPI).Timeout(db.client.timeout).Authenticator(db.client.authenticator) cursorOpts := db.client.createBaseCursorOptions() @@ -679,7 +679,7 @@ func (db *Database) createCollection(ctx context.Context, name string, opts ...* func (db *Database) createCollectionOperation(name string, opts ...*options.CreateCollectionOptions) (*operation.Create, error) { cco := options.MergeCreateCollectionOptions(opts...) - op := operation.NewCreate(name).ServerAPI(db.client.serverAPI) + op := operation.NewCreate(name).ServerAPI(db.client.serverAPI).Authenticator(db.client.authenticator) if cco.Capped != nil { op.Capped(*cco.Capped) @@ -805,7 +805,8 @@ func (db *Database) CreateView(ctx context.Context, viewName, viewOn string, pip op := operation.NewCreate(viewName). ViewOn(viewOn). Pipeline(pipelineArray). - ServerAPI(db.client.serverAPI) + ServerAPI(db.client.serverAPI). + Authenticator(db.client.authenticator) cvo := options.MergeCreateViewOptions(opts...) if cvo.Collation != nil { op.Collation(bsoncore.Document(cvo.Collation.ToDocument())) diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/description/server.go b/vendor/go.mongodb.org/mongo-driver/mongo/description/server.go index cf39423839..19f2760e2f 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/description/server.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/description/server.go @@ -316,21 +316,23 @@ func NewServer(addr address.Address, response bson.Raw) Server { desc.Kind = Standalone - if isReplicaSet { + switch { + case isReplicaSet: desc.Kind = RSGhost - } else if desc.SetName != "" { - if isWritablePrimary { + case desc.SetName != "": + switch { + case isWritablePrimary: desc.Kind = RSPrimary - } else if hidden { + case hidden: desc.Kind = RSMember - } else if secondary { + case secondary: desc.Kind = RSSecondary - } else if arbiterOnly { + case arbiterOnly: desc.Kind = RSArbiter - } else { + default: desc.Kind = RSMember } - } else if msg == "isdbgrid" { + case msg == "isdbgrid": desc.Kind = Mongos } diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/index_view.go b/vendor/go.mongodb.org/mongo-driver/mongo/index_view.go index 8d3555d0b0..db65f75072 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/index_view.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/index_view.go @@ -94,7 +94,7 @@ func (iv IndexView) List(ctx context.Context, opts ...*options.ListIndexesOption ServerSelector(selector).ClusterClock(iv.coll.client.clock). Database(iv.coll.db.name).Collection(iv.coll.name). Deployment(iv.coll.client.deployment).ServerAPI(iv.coll.client.serverAPI). - Timeout(iv.coll.client.timeout) + Timeout(iv.coll.client.timeout).Authenticator(iv.coll.client.authenticator) cursorOpts := iv.coll.client.createBaseCursorOptions() @@ -262,7 +262,7 @@ func (iv IndexView) CreateMany(ctx context.Context, models []IndexModel, opts .. Session(sess).WriteConcern(wc).ClusterClock(iv.coll.client.clock). Database(iv.coll.db.name).Collection(iv.coll.name).CommandMonitor(iv.coll.client.monitor). Deployment(iv.coll.client.deployment).ServerSelector(selector).ServerAPI(iv.coll.client.serverAPI). - Timeout(iv.coll.client.timeout).MaxTime(option.MaxTime) + Timeout(iv.coll.client.timeout).MaxTime(option.MaxTime).Authenticator(iv.coll.client.authenticator) if option.CommitQuorum != nil { commitQuorum, err := marshalValue(option.CommitQuorum, iv.coll.bsonOpts, iv.coll.registry) if err != nil { @@ -367,7 +367,7 @@ func (iv IndexView) createOptionsDoc(opts *options.IndexOptions) (bsoncore.Docum return optsDoc, nil } -func (iv IndexView) drop(ctx context.Context, name string, opts ...*options.DropIndexesOptions) (bson.Raw, error) { +func (iv IndexView) drop(ctx context.Context, index any, opts ...*options.DropIndexesOptions) (bson.Raw, error) { if ctx == nil { ctx = context.Background() } @@ -397,12 +397,12 @@ func (iv IndexView) drop(ctx context.Context, name string, opts ...*options.Drop // TODO(GODRIVER-3038): This operation should pass CSE to the DropIndexes // Crypt setter to be applied to the operation. - op := operation.NewDropIndexes(name). - Session(sess).WriteConcern(wc).CommandMonitor(iv.coll.client.monitor). + op := operation.NewDropIndexes(index).Session(sess).WriteConcern(wc).CommandMonitor(iv.coll.client.monitor). ServerSelector(selector).ClusterClock(iv.coll.client.clock). Database(iv.coll.db.name).Collection(iv.coll.name). Deployment(iv.coll.client.deployment).ServerAPI(iv.coll.client.serverAPI). - Timeout(iv.coll.client.timeout).MaxTime(dio.MaxTime) + Timeout(iv.coll.client.timeout).MaxTime(dio.MaxTime). + Authenticator(iv.coll.client.authenticator) err = op.Execute(ctx) if err != nil { @@ -435,6 +435,20 @@ func (iv IndexView) DropOne(ctx context.Context, name string, opts ...*options.D return iv.drop(ctx, name, opts...) } +// DropOneWithKey drops a collection index by key using the dropIndexes operation. If the operation succeeds, this returns +// a BSON document in the form {nIndexesWas: }. The "nIndexesWas" field in the response contains the number of +// indexes that existed prior to the drop. +// +// This function is useful to drop an index using its key specification instead of its name. +func (iv IndexView) DropOneWithKey(ctx context.Context, keySpecDocument interface{}, opts ...*options.DropIndexesOptions) (bson.Raw, error) { + doc, err := marshal(keySpecDocument, iv.coll.bsonOpts, iv.coll.registry) + if err != nil { + return nil, err + } + + return iv.drop(ctx, doc, opts...) +} + // DropAll executes a dropIndexes operation to drop all indexes on the collection. If the operation succeeds, this // returns a BSON document in the form {nIndexesWas: }. The "nIndexesWas" field in the response contains the // number of indexes that existed prior to the drop. diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/options/clientoptions.go b/vendor/go.mongodb.org/mongo-driver/mongo/options/clientoptions.go index 17b3731301..c3a9d439e9 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/options/clientoptions.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/options/clientoptions.go @@ -30,6 +30,7 @@ import ( "go.mongodb.org/mongo-driver/mongo/writeconcern" "go.mongodb.org/mongo-driver/tag" "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" "go.mongodb.org/mongo-driver/x/mongo/driver/connstring" "go.mongodb.org/mongo-driver/x/mongo/driver/wiremessage" ) @@ -89,9 +90,9 @@ type ContextDialer interface { // The SERVICE_HOST and CANONICALIZE_HOST_NAME properties must not be used at the same time on Linux and Darwin // systems. // -// AuthSource: the name of the database to use for authentication. This defaults to "$external" for MONGODB-X509, -// GSSAPI, and PLAIN and "admin" for all other mechanisms. This can also be set through the "authSource" URI option -// (e.g. "authSource=otherDb"). +// AuthSource: the name of the database to use for authentication. This defaults to "$external" for MONGODB-AWS, +// MONGODB-OIDC, MONGODB-X509, GSSAPI, and PLAIN. It defaults to "admin" for all other auth mechanisms. This can +// also be set through the "authSource" URI option (e.g. "authSource=otherDb"). // // Username: the username for authentication. This can also be set through the URI as a username:password pair before // the first @ character. For example, a URI for user "user", password "pwd", and host "localhost:27017" would be @@ -111,6 +112,34 @@ type Credential struct { Username string Password string PasswordSet bool + OIDCMachineCallback OIDCCallback + OIDCHumanCallback OIDCCallback +} + +// OIDCCallback is the type for both Human and Machine Callback flows. +// RefreshToken will always be nil in the OIDCArgs for the Machine flow. +type OIDCCallback func(context.Context, *OIDCArgs) (*OIDCCredential, error) + +// OIDCArgs contains the arguments for the OIDC callback. +type OIDCArgs struct { + Version int + IDPInfo *IDPInfo + RefreshToken *string +} + +// OIDCCredential contains the access token and refresh token. +type OIDCCredential struct { + AccessToken string + ExpiresAt *time.Time + RefreshToken *string +} + +// IDPInfo contains the information needed to perform OIDC authentication with +// an Identity Provider. +type IDPInfo struct { + Issuer string + ClientID string + RequestScopes []string } // BSONOptions are optional BSON marshaling and unmarshaling behaviors. @@ -332,6 +361,37 @@ func (c *ClientOptions) validate() error { return fmt.Errorf("invalid server monitoring mode: %q", *mode) } + // OIDC Validation + if c.Auth != nil && c.Auth.AuthMechanism == auth.MongoDBOIDC { + if c.Auth.Password != "" { + return fmt.Errorf("password must not be set for the %s auth mechanism", auth.MongoDBOIDC) + } + if c.Auth.OIDCMachineCallback != nil && c.Auth.OIDCHumanCallback != nil { + return fmt.Errorf("cannot set both OIDCMachineCallback and OIDCHumanCallback, only one may be specified") + } + if c.Auth.OIDCHumanCallback == nil && c.Auth.AuthMechanismProperties[auth.AllowedHostsProp] != "" { + return fmt.Errorf("Cannot specify ALLOWED_HOSTS without an OIDCHumanCallback") + } + if env, ok := c.Auth.AuthMechanismProperties[auth.EnvironmentProp]; ok { + switch env { + case auth.GCPEnvironmentValue, auth.AzureEnvironmentValue: + if c.Auth.OIDCMachineCallback != nil { + return fmt.Errorf("OIDCMachineCallback cannot be specified with the %s %q", env, auth.EnvironmentProp) + } + if c.Auth.OIDCHumanCallback != nil { + return fmt.Errorf("OIDCHumanCallback cannot be specified with the %s %q", env, auth.EnvironmentProp) + } + if c.Auth.AuthMechanismProperties[auth.ResourceProp] == "" { + return fmt.Errorf("%q must be set for the %s %q", auth.ResourceProp, env, auth.EnvironmentProp) + } + default: + if c.Auth.AuthMechanismProperties[auth.ResourceProp] != "" { + return fmt.Errorf("%q must not be set for the %s %q", auth.ResourceProp, env, auth.EnvironmentProp) + } + } + } + } + return nil } @@ -1258,7 +1318,10 @@ func addClientCertFromBytes(cfg *tls.Config, data []byte, keyPasswd string) (str } } var encoded bytes.Buffer - pem.Encode(&encoded, &pem.Block{Type: currentBlock.Type, Bytes: keyBytes}) + err = pem.Encode(&encoded, &pem.Block{Type: currentBlock.Type, Bytes: keyBytes}) + if err != nil { + return "", fmt.Errorf("error encoding private key as PEM: %w", err) + } keyBlock := encoded.Bytes() keyBlocks = append(keyBlocks, keyBlock) start = len(data) - len(remaining) diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/options/encryptoptions.go b/vendor/go.mongodb.org/mongo-driver/mongo/options/encryptoptions.go index 88517d0c8d..68278ba45e 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/options/encryptoptions.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/options/encryptoptions.go @@ -17,13 +17,13 @@ const ( QueryTypeEquality string = "equality" ) -// RangeOptions specifies index options for a Queryable Encryption field supporting "rangePreview" queries. -// Beta: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes. +// RangeOptions specifies index options for a Queryable Encryption field supporting "range" queries. type RangeOptions struct { - Min *bson.RawValue - Max *bson.RawValue - Sparsity int64 - Precision *int32 + Min *bson.RawValue + Max *bson.RawValue + Sparsity *int64 + TrimFactor *int32 + Precision *int32 } // EncryptOptions represents options to explicitly encrypt a value. @@ -58,6 +58,7 @@ func (e *EncryptOptions) SetKeyAltName(keyAltName string) *EncryptOptions { // - AEAD_AES_256_CBC_HMAC_SHA_512-Random // - Indexed // - Unindexed +// - Range // This is required. // Indexed and Unindexed are used for Queryable Encryption. func (e *EncryptOptions) SetAlgorithm(algorithm string) *EncryptOptions { @@ -81,36 +82,37 @@ func (e *EncryptOptions) SetContentionFactor(contentionFactor int64) *EncryptOpt return e } -// SetRangeOptions specifies the options to use for explicit encryption with range. It is only valid to set if algorithm is "rangePreview". -// Beta: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes. +// SetRangeOptions specifies the options to use for explicit encryption with range. It is only valid to set if algorithm is "Range". func (e *EncryptOptions) SetRangeOptions(ro RangeOptions) *EncryptOptions { e.RangeOptions = &ro return e } // SetMin sets the range index minimum value. -// Beta: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes. func (ro *RangeOptions) SetMin(min bson.RawValue) *RangeOptions { ro.Min = &min return ro } // SetMax sets the range index maximum value. -// Beta: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes. func (ro *RangeOptions) SetMax(max bson.RawValue) *RangeOptions { ro.Max = &max return ro } // SetSparsity sets the range index sparsity. -// Beta: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes. func (ro *RangeOptions) SetSparsity(sparsity int64) *RangeOptions { - ro.Sparsity = sparsity + ro.Sparsity = &sparsity + return ro +} + +// SetTrimFactor sets the range index trim factor. +func (ro *RangeOptions) SetTrimFactor(trimFactor int32) *RangeOptions { + ro.TrimFactor = &trimFactor return ro } // SetPrecision sets the range index precision. -// Beta: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes. func (ro *RangeOptions) SetPrecision(precision int32) *RangeOptions { ro.Precision = &precision return ro diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/options/serverapioptions.go b/vendor/go.mongodb.org/mongo-driver/mongo/options/serverapioptions.go index 5beb795e43..4eef2e1993 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/options/serverapioptions.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/options/serverapioptions.go @@ -52,8 +52,7 @@ const ( // Validate determines if the provided ServerAPIVersion is currently supported by the driver. func (sav ServerAPIVersion) Validate() error { - switch sav { - case ServerAPIVersion1: + if sav == ServerAPIVersion1 { return nil } return fmt.Errorf("api version %q not supported; this driver version only supports API version \"1\"", sav) diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/search_index_view.go b/vendor/go.mongodb.org/mongo-driver/mongo/search_index_view.go index 73fe8534ed..3253a73a2b 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/search_index_view.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/search_index_view.go @@ -143,7 +143,7 @@ func (siv SearchIndexView) CreateMany( ServerSelector(selector).ClusterClock(siv.coll.client.clock). Collection(siv.coll.name).Database(siv.coll.db.name). Deployment(siv.coll.client.deployment).ServerAPI(siv.coll.client.serverAPI). - Timeout(siv.coll.client.timeout) + Timeout(siv.coll.client.timeout).Authenticator(siv.coll.client.authenticator) err = op.Execute(ctx) if err != nil { @@ -198,7 +198,7 @@ func (siv SearchIndexView) DropOne( ServerSelector(selector).ClusterClock(siv.coll.client.clock). Collection(siv.coll.name).Database(siv.coll.db.name). Deployment(siv.coll.client.deployment).ServerAPI(siv.coll.client.serverAPI). - Timeout(siv.coll.client.timeout) + Timeout(siv.coll.client.timeout).Authenticator(siv.coll.client.authenticator) err = op.Execute(ctx) if de, ok := err.(driver.Error); ok && de.NamespaceNotFound() { @@ -252,7 +252,7 @@ func (siv SearchIndexView) UpdateOne( ServerSelector(selector).ClusterClock(siv.coll.client.clock). Collection(siv.coll.name).Database(siv.coll.db.name). Deployment(siv.coll.client.deployment).ServerAPI(siv.coll.client.serverAPI). - Timeout(siv.coll.client.timeout) + Timeout(siv.coll.client.timeout).Authenticator(siv.coll.client.authenticator) return op.Execute(ctx) } diff --git a/vendor/go.mongodb.org/mongo-driver/mongo/session.go b/vendor/go.mongodb.org/mongo-driver/mongo/session.go index 8f1e029b95..77be4ab6db 100644 --- a/vendor/go.mongodb.org/mongo-driver/mongo/session.go +++ b/vendor/go.mongodb.org/mongo-driver/mongo/session.go @@ -296,7 +296,8 @@ func (s *sessionImpl) AbortTransaction(ctx context.Context) error { _ = operation.NewAbortTransaction().Session(s.clientSession).ClusterClock(s.client.clock).Database("admin"). Deployment(s.deployment).WriteConcern(s.clientSession.CurrentWc).ServerSelector(selector). Retry(driver.RetryOncePerCommand).CommandMonitor(s.client.monitor). - RecoveryToken(bsoncore.Document(s.clientSession.RecoveryToken)).ServerAPI(s.client.serverAPI).Execute(ctx) + RecoveryToken(bsoncore.Document(s.clientSession.RecoveryToken)).ServerAPI(s.client.serverAPI). + Authenticator(s.client.authenticator).Execute(ctx) s.clientSession.Aborting = false _ = s.clientSession.AbortTransaction() @@ -328,7 +329,7 @@ func (s *sessionImpl) CommitTransaction(ctx context.Context) error { Session(s.clientSession).ClusterClock(s.client.clock).Database("admin").Deployment(s.deployment). WriteConcern(s.clientSession.CurrentWc).ServerSelector(selector).Retry(driver.RetryOncePerCommand). CommandMonitor(s.client.monitor).RecoveryToken(bsoncore.Document(s.clientSession.RecoveryToken)). - ServerAPI(s.client.serverAPI).MaxTime(s.clientSession.CurrentMct) + ServerAPI(s.client.serverAPI).MaxTime(s.clientSession.CurrentMct).Authenticator(s.client.authenticator) err = op.Execute(ctx) // Return error without updating transaction state if it is a timeout, as the transaction has not diff --git a/vendor/go.mongodb.org/mongo-driver/version/version.go b/vendor/go.mongodb.org/mongo-driver/version/version.go index d929c46754..06976049ee 100644 --- a/vendor/go.mongodb.org/mongo-driver/version/version.go +++ b/vendor/go.mongodb.org/mongo-driver/version/version.go @@ -8,4 +8,4 @@ package version // import "go.mongodb.org/mongo-driver/version" // Driver is the current version of the driver. -var Driver = "1.16.1" +var Driver = "1.17.0" diff --git a/vendor/go.mongodb.org/mongo-driver/x/bsonx/bsoncore/element.go b/vendor/go.mongodb.org/mongo-driver/x/bsonx/bsoncore/element.go index 1fe0897c91..9c1ab2ae96 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/bsonx/bsoncore/element.go +++ b/vendor/go.mongodb.org/mongo-driver/x/bsonx/bsoncore/element.go @@ -51,7 +51,7 @@ func (e Element) KeyErr() (string, error) { // KeyBytesErr returns the key for this element as a []byte, returning an error if the element is // not valid. func (e Element) KeyBytesErr() ([]byte, error) { - if len(e) <= 0 { + if len(e) == 0 { return nil, ErrElementMissingType } idx := bytes.IndexByte(e[1:], 0x00) @@ -99,7 +99,7 @@ func (e Element) Value() Value { // ValueErr returns the value for this element, returning an error if the element is not valid. func (e Element) ValueErr() (Value, error) { - if len(e) <= 0 { + if len(e) == 0 { return Value{}, ErrElementMissingType } idx := bytes.IndexByte(e[1:], 0x00) @@ -116,7 +116,7 @@ func (e Element) ValueErr() (Value, error) { // String implements the fmt.String interface. The output will be in extended JSON format. func (e Element) String() string { - if len(e) <= 0 { + if len(e) == 0 { return "" } t := bsontype.Type(e[0]) @@ -135,7 +135,7 @@ func (e Element) String() string { // DebugString outputs a human readable version of RawElement. It will attempt to stringify the // valid components of the element even if the entire element is not valid. func (e Element) DebugString() string { - if len(e) <= 0 { + if len(e) == 0 { return "" } t := bsontype.Type(e[0]) diff --git a/vendor/go.mongodb.org/mongo-driver/x/bsonx/bsoncore/value.go b/vendor/go.mongodb.org/mongo-driver/x/bsonx/bsoncore/value.go index 69c1f9edbb..fcb0428bbd 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/bsonx/bsoncore/value.go +++ b/vendor/go.mongodb.org/mongo-driver/x/bsonx/bsoncore/value.go @@ -924,13 +924,14 @@ func escapeString(s string) string { func formatDouble(f float64) string { var s string - if math.IsInf(f, 1) { + switch { + case math.IsInf(f, 1): s = "Infinity" - } else if math.IsInf(f, -1) { + case math.IsInf(f, -1): s = "-Infinity" - } else if math.IsNaN(f) { + case math.IsNaN(f): s = "NaN" - } else { + default: // Print exactly one decimalType place for integers; otherwise, print as many are necessary to // perfectly represent it. s = strconv.FormatFloat(f, 'G', -1, 64) @@ -953,9 +954,7 @@ func (ss sortableString) Less(i, j int) bool { } func (ss sortableString) Swap(i, j int) { - oldI := ss[i] - ss[i] = ss[j] - ss[j] = oldI + ss[i], ss[j] = ss[j], ss[i] } func sortStringAlphebeticAscending(s string) string { diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/auth.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/auth.go index 6eeaf0ee01..34a4a68f59 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/auth.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/auth.go @@ -19,8 +19,13 @@ import ( "go.mongodb.org/mongo-driver/x/mongo/driver/session" ) +const sourceExternal = "$external" + +// Config contains the configuration for an Authenticator. +type Config = driver.AuthConfig + // AuthenticatorFactory constructs an authenticator. -type AuthenticatorFactory func(cred *Cred) (Authenticator, error) +type AuthenticatorFactory func(*Cred, *http.Client) (Authenticator, error) var authFactories = make(map[string]AuthenticatorFactory) @@ -33,12 +38,13 @@ func init() { RegisterAuthenticatorFactory(GSSAPI, newGSSAPIAuthenticator) RegisterAuthenticatorFactory(MongoDBX509, newMongoDBX509Authenticator) RegisterAuthenticatorFactory(MongoDBAWS, newMongoDBAWSAuthenticator) + RegisterAuthenticatorFactory(MongoDBOIDC, newOIDCAuthenticator) } // CreateAuthenticator creates an authenticator. -func CreateAuthenticator(name string, cred *Cred) (Authenticator, error) { +func CreateAuthenticator(name string, cred *Cred, httpClient *http.Client) (Authenticator, error) { if f, ok := authFactories[name]; ok { - return f(cred) + return f(cred, httpClient) } return nil, newAuthError(fmt.Sprintf("unknown authenticator: %s", name), nil) @@ -61,7 +67,6 @@ type HandshakeOptions struct { ClusterClock *session.ClusterClock ServerAPI *driver.ServerAPIOptions LoadBalanced bool - HTTPClient *http.Client } type authHandshaker struct { @@ -97,12 +102,17 @@ func (ah *authHandshaker) GetHandshakeInformation(ctx context.Context, addr addr return driver.HandshakeInformation{}, newAuthError("failed to create conversation", err) } - firstMsg, err := ah.conversation.FirstMessage() - if err != nil { - return driver.HandshakeInformation{}, newAuthError("failed to create speculative authentication message", err) - } + // It is possible for the speculative conversation to be nil even without error if the authenticator + // cannot perform speculative authentication. An example of this is MONGODB-OIDC when there is + // no AccessToken in the cache. + if ah.conversation != nil { + firstMsg, err := ah.conversation.FirstMessage() + if err != nil { + return driver.HandshakeInformation{}, newAuthError("failed to create speculative authentication message", err) + } - op = op.SpeculativeAuthenticate(firstMsg) + op = op.SpeculativeAuthenticate(firstMsg) + } } } @@ -132,7 +142,6 @@ func (ah *authHandshaker) FinishHandshake(ctx context.Context, conn driver.Conne ClusterClock: ah.options.ClusterClock, HandshakeInfo: ah.handshakeInfo, ServerAPI: ah.options.ServerAPI, - HTTPClient: ah.options.HTTPClient, } if err := ah.authenticate(ctx, cfg); err != nil { @@ -170,21 +179,8 @@ func Handshaker(h driver.Handshaker, options *HandshakeOptions) driver.Handshake } } -// Config holds the information necessary to perform an authentication attempt. -type Config struct { - Description description.Server - Connection driver.Connection - ClusterClock *session.ClusterClock - HandshakeInfo driver.HandshakeInformation - ServerAPI *driver.ServerAPIOptions - HTTPClient *http.Client -} - // Authenticator handles authenticating a connection. -type Authenticator interface { - // Auth authenticates the connection. - Auth(context.Context, *Config) error -} +type Authenticator = driver.Authenticator func newAuthError(msg string, inner error) error { return &Error{ diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/cred.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/cred.go index 7b2b8f17d0..a9685f6ed8 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/cred.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/cred.go @@ -6,11 +6,9 @@ package auth -// Cred is a user's credential. -type Cred struct { - Source string - Username string - Password string - PasswordSet bool - Props map[string]string -} +import ( + "go.mongodb.org/mongo-driver/x/mongo/driver" +) + +// Cred is the type of user credential +type Cred = driver.Cred diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/default.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/default.go index 6f2ca5224a..785a41951d 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/default.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/default.go @@ -9,10 +9,13 @@ package auth import ( "context" "fmt" + "net/http" + + "go.mongodb.org/mongo-driver/x/mongo/driver" ) -func newDefaultAuthenticator(cred *Cred) (Authenticator, error) { - scram, err := newScramSHA256Authenticator(cred) +func newDefaultAuthenticator(cred *Cred, httpClient *http.Client) (Authenticator, error) { + scram, err := newScramSHA256Authenticator(cred, httpClient) if err != nil { return nil, newAuthError("failed to create internal authenticator", err) } @@ -25,6 +28,7 @@ func newDefaultAuthenticator(cred *Cred) (Authenticator, error) { return &DefaultAuthenticator{ Cred: cred, speculativeAuthenticator: speculative, + httpClient: httpClient, }, nil } @@ -36,6 +40,8 @@ type DefaultAuthenticator struct { // The authenticator to use for speculative authentication. Because the correct auth mechanism is unknown when doing // the initial hello, SCRAM-SHA-256 is used for the speculative attempt. speculativeAuthenticator SpeculativeAuthenticator + + httpClient *http.Client } var _ SpeculativeAuthenticator = (*DefaultAuthenticator)(nil) @@ -52,11 +58,11 @@ func (a *DefaultAuthenticator) Auth(ctx context.Context, cfg *Config) error { switch chooseAuthMechanism(cfg) { case SCRAMSHA256: - actual, err = newScramSHA256Authenticator(a.Cred) + actual, err = newScramSHA256Authenticator(a.Cred, a.httpClient) case SCRAMSHA1: - actual, err = newScramSHA1Authenticator(a.Cred) + actual, err = newScramSHA1Authenticator(a.Cred, a.httpClient) default: - actual, err = newMongoDBCRAuthenticator(a.Cred) + actual, err = newMongoDBCRAuthenticator(a.Cred, a.httpClient) } if err != nil { @@ -66,6 +72,11 @@ func (a *DefaultAuthenticator) Auth(ctx context.Context, cfg *Config) error { return actual.Auth(ctx, cfg) } +// Reauth reauthenticates the connection. +func (a *DefaultAuthenticator) Reauth(_ context.Context, _ *driver.AuthConfig) error { + return newAuthError("DefaultAuthenticator does not support reauthentication", nil) +} + // If a server provides a list of supported mechanisms, we choose // SCRAM-SHA-256 if it exists or else MUST use SCRAM-SHA-1. // Otherwise, we decide based on what is supported. diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi.go index 4b860ba63f..b342e9a7de 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi.go @@ -14,15 +14,17 @@ import ( "context" "fmt" "net" + "net/http" + "go.mongodb.org/mongo-driver/x/mongo/driver" "go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi" ) // GSSAPI is the mechanism name for GSSAPI. const GSSAPI = "GSSAPI" -func newGSSAPIAuthenticator(cred *Cred) (Authenticator, error) { - if cred.Source != "" && cred.Source != "$external" { +func newGSSAPIAuthenticator(cred *Cred, _ *http.Client) (Authenticator, error) { + if cred.Source != "" && cred.Source != sourceExternal { return nil, newAuthError("GSSAPI source must be empty or $external", nil) } @@ -55,5 +57,10 @@ func (a *GSSAPIAuthenticator) Auth(ctx context.Context, cfg *Config) error { if err != nil { return newAuthError("error creating gssapi", err) } - return ConductSaslConversation(ctx, cfg, "$external", client) + return ConductSaslConversation(ctx, cfg, sourceExternal, client) +} + +// Reauth reauthenticates the connection. +func (a *GSSAPIAuthenticator) Reauth(_ context.Context, _ *driver.AuthConfig) error { + return newAuthError("GSSAPI does not support reauthentication", nil) } diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_enabled.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_enabled.go index 7ba5fe860c..e50553c7a1 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_enabled.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_enabled.go @@ -9,9 +9,11 @@ package auth +import "net/http" + // GSSAPI is the mechanism name for GSSAPI. const GSSAPI = "GSSAPI" -func newGSSAPIAuthenticator(*Cred) (Authenticator, error) { +func newGSSAPIAuthenticator(*Cred, *http.Client) (Authenticator, error) { return nil, newAuthError("GSSAPI support not enabled during build (-tags gssapi)", nil) } diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_supported.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_supported.go index 10312c228e..12046ff67c 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_supported.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_supported.go @@ -11,12 +11,13 @@ package auth import ( "fmt" + "net/http" "runtime" ) // GSSAPI is the mechanism name for GSSAPI. const GSSAPI = "GSSAPI" -func newGSSAPIAuthenticator(cred *Cred) (Authenticator, error) { +func newGSSAPIAuthenticator(*Cred, *http.Client) (Authenticator, error) { return nil, newAuthError(fmt.Sprintf("GSSAPI is not supported on %s", runtime.GOOS), nil) } diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi/gss.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi/gss.go index abfa4db47c..496057882d 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi/gss.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi/gss.go @@ -19,6 +19,7 @@ package gssapi */ import "C" import ( + "context" "fmt" "runtime" "strings" @@ -91,12 +92,12 @@ func (sc *SaslClient) Start() (string, []byte, error) { return mechName, nil, sc.getError("unable to initialize client") } - payload, err := sc.Next(nil) + payload, err := sc.Next(nil, nil) return mechName, payload, err } -func (sc *SaslClient) Next(challenge []byte) ([]byte, error) { +func (sc *SaslClient) Next(_ context.Context, challenge []byte) ([]byte, error) { var buf unsafe.Pointer var bufLen C.size_t diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi/sspi.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi/sspi.go index 6e7d3ed8ad..f1da5a8521 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi/sspi.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi/sspi.go @@ -12,6 +12,7 @@ package gssapi // #include "sspi_wrapper.h" import "C" import ( + "context" "fmt" "net" "strconv" @@ -115,12 +116,12 @@ func (sc *SaslClient) Start() (string, []byte, error) { return mechName, nil, sc.getError("unable to initialize client") } - payload, err := sc.Next(nil) + payload, err := sc.Next(nil, nil) return mechName, payload, err } -func (sc *SaslClient) Next(challenge []byte) ([]byte, error) { +func (sc *SaslClient) Next(_ context.Context, challenge []byte) ([]byte, error) { var outBuf C.PVOID var outBufLen C.ULONG diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/mongodbaws.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/mongodbaws.go index 7ae4b08998..679c54e9fe 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/mongodbaws.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/mongodbaws.go @@ -9,57 +9,62 @@ package auth import ( "context" "errors" + "net/http" "go.mongodb.org/mongo-driver/internal/aws/credentials" "go.mongodb.org/mongo-driver/internal/credproviders" + "go.mongodb.org/mongo-driver/x/mongo/driver" "go.mongodb.org/mongo-driver/x/mongo/driver/auth/creds" ) // MongoDBAWS is the mechanism name for MongoDBAWS. const MongoDBAWS = "MONGODB-AWS" -func newMongoDBAWSAuthenticator(cred *Cred) (Authenticator, error) { - if cred.Source != "" && cred.Source != "$external" { +func newMongoDBAWSAuthenticator(cred *Cred, httpClient *http.Client) (Authenticator, error) { + if cred.Source != "" && cred.Source != sourceExternal { return nil, newAuthError("MONGODB-AWS source must be empty or $external", nil) } + if httpClient == nil { + return nil, errors.New("httpClient must not be nil") + } return &MongoDBAWSAuthenticator{ - source: cred.Source, credentials: &credproviders.StaticProvider{ Value: credentials.Value{ - ProviderName: cred.Source, AccessKeyID: cred.Username, SecretAccessKey: cred.Password, SessionToken: cred.Props["AWS_SESSION_TOKEN"], }, }, + httpClient: httpClient, }, nil } // MongoDBAWSAuthenticator uses AWS-IAM credentials over SASL to authenticate a connection. type MongoDBAWSAuthenticator struct { - source string credentials *credproviders.StaticProvider + httpClient *http.Client } // Auth authenticates the connection. func (a *MongoDBAWSAuthenticator) Auth(ctx context.Context, cfg *Config) error { - httpClient := cfg.HTTPClient - if httpClient == nil { - return errors.New("cfg.HTTPClient must not be nil") - } - providers := creds.NewAWSCredentialProvider(httpClient, a.credentials) + providers := creds.NewAWSCredentialProvider(a.httpClient, a.credentials) adapter := &awsSaslAdapter{ conversation: &awsConversation{ credentials: providers.Cred, }, } - err := ConductSaslConversation(ctx, cfg, a.source, adapter) + err := ConductSaslConversation(ctx, cfg, sourceExternal, adapter) if err != nil { return newAuthError("sasl conversation error", err) } return nil } +// Reauth reauthenticates the connection. +func (a *MongoDBAWSAuthenticator) Reauth(_ context.Context, _ *driver.AuthConfig) error { + return newAuthError("AWS authentication does not support reauthentication", nil) +} + type awsSaslAdapter struct { conversation *awsConversation } @@ -74,7 +79,7 @@ func (a *awsSaslAdapter) Start() (string, []byte, error) { return MongoDBAWS, step, nil } -func (a *awsSaslAdapter) Next(challenge []byte) ([]byte, error) { +func (a *awsSaslAdapter) Next(_ context.Context, challenge []byte) ([]byte, error) { step, err := a.conversation.Step(challenge) if err != nil { return nil, err diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/mongodbcr.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/mongodbcr.go index 6e2c2f4dcb..1861956b74 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/mongodbcr.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/mongodbcr.go @@ -10,6 +10,7 @@ import ( "context" "fmt" "io" + "net/http" // Ignore gosec warning "Blocklisted import crypto/md5: weak cryptographic primitive". We need // to use MD5 here to implement the MONGODB-CR specification. @@ -28,9 +29,13 @@ import ( // MongoDB 4.0. const MONGODBCR = "MONGODB-CR" -func newMongoDBCRAuthenticator(cred *Cred) (Authenticator, error) { +func newMongoDBCRAuthenticator(cred *Cred, _ *http.Client) (Authenticator, error) { + source := cred.Source + if source == "" { + source = "admin" + } return &MongoDBCRAuthenticator{ - DB: cred.Source, + DB: source, Username: cred.Username, Password: cred.Password, }, nil @@ -97,6 +102,11 @@ func (a *MongoDBCRAuthenticator) Auth(ctx context.Context, cfg *Config) error { return nil } +// Reauth reauthenticates the connection. +func (a *MongoDBCRAuthenticator) Reauth(_ context.Context, _ *driver.AuthConfig) error { + return newAuthError("MONGODB-CR does not support reauthentication", nil) +} + func (a *MongoDBCRAuthenticator) createKey(nonce string) string { // Ignore gosec warning "Use of weak cryptographic primitive". We need to use MD5 here to // implement the MONGODB-CR specification. diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/oidc.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/oidc.go new file mode 100644 index 0000000000..13fd10ec3d --- /dev/null +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/oidc.go @@ -0,0 +1,556 @@ +// Copyright (C) MongoDB, Inc. 2024-present. +// +// Licensed 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 + +package auth + +import ( + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "net/url" + "regexp" + "strings" + "sync" + "time" + + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver" +) + +// MongoDBOIDC is the string constant for the MONGODB-OIDC authentication mechanism. +const MongoDBOIDC = "MONGODB-OIDC" + +// EnvironmentProp is the property key name that specifies the environment for the OIDC authenticator. +const EnvironmentProp = "ENVIRONMENT" + +// ResourceProp is the property key name that specifies the token resource for GCP and AZURE OIDC auth. +const ResourceProp = "TOKEN_RESOURCE" + +// AllowedHostsProp is the property key name that specifies the allowed hosts for the OIDC authenticator. +const AllowedHostsProp = "ALLOWED_HOSTS" + +// AzureEnvironmentValue is the value for the Azure environment. +const AzureEnvironmentValue = "azure" + +// GCPEnvironmentValue is the value for the GCP environment. +const GCPEnvironmentValue = "gcp" + +// TestEnvironmentValue is the value for the test environment. +const TestEnvironmentValue = "test" + +const apiVersion = 1 +const invalidateSleepTimeout = 100 * time.Millisecond + +// The CSOT specification says to apply a 1-minute timeout if "CSOT is not applied". That's +// ambiguous for the v1.x Go Driver because it could mean either "no timeout provided" or "CSOT not +// enabled". Always use a maximum timeout duration of 1 minute, allowing us to ignore the ambiguity. +// Contexts with a shorter timeout are unaffected. +const machineCallbackTimeout = time.Minute +const humanCallbackTimeout = 5 * time.Minute + +var defaultAllowedHosts = []*regexp.Regexp{ + regexp.MustCompile(`^.*[.]mongodb[.]net(:\d+)?$`), + regexp.MustCompile(`^.*[.]mongodb-qa[.]net(:\d+)?$`), + regexp.MustCompile(`^.*[.]mongodb-dev[.]net(:\d+)?$`), + regexp.MustCompile(`^.*[.]mongodbgov[.]net(:\d+)?$`), + regexp.MustCompile(`^localhost(:\d+)?$`), + regexp.MustCompile(`^127[.]0[.]0[.]1(:\d+)?$`), + regexp.MustCompile(`^::1(:\d+)?$`), +} + +// OIDCCallback is a function that takes a context and OIDCArgs and returns an OIDCCredential. +type OIDCCallback = driver.OIDCCallback + +// OIDCArgs contains the arguments for the OIDC callback. +type OIDCArgs = driver.OIDCArgs + +// OIDCCredential contains the access token and refresh token. +type OIDCCredential = driver.OIDCCredential + +// IDPInfo contains the information needed to perform OIDC authentication with an Identity Provider. +type IDPInfo = driver.IDPInfo + +var _ driver.Authenticator = (*OIDCAuthenticator)(nil) +var _ SpeculativeAuthenticator = (*OIDCAuthenticator)(nil) +var _ SaslClient = (*oidcOneStep)(nil) +var _ SaslClient = (*oidcTwoStep)(nil) + +// OIDCAuthenticator is synchronized and handles caching of the access token, refreshToken, +// and IDPInfo. It also provides a mechanism to refresh the access token, but this functionality +// is only for the OIDC Human flow. +type OIDCAuthenticator struct { + mu sync.Mutex // Guards all of the info in the OIDCAuthenticator struct. + + AuthMechanismProperties map[string]string + OIDCMachineCallback OIDCCallback + OIDCHumanCallback OIDCCallback + + allowedHosts *[]*regexp.Regexp + userName string + httpClient *http.Client + accessToken string + refreshToken *string + idpInfo *IDPInfo + tokenGenID uint64 +} + +// SetAccessToken allows for manually setting the access token for the OIDCAuthenticator, this is +// only for testing purposes. +func (oa *OIDCAuthenticator) SetAccessToken(accessToken string) { + oa.mu.Lock() + defer oa.mu.Unlock() + oa.accessToken = accessToken +} + +func newOIDCAuthenticator(cred *Cred, httpClient *http.Client) (Authenticator, error) { + if cred.Source != "" && cred.Source != sourceExternal { + return nil, newAuthError("MONGODB-OIDC source must be empty or $external", nil) + } + if cred.Password != "" { + return nil, fmt.Errorf("password cannot be specified for %q", MongoDBOIDC) + } + if cred.Props != nil { + if env, ok := cred.Props[EnvironmentProp]; ok { + switch strings.ToLower(env) { + case AzureEnvironmentValue: + fallthrough + case GCPEnvironmentValue: + if _, ok := cred.Props[ResourceProp]; !ok { + return nil, fmt.Errorf("%q must be specified for %q %q", ResourceProp, env, EnvironmentProp) + } + fallthrough + case TestEnvironmentValue: + if cred.OIDCMachineCallback != nil || cred.OIDCHumanCallback != nil { + return nil, fmt.Errorf("OIDC callbacks are not allowed for %q %q", env, EnvironmentProp) + } + } + } + } + oa := &OIDCAuthenticator{ + userName: cred.Username, + httpClient: httpClient, + AuthMechanismProperties: cred.Props, + OIDCMachineCallback: cred.OIDCMachineCallback, + OIDCHumanCallback: cred.OIDCHumanCallback, + } + err := oa.setAllowedHosts() + return oa, err +} + +func createPatternsForGlobs(hosts []string) ([]*regexp.Regexp, error) { + var err error + ret := make([]*regexp.Regexp, len(hosts)) + for i := range hosts { + hosts[i] = strings.ReplaceAll(hosts[i], ".", "[.]") + hosts[i] = strings.ReplaceAll(hosts[i], "*", ".*") + hosts[i] = "^" + hosts[i] + "(:\\d+)?$" + ret[i], err = regexp.Compile(hosts[i]) + if err != nil { + return nil, err + } + } + return ret, nil +} + +func (oa *OIDCAuthenticator) setAllowedHosts() error { + if oa.AuthMechanismProperties == nil { + oa.allowedHosts = &defaultAllowedHosts + return nil + } + + allowedHosts, ok := oa.AuthMechanismProperties[AllowedHostsProp] + if !ok { + oa.allowedHosts = &defaultAllowedHosts + return nil + } + globs := strings.Split(allowedHosts, ",") + ret, err := createPatternsForGlobs(globs) + if err != nil { + return err + } + oa.allowedHosts = &ret + return nil +} + +func (oa *OIDCAuthenticator) validateConnectionAddressWithAllowedHosts(conn driver.Connection) error { + if oa.allowedHosts == nil { + // should be unreachable, but this is a safety check. + return newAuthError(fmt.Sprintf("%q missing", AllowedHostsProp), nil) + } + allowedHosts := *oa.allowedHosts + if len(allowedHosts) == 0 { + return newAuthError(fmt.Sprintf("empty %q specified", AllowedHostsProp), nil) + } + for _, pattern := range allowedHosts { + if pattern.MatchString(string(conn.Address())) { + return nil + } + } + return newAuthError(fmt.Sprintf("address %q not allowed by %q: %v", conn.Address(), AllowedHostsProp, allowedHosts), nil) +} + +type oidcOneStep struct { + userName string + accessToken string +} + +type oidcTwoStep struct { + conn driver.Connection + oa *OIDCAuthenticator +} + +func jwtStepRequest(accessToken string) []byte { + return bsoncore.NewDocumentBuilder(). + AppendString("jwt", accessToken). + Build() +} + +func principalStepRequest(principal string) []byte { + doc := bsoncore.NewDocumentBuilder() + if principal != "" { + doc.AppendString("n", principal) + } + return doc.Build() +} + +func (oos *oidcOneStep) Start() (string, []byte, error) { + return MongoDBOIDC, jwtStepRequest(oos.accessToken), nil +} + +func (oos *oidcOneStep) Next(context.Context, []byte) ([]byte, error) { + return nil, newAuthError("unexpected step in OIDC authentication", nil) +} + +func (*oidcOneStep) Completed() bool { + return true +} + +func (ots *oidcTwoStep) Start() (string, []byte, error) { + return MongoDBOIDC, principalStepRequest(ots.oa.userName), nil +} + +func (ots *oidcTwoStep) Next(ctx context.Context, msg []byte) ([]byte, error) { + var idpInfo IDPInfo + err := bson.Unmarshal(msg, &idpInfo) + if err != nil { + return nil, fmt.Errorf("error unmarshaling BSON document: %w", err) + } + + accessToken, err := ots.oa.getAccessToken(ctx, + ots.conn, + &OIDCArgs{ + Version: apiVersion, + // idpInfo is nil for machine callbacks in the current spec. + IDPInfo: &idpInfo, + // there is no way there could be a refresh token when there is no IDPInfo. + RefreshToken: nil, + }, + // two-step callbacks are always human callbacks. + ots.oa.OIDCHumanCallback) + + return jwtStepRequest(accessToken), err +} + +func (*oidcTwoStep) Completed() bool { + return true +} + +func (oa *OIDCAuthenticator) providerCallback() (OIDCCallback, error) { + env, ok := oa.AuthMechanismProperties[EnvironmentProp] + if !ok { + return nil, nil + } + + switch env { + case AzureEnvironmentValue: + resource, ok := oa.AuthMechanismProperties[ResourceProp] + if !ok { + return nil, newAuthError(fmt.Sprintf("%q must be specified for Azure OIDC", ResourceProp), nil) + } + return getAzureOIDCCallback(oa.userName, resource, oa.httpClient), nil + case GCPEnvironmentValue: + resource, ok := oa.AuthMechanismProperties[ResourceProp] + if !ok { + return nil, newAuthError(fmt.Sprintf("%q must be specified for GCP OIDC", ResourceProp), nil) + } + return getGCPOIDCCallback(resource, oa.httpClient), nil + } + + return nil, fmt.Errorf("%q %q not supported for MONGODB-OIDC", EnvironmentProp, env) +} + +// getAzureOIDCCallback returns the callback for the Azure Identity Provider. +func getAzureOIDCCallback(clientID string, resource string, httpClient *http.Client) OIDCCallback { + // return the callback parameterized by the clientID and resource, also passing in the user + // configured httpClient. + return func(ctx context.Context, _ *OIDCArgs) (*OIDCCredential, error) { + resource = url.QueryEscape(resource) + var uri string + if clientID != "" { + uri = fmt.Sprintf("http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=%s&client_id=%s", resource, clientID) + } else { + uri = fmt.Sprintf("http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=%s", resource) + } + req, err := http.NewRequestWithContext(ctx, http.MethodGet, uri, nil) + if err != nil { + return nil, newAuthError("error creating http request to Azure Identity Provider", err) + } + req.Header.Add("Metadata", "true") + req.Header.Add("Accept", "application/json") + resp, err := httpClient.Do(req) + if err != nil { + return nil, newAuthError("error getting access token from Azure Identity Provider", err) + } + defer resp.Body.Close() + var azureResp struct { + AccessToken string `json:"access_token"` + ExpiresOn int64 `json:"expires_on,string"` + } + + if resp.StatusCode != http.StatusOK { + return nil, newAuthError(fmt.Sprintf("failed to get a valid response from Azure Identity Provider, http code: %d", resp.StatusCode), nil) + } + err = json.NewDecoder(resp.Body).Decode(&azureResp) + if err != nil { + return nil, newAuthError("failed parsing result from Azure Identity Provider", err) + } + expireTime := time.Unix(azureResp.ExpiresOn, 0) + return &OIDCCredential{ + AccessToken: azureResp.AccessToken, + ExpiresAt: &expireTime, + }, nil + } +} + +// getGCPOIDCCallback returns the callback for the GCP Identity Provider. +func getGCPOIDCCallback(resource string, httpClient *http.Client) OIDCCallback { + // return the callback parameterized by the clientID and resource, also passing in the user + // configured httpClient. + return func(ctx context.Context, _ *OIDCArgs) (*OIDCCredential, error) { + resource = url.QueryEscape(resource) + uri := fmt.Sprintf("http://metadata/computeMetadata/v1/instance/service-accounts/default/identity?audience=%s", resource) + req, err := http.NewRequestWithContext(ctx, http.MethodGet, uri, nil) + if err != nil { + return nil, newAuthError("error creating http request to GCP Identity Provider", err) + } + req.Header.Add("Metadata-Flavor", "Google") + resp, err := httpClient.Do(req) + if err != nil { + return nil, newAuthError("error getting access token from GCP Identity Provider", err) + } + defer resp.Body.Close() + if resp.StatusCode != http.StatusOK { + return nil, newAuthError(fmt.Sprintf("failed to get a valid response from GCP Identity Provider, http code: %d", resp.StatusCode), nil) + } + accessToken, err := io.ReadAll(resp.Body) + if err != nil { + return nil, newAuthError("failed parsing reading response from GCP Identity Provider", err) + } + return &OIDCCredential{ + AccessToken: string(accessToken), + ExpiresAt: nil, + }, nil + } +} + +func (oa *OIDCAuthenticator) getAccessToken( + ctx context.Context, + conn driver.Connection, + args *OIDCArgs, + callback OIDCCallback, +) (string, error) { + oa.mu.Lock() + defer oa.mu.Unlock() + + if oa.accessToken != "" { + return oa.accessToken, nil + } + + // Attempt to refresh the access token if a refresh token is available. + if args.RefreshToken != nil { + cred, err := callback(ctx, args) + if err == nil && cred != nil { + oa.accessToken = cred.AccessToken + oa.tokenGenID++ + conn.SetOIDCTokenGenID(oa.tokenGenID) + oa.refreshToken = cred.RefreshToken + return cred.AccessToken, nil + } + oa.refreshToken = nil + args.RefreshToken = nil + } + // If we get here this means there either was no refresh token or the refresh token failed. + cred, err := callback(ctx, args) + if err != nil { + return "", err + } + // This line should never occur, if go conventions are followed, but it is a safety check such + // that we do not throw nil pointer errors to our users if they abuse the API. + if cred == nil { + return "", newAuthError("OIDC callback returned nil credential with no specified error", nil) + } + + oa.accessToken = cred.AccessToken + oa.tokenGenID++ + conn.SetOIDCTokenGenID(oa.tokenGenID) + oa.refreshToken = cred.RefreshToken + // always set the IdPInfo, in most cases, this should just be recopying the same pointer, or nil + // in the machine flow. + oa.idpInfo = args.IDPInfo + + return cred.AccessToken, nil +} + +// invalidateAccessToken invalidates the access token, if the force flag is set to true (which is +// only on a Reauth call) or if the tokenGenID of the connection is greater than or equal to the +// tokenGenID of the OIDCAuthenticator. It should never actually be greater than, but only equal, +// but this is a safety check, since extra invalidation is only a performance impact, not a +// correctness impact. +func (oa *OIDCAuthenticator) invalidateAccessToken(conn driver.Connection) { + oa.mu.Lock() + defer oa.mu.Unlock() + tokenGenID := conn.OIDCTokenGenID() + // If the connection used in a Reauth is a new connection it will not have a correct tokenGenID, + // it will instead be set to 0. In the absence of information, the only safe thing to do is to + // invalidate the cached accessToken. + if tokenGenID == 0 || tokenGenID >= oa.tokenGenID { + oa.accessToken = "" + conn.SetOIDCTokenGenID(0) + } +} + +// Reauth reauthenticates the connection when the server returns a 391 code. Reauth is part of the +// driver.Authenticator interface. +func (oa *OIDCAuthenticator) Reauth(ctx context.Context, cfg *Config) error { + oa.invalidateAccessToken(cfg.Connection) + return oa.Auth(ctx, cfg) +} + +// Auth authenticates the connection. +func (oa *OIDCAuthenticator) Auth(ctx context.Context, cfg *Config) error { + var err error + + if cfg == nil { + return newAuthError(fmt.Sprintf("config must be set for %q authentication", MongoDBOIDC), nil) + } + conn := cfg.Connection + + oa.mu.Lock() + cachedAccessToken := oa.accessToken + cachedRefreshToken := oa.refreshToken + cachedIDPInfo := oa.idpInfo + oa.mu.Unlock() + + if cachedAccessToken != "" { + err = ConductSaslConversation(ctx, cfg, sourceExternal, &oidcOneStep{ + userName: oa.userName, + accessToken: cachedAccessToken, + }) + if err == nil { + return nil + } + // this seems like it could be incorrect since we could be inavlidating an access token that + // has already been replaced by a different auth attempt, but the TokenGenID will prevernt + // that from happening. + oa.invalidateAccessToken(conn) + time.Sleep(invalidateSleepTimeout) + } + + if oa.OIDCHumanCallback != nil { + return oa.doAuthHuman(ctx, cfg, oa.OIDCHumanCallback, cachedIDPInfo, cachedRefreshToken) + } + + // Handle user provided or automatic provider machine callback. + var machineCallback OIDCCallback + if oa.OIDCMachineCallback != nil { + machineCallback = oa.OIDCMachineCallback + } else { + machineCallback, err = oa.providerCallback() + if err != nil { + return fmt.Errorf("error getting built-in OIDC provider: %w", err) + } + } + + if machineCallback != nil { + return oa.doAuthMachine(ctx, cfg, machineCallback) + } + return newAuthError("no OIDC callback provided", nil) +} + +func (oa *OIDCAuthenticator) doAuthHuman(ctx context.Context, cfg *Config, humanCallback OIDCCallback, idpInfo *IDPInfo, refreshToken *string) error { + // Ensure that the connection address is allowed by the allowed hosts. + err := oa.validateConnectionAddressWithAllowedHosts(cfg.Connection) + if err != nil { + return err + } + subCtx, cancel := context.WithTimeout(ctx, humanCallbackTimeout) + defer cancel() + // If the idpInfo exists, we can just do one step + if idpInfo != nil { + accessToken, err := oa.getAccessToken(subCtx, + cfg.Connection, + &OIDCArgs{ + Version: apiVersion, + // idpInfo is nil for machine callbacks in the current spec. + IDPInfo: idpInfo, + RefreshToken: refreshToken, + }, + humanCallback) + if err != nil { + return err + } + return ConductSaslConversation( + subCtx, + cfg, + sourceExternal, + &oidcOneStep{accessToken: accessToken}, + ) + } + // otherwise, we need the two step where we ask the server for the IdPInfo first. + ots := &oidcTwoStep{ + conn: cfg.Connection, + oa: oa, + } + return ConductSaslConversation(subCtx, cfg, sourceExternal, ots) +} + +func (oa *OIDCAuthenticator) doAuthMachine(ctx context.Context, cfg *Config, machineCallback OIDCCallback) error { + subCtx, cancel := context.WithTimeout(ctx, machineCallbackTimeout) + accessToken, err := oa.getAccessToken(subCtx, + cfg.Connection, + &OIDCArgs{ + Version: apiVersion, + // idpInfo is nil for machine callbacks in the current spec. + IDPInfo: nil, + RefreshToken: nil, + }, + machineCallback) + cancel() + if err != nil { + return err + } + return ConductSaslConversation( + ctx, + cfg, + sourceExternal, + &oidcOneStep{accessToken: accessToken}, + ) +} + +// CreateSpeculativeConversation creates a speculative conversation for OIDC authentication. +func (oa *OIDCAuthenticator) CreateSpeculativeConversation() (SpeculativeConversation, error) { + oa.mu.Lock() + defer oa.mu.Unlock() + accessToken := oa.accessToken + if accessToken == "" { + return nil, nil // Skip speculative auth. + } + + return newSaslConversation(&oidcOneStep{accessToken: accessToken}, sourceExternal, true), nil +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/plain.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/plain.go index 532d43e39f..fb0645aaac 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/plain.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/plain.go @@ -8,12 +8,30 @@ package auth import ( "context" + "net/http" + + "go.mongodb.org/mongo-driver/x/mongo/driver" ) // PLAIN is the mechanism name for PLAIN. const PLAIN = "PLAIN" -func newPlainAuthenticator(cred *Cred) (Authenticator, error) { +func newPlainAuthenticator(cred *Cred, _ *http.Client) (Authenticator, error) { + // TODO(GODRIVER-3317): The PLAIN specification says about auth source: + // + // "MUST be specified. Defaults to the database name if supplied on the + // connection string or $external." + // + // We should actually pass through the auth source, not always pass + // $external. If it's empty, we should default to $external. + // + // For example: + // + // source := cred.Source + // if source == "" { + // source = "$external" + // } + // return &PlainAuthenticator{ Username: cred.Username, Password: cred.Password, @@ -28,12 +46,17 @@ type PlainAuthenticator struct { // Auth authenticates the connection. func (a *PlainAuthenticator) Auth(ctx context.Context, cfg *Config) error { - return ConductSaslConversation(ctx, cfg, "$external", &plainSaslClient{ + return ConductSaslConversation(ctx, cfg, sourceExternal, &plainSaslClient{ username: a.Username, password: a.Password, }) } +// Reauth reauthenticates the connection. +func (a *PlainAuthenticator) Reauth(_ context.Context, _ *driver.AuthConfig) error { + return newAuthError("Plain authentication does not support reauthentication", nil) +} + type plainSaslClient struct { username string password string @@ -46,7 +69,7 @@ func (c *plainSaslClient) Start() (string, []byte, error) { return PLAIN, b, nil } -func (c *plainSaslClient) Next([]byte) ([]byte, error) { +func (c *plainSaslClient) Next(context.Context, []byte) ([]byte, error) { return nil, newAuthError("unexpected server challenge", nil) } diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/sasl.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/sasl.go index 2a84b53a64..1ef67f02b0 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/sasl.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/sasl.go @@ -19,7 +19,7 @@ import ( // SaslClient is the client piece of a sasl conversation. type SaslClient interface { Start() (string, []byte, error) - Next(challenge []byte) ([]byte, error) + Next(ctx context.Context, challenge []byte) ([]byte, error) Completed() bool } @@ -118,7 +118,7 @@ func (sc *saslConversation) Finish(ctx context.Context, cfg *Config, firstRespon return nil } - payload, err = sc.client.Next(saslResp.Payload) + payload, err = sc.client.Next(ctx, saslResp.Payload) if err != nil { return newError(err, sc.mechanism) } @@ -156,7 +156,6 @@ func (sc *saslConversation) Finish(ctx context.Context, cfg *Config, firstRespon func ConductSaslConversation(ctx context.Context, cfg *Config, authSource string, client SaslClient) error { // Create a non-speculative SASL conversation. conversation := newSaslConversation(client, authSource, false) - saslStartDoc, err := conversation.FirstMessage() if err != nil { return newError(err, conversation.mechanism) diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/scram.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/scram.go index c1238cd6a9..0d7deaee0e 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/scram.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/scram.go @@ -14,10 +14,12 @@ package auth import ( "context" + "net/http" "github.com/xdg-go/scram" "github.com/xdg-go/stringprep" "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver" ) const ( @@ -35,7 +37,11 @@ var ( ) ) -func newScramSHA1Authenticator(cred *Cred) (Authenticator, error) { +func newScramSHA1Authenticator(cred *Cred, _ *http.Client) (Authenticator, error) { + source := cred.Source + if source == "" { + source = "admin" + } passdigest := mongoPasswordDigest(cred.Username, cred.Password) client, err := scram.SHA1.NewClientUnprepped(cred.Username, passdigest, "") if err != nil { @@ -44,12 +50,16 @@ func newScramSHA1Authenticator(cred *Cred) (Authenticator, error) { client.WithMinIterations(4096) return &ScramAuthenticator{ mechanism: SCRAMSHA1, - source: cred.Source, + source: source, client: client, }, nil } -func newScramSHA256Authenticator(cred *Cred) (Authenticator, error) { +func newScramSHA256Authenticator(cred *Cred, _ *http.Client) (Authenticator, error) { + source := cred.Source + if source == "" { + source = "admin" + } passprep, err := stringprep.SASLprep.Prepare(cred.Password) if err != nil { return nil, newAuthError("error SASLprepping password", err) @@ -61,7 +71,7 @@ func newScramSHA256Authenticator(cred *Cred) (Authenticator, error) { client.WithMinIterations(4096) return &ScramAuthenticator{ mechanism: SCRAMSHA256, - source: cred.Source, + source: source, client: client, }, nil } @@ -84,6 +94,11 @@ func (a *ScramAuthenticator) Auth(ctx context.Context, cfg *Config) error { return nil } +// Reauth reauthenticates the connection. +func (a *ScramAuthenticator) Reauth(_ context.Context, _ *driver.AuthConfig) error { + return newAuthError("SCRAM does not support reauthentication", nil) +} + // CreateSpeculativeConversation creates a speculative conversation for SCRAM authentication. func (a *ScramAuthenticator) CreateSpeculativeConversation() (SpeculativeConversation, error) { return newSaslConversation(a.createSaslClient(), a.source, true), nil @@ -112,7 +127,7 @@ func (a *scramSaslAdapter) Start() (string, []byte, error) { return a.mechanism, []byte(step), nil } -func (a *scramSaslAdapter) Next(challenge []byte) ([]byte, error) { +func (a *scramSaslAdapter) Next(_ context.Context, challenge []byte) ([]byte, error) { step, err := a.conversation.Step(string(challenge)) if err != nil { return nil, err diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/x509.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/x509.go index 03a9d750e2..1b84e00b48 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/x509.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/x509.go @@ -8,6 +8,7 @@ package auth import ( "context" + "net/http" "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" "go.mongodb.org/mongo-driver/x/mongo/driver" @@ -17,7 +18,10 @@ import ( // MongoDBX509 is the mechanism name for MongoDBX509. const MongoDBX509 = "MONGODB-X509" -func newMongoDBX509Authenticator(cred *Cred) (Authenticator, error) { +func newMongoDBX509Authenticator(cred *Cred, _ *http.Client) (Authenticator, error) { + // TODO(GODRIVER-3309): Validate that cred.Source is either empty or + // "$external" to make validation uniform with other auth mechanisms that + // require Source to be "$external" (e.g. MONGODB-AWS, MONGODB-OIDC, etc). return &MongoDBX509Authenticator{User: cred.Username}, nil } @@ -65,7 +69,7 @@ func (a *MongoDBX509Authenticator) Auth(ctx context.Context, cfg *Config) error requestDoc := createFirstX509Message() authCmd := operation. NewCommand(requestDoc). - Database("$external"). + Database(sourceExternal). Deployment(driver.SingleConnectionDeployment{cfg.Connection}). ClusterClock(cfg.ClusterClock). ServerAPI(cfg.ServerAPI) @@ -76,3 +80,8 @@ func (a *MongoDBX509Authenticator) Auth(ctx context.Context, cfg *Config) error return nil } + +// Reauth reauthenticates the connection. +func (a *MongoDBX509Authenticator) Reauth(_ context.Context, _ *driver.AuthConfig) error { + return newAuthError("X509 does not support reauthentication", nil) +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/batch_cursor.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/batch_cursor.go index 23b4a6539d..2aa0aca694 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/batch_cursor.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/batch_cursor.go @@ -108,12 +108,12 @@ func NewCursorResponse(info ResponseInfo) (CursorResponse, error) { if !ok { return CursorResponse{}, fmt.Errorf("ns should be a string but is a BSON %s", elem.Value().Type) } - index := strings.Index(ns, ".") - if index == -1 { + database, collection, ok := strings.Cut(ns, ".") + if !ok { return CursorResponse{}, errors.New("ns field must contain a valid namespace, but is missing '.'") } - curresp.Database = ns[:index] - curresp.Collection = ns[index+1:] + curresp.Database = database + curresp.Collection = collection case "id": curresp.ID, ok = elem.Value().Int64OK() if !ok { @@ -314,7 +314,7 @@ func (bc *BatchCursor) KillCursor(ctx context.Context) error { } return Operation{ - CommandFn: func(dst []byte, desc description.SelectedServer) ([]byte, error) { + CommandFn: func(dst []byte, _ description.SelectedServer) ([]byte, error) { dst = bsoncore.AppendStringElement(dst, "killCursors", bc.collection) dst = bsoncore.BuildArrayElement(dst, "cursors", bsoncore.Value{Type: bsontype.Int64, Data: bsoncore.AppendInt64(nil, bc.id)}) return dst, nil @@ -369,7 +369,7 @@ func (bc *BatchCursor) getMore(ctx context.Context) { } bc.err = Operation{ - CommandFn: func(dst []byte, desc description.SelectedServer) ([]byte, error) { + CommandFn: func(dst []byte, _ description.SelectedServer) ([]byte, error) { dst = bsoncore.AppendInt64Element(dst, "getMore", bc.id) dst = bsoncore.AppendStringElement(dst, "collection", bc.collection) if numToReturn > 0 { diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go index 686458e292..67af28fa77 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go @@ -24,6 +24,7 @@ import ( "go.mongodb.org/mongo-driver/internal/randutil" "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" "go.mongodb.org/mongo-driver/x/mongo/driver/dns" "go.mongodb.org/mongo-driver/x/mongo/driver/wiremessage" ) @@ -258,6 +259,16 @@ func (u *ConnString) Validate() error { } } + // Check for OIDC auth mechanism properties that cannot be set in the ConnString. + if u.AuthMechanism == auth.MongoDBOIDC { + if _, ok := u.AuthMechanismProperties[auth.AllowedHostsProp]; ok { + return fmt.Errorf( + "ALLOWED_HOSTS cannot be specified in the URI connection string for the %q auth mechanism, it must be specified through the ClientOptions directly", + auth.MongoDBOIDC, + ) + } + } + return nil } @@ -285,7 +296,11 @@ func (u *ConnString) setDefaultAuthParams(dbName string) error { u.AuthMechanismProperties["SERVICE_NAME"] = "mongodb" } fallthrough - case "mongodb-aws", "mongodb-x509": + case "mongodb-aws", "mongodb-x509", "mongodb-oidc": + // dns.LookupTXT will get "authSource=admin" from Atlas hosts. + if u.AuthSource == "admin" { + u.AuthSource = "$external" + } if u.AuthSource == "" { u.AuthSource = "$external" } else if u.AuthSource != "$external" { @@ -781,6 +796,10 @@ func (u *ConnString) validateAuth() error { if u.AuthMechanismProperties != nil { return fmt.Errorf("SCRAM-SHA-256 cannot have mechanism properties") } + case "mongodb-oidc": + if u.Password != "" { + return fmt.Errorf("password cannot be specified for MONGODB-OIDC") + } case "": if u.UsernameSet && u.Username == "" { return fmt.Errorf("username required if URI contains user info") @@ -887,15 +906,16 @@ func (p *parser) parse(original string) (*ConnString, error) { uri := original var err error - if strings.HasPrefix(uri, SchemeMongoDBSRV+"://") { + switch { + case strings.HasPrefix(uri, SchemeMongoDBSRV+"://"): connStr.Scheme = SchemeMongoDBSRV // remove the scheme uri = uri[len(SchemeMongoDBSRV)+3:] - } else if strings.HasPrefix(uri, SchemeMongoDB+"://") { + case strings.HasPrefix(uri, SchemeMongoDB+"://"): connStr.Scheme = SchemeMongoDB // remove the scheme uri = uri[len(SchemeMongoDB)+3:] - } else { + default: return nil, errors.New(`scheme must be "mongodb" or "mongodb+srv"`) } @@ -906,9 +926,9 @@ func (p *parser) parse(original string) (*ConnString, error) { username := userInfo var password string - if idx := strings.Index(userInfo, ":"); idx != -1 { - username = userInfo[:idx] - password = userInfo[idx+1:] + if u, p, ok := strings.Cut(userInfo, ":"); ok { + username = u + password = p connStr.PasswordSet = true } diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/driver.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/driver.go index 900729bf87..363f4d6be3 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/driver.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/driver.go @@ -24,6 +24,63 @@ import ( "go.mongodb.org/mongo-driver/x/mongo/driver/session" ) +// AuthConfig holds the information necessary to perform an authentication attempt. +// this was moved from the auth package to avoid a circular dependency. The auth package +// reexports this under the old name to avoid breaking the public api. +type AuthConfig struct { + Description description.Server + Connection Connection + ClusterClock *session.ClusterClock + HandshakeInfo HandshakeInformation + ServerAPI *ServerAPIOptions +} + +// OIDCCallback is the type for both Human and Machine Callback flows. RefreshToken will always be +// nil in the OIDCArgs for the Machine flow. +type OIDCCallback func(context.Context, *OIDCArgs) (*OIDCCredential, error) + +// OIDCArgs contains the arguments for the OIDC callback. +type OIDCArgs struct { + Version int + IDPInfo *IDPInfo + RefreshToken *string +} + +// OIDCCredential contains the access token and refresh token. +type OIDCCredential struct { + AccessToken string + ExpiresAt *time.Time + RefreshToken *string +} + +// IDPInfo contains the information needed to perform OIDC authentication with an Identity Provider. +type IDPInfo struct { + Issuer string `bson:"issuer"` + ClientID string `bson:"clientId"` + RequestScopes []string `bson:"requestScopes"` +} + +// Authenticator handles authenticating a connection. The implementers of this interface +// are all in the auth package. Most authentication mechanisms do not allow for Reauth, +// but this is included in the interface so that whenever a new mechanism is added, it +// must be explicitly considered. +type Authenticator interface { + // Auth authenticates the connection. + Auth(context.Context, *AuthConfig) error + Reauth(context.Context, *AuthConfig) error +} + +// Cred is a user's credential. +type Cred struct { + Source string + Username string + Password string + PasswordSet bool + Props map[string]string + OIDCMachineCallback OIDCCallback + OIDCHumanCallback OIDCCallback +} + // Deployment is implemented by types that can select a server from a deployment. type Deployment interface { SelectServer(context.Context, description.ServerSelector) (Server, error) @@ -79,6 +136,8 @@ type Connection interface { DriverConnectionID() uint64 // TODO(GODRIVER-2824): change type to int64. Address() address.Address Stale() bool + OIDCTokenGenID() uint64 + SetOIDCTokenGenID(uint64) } // RTTMonitor represents a round-trip-time monitor. diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/errors.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/errors.go index 177c2d4501..59c3992e9a 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/errors.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/errors.go @@ -140,7 +140,7 @@ func (wce WriteCommandError) Retryable(wireVersion *description.VersionRange) bo if wce.WriteConcernError == nil { return false } - return (*wce.WriteConcernError).Retryable() + return wce.WriteConcernError.Retryable() } // HasErrorLabel returns true if the error contains the specified label. diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/mongocrypt.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/mongocrypt.go index 20f6ff0aa9..c5044f8f5f 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/mongocrypt.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/mongocrypt.go @@ -278,7 +278,12 @@ func (m *MongoCrypt) createExplicitEncryptionContext(opts *options.ExplicitEncry if opts.RangeOptions.Precision != nil { mongocryptDoc = bsoncore.AppendInt32Element(mongocryptDoc, "precision", *opts.RangeOptions.Precision) } - mongocryptDoc = bsoncore.AppendInt64Element(mongocryptDoc, "sparsity", opts.RangeOptions.Sparsity) + if opts.RangeOptions.Sparsity != nil { + mongocryptDoc = bsoncore.AppendInt64Element(mongocryptDoc, "sparsity", *opts.RangeOptions.Sparsity) + } + if opts.RangeOptions.TrimFactor != nil { + mongocryptDoc = bsoncore.AppendInt32Element(mongocryptDoc, "trimFactor", *opts.RangeOptions.TrimFactor) + } mongocryptDoc, err := bsoncore.AppendDocumentEnd(mongocryptDoc, idx) if err != nil { diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options/mongocrypt_context_options.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options/mongocrypt_context_options.go index 325777eb2b..81805e7147 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options/mongocrypt_context_options.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options/mongocrypt_context_options.go @@ -61,10 +61,11 @@ type ExplicitEncryptionOptions struct { // ExplicitRangeOptions specifies options for the range index. type ExplicitRangeOptions struct { - Min *bsoncore.Value - Max *bsoncore.Value - Sparsity int64 - Precision *int32 + Min *bsoncore.Value + Max *bsoncore.Value + Sparsity *int64 + TrimFactor *int32 + Precision *int32 } // ExplicitEncryption creates a new ExplicitEncryptionOptions instance. diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation.go index db5367bed5..ec6f69eca0 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation.go @@ -315,6 +315,10 @@ type Operation struct { // [Operation.MaxTime]. OmitCSOTMaxTimeMS bool + // Authenticator is the authenticator to use for this operation when a reauthentication is + // required. + Authenticator Authenticator + // omitReadPreference is a boolean that indicates whether to omit the // read preference from the command. This omition includes the case // where a default read preference is used when the operation @@ -573,8 +577,7 @@ func (op Operation) Execute(ctx context.Context) error { // Set the previous indefinite error to be returned in any case where a retryable write error does not have a // NoWritesPerfomed label (the definite case). - switch err := err.(type) { - case labeledError: + if err, ok := err.(labeledError); ok { // If the "prevIndefiniteErr" is nil, then the current error is the first error encountered // during the retry attempt cycle. We must persist the first error in the case where all // following errors are labeled "NoWritesPerformed", which would otherwise raise nil as the @@ -912,6 +915,28 @@ func (op Operation) Execute(ctx context.Context) error { operationErr.Labels = tt.Labels operationErr.Raw = tt.Raw case Error: + // 391 is the reauthentication required error code, so we will attempt a reauth and + // retry the operation, if it is successful. + if tt.Code == 391 { + if op.Authenticator != nil { + cfg := AuthConfig{ + Description: conn.Description(), + Connection: conn, + ClusterClock: op.Clock, + ServerAPI: op.ServerAPI, + } + if err := op.Authenticator.Reauth(ctx, &cfg); err != nil { + return fmt.Errorf("error reauthenticating: %w", err) + } + if op.Client != nil && op.Client.Committing { + // Apply majority write concern for retries + op.Client.UpdateCommitTransactionWriteConcern() + op.WriteConcern = op.Client.CurrentWc + } + resetForRetry(tt) + continue + } + } if tt.HasErrorLabel(TransientTransactionError) || tt.HasErrorLabel(UnknownTransactionCommitResult) { if err := op.Client.ClearPinnedResources(); err != nil { return err @@ -1173,18 +1198,12 @@ func (Operation) decompressWireMessage(wm []byte) (wiremessage.OpCode, []byte, e if !ok { return 0, nil, errors.New("malformed OP_COMPRESSED: missing compressor ID") } - compressedSize := len(wm) - 9 // original opcode (4) + uncompressed size (4) + compressor ID (1) - // return the original wiremessage - msg, _, ok := wiremessage.ReadCompressedCompressedMessage(rem, int32(compressedSize)) - if !ok { - return 0, nil, errors.New("malformed OP_COMPRESSED: insufficient bytes for compressed wiremessage") - } opts := CompressionOpts{ Compressor: compressorID, UncompressedSize: uncompressedSize, } - uncompressed, err := DecompressPayload(msg, opts) + uncompressed, err := DecompressPayload(rem, opts) if err != nil { return 0, nil, err } diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/abort_transaction.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/abort_transaction.go index 9413727130..aeee533533 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/abort_transaction.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/abort_transaction.go @@ -21,6 +21,7 @@ import ( // AbortTransaction performs an abortTransaction operation. type AbortTransaction struct { + authenticator driver.Authenticator recoveryToken bsoncore.Document session *session.Client clock *session.ClusterClock @@ -66,6 +67,7 @@ func (at *AbortTransaction) Execute(ctx context.Context) error { WriteConcern: at.writeConcern, ServerAPI: at.serverAPI, Name: driverutil.AbortTransactionOp, + Authenticator: at.authenticator, }.Execute(ctx) } @@ -199,3 +201,13 @@ func (at *AbortTransaction) ServerAPI(serverAPI *driver.ServerAPIOptions) *Abort at.serverAPI = serverAPI return at } + +// Authenticator sets the authenticator to use for this operation. +func (at *AbortTransaction) Authenticator(authenticator driver.Authenticator) *AbortTransaction { + if at == nil { + at = new(AbortTransaction) + } + + at.authenticator = authenticator + return at +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/aggregate.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/aggregate.go index 44467df8fd..df6b8fa9dd 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/aggregate.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/aggregate.go @@ -25,6 +25,7 @@ import ( // Aggregate represents an aggregate operation. type Aggregate struct { + authenticator driver.Authenticator allowDiskUse *bool batchSize *int32 bypassDocumentValidation *bool @@ -115,6 +116,7 @@ func (a *Aggregate) Execute(ctx context.Context) error { Timeout: a.timeout, Name: driverutil.AggregateOp, OmitCSOTMaxTimeMS: a.omitCSOTMaxTimeMS, + Authenticator: a.authenticator, }.Execute(ctx) } @@ -433,3 +435,13 @@ func (a *Aggregate) OmitCSOTMaxTimeMS(omit bool) *Aggregate { a.omitCSOTMaxTimeMS = omit return a } + +// Authenticator sets the authenticator to use for this operation. +func (a *Aggregate) Authenticator(authenticator driver.Authenticator) *Aggregate { + if a == nil { + a = new(Aggregate) + } + + a.authenticator = authenticator + return a +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/command.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/command.go index 35283794a3..64c98ba19a 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/command.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/command.go @@ -22,6 +22,7 @@ import ( // Command is used to run a generic operation. type Command struct { + authenticator driver.Authenticator command bsoncore.Document database string deployment driver.Deployment @@ -78,7 +79,7 @@ func (c *Command) Execute(ctx context.Context) error { } return driver.Operation{ - CommandFn: func(dst []byte, desc description.SelectedServer) ([]byte, error) { + CommandFn: func(dst []byte, _ description.SelectedServer) ([]byte, error) { return append(dst, c.command[4:len(c.command)-1]...), nil }, ProcessResponseFn: func(info driver.ResponseInfo) error { @@ -107,6 +108,7 @@ func (c *Command) Execute(ctx context.Context) error { ServerAPI: c.serverAPI, Timeout: c.timeout, Logger: c.logger, + Authenticator: c.authenticator, }.Execute(ctx) } @@ -219,3 +221,13 @@ func (c *Command) Logger(logger *logger.Logger) *Command { c.logger = logger return c } + +// Authenticator sets the authenticator to use for this operation. +func (c *Command) Authenticator(authenticator driver.Authenticator) *Command { + if c == nil { + c = new(Command) + } + + c.authenticator = authenticator + return c +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/commit_transaction.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/commit_transaction.go index 11c6f69ddf..6b402bdf63 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/commit_transaction.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/commit_transaction.go @@ -22,6 +22,7 @@ import ( // CommitTransaction attempts to commit a transaction. type CommitTransaction struct { + authenticator driver.Authenticator maxTime *time.Duration recoveryToken bsoncore.Document session *session.Client @@ -68,6 +69,7 @@ func (ct *CommitTransaction) Execute(ctx context.Context) error { WriteConcern: ct.writeConcern, ServerAPI: ct.serverAPI, Name: driverutil.CommitTransactionOp, + Authenticator: ct.authenticator, }.Execute(ctx) } @@ -201,3 +203,13 @@ func (ct *CommitTransaction) ServerAPI(serverAPI *driver.ServerAPIOptions) *Comm ct.serverAPI = serverAPI return ct } + +// Authenticator sets the authenticator to use for this operation. +func (ct *CommitTransaction) Authenticator(authenticator driver.Authenticator) *CommitTransaction { + if ct == nil { + ct = new(CommitTransaction) + } + + ct.authenticator = authenticator + return ct +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/count.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/count.go index 8de1e9f8d9..eaafc9a244 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/count.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/count.go @@ -25,6 +25,7 @@ import ( // Count represents a count operation. type Count struct { + authenticator driver.Authenticator maxTime *time.Duration query bsoncore.Document session *session.Client @@ -128,6 +129,7 @@ func (c *Count) Execute(ctx context.Context) error { ServerAPI: c.serverAPI, Timeout: c.timeout, Name: driverutil.CountOp, + Authenticator: c.authenticator, }.Execute(ctx) // Swallow error if NamespaceNotFound(26) is returned from aggregate on non-existent namespace @@ -311,3 +313,13 @@ func (c *Count) Timeout(timeout *time.Duration) *Count { c.timeout = timeout return c } + +// Authenticator sets the authenticator to use for this operation. +func (c *Count) Authenticator(authenticator driver.Authenticator) *Count { + if c == nil { + c = new(Count) + } + + c.authenticator = authenticator + return c +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create.go index 45b26cb707..4878e2c777 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create.go @@ -20,6 +20,7 @@ import ( // Create represents a create operation. type Create struct { + authenticator driver.Authenticator capped *bool collation bsoncore.Document changeStreamPreAndPostImages bsoncore.Document @@ -77,6 +78,7 @@ func (c *Create) Execute(ctx context.Context) error { Selector: c.selector, WriteConcern: c.writeConcern, ServerAPI: c.serverAPI, + Authenticator: c.authenticator, }.Execute(ctx) } @@ -399,3 +401,13 @@ func (c *Create) ClusteredIndex(ci bsoncore.Document) *Create { c.clusteredIndex = ci return c } + +// Authenticator sets the authenticator to use for this operation. +func (c *Create) Authenticator(authenticator driver.Authenticator) *Create { + if c == nil { + c = new(Create) + } + + c.authenticator = authenticator + return c +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create_indexes.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create_indexes.go index 77daf676a4..464c1762de 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create_indexes.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create_indexes.go @@ -24,21 +24,22 @@ import ( // CreateIndexes performs a createIndexes operation. type CreateIndexes struct { - commitQuorum bsoncore.Value - indexes bsoncore.Document - maxTime *time.Duration - session *session.Client - clock *session.ClusterClock - collection string - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - writeConcern *writeconcern.WriteConcern - result CreateIndexesResult - serverAPI *driver.ServerAPIOptions - timeout *time.Duration + authenticator driver.Authenticator + commitQuorum bsoncore.Value + indexes bsoncore.Document + maxTime *time.Duration + session *session.Client + clock *session.ClusterClock + collection string + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + writeConcern *writeconcern.WriteConcern + result CreateIndexesResult + serverAPI *driver.ServerAPIOptions + timeout *time.Duration } // CreateIndexesResult represents a createIndexes result returned by the server. @@ -119,6 +120,7 @@ func (ci *CreateIndexes) Execute(ctx context.Context) error { ServerAPI: ci.serverAPI, Timeout: ci.timeout, Name: driverutil.CreateIndexesOp, + Authenticator: ci.authenticator, }.Execute(ctx) } @@ -278,3 +280,13 @@ func (ci *CreateIndexes) Timeout(timeout *time.Duration) *CreateIndexes { ci.timeout = timeout return ci } + +// Authenticator sets the authenticator to use for this operation. +func (ci *CreateIndexes) Authenticator(authenticator driver.Authenticator) *CreateIndexes { + if ci == nil { + ci = new(CreateIndexes) + } + + ci.authenticator = authenticator + return ci +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create_search_indexes.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create_search_indexes.go index cb0d807952..8185d27fe1 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create_search_indexes.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/create_search_indexes.go @@ -22,18 +22,19 @@ import ( // CreateSearchIndexes performs a createSearchIndexes operation. type CreateSearchIndexes struct { - indexes bsoncore.Document - session *session.Client - clock *session.ClusterClock - collection string - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - result CreateSearchIndexesResult - serverAPI *driver.ServerAPIOptions - timeout *time.Duration + authenticator driver.Authenticator + indexes bsoncore.Document + session *session.Client + clock *session.ClusterClock + collection string + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + result CreateSearchIndexesResult + serverAPI *driver.ServerAPIOptions + timeout *time.Duration } // CreateSearchIndexResult represents a single search index result in CreateSearchIndexesResult. @@ -116,6 +117,7 @@ func (csi *CreateSearchIndexes) Execute(ctx context.Context) error { Selector: csi.selector, ServerAPI: csi.serverAPI, Timeout: csi.timeout, + Authenticator: csi.authenticator, }.Execute(ctx) } @@ -237,3 +239,13 @@ func (csi *CreateSearchIndexes) Timeout(timeout *time.Duration) *CreateSearchInd csi.timeout = timeout return csi } + +// Authenticator sets the authenticator to use for this operation. +func (csi *CreateSearchIndexes) Authenticator(authenticator driver.Authenticator) *CreateSearchIndexes { + if csi == nil { + csi = new(CreateSearchIndexes) + } + + csi.authenticator = authenticator + return csi +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/delete.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/delete.go index bf95cf496d..4b520a5480 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/delete.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/delete.go @@ -25,25 +25,26 @@ import ( // Delete performs a delete operation type Delete struct { - comment bsoncore.Value - deletes []bsoncore.Document - ordered *bool - session *session.Client - clock *session.ClusterClock - collection string - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - writeConcern *writeconcern.WriteConcern - retry *driver.RetryMode - hint *bool - result DeleteResult - serverAPI *driver.ServerAPIOptions - let bsoncore.Document - timeout *time.Duration - logger *logger.Logger + authenticator driver.Authenticator + comment bsoncore.Value + deletes []bsoncore.Document + ordered *bool + session *session.Client + clock *session.ClusterClock + collection string + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + writeConcern *writeconcern.WriteConcern + retry *driver.RetryMode + hint *bool + result DeleteResult + serverAPI *driver.ServerAPIOptions + let bsoncore.Document + timeout *time.Duration + logger *logger.Logger } // DeleteResult represents a delete result returned by the server. @@ -59,8 +60,7 @@ func buildDeleteResult(response bsoncore.Document) (DeleteResult, error) { } dr := DeleteResult{} for _, element := range elements { - switch element.Key() { - case "n": + if element.Key() == "n" { var ok bool dr.N, ok = element.Value().AsInt64OK() if !ok { @@ -116,6 +116,7 @@ func (d *Delete) Execute(ctx context.Context) error { Timeout: d.timeout, Logger: d.logger, Name: driverutil.DeleteOp, + Authenticator: d.authenticator, }.Execute(ctx) } @@ -328,3 +329,13 @@ func (d *Delete) Logger(logger *logger.Logger) *Delete { return d } + +// Authenticator sets the authenticator to use for this operation. +func (d *Delete) Authenticator(authenticator driver.Authenticator) *Delete { + if d == nil { + d = new(Delete) + } + + d.authenticator = authenticator + return d +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/distinct.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/distinct.go index b7e675ce42..0c39027e76 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/distinct.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/distinct.go @@ -24,6 +24,7 @@ import ( // Distinct performs a distinct operation. type Distinct struct { + authenticator driver.Authenticator collation bsoncore.Document key *string maxTime *time.Duration @@ -58,8 +59,7 @@ func buildDistinctResult(response bsoncore.Document) (DistinctResult, error) { } dr := DistinctResult{} for _, element := range elements { - switch element.Key() { - case "values": + if element.Key() == "values" { dr.Values = element.Value() } } @@ -107,6 +107,7 @@ func (d *Distinct) Execute(ctx context.Context) error { ServerAPI: d.serverAPI, Timeout: d.timeout, Name: driverutil.DistinctOp, + Authenticator: d.authenticator, }.Execute(ctx) } @@ -311,3 +312,13 @@ func (d *Distinct) Timeout(timeout *time.Duration) *Distinct { d.timeout = timeout return d } + +// Authenticator sets the authenticator to use for this operation. +func (d *Distinct) Authenticator(authenticator driver.Authenticator) *Distinct { + if d == nil { + d = new(Distinct) + } + + d.authenticator = authenticator + return d +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_collection.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_collection.go index 8c65967564..5a32c2f8d4 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_collection.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_collection.go @@ -23,18 +23,19 @@ import ( // DropCollection performs a drop operation. type DropCollection struct { - session *session.Client - clock *session.ClusterClock - collection string - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - writeConcern *writeconcern.WriteConcern - result DropCollectionResult - serverAPI *driver.ServerAPIOptions - timeout *time.Duration + authenticator driver.Authenticator + session *session.Client + clock *session.ClusterClock + collection string + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + writeConcern *writeconcern.WriteConcern + result DropCollectionResult + serverAPI *driver.ServerAPIOptions + timeout *time.Duration } // DropCollectionResult represents a dropCollection result returned by the server. @@ -104,6 +105,7 @@ func (dc *DropCollection) Execute(ctx context.Context) error { ServerAPI: dc.serverAPI, Timeout: dc.timeout, Name: driverutil.DropOp, + Authenticator: dc.authenticator, }.Execute(ctx) } @@ -222,3 +224,13 @@ func (dc *DropCollection) Timeout(timeout *time.Duration) *DropCollection { dc.timeout = timeout return dc } + +// Authenticator sets the authenticator to use for this operation. +func (dc *DropCollection) Authenticator(authenticator driver.Authenticator) *DropCollection { + if dc == nil { + dc = new(DropCollection) + } + + dc.authenticator = authenticator + return dc +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_database.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_database.go index a8f9b45ba4..19956210d1 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_database.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_database.go @@ -21,15 +21,16 @@ import ( // DropDatabase performs a dropDatabase operation type DropDatabase struct { - session *session.Client - clock *session.ClusterClock - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - writeConcern *writeconcern.WriteConcern - serverAPI *driver.ServerAPIOptions + authenticator driver.Authenticator + session *session.Client + clock *session.ClusterClock + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + writeConcern *writeconcern.WriteConcern + serverAPI *driver.ServerAPIOptions } // NewDropDatabase constructs and returns a new DropDatabase. @@ -55,6 +56,7 @@ func (dd *DropDatabase) Execute(ctx context.Context) error { WriteConcern: dd.writeConcern, ServerAPI: dd.serverAPI, Name: driverutil.DropDatabaseOp, + Authenticator: dd.authenticator, }.Execute(ctx) } @@ -154,3 +156,13 @@ func (dd *DropDatabase) ServerAPI(serverAPI *driver.ServerAPIOptions) *DropDatab dd.serverAPI = serverAPI return dd } + +// Authenticator sets the authenticator to use for this operation. +func (dd *DropDatabase) Authenticator(authenticator driver.Authenticator) *DropDatabase { + if dd == nil { + dd = new(DropDatabase) + } + + dd.authenticator = authenticator + return dd +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_indexes.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_indexes.go index 0c3d459707..a22496b1e8 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_indexes.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_indexes.go @@ -23,20 +23,21 @@ import ( // DropIndexes performs an dropIndexes operation. type DropIndexes struct { - index *string - maxTime *time.Duration - session *session.Client - clock *session.ClusterClock - collection string - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - writeConcern *writeconcern.WriteConcern - result DropIndexesResult - serverAPI *driver.ServerAPIOptions - timeout *time.Duration + authenticator driver.Authenticator + index any + maxTime *time.Duration + session *session.Client + clock *session.ClusterClock + collection string + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + writeConcern *writeconcern.WriteConcern + result DropIndexesResult + serverAPI *driver.ServerAPIOptions + timeout *time.Duration } // DropIndexesResult represents a dropIndexes result returned by the server. @@ -52,8 +53,7 @@ func buildDropIndexesResult(response bsoncore.Document) (DropIndexesResult, erro } dir := DropIndexesResult{} for _, element := range elements { - switch element.Key() { - case "nIndexesWas": + if element.Key() == "nIndexesWas" { var ok bool dir.NIndexesWas, ok = element.Value().AsInt32OK() if !ok { @@ -65,9 +65,9 @@ func buildDropIndexesResult(response bsoncore.Document) (DropIndexesResult, erro } // NewDropIndexes constructs and returns a new DropIndexes. -func NewDropIndexes(index string) *DropIndexes { +func NewDropIndexes(index any) *DropIndexes { return &DropIndexes{ - index: &index, + index: index, } } @@ -101,25 +101,33 @@ func (di *DropIndexes) Execute(ctx context.Context) error { ServerAPI: di.serverAPI, Timeout: di.timeout, Name: driverutil.DropIndexesOp, + Authenticator: di.authenticator, }.Execute(ctx) } func (di *DropIndexes) command(dst []byte, _ description.SelectedServer) ([]byte, error) { dst = bsoncore.AppendStringElement(dst, "dropIndexes", di.collection) - if di.index != nil { - dst = bsoncore.AppendStringElement(dst, "index", *di.index) + + switch t := di.index.(type) { + case string: + dst = bsoncore.AppendStringElement(dst, "index", t) + case bsoncore.Document: + if di.index != nil { + dst = bsoncore.AppendDocumentElement(dst, "index", t) + } } + return dst, nil } // Index specifies the name of the index to drop. If '*' is specified, all indexes will be dropped. -func (di *DropIndexes) Index(index string) *DropIndexes { +func (di *DropIndexes) Index(index any) *DropIndexes { if di == nil { di = new(DropIndexes) } - di.index = &index + di.index = index return di } @@ -242,3 +250,13 @@ func (di *DropIndexes) Timeout(timeout *time.Duration) *DropIndexes { di.timeout = timeout return di } + +// Authenticator sets the authenticator to use for this operation. +func (di *DropIndexes) Authenticator(authenticator driver.Authenticator) *DropIndexes { + if di == nil { + di = new(DropIndexes) + } + + di.authenticator = authenticator + return di +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_search_index.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_search_index.go index 3992c83165..94e4ddfb0d 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_search_index.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_search_index.go @@ -21,18 +21,19 @@ import ( // DropSearchIndex performs an dropSearchIndex operation. type DropSearchIndex struct { - index string - session *session.Client - clock *session.ClusterClock - collection string - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - result DropSearchIndexResult - serverAPI *driver.ServerAPIOptions - timeout *time.Duration + authenticator driver.Authenticator + index string + session *session.Client + clock *session.ClusterClock + collection string + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + result DropSearchIndexResult + serverAPI *driver.ServerAPIOptions + timeout *time.Duration } // DropSearchIndexResult represents a dropSearchIndex result returned by the server. @@ -47,8 +48,7 @@ func buildDropSearchIndexResult(response bsoncore.Document) (DropSearchIndexResu } dsir := DropSearchIndexResult{} for _, element := range elements { - switch element.Key() { - case "ok": + if element.Key() == "ok" { var ok bool dsir.Ok, ok = element.Value().AsInt32OK() if !ok { @@ -93,6 +93,7 @@ func (dsi *DropSearchIndex) Execute(ctx context.Context) error { Selector: dsi.selector, ServerAPI: dsi.serverAPI, Timeout: dsi.timeout, + Authenticator: dsi.authenticator, }.Execute(ctx) } @@ -212,3 +213,13 @@ func (dsi *DropSearchIndex) Timeout(timeout *time.Duration) *DropSearchIndex { dsi.timeout = timeout return dsi } + +// Authenticator sets the authenticator to use for this operation. +func (dsi *DropSearchIndex) Authenticator(authenticator driver.Authenticator) *DropSearchIndex { + if dsi == nil { + dsi = new(DropSearchIndex) + } + + dsi.authenticator = authenticator + return dsi +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/end_sessions.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/end_sessions.go index 52f300bb7f..8b24b3d8c2 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/end_sessions.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/end_sessions.go @@ -20,15 +20,16 @@ import ( // EndSessions performs an endSessions operation. type EndSessions struct { - sessionIDs bsoncore.Document - session *session.Client - clock *session.ClusterClock - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - serverAPI *driver.ServerAPIOptions + authenticator driver.Authenticator + sessionIDs bsoncore.Document + session *session.Client + clock *session.ClusterClock + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + serverAPI *driver.ServerAPIOptions } // NewEndSessions constructs and returns a new EndSessions. @@ -61,6 +62,7 @@ func (es *EndSessions) Execute(ctx context.Context) error { Selector: es.selector, ServerAPI: es.serverAPI, Name: driverutil.EndSessionsOp, + Authenticator: es.authenticator, }.Execute(ctx) } @@ -161,3 +163,13 @@ func (es *EndSessions) ServerAPI(serverAPI *driver.ServerAPIOptions) *EndSession es.serverAPI = serverAPI return es } + +// Authenticator sets the authenticator to use for this operation. +func (es *EndSessions) Authenticator(authenticator driver.Authenticator) *EndSessions { + if es == nil { + es = new(EndSessions) + } + + es.authenticator = authenticator + return es +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/find.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/find.go index 8950fde86d..c71b7d755e 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/find.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/find.go @@ -25,6 +25,7 @@ import ( // Find performs a find operation. type Find struct { + authenticator driver.Authenticator allowDiskUse *bool allowPartialResults *bool awaitData *bool @@ -112,6 +113,7 @@ func (f *Find) Execute(ctx context.Context) error { Logger: f.logger, Name: driverutil.FindOp, OmitCSOTMaxTimeMS: f.omitCSOTMaxTimeMS, + Authenticator: f.authenticator, }.Execute(ctx) } @@ -575,3 +577,13 @@ func (f *Find) Logger(logger *logger.Logger) *Find { f.logger = logger return f } + +// Authenticator sets the authenticator to use for this operation. +func (f *Find) Authenticator(authenticator driver.Authenticator) *Find { + if f == nil { + f = new(Find) + } + + f.authenticator = authenticator + return f +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/find_and_modify.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/find_and_modify.go index 7faf561135..ea365ccb23 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/find_and_modify.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/find_and_modify.go @@ -25,6 +25,7 @@ import ( // FindAndModify performs a findAndModify operation. type FindAndModify struct { + authenticator driver.Authenticator arrayFilters bsoncore.Array bypassDocumentValidation *bool collation bsoncore.Document @@ -145,6 +146,7 @@ func (fam *FindAndModify) Execute(ctx context.Context) error { ServerAPI: fam.serverAPI, Timeout: fam.timeout, Name: driverutil.FindAndModifyOp, + Authenticator: fam.authenticator, }.Execute(ctx) } @@ -477,3 +479,13 @@ func (fam *FindAndModify) Timeout(timeout *time.Duration) *FindAndModify { fam.timeout = timeout return fam } + +// Authenticator sets the authenticator to use for this operation. +func (fam *FindAndModify) Authenticator(authenticator driver.Authenticator) *FindAndModify { + if fam == nil { + fam = new(FindAndModify) + } + + fam.authenticator = authenticator + return fam +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/hello.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/hello.go index 16f2ebf6c0..60c99f063d 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/hello.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/hello.go @@ -36,6 +36,7 @@ const driverName = "mongo-go-driver" // Hello is used to run the handshake operation. type Hello struct { + authenticator driver.Authenticator appname string compressors []string saslSupportedMechs string @@ -649,3 +650,13 @@ func (h *Hello) GetHandshakeInformation(ctx context.Context, _ address.Address, func (h *Hello) FinishHandshake(context.Context, driver.Connection) error { return nil } + +// Authenticator sets the authenticator to use for this operation. +func (h *Hello) Authenticator(authenticator driver.Authenticator) *Hello { + if h == nil { + h = new(Hello) + } + + h.authenticator = authenticator + return h +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/insert.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/insert.go index 7da4b8b0fb..a65a4895f0 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/insert.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/insert.go @@ -25,6 +25,7 @@ import ( // Insert performs an insert operation. type Insert struct { + authenticator driver.Authenticator bypassDocumentValidation *bool comment bsoncore.Value documents []bsoncore.Document @@ -58,8 +59,7 @@ func buildInsertResult(response bsoncore.Document) (InsertResult, error) { } ir := InsertResult{} for _, element := range elements { - switch element.Key() { - case "n": + if element.Key() == "n" { var ok bool ir.N, ok = element.Value().AsInt64OK() if !ok { @@ -115,6 +115,7 @@ func (i *Insert) Execute(ctx context.Context) error { Timeout: i.timeout, Logger: i.logger, Name: driverutil.InsertOp, + Authenticator: i.authenticator, }.Execute(ctx) } @@ -306,3 +307,13 @@ func (i *Insert) Logger(logger *logger.Logger) *Insert { i.logger = logger return i } + +// Authenticator sets the authenticator to use for this operation. +func (i *Insert) Authenticator(authenticator driver.Authenticator) *Insert { + if i == nil { + i = new(Insert) + } + + i.authenticator = authenticator + return i +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/listDatabases.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/listDatabases.go index c70248e2a9..3df171e37a 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/listDatabases.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/listDatabases.go @@ -24,6 +24,7 @@ import ( // ListDatabases performs a listDatabases operation. type ListDatabases struct { + authenticator driver.Authenticator filter bsoncore.Document authorizedDatabases *bool nameOnly *bool @@ -165,6 +166,7 @@ func (ld *ListDatabases) Execute(ctx context.Context) error { ServerAPI: ld.serverAPI, Timeout: ld.timeout, Name: driverutil.ListDatabasesOp, + Authenticator: ld.authenticator, }.Execute(ctx) } @@ -327,3 +329,13 @@ func (ld *ListDatabases) Timeout(timeout *time.Duration) *ListDatabases { ld.timeout = timeout return ld } + +// Authenticator sets the authenticator to use for this operation. +func (ld *ListDatabases) Authenticator(authenticator driver.Authenticator) *ListDatabases { + if ld == nil { + ld = new(ListDatabases) + } + + ld.authenticator = authenticator + return ld +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_collections.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_collections.go index 6fe68fa033..1e39f5bfbe 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_collections.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_collections.go @@ -22,6 +22,7 @@ import ( // ListCollections performs a listCollections operation. type ListCollections struct { + authenticator driver.Authenticator filter bsoncore.Document nameOnly *bool authorizedCollections *bool @@ -83,6 +84,7 @@ func (lc *ListCollections) Execute(ctx context.Context) error { ServerAPI: lc.serverAPI, Timeout: lc.timeout, Name: driverutil.ListCollectionsOp, + Authenticator: lc.authenticator, }.Execute(ctx) } @@ -259,3 +261,13 @@ func (lc *ListCollections) Timeout(timeout *time.Duration) *ListCollections { lc.timeout = timeout return lc } + +// Authenticator sets the authenticator to use for this operation. +func (lc *ListCollections) Authenticator(authenticator driver.Authenticator) *ListCollections { + if lc == nil { + lc = new(ListCollections) + } + + lc.authenticator = authenticator + return lc +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_indexes.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_indexes.go index 79d50eca95..433344f307 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_indexes.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_indexes.go @@ -21,19 +21,20 @@ import ( // ListIndexes performs a listIndexes operation. type ListIndexes struct { - batchSize *int32 - maxTime *time.Duration - session *session.Client - clock *session.ClusterClock - collection string - monitor *event.CommandMonitor - database string - deployment driver.Deployment - selector description.ServerSelector - retry *driver.RetryMode - crypt driver.Crypt - serverAPI *driver.ServerAPIOptions - timeout *time.Duration + authenticator driver.Authenticator + batchSize *int32 + maxTime *time.Duration + session *session.Client + clock *session.ClusterClock + collection string + monitor *event.CommandMonitor + database string + deployment driver.Deployment + selector description.ServerSelector + retry *driver.RetryMode + crypt driver.Crypt + serverAPI *driver.ServerAPIOptions + timeout *time.Duration result driver.CursorResponse } @@ -85,6 +86,7 @@ func (li *ListIndexes) Execute(ctx context.Context) error { ServerAPI: li.serverAPI, Timeout: li.timeout, Name: driverutil.ListIndexesOp, + Authenticator: li.authenticator, }.Execute(ctx) } @@ -233,3 +235,13 @@ func (li *ListIndexes) Timeout(timeout *time.Duration) *ListIndexes { li.timeout = timeout return li } + +// Authenticator sets the authenticator to use for this operation. +func (li *ListIndexes) Authenticator(authenticator driver.Authenticator) *ListIndexes { + if li == nil { + li = new(ListIndexes) + } + + li.authenticator = authenticator + return li +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/update.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/update.go index 881b1bcf7b..1070e7ca70 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/update.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/update.go @@ -26,6 +26,7 @@ import ( // Update performs an update operation. type Update struct { + authenticator driver.Authenticator bypassDocumentValidation *bool comment bsoncore.Value ordered *bool @@ -167,6 +168,7 @@ func (u *Update) Execute(ctx context.Context) error { Timeout: u.timeout, Logger: u.logger, Name: driverutil.UpdateOp, + Authenticator: u.authenticator, }.Execute(ctx) } @@ -414,3 +416,13 @@ func (u *Update) Logger(logger *logger.Logger) *Update { u.logger = logger return u } + +// Authenticator sets the authenticator to use for this operation. +func (u *Update) Authenticator(authenticator driver.Authenticator) *Update { + if u == nil { + u = new(Update) + } + + u.authenticator = authenticator + return u +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/update_search_index.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/update_search_index.go index 64f2da7f6f..c63e048f21 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/update_search_index.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/update_search_index.go @@ -21,19 +21,20 @@ import ( // UpdateSearchIndex performs a updateSearchIndex operation. type UpdateSearchIndex struct { - index string - definition bsoncore.Document - session *session.Client - clock *session.ClusterClock - collection string - monitor *event.CommandMonitor - crypt driver.Crypt - database string - deployment driver.Deployment - selector description.ServerSelector - result UpdateSearchIndexResult - serverAPI *driver.ServerAPIOptions - timeout *time.Duration + authenticator driver.Authenticator + index string + definition bsoncore.Document + session *session.Client + clock *session.ClusterClock + collection string + monitor *event.CommandMonitor + crypt driver.Crypt + database string + deployment driver.Deployment + selector description.ServerSelector + result UpdateSearchIndexResult + serverAPI *driver.ServerAPIOptions + timeout *time.Duration } // UpdateSearchIndexResult represents a single index in the updateSearchIndexResult result. @@ -48,8 +49,7 @@ func buildUpdateSearchIndexResult(response bsoncore.Document) (UpdateSearchIndex } usir := UpdateSearchIndexResult{} for _, element := range elements { - switch element.Key() { - case "ok": + if element.Key() == "ok" { var ok bool usir.Ok, ok = element.Value().AsInt32OK() if !ok { @@ -95,6 +95,7 @@ func (usi *UpdateSearchIndex) Execute(ctx context.Context) error { Selector: usi.selector, ServerAPI: usi.serverAPI, Timeout: usi.timeout, + Authenticator: usi.authenticator, }.Execute(ctx) } @@ -225,3 +226,13 @@ func (usi *UpdateSearchIndex) Timeout(timeout *time.Duration) *UpdateSearchIndex usi.timeout = timeout return usi } + +// Authenticator sets the authenticator to use for this operation. +func (usi *UpdateSearchIndex) Authenticator(authenticator driver.Authenticator) *UpdateSearchIndex { + if usi == nil { + usi = new(UpdateSearchIndex) + } + + usi.authenticator = authenticator + return usi +} diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/session/client_session.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/session/client_session.go index 8dac0932de..eff27bfe33 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/session/client_session.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/session/client_session.go @@ -90,6 +90,8 @@ type LoadBalancedTransactionConnection interface { DriverConnectionID() uint64 // TODO(GODRIVER-2824): change type to int64. Address() address.Address Stale() bool + OIDCTokenGenID() uint64 + SetOIDCTokenGenID(uint64) // Functions copied over from driver.PinnedConnection that are not part of Connection or Expirable. PinToCursor() error @@ -158,13 +160,14 @@ func MaxClusterTime(ct1, ct2 bson.Raw) bson.Raw { epoch1, ord1 := getClusterTime(ct1) epoch2, ord2 := getClusterTime(ct2) - if epoch1 > epoch2 { + switch { + case epoch1 > epoch2: return ct1 - } else if epoch1 < epoch2 { + case epoch1 < epoch2: return ct2 - } else if ord1 > ord2 { + case ord1 > ord2: return ct1 - } else if ord1 < ord2 { + case ord1 < ord2: return ct2 } @@ -476,11 +479,12 @@ func (c *Client) UpdateCommitTransactionWriteConcern() { // CheckAbortTransaction checks to see if allowed to abort transaction and returns // an error if not allowed. func (c *Client) CheckAbortTransaction() error { - if c.TransactionState == None { + switch { + case c.TransactionState == None: return ErrNoTransactStarted - } else if c.TransactionState == Committed { + case c.TransactionState == Committed: return ErrAbortAfterCommit - } else if c.TransactionState == Aborted { + case c.TransactionState == Aborted: return ErrAbortTwice } return nil diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/connection.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/connection.go index 649e87b3d1..7a8427ccee 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/connection.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/connection.go @@ -9,6 +9,7 @@ package topology import ( "context" "crypto/tls" + "encoding/binary" "errors" "fmt" "io" @@ -79,9 +80,13 @@ type connection struct { driverConnectionID uint64 generation uint64 - // awaitingResponse indicates that the server response was not completely + // awaitRemainingBytes indicates the size of server response that was not completely // read before returning the connection to the pool. - awaitingResponse bool + awaitRemainingBytes *int32 + + // oidcTokenGenID is the monotonic generation ID for OIDC tokens, used to invalidate + // accessTokens in the OIDC authenticator cache. + oidcTokenGenID uint64 } // newConnection handles the creation of a connection. It does not connect the connection. @@ -111,12 +116,6 @@ func newConnection(addr address.Address, opts ...ConnectionOption) *connection { return c } -// DriverConnectionID returns the driver connection ID. -// TODO(GODRIVER-2824): change return type to int64. -func (c *connection) DriverConnectionID() uint64 { - return c.driverConnectionID -} - // setGenerationNumber sets the connection's generation number if a callback has been provided to do so in connection // configuration. func (c *connection) setGenerationNumber() { @@ -138,6 +137,39 @@ func (c *connection) hasGenerationNumber() bool { return c.desc.LoadBalanced() } +func configureTLS(ctx context.Context, + tlsConnSource tlsConnectionSource, + nc net.Conn, + addr address.Address, + config *tls.Config, + ocspOpts *ocsp.VerifyOptions, +) (net.Conn, error) { + // Ensure config.ServerName is always set for SNI. + if config.ServerName == "" { + hostname := addr.String() + colonPos := strings.LastIndex(hostname, ":") + if colonPos == -1 { + colonPos = len(hostname) + } + + hostname = hostname[:colonPos] + config.ServerName = hostname + } + + client := tlsConnSource.Client(nc, config) + if err := clientHandshake(ctx, client); err != nil { + return nil, err + } + + // Only do OCSP verification if TLS verification is requested. + if !config.InsecureSkipVerify { + if ocspErr := ocsp.Verify(ctx, client.ConnectionState(), ocspOpts); ocspErr != nil { + return nil, ocspErr + } + } + return client, nil +} + // connect handles the I/O for a connection. It will dial, configure TLS, and perform initialization // handshakes. All errors returned by connect are considered "before the handshake completes" and // must be handled by calling the appropriate SDAM handshake error handler. @@ -313,6 +345,10 @@ func (c *connection) closeConnectContext() { } } +func (c *connection) cancellationListenerCallback() { + _ = c.close() +} + func transformNetworkError(ctx context.Context, originalError error, contextDeadlineUsed bool) error { if originalError == nil { return nil @@ -335,10 +371,6 @@ func transformNetworkError(ctx context.Context, originalError error, contextDead return originalError } -func (c *connection) cancellationListenerCallback() { - _ = c.close() -} - func (c *connection) writeWireMessage(ctx context.Context, wm []byte) error { var err error if atomic.LoadInt64(&c.state) != connConnected { @@ -419,15 +451,10 @@ func (c *connection) readWireMessage(ctx context.Context) ([]byte, error) { dst, errMsg, err := c.read(ctx) if err != nil { - if nerr := net.Error(nil); errors.As(err, &nerr) && nerr.Timeout() && csot.IsTimeoutContext(ctx) { - // If the error was a timeout error and CSOT is enabled, instead of - // closing the connection mark it as awaiting response so the pool - // can read the response before making it available to other - // operations. - c.awaitingResponse = true - } else { - // Otherwise, use the pre-CSOT behavior and close the connection - // because we don't know if there are other bytes left to read. + if c.awaitRemainingBytes == nil { + // If the connection was not marked as awaiting response, use the + // pre-CSOT behavior and close the connection because we don't know + // if there are other bytes left to read. c.close() } message := errMsg @@ -444,6 +471,26 @@ func (c *connection) readWireMessage(ctx context.Context) ([]byte, error) { return dst, nil } +func (c *connection) parseWmSizeBytes(wmSizeBytes [4]byte) (int32, error) { + // read the length as an int32 + size := int32(binary.LittleEndian.Uint32(wmSizeBytes[:])) + + if size < 4 { + return 0, fmt.Errorf("malformed message length: %d", size) + } + // In the case of a hello response where MaxMessageSize has not yet been set, use the hard-coded + // defaultMaxMessageSize instead. + maxMessageSize := c.desc.MaxMessageSize + if maxMessageSize == 0 { + maxMessageSize = defaultMaxMessageSize + } + if uint32(size) > maxMessageSize { + return 0, errResponseTooLarge + } + + return size, nil +} + func (c *connection) read(ctx context.Context) (bytesRead []byte, errMsg string, err error) { go c.cancellationListener.Listen(ctx, c.cancellationListenerCallback) defer func() { @@ -457,6 +504,15 @@ func (c *connection) read(ctx context.Context) (bytesRead []byte, errMsg string, } }() + isCSOTTimeout := func(err error) bool { + // If the error was a timeout error and CSOT is enabled, instead of + // closing the connection mark it as awaiting response so the pool + // can read the response before making it available to other + // operations. + nerr := net.Error(nil) + return errors.As(err, &nerr) && nerr.Timeout() && csot.IsTimeoutContext(ctx) + } + // We use an array here because it only costs 4 bytes on the stack and means we'll only need to // reslice dst once instead of twice. var sizeBuf [4]byte @@ -464,29 +520,27 @@ func (c *connection) read(ctx context.Context) (bytesRead []byte, errMsg string, // We do a ReadFull into an array here instead of doing an opportunistic ReadAtLeast into dst // because there might be more than one wire message waiting to be read, for example when // reading messages from an exhaust cursor. - _, err = io.ReadFull(c.nc, sizeBuf[:]) + n, err := io.ReadFull(c.nc, sizeBuf[:]) if err != nil { + if l := int32(n); l == 0 && isCSOTTimeout(err) { + c.awaitRemainingBytes = &l + } return nil, "incomplete read of message header", err } - - // read the length as an int32 - size := (int32(sizeBuf[0])) | (int32(sizeBuf[1]) << 8) | (int32(sizeBuf[2]) << 16) | (int32(sizeBuf[3]) << 24) - - // In the case of a hello response where MaxMessageSize has not yet been set, use the hard-coded - // defaultMaxMessageSize instead. - maxMessageSize := c.desc.MaxMessageSize - if maxMessageSize == 0 { - maxMessageSize = defaultMaxMessageSize - } - if uint32(size) > maxMessageSize { - return nil, errResponseTooLarge.Error(), errResponseTooLarge + size, err := c.parseWmSizeBytes(sizeBuf) + if err != nil { + return nil, err.Error(), err } dst := make([]byte, size) copy(dst, sizeBuf[:]) - _, err = io.ReadFull(c.nc, dst[4:]) + n, err = io.ReadFull(c.nc, dst[4:]) if err != nil { + remainingBytes := size - 4 - int32(n) + if remainingBytes > 0 && isCSOTTimeout(err) { + c.awaitRemainingBytes = &remainingBytes + } return dst, "incomplete read of full message", err } @@ -533,10 +587,6 @@ func (c *connection) setCanStream(canStream bool) { c.canStream = canStream } -func (c initConnection) supportsStreaming() bool { - return c.canStream -} - func (c *connection) setStreaming(streaming bool) { c.currentlyStreaming = streaming } @@ -550,6 +600,12 @@ func (c *connection) setSocketTimeout(timeout time.Duration) { c.writeTimeout = timeout } +// DriverConnectionID returns the driver connection ID. +// TODO(GODRIVER-2824): change return type to int64. +func (c *connection) DriverConnectionID() uint64 { + return c.driverConnectionID +} + func (c *connection) ID() string { return c.id } @@ -558,6 +614,14 @@ func (c *connection) ServerConnectionID() *int64 { return c.serverConnectionID } +func (c *connection) OIDCTokenGenID() uint64 { + return c.oidcTokenGenID +} + +func (c *connection) SetOIDCTokenGenID(genID uint64) { + c.oidcTokenGenID = genID +} + // initConnection is an adapter used during connection initialization. It has the minimum // functionality necessary to implement the driver.Connection interface, which is required to pass a // *connection to a Handshaker. @@ -595,7 +659,7 @@ func (c initConnection) CurrentlyStreaming() bool { return c.getCurrentlyStreaming() } func (c initConnection) SupportsStreaming() bool { - return c.supportsStreaming() + return c.canStream } // Connection implements the driver.Connection interface to allow reading and writing wire @@ -606,6 +670,8 @@ type Connection struct { refCount int cleanupPoolFn func() + oidcTokenGenID uint64 + // cleanupServerFn resets the server state when a connection is returned to the connection pool // via Close() or expired via Expire(). cleanupServerFn func() @@ -827,37 +893,14 @@ func (c *Connection) DriverConnectionID() uint64 { return c.connection.DriverConnectionID() } -func configureTLS(ctx context.Context, - tlsConnSource tlsConnectionSource, - nc net.Conn, - addr address.Address, - config *tls.Config, - ocspOpts *ocsp.VerifyOptions, -) (net.Conn, error) { - // Ensure config.ServerName is always set for SNI. - if config.ServerName == "" { - hostname := addr.String() - colonPos := strings.LastIndex(hostname, ":") - if colonPos == -1 { - colonPos = len(hostname) - } - - hostname = hostname[:colonPos] - config.ServerName = hostname - } - - client := tlsConnSource.Client(nc, config) - if err := clientHandshake(ctx, client); err != nil { - return nil, err - } +// OIDCTokenGenID returns the OIDC token generation ID. +func (c *Connection) OIDCTokenGenID() uint64 { + return c.oidcTokenGenID +} - // Only do OCSP verification if TLS verification is requested. - if !config.InsecureSkipVerify { - if ocspErr := ocsp.Verify(ctx, client.ConnectionState(), ocspOpts); ocspErr != nil { - return nil, ocspErr - } - } - return client, nil +// SetOIDCTokenGenID sets the OIDC token generation ID. +func (c *Connection) SetOIDCTokenGenID(genID uint64) { + c.oidcTokenGenID = genID } // TODO: Naming? diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/fsm.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/fsm.go index 2acf527b9d..1d097b65c7 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/fsm.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/fsm.go @@ -22,7 +22,7 @@ var ( MinSupportedMongoDBVersion = "3.6" // SupportedWireVersions is the range of wire versions supported by the driver. - SupportedWireVersions = description.NewVersionRange(6, 21) + SupportedWireVersions = description.NewVersionRange(6, 25) ) type fsm struct { diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go index 52461eb681..ddb69ada76 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/pool.go @@ -9,6 +9,7 @@ package topology import ( "context" "fmt" + "io" "net" "sync" "sync/atomic" @@ -788,17 +789,27 @@ var ( // // It calls the package-global BGReadCallback function, if set, with the // address, timings, and any errors that occurred. -func bgRead(pool *pool, conn *connection) { - var start, read time.Time - start = time.Now() - errs := make([]error, 0) - connClosed := false +func bgRead(pool *pool, conn *connection, size int32) { + var err error + start := time.Now() defer func() { + read := time.Now() + errs := make([]error, 0) + connClosed := false + if err != nil { + errs = append(errs, err) + connClosed = true + err = conn.close() + if err != nil { + errs = append(errs, fmt.Errorf("error closing conn after reading: %w", err)) + } + } + // No matter what happens, always check the connection back into the // pool, which will either make it available for other operations or // remove it from the pool if it was closed. - err := pool.checkInNoEvent(conn) + err = pool.checkInNoEvent(conn) if err != nil { errs = append(errs, fmt.Errorf("error checking in: %w", err)) } @@ -808,34 +819,28 @@ func bgRead(pool *pool, conn *connection) { } }() - err := conn.nc.SetReadDeadline(time.Now().Add(BGReadTimeout)) + err = conn.nc.SetReadDeadline(time.Now().Add(BGReadTimeout)) if err != nil { - errs = append(errs, fmt.Errorf("error setting a read deadline: %w", err)) - - connClosed = true - err := conn.close() - if err != nil { - errs = append(errs, fmt.Errorf("error closing conn after setting read deadline: %w", err)) - } - + err = fmt.Errorf("error setting a read deadline: %w", err) return } - // The context here is only used for cancellation, not deadline timeout, so - // use context.Background(). The read timeout is set by calling - // SetReadDeadline above. - _, _, err = conn.read(context.Background()) - read = time.Now() - if err != nil { - errs = append(errs, fmt.Errorf("error reading: %w", err)) - - connClosed = true - err := conn.close() + if size == 0 { + var sizeBuf [4]byte + _, err = io.ReadFull(conn.nc, sizeBuf[:]) if err != nil { - errs = append(errs, fmt.Errorf("error closing conn after reading: %w", err)) + err = fmt.Errorf("error reading the message size: %w", err) + return } - - return + size, err = conn.parseWmSizeBytes(sizeBuf) + if err != nil { + return + } + size -= 4 + } + _, err = io.CopyN(io.Discard, conn.nc, int64(size)) + if err != nil { + err = fmt.Errorf("error discarding %d byte message: %w", size, err) } } @@ -886,9 +891,10 @@ func (p *pool) checkInNoEvent(conn *connection) error { // means that connections in "awaiting response" state are checked in but // not usable, which is not covered by the current pool events. We may need // to add pool event information in the future to communicate that. - if conn.awaitingResponse { - conn.awaitingResponse = false - go bgRead(p, conn) + if conn.awaitRemainingBytes != nil { + size := *conn.awaitRemainingBytes + conn.awaitRemainingBytes = nil + go bgRead(p, conn, size) return nil } diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go index a29eea4a6d..0623632672 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go @@ -730,7 +730,7 @@ func (s *Server) createConnection() *connection { WithWriteTimeout(func(time.Duration) time.Duration { return s.cfg.heartbeatTimeout }), // We override whatever handshaker is currently attached to the options with a basic // one because need to make sure we don't do auth. - WithHandshaker(func(h Handshaker) Handshaker { + WithHandshaker(func(Handshaker) Handshaker { return operation.NewHello().AppName(s.cfg.appname).Compressors(s.cfg.compressionOpts). ServerAPI(s.cfg.serverAPI) }), diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology_options.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology_options.go index b5eb4a9729..2c0518a54e 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology_options.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology_options.go @@ -7,10 +7,10 @@ package topology import ( + "context" "crypto/tls" "fmt" "net/http" - "strings" "time" "go.mongodb.org/mongo-driver/event" @@ -71,9 +71,80 @@ func newLogger(opts *options.LoggerOptions) (*logger.Logger, error) { return log, nil } -// NewConfig will translate data from client options into a topology config for building non-default deployments. -// Server and topology options are not honored if a custom deployment is used. +// convertOIDCArgs converts the internal *driver.OIDCArgs into the equivalent +// public type *options.OIDCArgs. +func convertOIDCArgs(args *driver.OIDCArgs) *options.OIDCArgs { + if args == nil { + return nil + } + return &options.OIDCArgs{ + Version: args.Version, + IDPInfo: (*options.IDPInfo)(args.IDPInfo), + RefreshToken: args.RefreshToken, + } +} + +// ConvertCreds takes an [options.Credential] and returns the equivalent +// [driver.Cred]. +func ConvertCreds(cred *options.Credential) *driver.Cred { + if cred == nil { + return nil + } + + var oidcMachineCallback auth.OIDCCallback + if cred.OIDCMachineCallback != nil { + oidcMachineCallback = func(ctx context.Context, args *driver.OIDCArgs) (*driver.OIDCCredential, error) { + cred, err := cred.OIDCMachineCallback(ctx, convertOIDCArgs(args)) + return (*driver.OIDCCredential)(cred), err + } + } + + var oidcHumanCallback auth.OIDCCallback + if cred.OIDCHumanCallback != nil { + oidcHumanCallback = func(ctx context.Context, args *driver.OIDCArgs) (*driver.OIDCCredential, error) { + cred, err := cred.OIDCHumanCallback(ctx, convertOIDCArgs(args)) + return (*driver.OIDCCredential)(cred), err + } + } + + return &auth.Cred{ + Source: cred.AuthSource, + Username: cred.Username, + Password: cred.Password, + PasswordSet: cred.PasswordSet, + Props: cred.AuthMechanismProperties, + OIDCMachineCallback: oidcMachineCallback, + OIDCHumanCallback: oidcHumanCallback, + } +} + +// NewConfig will translate data from client options into a topology config for +// building non-default deployments. func NewConfig(co *options.ClientOptions, clock *session.ClusterClock) (*Config, error) { + var authenticator driver.Authenticator + var err error + if co.Auth != nil { + authenticator, err = auth.CreateAuthenticator( + co.Auth.AuthMechanism, + ConvertCreds(co.Auth), + co.HTTPClient, + ) + if err != nil { + return nil, fmt.Errorf("error creating authenticator: %w", err) + } + } + return NewConfigWithAuthenticator(co, clock, authenticator) +} + +// NewConfigWithAuthenticator will translate data from client options into a +// topology config for building non-default deployments. Server and topology +// options are not honored if a custom deployment is used. It uses a passed in +// authenticator to authenticate the connection. +func NewConfigWithAuthenticator( + co *options.ClientOptions, + clock *session.ClusterClock, + authenticator driver.Authenticator, +) (*Config, error) { var serverAPI *driver.ServerAPIOptions if err := co.Validate(); err != nil { @@ -135,11 +206,11 @@ func NewConfig(co *options.ClientOptions, clock *session.ClusterClock) (*Config, for _, comp := range comps { switch comp { case "zlib": - connOpts = append(connOpts, WithZlibLevel(func(level *int) *int { + connOpts = append(connOpts, WithZlibLevel(func(*int) *int { return co.ZlibLevel })) case "zstd": - connOpts = append(connOpts, WithZstdLevel(func(level *int) *int { + connOpts = append(connOpts, WithZstdLevel(func(*int) *int { return co.ZstdLevel })) } @@ -156,35 +227,8 @@ func NewConfig(co *options.ClientOptions, clock *session.ClusterClock) (*Config, } // Handshaker - var handshaker = func(driver.Handshaker) driver.Handshaker { - return operation.NewHello().AppName(appName).Compressors(comps).ClusterClock(clock). - ServerAPI(serverAPI).LoadBalanced(loadBalanced) - } - // Auth & Database & Password & Username - if co.Auth != nil { - cred := &auth.Cred{ - Username: co.Auth.Username, - Password: co.Auth.Password, - PasswordSet: co.Auth.PasswordSet, - Props: co.Auth.AuthMechanismProperties, - Source: co.Auth.AuthSource, - } - mechanism := co.Auth.AuthMechanism - - if len(cred.Source) == 0 { - switch strings.ToUpper(mechanism) { - case auth.MongoDBX509, auth.GSSAPI, auth.PLAIN: - cred.Source = "$external" - default: - cred.Source = "admin" - } - } - - authenticator, err := auth.CreateAuthenticator(mechanism, cred) - if err != nil { - return nil, err - } - + var handshaker func(driver.Handshaker) driver.Handshaker + if authenticator != nil { handshakeOpts := &auth.HandshakeOptions{ AppName: appName, Authenticator: authenticator, @@ -192,16 +236,15 @@ func NewConfig(co *options.ClientOptions, clock *session.ClusterClock) (*Config, ServerAPI: serverAPI, LoadBalanced: loadBalanced, ClusterClock: clock, - HTTPClient: co.HTTPClient, } - if mechanism == "" { + if co.Auth.AuthMechanism == "" { // Required for SASL mechanism negotiation during handshake - handshakeOpts.DBUser = cred.Source + "." + cred.Username + handshakeOpts.DBUser = co.Auth.AuthSource + "." + co.Auth.Username } if co.AuthenticateToAnything != nil && *co.AuthenticateToAnything { // Authenticate arbiters - handshakeOpts.PerformAuthentication = func(serv description.Server) bool { + handshakeOpts.PerformAuthentication = func(description.Server) bool { return true } } @@ -209,7 +252,17 @@ func NewConfig(co *options.ClientOptions, clock *session.ClusterClock) (*Config, handshaker = func(driver.Handshaker) driver.Handshaker { return auth.Handshaker(nil, handshakeOpts) } + } else { + handshaker = func(driver.Handshaker) driver.Handshaker { + return operation.NewHello(). + AppName(appName). + Compressors(comps). + ClusterClock(clock). + ServerAPI(serverAPI). + LoadBalanced(loadBalanced) + } } + connOpts = append(connOpts, WithHandshaker(handshaker)) // ConnectTimeout if co.ConnectTimeout != nil { diff --git a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/wiremessage/wiremessage.go b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/wiremessage/wiremessage.go index 2199f855ba..987ae16c08 100644 --- a/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/wiremessage/wiremessage.go +++ b/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/wiremessage/wiremessage.go @@ -381,16 +381,9 @@ func ReadMsgSectionSingleDocument(src []byte) (doc bsoncore.Document, rem []byte // ReadMsgSectionDocumentSequence reads an identifier and document sequence from src and returns the document sequence // data parsed into a slice of BSON documents. func ReadMsgSectionDocumentSequence(src []byte) (identifier string, docs []bsoncore.Document, rem []byte, ok bool) { - length, rem, ok := readi32(src) - if !ok || int(length) > len(src) { - return "", nil, rem, false - } - - rem, ret := rem[:length-4], rem[length-4:] // reslice so we can just iterate a loop later - - identifier, rem, ok = readcstring(rem) + identifier, rem, ret, ok := ReadMsgSectionRawDocumentSequence(src) if !ok { - return "", nil, rem, false + return "", nil, src, false } docs = make([]bsoncore.Document, 0) @@ -403,7 +396,7 @@ func ReadMsgSectionDocumentSequence(src []byte) (identifier string, docs []bsonc docs = append(docs, doc) } if len(rem) > 0 { - return "", nil, append(rem, ret...), false + return "", nil, src, false } return identifier, docs, ret, true @@ -413,8 +406,8 @@ func ReadMsgSectionDocumentSequence(src []byte) (identifier string, docs []bsonc // sequence data. func ReadMsgSectionRawDocumentSequence(src []byte) (identifier string, data []byte, rem []byte, ok bool) { length, rem, ok := readi32(src) - if !ok || int(length) > len(src) { - return "", nil, rem, false + if !ok || int(length) > len(src) || length-4 < 0 { + return "", nil, src, false } // After these assignments, rem will be the data containing the identifier string + the document sequence bytes and @@ -423,7 +416,7 @@ func ReadMsgSectionRawDocumentSequence(src []byte) (identifier string, data []by identifier, rem, ok = readcstring(rem) if !ok { - return "", nil, rem, false + return "", nil, src, false } return identifier, rem, rest, true @@ -546,14 +539,6 @@ func ReadCompressedCompressorID(src []byte) (id CompressorID, rem []byte, ok boo return CompressorID(src[0]), src[1:], true } -// ReadCompressedCompressedMessage reads the compressed wiremessage to dst. -func ReadCompressedCompressedMessage(src []byte, length int32) (msg []byte, rem []byte, ok bool) { - if len(src) < int(length) { - return nil, src, false - } - return src[:length], src[length:], true -} - // ReadKillCursorsZero reads the zero field from src. func ReadKillCursorsZero(src []byte) (zero int32, rem []byte, ok bool) { return readi32(src) diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/version.go b/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/version.go index 04f425edfe..51d28156be 100644 --- a/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/version.go +++ b/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/version.go @@ -5,7 +5,7 @@ package otelgrpc // import "go.opentelemetry.io/contrib/instrumentation/google.g // Version is the current release version of the gRPC instrumentation. func Version() string { - return "0.54.0" + return "0.55.0" // This string is updated by the pre_release.sh script during release } diff --git a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/options.go b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/options.go index b6ed9a2bb6..f66c471212 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/options.go +++ b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/options.go @@ -139,7 +139,7 @@ func NewGRPCConfig(opts ...GRPCOption) Config { if cfg.ServiceConfig != "" { cfg.DialOptions = append(cfg.DialOptions, grpc.WithDefaultServiceConfig(cfg.ServiceConfig)) } - // Priroritize GRPCCredentials over Insecure (passing both is an error). + // Prioritize GRPCCredentials over Insecure (passing both is an error). if cfg.Metrics.GRPCCredentials != nil { cfg.DialOptions = append(cfg.DialOptions, grpc.WithTransportCredentials(cfg.Metrics.GRPCCredentials)) } else if cfg.Metrics.Insecure { diff --git a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/tls.go b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/tls.go index 0229ac80be..03e7fbcdfb 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/tls.go +++ b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/tls.go @@ -14,7 +14,7 @@ import ( ) // ReadTLSConfigFromFile reads a PEM certificate file and creates -// a tls.Config that will use this certifate to verify a server certificate. +// a tls.Config that will use this certificate to verify a server certificate. func ReadTLSConfigFromFile(path string) (*tls.Config, error) { b, err := os.ReadFile(path) if err != nil { diff --git a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/version.go b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/version.go index 1046eb5939..d343f28daf 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/version.go +++ b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/version.go @@ -5,5 +5,5 @@ package otlpmetricgrpc // import "go.opentelemetry.io/otel/exporters/otlp/otlpme // Version is the current release version of the OpenTelemetry OTLP over gRPC metrics exporter in use. func Version() string { - return "1.29.0" + return "1.30.0" } diff --git a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/options.go b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/options.go index 8f84a79963..8d4b4bf089 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/options.go +++ b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/options.go @@ -125,7 +125,7 @@ func NewGRPCConfig(opts ...GRPCOption) Config { if cfg.ServiceConfig != "" { cfg.DialOptions = append(cfg.DialOptions, grpc.WithDefaultServiceConfig(cfg.ServiceConfig)) } - // Priroritize GRPCCredentials over Insecure (passing both is an error). + // Prioritize GRPCCredentials over Insecure (passing both is an error). if cfg.Traces.GRPCCredentials != nil { cfg.DialOptions = append(cfg.DialOptions, grpc.WithTransportCredentials(cfg.Traces.GRPCCredentials)) } else if cfg.Traces.Insecure { diff --git a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go index 780992528d..ab473f01f7 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go +++ b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go @@ -5,5 +5,5 @@ package otlptrace // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace" // Version is the current release version of the OpenTelemetry OTLP trace exporter in use. func Version() string { - return "1.29.0" + return "1.30.0" } diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/config.go b/vendor/go.opentelemetry.io/otel/sdk/metric/config.go index bbe7bf671f..544275a114 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/config.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/config.go @@ -8,6 +8,7 @@ import ( "fmt" "sync" + "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/sdk/resource" ) @@ -103,7 +104,11 @@ func (o optionFunc) apply(conf config) config { // go.opentelemetry.io/otel/sdk/resource package will be used. func WithResource(res *resource.Resource) Option { return optionFunc(func(conf config) config { - conf.res = res + var err error + conf.res, err = resource.Merge(resource.Environment(), res) + if err != nil { + otel.Handle(err) + } return conf }) } diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/instrument.go b/vendor/go.opentelemetry.io/otel/sdk/metric/instrument.go index b52a330b3b..2e6ac54340 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/instrument.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/instrument.go @@ -234,8 +234,8 @@ func (i *float64Inst) aggregate(ctx context.Context, val float64, s attribute.Se } } -// observablID is a comparable unique identifier of an observable. -type observablID[N int64 | float64] struct { +// observableID is a comparable unique identifier of an observable. +type observableID[N int64 | float64] struct { name string description string kind InstrumentKind @@ -287,7 +287,7 @@ func newInt64Observable(m *meter, kind InstrumentKind, name, desc, u string) int type observable[N int64 | float64] struct { metric.Observable - observablID[N] + observableID[N] meter *meter measures measures[N] @@ -296,7 +296,7 @@ type observable[N int64 | float64] struct { func newObservable[N int64 | float64](m *meter, kind InstrumentKind, name, desc, u string) *observable[N] { return &observable[N]{ - observablID: observablID[N]{ + observableID: observableID[N]{ name: name, description: desc, kind: kind, diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/sum.go b/vendor/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/sum.go index 8913669226..5647c1db5d 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/sum.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/internal/aggregate/sum.go @@ -142,7 +142,7 @@ func (s *sum[N]) cumulative(dest *metricdata.Aggregation) int { } // newPrecomputedSum returns an aggregator that summarizes a set of -// observatrions as their arithmetic sum. Each sum is scoped by attributes and +// observations as their arithmetic sum. Each sum is scoped by attributes and // the aggregation cycle the measurements were made in. func newPrecomputedSum[N int64 | float64](monotonic bool, limit int, r func() exemplar.FilteredReservoir[N]) *precomputedSum[N] { return &precomputedSum[N]{ @@ -152,7 +152,7 @@ func newPrecomputedSum[N int64 | float64](monotonic bool, limit int, r func() ex } } -// precomputedSum summarizes a set of observatrions as their arithmetic sum. +// precomputedSum summarizes a set of observations as their arithmetic sum. type precomputedSum[N int64 | float64] struct { *valueMap[N] diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/internal/exemplar/filtered_reservoir.go b/vendor/go.opentelemetry.io/otel/sdk/metric/internal/exemplar/filtered_reservoir.go index 9fedfa4be6..9a047cfa09 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/internal/exemplar/filtered_reservoir.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/internal/exemplar/filtered_reservoir.go @@ -41,7 +41,7 @@ func NewFilteredReservoir[N int64 | float64](f Filter, r Reservoir) FilteredRese func (f *filteredReservoir[N]) Offer(ctx context.Context, val N, attr []attribute.KeyValue) { if f.filter(ctx) { - // only record the current time if we are sampling this measurment. + // only record the current time if we are sampling this measurement. f.reservoir.Offer(ctx, time.Now(), NewValue(val), attr) } } diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/internal/exemplar/rand.go b/vendor/go.opentelemetry.io/otel/sdk/metric/internal/exemplar/rand.go index 199a2608f7..8cbcff2404 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/internal/exemplar/rand.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/internal/exemplar/rand.go @@ -19,7 +19,7 @@ var ( // Do not use crypto/rand. There is no reason for the decrease in performance // given this is not a security sensitive decision. rng = rand.New(rand.NewSource(time.Now().UnixNano())) - // Ensure concurrent safe accecess to rng and its underlying source. + // Ensure concurrent safe access to rng and its underlying source. rngMu sync.Mutex ) diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/meter.go b/vendor/go.opentelemetry.io/otel/sdk/metric/meter.go index 2309e5b2b0..abff4650e1 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/meter.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/meter.go @@ -459,7 +459,7 @@ func (m *meter) RegisterCallback(f metric.Callback, insts ...metric.Observable) } continue } - reg.registerInt64(o.observablID) + reg.registerInt64(o.observableID) case float64Observable: if err := o.registerable(m); err != nil { if !errors.Is(err, errEmptyAgg) { @@ -467,7 +467,7 @@ func (m *meter) RegisterCallback(f metric.Callback, insts ...metric.Observable) } continue } - reg.registerFloat64(o.observablID) + reg.registerFloat64(o.observableID) default: // Instrument external to the SDK. return nil, fmt.Errorf("invalid observable: from different implementation") @@ -488,14 +488,14 @@ func (m *meter) RegisterCallback(f metric.Callback, insts ...metric.Observable) type observer struct { embedded.Observer - float64 map[observablID[float64]]struct{} - int64 map[observablID[int64]]struct{} + float64 map[observableID[float64]]struct{} + int64 map[observableID[int64]]struct{} } func newObserver() observer { return observer{ - float64: make(map[observablID[float64]]struct{}), - int64: make(map[observablID[int64]]struct{}), + float64: make(map[observableID[float64]]struct{}), + int64: make(map[observableID[int64]]struct{}), } } @@ -503,11 +503,11 @@ func (r observer) len() int { return len(r.float64) + len(r.int64) } -func (r observer) registerFloat64(id observablID[float64]) { +func (r observer) registerFloat64(id observableID[float64]) { r.float64[id] = struct{}{} } -func (r observer) registerInt64(id observablID[int64]) { +func (r observer) registerInt64(id observableID[int64]) { r.int64[id] = struct{}{} } @@ -536,7 +536,7 @@ func (r observer) ObserveFloat64(o metric.Float64Observable, v float64, opts ... return } - if _, registered := r.float64[oImpl.observablID]; !registered { + if _, registered := r.float64[oImpl.observableID]; !registered { if !oImpl.dropAggregation { global.Error(errUnregObserver, "failed to record", "name", oImpl.name, @@ -571,7 +571,7 @@ func (r observer) ObserveInt64(o metric.Int64Observable, v int64, opts ...metric return } - if _, registered := r.int64[oImpl.observablID]; !registered { + if _, registered := r.int64[oImpl.observableID]; !registered { if !oImpl.dropAggregation { global.Error(errUnregObserver, "failed to record", "name", oImpl.name, diff --git a/vendor/go.opentelemetry.io/otel/sdk/metric/version.go b/vendor/go.opentelemetry.io/otel/sdk/metric/version.go index 44316caa11..45b076408e 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/metric/version.go +++ b/vendor/go.opentelemetry.io/otel/sdk/metric/version.go @@ -5,5 +5,5 @@ package metric // import "go.opentelemetry.io/otel/sdk/metric" // version is the current release version of the metric SDK in use. func version() string { - return "1.29.0" + return "1.30.0" } diff --git a/vendor/modules.txt b/vendor/modules.txt index 8b092062b5..eacccbf7d8 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -33,10 +33,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.27.33 +# github.com/aws/aws-sdk-go-v2/config v1.27.35 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/config -# github.com/aws/aws-sdk-go-v2/credentials v1.17.32 +# github.com/aws/aws-sdk-go-v2/credentials v1.17.33 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/credentials github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds @@ -58,7 +58,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.34.9 +# github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.10 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/dynamodb github.com/aws/aws-sdk-go-v2/service/dynamodb/internal/customizations @@ -73,27 +73,27 @@ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery # github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.19 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url -# github.com/aws/aws-sdk-go-v2/service/sns v1.31.7 +# github.com/aws/aws-sdk-go-v2/service/sns v1.31.8 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/sns github.com/aws/aws-sdk-go-v2/service/sns/internal/endpoints github.com/aws/aws-sdk-go-v2/service/sns/types -# github.com/aws/aws-sdk-go-v2/service/sqs v1.34.8 +# github.com/aws/aws-sdk-go-v2/service/sqs v1.34.9 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/sqs github.com/aws/aws-sdk-go-v2/service/sqs/internal/endpoints github.com/aws/aws-sdk-go-v2/service/sqs/types -# github.com/aws/aws-sdk-go-v2/service/sso v1.22.7 +# github.com/aws/aws-sdk-go-v2/service/sso v1.22.8 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/sso github.com/aws/aws-sdk-go-v2/service/sso/internal/endpoints github.com/aws/aws-sdk-go-v2/service/sso/types -# github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.7 +# github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.8 ## explicit; go 1.21 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.30.7 +# github.com/aws/aws-sdk-go-v2/service/sts v1.30.8 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/sts github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints @@ -157,7 +157,7 @@ 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.14.0 +# github.com/elastic/go-elasticsearch/v8 v8.15.0 ## explicit; go 1.21 github.com/elastic/go-elasticsearch/v8 github.com/elastic/go-elasticsearch/v8/esapi @@ -171,6 +171,7 @@ github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpol github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy +github.com/elastic/go-elasticsearch/v8/typedapi/capabilities github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates @@ -226,6 +227,32 @@ github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats +github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin +github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete +github.com/elastic/go-elasticsearch/v8/typedapi/connector/get +github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync +github.com/elastic/go-elasticsearch/v8/typedapi/connector/list +github.com/elastic/go-elasticsearch/v8/typedapi/connector/post +github.com/elastic/go-elasticsearch/v8/typedapi/connector/put +github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost +github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel +github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete +github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget +github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist +github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype +github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime @@ -282,6 +309,7 @@ github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete github.com/elastic/go-elasticsearch/v8/typedapi/eql/get github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus github.com/elastic/go-elasticsearch/v8/typedapi/eql/search +github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery github.com/elastic/go-elasticsearch/v8/typedapi/esql/query github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures @@ -360,10 +388,10 @@ github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery -github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel -github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel +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/putmodel +github.com/elastic/go-elasticsearch/v8/typedapi/inference/put 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/getpipeline @@ -464,10 +492,17 @@ github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage -github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete -github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get -github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list -github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put +github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph +github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces +github.com/elastic/go-elasticsearch/v8/typedapi/profiling/status +github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions +github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule +github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset +github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule +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/rollup/deletejob github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps @@ -490,6 +525,8 @@ github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehaviorala github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate +github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole +github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkupdateapikeys github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache @@ -536,6 +573,8 @@ github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys +github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole +github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate @@ -586,9 +625,12 @@ github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list +github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findfieldstructure +github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform +github.com/elastic/go-elasticsearch/v8/typedapi/transform/getnodestats github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform @@ -630,6 +672,8 @@ github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionoperator github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditiontype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/converttype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/datafeedstate @@ -644,6 +688,7 @@ 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 github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfrbasicmodel +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/edgengramside @@ -657,6 +702,9 @@ github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier +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/followerindexstatus github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode @@ -773,6 +821,9 @@ github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/storagetype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/stringdistance github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype +github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/templateformat @@ -832,8 +883,8 @@ github.com/golang/snappy # github.com/google/uuid v1.6.0 ## explicit github.com/google/uuid -# github.com/gorilla/websocket v1.5.1 -## explicit; go 1.20 +# github.com/gorilla/websocket v1.5.3 +## explicit; go 1.12 github.com/gorilla/websocket # github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 ## explicit; go 1.21 @@ -964,7 +1015,7 @@ github.com/xdg-go/stringprep # github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 ## explicit; go 1.17 github.com/youmark/pkcs8 -# go.mongodb.org/mongo-driver v1.16.1 +# go.mongodb.org/mongo-driver v1.17.0 ## explicit; go 1.18 go.mongodb.org/mongo-driver/bson go.mongodb.org/mongo-driver/bson/bsoncodec @@ -1019,8 +1070,8 @@ go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws # go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo v0.55.0 ## explicit; go 1.22 go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo -# go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 -## explicit; go 1.21 +# go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 +## explicit; go 1.22 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/internal # go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 @@ -1045,20 +1096,20 @@ go.opentelemetry.io/otel/semconv/v1.20.0 go.opentelemetry.io/otel/semconv/v1.21.0 go.opentelemetry.io/otel/semconv/v1.24.0 go.opentelemetry.io/otel/semconv/v1.26.0 -# go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.29.0 -## explicit; go 1.21 +# go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.30.0 +## explicit; go 1.22 go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/retry go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/transform -# go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0 -## explicit; go 1.21 +# go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 +## explicit; go 1.22 go.opentelemetry.io/otel/exporters/otlp/otlptrace go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform -# go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.29.0 -## explicit; go 1.21 +# go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0 +## explicit; go 1.22 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig @@ -1078,8 +1129,8 @@ go.opentelemetry.io/otel/sdk/internal/x go.opentelemetry.io/otel/sdk/resource go.opentelemetry.io/otel/sdk/trace go.opentelemetry.io/otel/sdk/trace/tracetest -# go.opentelemetry.io/otel/sdk/metric v1.29.0 -## explicit; go 1.21 +# go.opentelemetry.io/otel/sdk/metric v1.30.0 +## explicit; go 1.22 go.opentelemetry.io/otel/sdk/metric go.opentelemetry.io/otel/sdk/metric/internal go.opentelemetry.io/otel/sdk/metric/internal/aggregate @@ -1105,7 +1156,7 @@ golang.org/x/crypto/md4 golang.org/x/crypto/ocsp golang.org/x/crypto/pbkdf2 golang.org/x/crypto/scrypt -# golang.org/x/net v0.28.0 +# golang.org/x/net v0.29.0 ## explicit; go 1.18 golang.org/x/net/http/httpguts golang.org/x/net/http2 @@ -1133,10 +1184,10 @@ golang.org/x/text/unicode/norm # golang.org/x/time v0.6.0 ## explicit; go 1.18 golang.org/x/time/rate -# google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd +# google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 ## explicit; go 1.21 google.golang.org/genproto/googleapis/api/httpbody -# google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd +# google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 ## explicit; go 1.21 google.golang.org/genproto/googleapis/rpc/errdetails google.golang.org/genproto/googleapis/rpc/status